134
D320 PLC User's Manual
Instruction
Mnemonic
Carry Bit (F1.8) Set, Reset,
Reverse
Range
Bit
Word
SC
RC
CC
SC: Set carry bit
RC: Reset carry bit
CC: Reverse carry bit
Double words
Ladder
SC: Carry bit set (F1.8: X
→
1).
RC: Carry bit reset (F1.8: X
→
0).
CC: Carry bit reverse (F1.8: 0
→
1, 1
→
0).
Description
1. The carry bit (F1.8) is a special internal flag that holds the result of various types of
mathematical and bit shift operations. When rotating, shifting, adding, or subtracting with a
carry, the operation depends on the state of the carry flag, as well as changes the state of the
carry flag. The above instructions are useful for setting the state of the carry flag as needed for
these types of operations.
2. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Program Expression
Operation Results
SC
R
RC
R
CC
R
R0.2
R
R0.1
R
R0.0
R
SC
RC
CC
R0.0
R0.1
R0.2
F1.8
Содержание D320 PLC
Страница 1: ...D320 PLC User s Manual...
Страница 18: ...6 D320 PLC User s Manual...
Страница 28: ...16 D320 PLC User s Manual...
Страница 34: ...22 D320 PLC User s Manual...
Страница 78: ...66 D320 PLC User s Manual...
Страница 176: ...164 D320 PLC User s Manual...
Страница 210: ...198 D320 PLC User s Manual...
Страница 258: ...246 D320 PLC User s Manual...