8
PROGRAMMING
8.1 Program Example of Single Network System
8.1.5 Program example of interrupt request
8
- 16
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.5
Program example of interrupt request
The following shows a program example of interrupt request.
(1) Overview of program example
In the program example in this section, the interrupt program of station No. 2 is
activated when the Data link status of own station (SB0049) is ON (data link error
occurrence).
(2) Setting (set in station No. 2)
(a) Interrupt setting
Consider the interrupt setting with the parameter sheet. (
Complete settings in GX Developer based on the contents filled in the parameter
sheet.
Figure 8.21 Operation of program example for interrupt request
Figure 8.22 Interrupt setting
Figure 8.23 Interrupt setting
SB0049
SB0049
SB
SB
SM400
I51
IRET
CPU module
Data link error
CPU module
Receive
processing
Control station
No.1
Normal station
No.2
Network No.1
No.
Network No.
Station No.
1
Device code
Device No.
Detection method
Interrupt
condition
Word device:
Setting value
Board No.
Interrupt (SI)
No.
Summary of Contents for QJ71GP21-SX
Page 1: ......
Page 2: ......
Page 644: ...App 94 Appendix 6 External Dimensions Appendix 6 2 QJ71GP21S SX APPENDICES Memo ...
Page 649: ......
Page 650: ......