Set Of Device; Reset 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.1.5 Set of device

When the execution condition is satisfied, the specified device is operated as described below.
Bit device: The coil/contact is turned ON.
When bit of word device is specified: The specified bit is turned to 1.
Function definition

5.1.6 Reset of device

When the execution condition is satisfied, the specified device is operated as described below.
Bit device: The coil/contact is turned OFF.
Timer, counter: 0 is assigned to the present value and the coil/contact is turned OFF.
When bit of word device is specified: The specified bit is turned to 0.
Word device other than timer and counter: 0 is assigned to the device data.
Function definition
5 - 6
SET_M
BOOL SET_M (BOOL EN, BOOL D);
Argument Name
EN
D
Return Value
Execution condition
BOOL
Example of use
(* When execution condition X0 turns ON, the assigned device of bData is
(* turned ON.
SET_M (X0, bData);
Corresponding MELSEC command
SET (Set of device)
RST_M
BOOL RST_M (BOOL EN, BOOL ANY_SIMPLE D);
Argument Name
EN
D
Remarks: The DINT/REAL/STRING type cannot be used in argument "D".
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the assigned device of bData is
(* turned OFF.
RST_M (X0, bData);
Corresponding MELSEC command
RST (Reset of device)
IN/OUT
Execution condition (Function is executed only
IN
when the result is TRUE)
Data to be set
OUT
IN/OUT
Execution condition (Function is executed only
IN
when the result is TRUE)
Data to be reset
OUT
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
5 - 6

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents