
FANUC PMC-MODEL SD7
Programming Manual
01 01.11.26
Hanaoka
New
A-78550E
EDIT DATE DESIG.
DESCRIPTION
71/
316
TITLE
DRAW.NO.
3.5.4 SHIFTL_(type)/SHIFTR_(type)
Function
When EN is set to ON and is receiving the power flow,
SHIFTL/SHIFTR left-shifts/right-shifts the bit string of input
parameter IN by an amount given by input parameter N.
The last bit to overflow is output to output parameter B2, and the value
of input parameter B1 (0 or 1) is replaced with an empty bit. The
shifted bit string is output to output parameter Q.
IN and Q must both be of the same data type. When the value of N is
less than 0, or greater than the number of bits in the bit string of IN,
SHIFTL/SHIFTR stops the power flow.
SHIFTL_(type)/SHIFTR_(type) instructions
Name Explanation
SHIFTL_BYTE Left shift of BYTE data
SHIFTL_WORD Left shift of WORD data
SHIFTL_DWORD Left shift of DWORD data
SHIFTR_BYTE Right shift of BYTE data
SHIFTR_WORD Right shift of WORD data
SHIFTR_DWORD Right shift of DWORD data
Format
SHIFTL
(type)
B2
N
B1
(EN)
??????? ???????
???????
???????
IN
SHIFTR
Q ???????
LEN