EasyManua.ls Logo

Mitsubishi MELSEC iQ-F FX5 series - Chapter 7 Application Instruction; Rotation Instruction; Rotating 16-Bit Data to the Right

Mitsubishi MELSEC iQ-F FX5 series
888 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 APPLICATION INSTRUCTION
7.1 Rotation Instruction
317
7
7 APPLICATION INSTRUCTION
7.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. Use ROR of the standard function.
Page 797 ROR(_E)
Setting data
Descriptions, ranges, and data types
Applicable devices
Ladder diagram Structured text
*1
ENO:=RORP(EN,n,d);
ENO:=RCR(EN,n,d);
ENO:=RCRP(EN,n,d);
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
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(d) 
(n) 
(d) (n)

Table of Contents

Related product manuals