Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
Hi everyone,
I try to use Modbus TCP beetwen RPI and PLC and I also make init with "Modbus Slave Init" and the value was transfered to PLC. I try read holding register at 0x0000 and all status in codesys "device" is ok but why my value is always zero even though I change the value. I used another tool as Modbus TCP master but the value is good, could anyone help me for this problem?
Regards
Roy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi everyone,
I try to use Modbus TCP beetwen RPI and PLC and I also make init with "Modbus Slave Init" and the value was transfered to PLC. I try read holding register at 0x0000 and all status in codesys "device" is ok but why my value is always zero even though I change the value. I used another tool as Modbus TCP master but the value is good, could anyone help me for this problem?
Regards
Roy
Hi,
You need to call the mapped variables somewhere in the Pou's if not called tge values will not updated.
BR
Edwin
Hi Edwin,
Thank you for your explanation, I don't know if it must process in Pou
Roy