74
D320 PLC User's Manual
Bit Conversion Instructions
Mnemonic
Command
Word
Double Word
Description
BSET
Bit Set
BSET
D =
N =
Set Nth bit of D to 1.
D ...... 0 1 1 1 1 1 0 0
N=5
1
BRST
Bit Reset
BRST
D =
N =
Reset Nth bit of D to 0.
D ...... 0 1 0 1 0 1 0 0
N=3
0
BNOT
Bit Not
BNOT
D =
N =
Reverse state of Nth bit of D.
D ...... 0 1 1 1 0 1 0 0
N=4
D ...... 0 1 1 0 0 1 0 0
BTST
Bit Test
BTST
D =
N =
Set carry bit F1.8 to the state of the
Nth bit of D.
D ...... 0 1 1 1 0 1 0 0
N=6
F1.8
SUM
Sum
SUM
D =
S =
Store the number of bits in S that are
1 in D.
S
$00 0 1 1 1 0 1 0 0 4 ON(=1)s
D 0..0 0 0 0 0 0 1 0 0 D=4
SC
Set Carry
SC
Set carry bit (F1.8) to 1.
1
F1.8
RC
Reset Carry
RC
Reset carry bit (F1.8) to 0.
0
F1.8
CC
Complement Carry
CC
Reverse carry bit (F1.8).
1
0
0
1
F1.8
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...