5 - 8 5 - 8
5 MELSEC FUNCTIONS
5.2 1-Bit Shift
5.2.1 1-bit shift of device SFT_M
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
BOOL SFT_M (BOOL EN, BOOL D);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
D
OUT
Data to be shifted
Return Value
Description
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)
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......