Starting Up the PLC
11.4 PLC programming
11-179
SINUMERIK 802D sl Instruction Manual (BA), 05/2005 Edition
6FC5 397-0CP10-1BA0
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
SHL_R
IN
N
OUT
EN
ENO
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
SHL_W
IN
N
OUT
EN
ENO
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
SHL_DW
IN
N
OUT
EN
ENO
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
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.
DI_REAL
IN
OUT
EN
ENO
Enable: EN
In: VD, ID, QD, MD, AC, Constant, LD
Out: VD, ID, QD, MD, AC, LD
Convert a Real to a
Double Word Integer
If EN = 1, convert the
real number i to a
double word integer o.
TRUNC
IN
OUT
EN
ENO
Enable: EN
In: VD, ID, QD, MD, AC, Constant, LD
Out: VD, ID, QD, MD, AC, LD
PROGRAM CONTROL FUNCTIONS
Instruction Ladder Symbol Valid Operands
Jump to Label If EN = 1, go to label n.
n
JMP
Enable: EN
Label: WORD: 0–127
Label Label marker for the
jump.
LBL
n
Label: WORD: 0–127
Conditional Return
from Subroutine
If EN = 1, exit the sub-
routine.
RET
Enable: EN
Return from Subrou-
tine
Exit subroutine.
RET
Conditional End If EN = 1, END termi-
nates the main scan.
END
Enable: EN
Siemens Automation Parts