st-one-io / node-red-contrib-cip-ethernet-ip

A Node-RED node to interact with Allen Bradley / Rockwell PLCs
GNU General Public License v3.0
51 stars 23 forks source link

Send array #9

Closed GitHubAndDance closed 5 years ago

GitHubAndDance commented 5 years ago

Does node-red-contrib-cip-ethernet-ip support sending an array of data using the "eth-ip out node" to an array on the PLC, or do i need to write to each individual "subtag" with individual nodes?

If it does support it how should msg.payload be formatted?

gfcittolin commented 5 years ago

Good question, I don't remember trying it out with arrays. I'll check that out to see whether it works or not

gfcittolin commented 5 years ago

Just checked out, and unfortunately there's no support on the underlying library to directly address an array, just their members. They're currently in progress to add support to this (and other features, like support for strings), so we may benefit from it in the future.

GitHubAndDance commented 5 years ago

Thanks for answer

tir. d. 6. aug. 2019 18.53 skrev Guilherme Francescon < notifications@github.com>:

Closed #9 https://github.com/netsmarttech/node-red-contrib-cip-ethernet-ip/issues/9 .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/netsmarttech/node-red-contrib-cip-ethernet-ip/issues/9?email_source=notifications&email_token=ABNLH3OFNUNBNCUMCM6W47DQDGUCPA5CNFSM4IF23YPKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOS47HR3Y#event-2537453807, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNLH3JNVHIEVCAKSE3UTXTQDGUCPANCNFSM4IF23YPA .