8
PROGRAMMING
8.1 Program Example of Single Network System
8.1.3 Program example of cyclic transmission
8
- 8
1
O
V
ER
VI
E
W
2
SYST
EM
CO
NF
IG
URA
T
IO
N
3
SPECI
F
IC
A
T
IO
N
S
4
F
UNCT
IONS
5
PREP
ARA
T
IO
N AND
SET
UP
6
P
A
RAM
E
T
E
R
SET
TI
NG
7
PRO
C
ESSI
NG
T
IM
E
8
PRO
G
R
AM
M
ING
8.1.3
Program example of cyclic transmission
The following shows a program example of cyclic transmission.
(1) Overview of program example
D0 of the control station (No. 1) is sent to Y50 to Y5F of the normal station (No. 2)
through cyclic transmission.
In the program example in this section, an interlock is established with link relay (LB)
and cyclic data is sent.
(Processing at control station (No. 1)-side)
1) Turn ON the send request.
2) Store D0 data in W0.
3) When data storage is completed, turn ON B0 for handshake.
4) Link relay (LB) is sent through cyclic transmission after link register (LW).
(Processing at normal station (No. 2)-side)
5) B0 is turned ON.
6) Store W0 contents in Y50 to Y5F.
7) When data storage to Y50 to Y5F is completed, turn ON B200 for handshake.
(Processing at control station (No. 1)-side)
8) When B200 is turned ON, turn B0 OFF.
Figure 8.16 Overview of program example
Send
request
SET B0
MOV D0 W0
CPU module
Control station
No.1
No.1
No.1
No.2
No.2
No.1
No.1
No.2
No.2
No.1
No.1
No.2
No.2
No.1
No.1
No.2
No.2
Normal station
No.2
CPU module
Cyclic transmission
(Range set in network range assignment)
Link refresh
(Range set with refresh parameters)
CC-Link IE
controller
network module
CC-Link IE
controller
network module
BCD W0 K4Y50
B0
LB0
B0
W0
LW0
W0
B200
B200
LB200
LB0
LW0
LB200
B0
Содержание QJ71GP21-SX
Страница 1: ......
Страница 2: ......
Страница 644: ...App 94 Appendix 6 External Dimensions Appendix 6 2 QJ71GP21S SX APPENDICES Memo ...
Страница 649: ......
Страница 650: ......