32-Bit Data Right Rotation (Carry Flag Not Included); 32-Bit Data Right Rotation (Carry Flag Included) - Mitsubishi MELSEC-q Programming Manual

Melsec q series; melsec l series
Hide thumbs Also See for MELSEC-q:
Table of Contents

Advertisement

5 MELSEC FUNCTIONS
5.11.5 32-bit data right rotation (carry flag not included) DROR_M
The specified BIN 32-bit data are rotated n bits to the right, without the carry flag being included.
Function definition
5.11.6 32-bit data right rotation (carry flag included) DRCR_M
The specified BIN 32-bit data are rotated n bits to the right, with the carry flag being included.
Function definition
5 - 51
BOOL DROR_M (BOOL EN, ANY16 n, ANY32 D);
Argument Name
EN
n
D
Remarks: When a bit device is specified in "D", the data in the specified number of
digits are rotated.
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the 32-bit data in dwData1 are
(* rotated to the right by the number of bits stored in D0, without the carry flag *)
(* being included.
DROR_M (X0, D0, dwData1);
Corresponding MELSEC command
DROR (Right rotation of 32-bit data)
BOOL DRCR_M (BOOL EN, ANY16 n, ANY32 D);
Argument Name
EN
n
D
Remarks: When a bit device is specified in "D", the data in the specified number of
digits are rotated.
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the 32-bit data in dwData1 are
(* rotated to the right by the number of bits stored in D0, with the carry flag
(* being included.
DRCR_M (X0, D0, dwData1);
Corresponding MELSEC command
DRCR (Right rotation of 32-bit data)
IN/OUT
Execution condition (Function is executed only when
IN
the result is TRUE)
IN
Number of rotations (0 to 31) (BIN 16-bit data)
IN/OUT
Data to be rotated, rotation result (BIN 32-bit data)
IN/OUT
Execution condition (Function is executed only when
IN
the result is TRUE)
IN
Number of rotations (0 to 31) (BIN 16-bit data)
IN/OUT
Data to be rotated, rotation result (BIN 32-bit data)
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
*)
5 - 51

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents