Steve-Mcl / node-red-contrib-mcprotocol

A Node-red node for communicating with mitsubishi PLCs using MC Protocol over Ethernet
https://github.com/Steve-Mcl/node-red-contrib-mcprotocol
22 stars 18 forks source link

Read multiple registers #22

Open mrfy opened 1 year ago

mrfy commented 1 year ago

Hi, I want to read multiple registers but don't know how to, I've cloned repo and below I paste my tests:

When I send topic as array of registers I have response only from first register, becouse node is busy in myReply function.

image

Is this way of reading correct and consistent with the assumptions?: My flow:

image

toplinuxsir commented 1 year ago

The same question , how to read multiple items at one time ? Thanks!

Steve-Mcl commented 8 months ago

the node does not support multiple read. however, you can read multiple consecutive addresses and parse out the relevant values.

e.g:

If you want support for reading different areas and sizes, the driver would need to be updated to support "Batch read multiple blocks (command: 0406)" (See section 8.4 in the protocol specification: https://dl.mitsubishielectric.com/dl/fa/document/manual/plc/sh080008/sh080008ab.pdf)

However, i no longer have access to Mitsi PLCs and this would prove difficult to do without one.


EDIT:

My apologies for the delay in responding. This question fell off my radar during a particularly busy period of my life and I have just re-discovered it.