1-Bit Shift; 1-Bit Shift Of Device - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5 MELSEC FUNCTIONS

5.2 1-Bit Shift

5.2.1 1-bit shift of device

When the execution condition is satisfied, the specified device is operated as described below.
In the case of bit device:
The ON/OFF status of the device number preceding the specified device number is shifted to the
specified device number, and the preceding device number is turned OFF.
In the case of word device bit specification:
The 1/0 status of the bit preceding the bit of the specified device is shifted to the specified bit, and the
preceding device number is turned to 0.
Function definition
5 - 8
SFT_M
BOOL SFT_M (BOOL EN, BOOL D);
Argument Name
EN
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, ON/OFF of M10 is shifted to M11
(* and M10 is turned OFF.
SFT_M (X0, M11);
(* When execution condition X0 turns ON, ON/OFF of W100.1 is shifted to
(* W100.2 and W100.1 is turned OFF.
SFT_M (X0, W100.2);
Corresponding MELSEC command
SFT (Bit device shift)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
OUT
Data to be shifted
Description
Description
*)
*)
*)
*)
5 - 8

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents