Good morning,
is it possible to add a write condition of modbus register type #word on modbus server? I would like the write condition by the client to be the state (1,0) of some other register such as coil type?
Good morning!
Yes, it is possible.
You can achieve this by using the function blocks provided in the PLCnext Engineer software.
For example, you can use the MB_TCP_Server function block to handle Modbus communication. You can then create a custom function block to check the coil state and conditionally write to the #word register.
For detailed steps and examples, you can refer to the Modbus TCP function block library documentation for PLCnext Engineer
If you need more specific guidance or examples, feel free to ask!
Dear Expert.
I need to be support a Modbus TCP library .
In my case, I use PLCnext as modbus TCP client.
In Function block ( FC1, FC2, FC3…) they iMT_ID parameter with range from 1 to 10.
If mean that each Modbus TCP Client function block can only use maximum 10 function blocks.
In my requirement, I need to use 40 function blocks ( FC1, FC2, FC3…) for each Modbus TCP Client function block.
How can I do that?


Bests
Dear Expert.</p>I need to be support a Modbus TCP library .</p>In my case, I use PLCnext as modbus TCP client.</p>In Function block ( FC1, FC2, FC3…) they iMT_ID parameter with range from 1 to 10.</p>If mean that each Modbus TCP Client function block can only use maximum 10 function blocks.</p>In my requirement, I need to use 40 function blocks ( FC1, FC2, FC3…) for each Modbus TCP Client function block.</p>How can I do that?</p>[https://forum.plcnext-community.net/uploads/ROGDNLYI8WJU/image.png</a></p>[https://forum.plcnext-community.net/uploads/3GYNZVMCTBA6/image.png</a></p>Bests</p>
Have you tried contacting the developers of the Modbus TCP function block library using the „Contact Developer“ button on the app page in the PLCnext Store?