Chapter 6 Instruction Details
XBC E-Type Main Unit 6-290 Ve r. 1
6.40 Flag Instruction
6.40.1 STC, CLC
Instruction
Step
P M K F L T C S Z D.x
R.x
U N D R
[Flag Setting]
Flag Description
Device Number
Carry
To be set if execution condition of STC is On
To be reset if execution condition of CLC is On
No change if STC or CLC execution condition is Off
F112
1) STC (Set Carry Flag)
(1) If input condition is On, Carry Flag (F112) will be set (On).
2) CLC (Clear Carry Flag)
(1) If input condition is On, Carry Flag (F112) will be cleared (Off).
3) Program Example
(1) Where Carry Flag (F112) will be set if input M00000 is On.
It clears the set Carry Flag(F112) if input M00001 is On.
Carry Flag (F112) contact point set
Carry Flag (F112) contact point cleared