Communicating the UR5e cobot with a Schneider PLC

Hello,

I am trying to get the UR5e robot to communicate with a Schneider PLC, using Modbus TCP. I want to read the address registers with this, so that I can then send data from the robot to the PLC. Beside de Modbus information in the robot do I also need a code in the robot to read out the adress registers?