At a Glance
Until now, the examples have been written using direct addressing (use of %MWi), but it is also possible to create these same examples using unlocated variables.
The following example uses unlocated variables,
and covers the writing of a 50-word table named Tab_1
(declared as an ARRAY [0..49] OF INT) in the Uni-Telway slave, with
the address:
Network 20
Station 1
SCM2116 module in a TSX 87 in slot 5 of the base rack
Channel 1
Server address of slave Ad0 = 3.
The values to write are in the variable Tab_1
of the sender.
The management parameters are located in a
table of 4 integers called Management_Parameter
(declared
as ARRAY [0..3] OF INT).
Illustration
The two stations are connected via a Fipway network.

Programming
Programming in ST:
IF RE(%I0.3.1) AND NOT Management_Parameter[0].0 THEN
WRITE_VAR(ADDR(’{20.1}0.5.1.3’),’%MW’,0,50,Tab_1,Management_Parameter);
END_IF;
Request parameters:
Parameters |
Description |
---|---|
ADDR(’{20.1}5.1.3’) |
|
’%MW’ |
Type of object (internal word) |
0 |
address of the first object to write |
50 |
Number of consecutive objects to write |
Tab_1 |
Data to write |
Management_Parameter |
Management table |