1-Word Right Shift; 1-Word Left Shift - 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.12.5 1-word right shift

n points of 16-bit data, starting at the specified device, are shifted one word to the right.
Function definition

5.12.6 1-word left shift

n points of 16-bit data, starting at the specified device, are shifted one word to the left.
Function definition
5 - 55
DSFR_M
BOOL DSFR_M (BOOL EN, ANY16 n, ANY16 D);
Argument Name
EN
n
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the data in D100 to D106 are
(* shifted 1 word to the right.
DSFR_M (X0, K7, D100);
Corresponding MELSEC command
DSFR (1-word right shift of n-word data)
DSFL_M
BOOL DSFL_M (BOOL EN, ANY16 n, ANY16 D);
Argument Name
EN
n
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the data in D100 to D106 are
(* shifted 1 word to the left.
DSFL_M (X0, K7, D100);
Corresponding MELSEC command
DSFL (1-word left shift of n-word data)
IN/OUT
Execution condition (Function is executed only when
IN
the result is TRUE)
IN
Number of devices to be shifted (BIN 16-bit data)
IN/OUT
Data to be shifted, shift result (BIN 16-bit data)
IN/OUT
Execution condition (Function is executed only when
IN
the result is TRUE)
IN
Number of devices to be shifted (BIN 16-bit data)
OUT
Data to be shifted, shift result (BIN 16-bit data)
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
5 - 55

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents