Chapter 7 Application Instructions; Rotation Instructions; Rotating 16-Bit Binary Data To The Right - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

7
APPLICATION INSTRUCTIONS
7.1

Rotation Instructions

Rotating 16-bit binary data to the right

ROR(P), RCR(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
• ROR(P): These instructions rotate the 16-bit binary data to the right by (n) bit(s), excluding the carry flag.
• RCR(P): These instructions rotate the 16-bit binary data to the right by (n) bit(s), including the carry flag.
Ladder
(d)
(n)
*1
FBD/LD
EN
ENO
n
d
*1 The ROR instruction does not support the ST and FBD/LD. Use the standard function, ROR.
Page 1925 ROR(_E)
■Execution condition
Instruction
ROR
RCR
RORP
RCRP
Setting data
■Description, range, data type
Operand
Description
(d)
Rotation target device
(n)
Number of bits to be rotated
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
(d)
(n)
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
*1
ST
ENO:=RORP(EN,n,d);
ENO:=RCR(EN,n,d);
ENO:=RCRP(EN,n,d);
Range
Data type
16-bit signed binary
0 to 15
16-bit unsigned binary
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
7 APPLICATION INSTRUCTIONS
Data type (label)
ANY16
ANY16
BOOL
BOOL
Constant
Others
specification
K, H E
$
7.1 Rotation Instructions
7
527

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents