What is the Syntax of the IN Parameter of the ADDM block used by M340 PLCs when communicating over Ethernet?
The ADDM function block builds a device address string for use with communication blocks like READ_VAR or WRITE_VAR.
The input parameter is:
For addressing a station over Ethernet, IN takes one of these forms:
'Netlink{hostAddr}''Netlink{hostAddr}TCP.MBS''Netlink{hostAddr}MBS''r.m.c{hostAddr}''r.m.c{hostAddr}TCP.MBS''r.m.c{hostAddr}MBS''Netlink{hostAddr}node'
Where:
Netlink— the network name set in the Net Link field of the Ethernet channelhostAddr— the IP address of the target devicer— rack numberm— module positionc— channel numbernode— the Modbus or CANopen node behind a gateway (the gateway itself is identified byhostAddr)MBS— Modbus ServerTCP.MBS— TCP Modbus Server