74
8 FUNCTIONS
8.2 Function Details
■
Slave module parameter access (To read parameters)
This program reads all parameters of the target slave module by specifying the ID. The device settings of the G(P).RDMSG
instruction in the sample program are as follows.
The following shows a program example.
The following shows the reading parameters of the target slave module using Parameter accessing flag (with handshake)
(RX(n+1)B). The device settings of the G(P).RDMSG instruction in the sample program are as follows.
Device setting in the sample program
Setting description
Setting value in the sample program
D101
CC-Link station start number
1
D102
Number of send byte
10
D103
Maximum number of receive byte
255
D110
Dedicated instruction execution parameter_1 (fixed value)
2H
D111
Dedicated instruction execution parameter_2 (fixed value)
1504H
D112
Target slave module ID
202H
D113
Dedicated instruction execution parameter_3 (fixed value)
0
D114
Read data size
38
Device setting in the sample program
Setting description
Setting value in the sample program
D101
CC-Link station start number
1
D102
Number of send byte
10
D103
Maximum number of receive byte
255
D110
Dedicated instruction execution parameter_1 (fixed
value)
2H
D111
Dedicated instruction execution parameter_2 (fixed
value)
1504H
D112
Target slave module ID
202H
Parameter access setting (read)
Program
starting
contact
Dedicated
instruction
starting
contact
Communication
starting contact
Communication
starting contact
Communication
starting contact
Slave module all
parameters reading
Parameter access
completion flag
Dedicated
instruction
starting contact
Parameter access target module ID
specification
CC-Link station number: 1
Number of send byte
Maximum number of receive byte
Dedicated instruction execution
parameter_1 (fixed value)
Dedicated instruction execution
parameter_2 (fixed value)
Target slave module ID
Dedicated instruction execution
parameter_3 (fixed value)
Read data size
G(P).RDMSG instruction
Parameter access request command
for the slave module
Summary of Contents for AnyWire NZ2AW1C2AL
Page 1: ...CC Link AnyWireASLINK Bridge Module User s Manual NZ2AW1C2AL ...
Page 2: ......
Page 12: ...10 MEMO ...
Page 121: ...I 119 MEMO ...
Page 125: ......