151
SET F, RST F
1
2
3
4
5
6
7
8
5.3
O
u
tput Instructio
ns
5.3.7
SET F,
RST F
Remark
1. For details of annunciators, refer to the User's Manual (Functions Explanatio Program Fundamentals) for the CPU module
used.
2. The number of basic steps for the SET F
and RST F
instructions is 2.
(3) When the value of SD63 is "16", the annunciator numbers are deleted from SD64 to SD79 by the use of the RST
instruction. If the annunciators whose numbers are not registered in SD64 to SD79 are ON, these numbers will be
registered.
If all annunciator numbers from SD64 to SD79 are turned OFF, the LED display device on the front of the CPU module,
or the "USER" LED, will be turned OFF.
*2
*2:
When using the Basic model QCPU, the "ERR." LED goes OFF.
[Operations which take place when SD63 is 16]
Operation Error
(1) There is no operation error in the SET F or RST F instruction.
Program Example
(1) The following program turns annunciator F11 ON when X1 goes ON, and stores the value 11 at the special register
(SD64 to SD79). Further, the program resets annunciator F11 if X2 goes ON, and deletes the value 11 from the special
registers (SD64 to SD79).
[Ladder Mode]
[List Mode]
[Operation]
16
SD63
233
90
700
145
1027
SD64
SD65
SD66
SD78
SD79
16
233
90
700
145
1027
SD64
SD65
SD78
SD79
16
233
700
28
145
30
SD64
SD65
SD66
SD77
SD79
1027
SD78
Resets F90.
Turns F30 ON.
SD66
F number in
SD67 is stored.
Contents of SD63 and
those of SD64 to SD79
are not changed.
F30
,
which was ON
,
is stored in SD79.
Step
Instruction
Device
SD63
SD64
SD65
SD66
SD78
SD79
SD64
SD65
SD78
SD79
SD64
SD65
SD66
SD79
SD78
W
hen X2 is ON
W
hen X1 is ON
SD66
Subtracts 1
0
0
0
0
0
0
SD63
SD67
1
11
0
0
0
0
0
SD63
SD67
0
0
0
0
0
0
0
Adds 1