Manual

Table Of Contents
33
Modbus and Ethernet Modbus TCP/IP protocols
English
W916556680111
Example of programming a request for station @ 2
During programming, use the XWAY address to specify the station.
The Modbus address is set to 2.
PLC configuration with Unity PRO XL V1.0.1
(*----- Step 2 -----------------------------------------*)
(* Read status word = test presence tag station @ 2*)
IF NOT %MW702:X0 THEN
%MD1:=16#00008000;(* STATUS *)
READ_VAR(ADR#{1.106}0.0.2,'%mw',%MD1,1,%MW800:2,%MW702:4);
END_IF;
ADR#{1.106} <=> 139.160.32.242
Modbus address = 2