4 flags – IAI America XSEL-KX User Manual
Page 70
![background image](/manuals/350295/70/background.png)
54
Part 3 Controller Data Structure
1.4 Flags
Contrary to its common meaning, the term “flag” as used in programming means “memory.” Flags are
used to set or reset data. They correspond to “auxiliary relays” in a sequencer.
Flags are divided into global flags (Nos. 600 to 899) that can be used in all programs, and local flags (Nos.
900 to 999) that can be used only in each program.
Global flags will be retained (backed up by battery) even after the power is turned off.
Local flags will be cleared when the power is turned off.
Flag number
600 ~ 899
Can be used in all programs
“Global flags”
Flag number
900 ~ 999
Used only in each program
“Local flags”
Program 1
Program n
BTON 600
WTON 600
BTON 900
BTON 900
Turn on flag 600
Wait for flag 600 to turn ON
(Like this, global flags can be
used to exchange signals.)
(Although the number is the
same, these are local flags and
can exist only in their
respective programs.)