Download Print this page

Chapter 8 Application Instruction - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

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).
Ladder diagram
(d)
(n)
*1
FBD/LD
EN
ENO
n
d
*1 The ROR instruction is not supported by the ST language and the FBD/LD language. Use ROR of the standard function.
Page 1007 ROR(_E)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(d)
Head device number where the rotation target data is stored
(n)
Number of rotations
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(d)
(n)
Word
T, ST, C, D, W,
U\G
SD, SW, R
*1
Structured text
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
specification
Z
LC
LZ
Data type (label)
ANY16
ANY16
BOOL
BOOL
Constant
Others
K, H
E
$
8 APPLICATION INSTRUCTION
8.1 Rotation Instruction
8
371

Hide quick links:

Advertisement

loading