279
CHAPTER 8 PROGRAMMING
8
8.1 Program Example of a Single Network System
8.1.4 Program example of transient transmission
(2) Devices used in the program example
(a) Special relay (SM), link special relay (SB), and link special register (SW)
(b) Devices used by the user
(3) Link dedicated instruction settings
The following shows settings of control data for the READ and WRITE instructions.
(a) READ instruction
Device Description Device Description
SM402 Turned ON for only one scan after RUN SW00A0.1 Baton pass status of station No.2
SB0047 Baton pass status of own station —
Device Description Device Description
M1000 Completion device (READ instruction) M1021
Completion status indication device (WRITE
instruction)
M1001
Completion status indication device (READ
instruction)
M1030 Execution command (WRITE instruction)
M1010 Execution command (READ instruction)
D1000 to
D1010
Control data (READ instruction)
M1020 Completion device (WRITE instruction)
D1020 to
D1030
Control data (WRITE instruction)
Device Item Setting value
(S1)+0 D1000 Error completion type
0001
H
(Clock data at the time of error completion is not set)
(S1)+1 D1001 Completion status — (Set by system, no setting required)
(S1)+2 D1002 Channel used by own station 1
(S1)+3 D1003 Target station's CPU type
0000
H
(Control CPU)
(S1)+4 D1004 Target station network No. 1
(S1)+5 D1005 Target station No. 2
(S1)+6 D1006 (Unused) 0
(S1)+7 D1007 Number of resends 5 times
(S1)+8 D1008 Arrival monitoring time 0 (10 seconds)
(S1)+9 D1009 Read data length 50 words
(S1)+10 D1010 (Unused) 0