8 APPLICATION INSTRUCTION
8.1 Rotation Instruction
371
8
8
APPLICATION INSTRUCTION
8.1
Rotation Instruction
Rotating 16-bit data to the right
ROR(P), RCR(P)
• ROR(P): These instructions rotate the 16-bit binary data in the device specified by (d) to the right by (n) bit(s) (not including
the carry flag).
• RCR(P): These instructions rotate the 16-bit binary data in the device specified by (d) to the right by (n) bit(s) (including the
carry flag).
*1 The ROR instruction is not supported by the ST language and the FBD/LD language. Use ROR of the standard function.
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
Ladder diagram
Structured text
ENO:=RORP(EN,n,d);
ENO:=RCR(EN,n,d);
ENO:=RCRP(EN,n,d);
FBD/LD
Operand
Description
Range
Data type
Data type (label)
(d)
Head device number where the rotation target data is stored
16-bit signed binary
ANY16
(n)
Number of rotations
0 to 15
16-bit unsigned binary
ANY16
EN
Execution condition
Bit
BOOL
ENO
Execution result
Bit
BOOL
Operand
Bit
Word
Double word Indirect
specification
Constant
Others
X, Y, M, L, SM,
F, B, SB, S
T, ST, C, D, W,
SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(d)
(n)
(d)
(n)
EN
ENO
d
n
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......