Starting Up the PLC
11.6 PLC Programming
Operating Instructions
Operating Instructions, 12/2006, 6FC5397-0CP10-2BA0 169
LOGIC OPERATIONS
Instruction Ladder Symbol Valid Operands
Invert Byte If EN = 1,
a = /a
,1&B%
,1 287
(1 (12
Enable : EN
In: VB, IB, QB, MB, AC, Constant, LB
Out: VB, IB, QB, MB, AC, LB
Invert Word If EN = 1,
a = /a
,1&B:
,1 287
(1 (12
Enable : EN
In: VW, T, C, IW, QW, MW, AC, Constant, LW
Out: VW, T, C, IW, QW, MW, AC, LW
Invert DWord If EN = 1,
a = /a
,19B':
,1 287
(1 (12
Enable : EN
In: VD, ID, QD, MD, AC, Constant, LD
Out: VD, ID, QD, MD, AC, LD
Table 11-18 SHIFT AND ROTATE OPERATIONS
SHIFT AND ROTATE OPERATIONS
Instruction Ladder Symbol Valid Operands
Shift Right
Shift Left
If EN = 1,
a = a SR c bits
a = a SL c bits
6+/B5
,1
1287
(1 (12
Enable : EN
In: VB, IB, QB, MB, AC, Constant, LB
Out: VB, IB, QB, MB, AC
Count: VB, IB, QB, MB, AC, Constant, LB
Shift Right
Shift Left
If EN = 1,
a = a SR c bits
a = a SL c bits
6+/B:
,1
1287
(1 (12
Enable : EN
In: VW, T, C, IW, QW, MW, AC, Constant, LW
Out: VW, T, C, IW, QW, MW, AC, LW
Count: VB, IB, QB, MB,AC, Constant, LB
DWord Shift R
DWord Shift L
If EN = 1,
a = a SR c bits
a = a SL c bits
6+/B':
,1
1287
(1 (12
Enable : EN
In: VD, ID, QD, MD, AC, Constant, LD
Out: VD, ID, QD, MD, AC, LD
Count: VB, IB, QB, MB, AC, Constant, LB
Table 11-19 CONVERSION OPERATIONS
CONVERSION OPERATIONS
Instruction Ladder Symbol Valid Operands
Convert Double
Word Integer to a
Real
If EN = 1, convert the
double word integer i
to a real number o.
',B5($/
,1 287
(1 (12
Enable : EN
In: VD, ID, QD, MD, AC, Constant, LD
Out: VD, ID, QD, MD, AC, LD