Modbus serial communication
I have modbus serial 3rd party slave. when i connect my system with switch and switch is connected with moxa gateway and after that serial cable is connected with siemends plc. With modbus scan i am connecting my laptop with swithc i am getting the polls and data in modbus scan software.
But in cbm in MTCPConnect status is 7004.partner addres is 1.1.4 means ethernet 100 is 1 and gateway is 1 and connected with port 4.
how can the status will change
But in cbm in MTCPConnect status is 7004.partner addres is 1.1.4 means ethernet 100 is 1 and gateway is 1 and connected with port 4.
how can the status will change
Answers
For MTCPConnect:
Channel depends on physical position of CI867 - for example 1.2.1 and partner should be slave address 4
Channel string[32] retain '1.2.1'
parthner string[32] retain '4'
IP address and gateway are set in HW configuration for CI867, Ethernet port and ModbusTCP slave items.
-7004 = MTMReadCyc = Cycle time is less than 1 second
From the help:
If status message is enabled ("Poll time" > 0) the function block will automatically try to establish a connection with the device repeatedly as long as the En_C parameter is True. The cycle of this retry has the same value as the value of the "Poll time" parameter entered in the hardware tree
Set Poll time=0
Add new comment