programmatically writing to revpi-output as modbus slave

Post Reply
iiLaw
Posts: 1
Joined: 08 Oct 2025, 10:12

programmatically writing to revpi-output as modbus slave

Post by iiLaw »

Apologies I'm new to revpi
I have 100 + sensors with 4 measurement values.
I need to write to contiguous register blocks in a revpi Modbus TCP slave.

I have configured a Modbus TCP slave with 512 I/O words
I can write to the revpi-output node where I specify the output pin

However, my need is to write to multiple output pins from a single write from a function node
for sensor_01, 4 words written to 40001 e.g. Output_1_iO4 to Output_4_iO4
for sensor_02, 4 words written to 40005 e.g. Output_5_iO4 to Output_9_iO4

I've tried using a buffer in an inject node to write 4 values to Output_1_iO4.
No error or change. I have feeling that my use case isn't supported?

I find the revpi-output documentation unclear
it refers to input port as well as a pin
I can't find an example where the input overrides the settings of the output node.
I've tried a number of variations and have yet to be able to override the revpi-output settings.
My conclusion is this isn't possible?

Looking forward to your reply
Lawrence
Post Reply