FX Series Programmable Controlers Applied Instructions 5
5-42
5.4 Rotation And Shift - Functions 30 to 39
Contents:
Page
ROR - Rotation Right FNC 30 5-35
ROL - Rotation Left FNC 31 5-35
RCR - Rotation Right with Carry FNC 32 5-36
RCL - Rotation Left with Carry FNC 33 5-36
SFTR - (Bit) Shift Right FNC 34 5-37
SFTL - (Bit) Shift Left FNC 35 5-37
WSFR - Word Shift Right FNC 36 5-38
WSFL - Word Shift Left FNC 37 5-38
SFWR - Shift Register Write FNC 38 5-39
SFRD - Shift Register Read FNC 39 5-40
Symbols list:
D - Destination device.
S - Source device.
m, n- Number of active devices, bits or an operational constant.
Additional numeric suffixes will be attached if there are more than one operand with the same
function e.g. D
1,S3 or for lists/tabled devices D3+0, S+9 etc.
MSB - Most Significant Bit, sometimes used to indicate the mathematical sign of a number, i.e.
positive = 0, and negative = 1.
LSB - Least Significant Bit.
Instruction modifications:
PPP - An instruction operating in 16 bit mode, where PPP identifies the instruction
mnemonic.
PPPP - A 16 bit mode instruction modified to use pulse (single) operation.
DPPP - An instruction modified to operate in 32 bit operation.
DPPPP - A 32 bit mode instruction modified to use pulse (single) operation.
( - A repetitive instruction which will change the destination value on every scan unless
modified by the pulse function.
) - An operand which cannot be indexed, i.e. The addition of V or Z is either invalid or will
have no effect to the value of the operand.