st-one-io / node-red-contrib-pccc

A Node-RED node to interact with some Allen-Bradley PLCs using PCCC protocol
GNU General Public License v3.0
8 stars 2 forks source link

PLC5 Unable to Read/Write Data #6

Open twistedcustomdevel opened 3 years ago

twistedcustomdevel commented 3 years ago

I have been working with my PLC 5/80 and its Ethernet sidecar recently. 1785-L80B/E rev. C01 and 1785-ENET/A rev. E01 respectively.

When I address a single element of the datafile B12 or N7 (e.g. B12:0/0-15) I get a verbose return of "No response from PLC, restarting the communication" or (e.g. N7:0) "Failure (Bad Values)" with either read or write operations.

I have also experimented with the routing to no avail. I have attempted both the default and an older port, link routing scheme of 0x01,0x00,0x01,0x01 given that the sidecar is technically in slot 1.

I know that CIP protocol works for this particular setup. I have a Micro820 that can read and write the same datafiles over TCP 44818 with impunity. (Micro820 was disabled for testing purposes.)

Thoughts? I'd like to use this PLC5 with Node-RED if possible. If need be I will make my studio machine and PLC5 remotely available to whomever needs it to aid in development.

gfcittolin commented 3 years ago

Hi there, PLC 5 unfortunately doesn't use the same protocol as e.g. SLC 500 or Micrologix. Although it's still CIP, the functions and way of addressing the variables is very different. We have a private version of this node that does support PLC 5, but it's unfortunately only available to customers of our product due to the need of other libraries that are not open sourced