16-Bit Data Exchange - 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.7.5 16-bit data exchange

The specified two BIN 16-bit data are exchanged.
Function definition
5.7.6 32-bit data exchange
The specified two BIN 32-bit data are exchanged.
Function definition
5 - 35
XCH_M
BOOL XCH_M (BOOL EN, ANY16 D1, ANY16 D2);
Argument Name
EN
S1
D2
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the 16-bit data in D100 and D200
(* are exchanged.
XCH_M (XO, D100, D200);
Corresponding MELSEC command
XCH (16-bit data exchange)
DXCH_M
BOOL DXCH_M (BOOL EN, ANY32 D1, ANY32 D2);
Argument Name
EN
D1
D2
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the 32-bit data in dwData1 and
(* dwData2 are exchanged.
DXCH_M (X0, dwData1, dwData2);
Corresponding MELSEC command
DXCH (32-bit data exchange)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN/OUT
Data to be exchanged, exchange result (BIN 16-bit data)
IN/OUT
Data to be exchanged, exchange result (BIN 16-bit data)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN/OUT
Data to be exchanged, exchange result (BIN 32-bit data)
IN/OUT
Data to be exchanged, exchange result (BIN 32-bit data)
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
5 - 35

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents