PM564 ETH FOR MODBUS TO MODBUS TCP
I am using PM564 eth PLC for Modbus RTU to TCP/IP communication. On the COM1 port I have connected a Multifunction meter (RS485 2 wire). And ethernet port is connected to PC. Can anyone suggest how to achieve this.
If you need to translate Modbus RTU to Modbus TCP/IP with PM564, you can do it with readig of Modbus RTU from the ext. device by means of COM1 for example, transfer it in your application to invernal variables, and send these variables to Modbust TCP/IP through ETH port. That is possible. For modbus RTU use COM_MOD_MAST and for modbus TCP/IP use ETH_MOD_MAST blocks, also use %MW0.x or %MX variables for reading and writing.
COM1 port of the CPU is intended for serial connection, for example RS485, with Modbus RTU protocol. You can't use it for Modbus TCP/IP.
For Modbus TCP/IP you should use ETH port of the CPU - for example with external switch in order to have more than 1 connection.
Or to install additional ETH module to the CPU, for eample CM577-ETH which have 2 ports and internal switch
Follow the below points:
1)You need to do the Pheriperal setting Both device ,PC and PLC
2)Physically check all the readings are wether all the reading are showing using MODSCAN32 software( if not check the pheriperal setting and Communication cable )
3)Then You need to develope the loic using ETH_MOD_MAST(ethernet) function block or COM_mODE_MAST(Serial communication)