User`s manual

188
4.4 Programming
This section explains the programming when data reception is performed with an interrupt program during
communication using the non procedure protocol or bidirectional protocol.
4.4.1 Program example
The following shows a program example for receiving data using an interrupt program.
(Program condition)
Interrupt pointer setting with GX Developer
PLC side: Interrupt pointer Start No. = 50, Interrupt pointer No. of module = 2 (fixed)
*1
*1 CH1 side interrupt pointer = I50, CH2 side interrupt pointer = I51
Intelli. module side: Start I/O No. = 0, Start SI No. = 0 (fixed)
Interrupt program start enable/disable setting with GX Configurator-SC
CH1 side: Issues interrupt (performs communication via the non procedure protocol.)
CH2 side: Does not issue interrupt
(Program example)
When the Q series C24 I/O signals are X/Y00 to X/Y1F
* Resets by the main program
For CH1 side
D200
From D201
: No. of receive data
: Receive data
Interrupt program enabled
Normal reception
Abnormal reception
Reception interrupt program executed
Sets the flag for confirming
normal reception/abnormal
reception in the main program
Receives data and stores it
in D200 and succeeding addresses