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