FANUC PMC-MODEL SD7
Programming Manual
01 01.11.26
Hanaoka
New
A-78550E
EDIT DATE DESIG.
DESCRIPTION
74/
316
TITLE
DRAW.NO.
3.5.5 ROL_(type)/ROR_(type)
Function
When EN is set to ON and is receiving the power flow, ROL/ROR left
rotates/right rotates the bit string of input parameter IN by an amount
equal to the value of input parameter N.
The rotated bit string is output to output parameter Q.
IN and Q must be both of the same data type. When the value of N is 0
or less, or larger than the number of bits in the bit string of IN, bit
string rotation is not performed, and ROL/ROR is not performed.
ROL_(type)/ROR_(type) instructions
Name Explanation
ROL_BYTE Rotate left of BYTE data
ROL_WORD Rotate left of WORD data
ROL_DWORD Rotate left of DWORD data
ROR_BYTE Rotate right of BYTE data
ROR_WORD Rotate right of WORD data
ROR_DWORD Rotate right of DWORD data
Format
ROL
(type)
IN Q
N
???????
???????
???????
(EN) (ENO)
ROR
LEN
Parameters
Parameter Data type Meaning
EN BOOL Execution of operation
LEN Constant The number of data in the string.
1<= LEN <=256
IN BYTE, WORD, DWORD Shifted data
N INT Amount of shift (bits)
ENO BOOL Normal end flag
Q BYTE, WORD, DWORD Result of operation