(6) Program example
1.
Create the following program with GX Works2.
2.
Write the program to the CPU module of the master station and reset the CPU module, or turn on
from off the power supply.
3.
Change the status of the CPU module of the master station to RUN.
CH2 Processing at the alert occurrence (upper limit value)
CH2 Processing at the alert occurrence (lower limit value)
RESET
or Power OFF
RUN
CHAPTER 9 PROGRAMMING
CH1 Digital value setting
CH2 Digital value setting
CH1 Output enable/disable flag
CH2 Output enable/disable flag
Check the alert output.
Check CH1 Digital value range.
Check CH2 Digital value range.
CH2 Alert output processing
(upper limit)
CH2 Alert output processing
(lower limit)
Turn on Alert output clear request flag.
Turn off Alert output clear request flag.
Read Latest error code.
Turn on Error clear request flag.
Turn off Error clear request flag.
Read Latest warning code.
Error clear request
ON
9
113