Data Transfer; 16-Bit Data Not Transfer - 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.7 Data Transfer

5.7.1 16-bit data NOT transfer

The specified BIN 16-bit data are inverted bit by bit.
Function definition
5.7.2 32-bit data NOT transfer
The specified BIN 32-bit data are inverted bit by bit.
Function definition
5 - 33
CML_M
BOOL CML_M (BOOL EN, ANY16 S1, ANY16 D);
Argument Name
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the data of M0 to M7 are inverted,
(* and the result is transferred to D0.
CML_M (X0, K2M0, D0);
Corresponding MELSEC command
CML (16-bit NOT transfer)
DCML_M
BOOL DCML_M (BOOL EN, ANY32 S1, ANY32 D);
Argument Name
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the data in dwData1 are inverted
(* bit by bit, and the result is transferred to Result.
DCML_M (X0, dwData1, Result);
Corresponding MELSEC command
DCML (32-bit NOT transfer)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data whose bits will be inverted (BIN 16-bit data)
OUT
Inversion result transfer destination (BIN 16-bit data)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data whose bits will be inverted (BIN 32-bit data)
OUT
Inversion result transfer destination (BIN 32-bit data)
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
5 - 33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents