FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
09-09-2024 07:29 AM
Hi Community,
I am new in using Modbus TCP Server App.
I have setup a simple boolean variable in ctrlX PLC datalayer
Modbus TCP Server:
Modbus TCP Client:
However the value doesnt update the variable in plc is true in the client variable remain false, tried writing true doesnt work too.
I tried using 2 ctrlX, 1 as modbus tcp client and another as modbus tcp server same issue.
Anyone had this issues?
09-09-2024 08:04 AM
Does it make a difference if you change the PLC data type to a uint (the modbus registers are 16bit)?
09-09-2024 08:21 AM
Hi @AndreasL ,
Reading works now after changing the variable to uint. Now i want to write the variable it doesnt work.
PLC:
Modbus TCP Server:
Modbus TCP Client:
09-09-2024 08:35 AM
Can you write the variable from the datalayer? (So the symbol is readwrite)
Can you test with this master/client?
09-09-2024 09:03 AM
Hi @AndreasL
Yes i am able to write the variable from the datalayer:
I tried using the ModbusTool reading worked but writing doesnt work.
Read:
Write:
Write succeeded but values in PLC did not change
ctrlX Apps: