Bit Processing; Bit Set Of Word Device; Bit Reset Of Word 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.13 Bit Processing

5.13.1 Bit set of word device

Bit n of the specified word device is set.
Function definition

5.13.2 Bit reset of word device

Bit n of the specified word device is reset.
Function definition
5 - 56
BSET_M
BOOL_BSET_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, bit 8 of D100 is set.
BSET_M (X0, K8, D100);
Corresponding MELSEC command
BSET (Bit set of word device)
BRST_M
BOOL_BRST_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, bit 8 of D100 is reset.
BRST_M (X0, K8, D100);
Corresponding MELSEC command
BRST (Bit reset of word device)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Bit number to be set (BIN 16-bit data)
IN/OUT
Data to be set, bit set result (BIN 16-bit data)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Bit number to be reset (BIN 16-bit data)
IN/OUT
Data to be reset, bit reset result (BIN 16-bit data)
For the usable data type, refer to "3.2.2 About
ANY type".
Description
Description
Description
Description
*)
*)
5 - 56

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents