Mitsubishi MELSEC-q Programming Manual page 149

Melsec q series; melsec l series
Hide thumbs Also See for MELSEC-q:
Table of Contents

Advertisement

5 MELSEC FUNCTIONS
5.17.7 Decimal ASCII
The specified decimal ASCII code data is converted into BIN 16-bit data.
Function definition
5.17.8 Decimal ASCII
The specified decimal ASCII code data is converted into BIN 32-bit data.
Function definition
5 - 76
BIN conversion
BOOL DABIN_S_MD (BOOL EN, STRING (6) S1, ANY16 D);
Argument Name
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the decimal ASCII data stored
(* in sData is converted into BIN 16-bit data, and the result is stored into iData.
DABIN_S_MD (X0, sData, iData);
Corresponding MELSEC command
DABIN (Decimal ASCII
32-bit BIN conversion
BOOL DDABIN_S_MD (BOOL EN, STRING (11) S1, ANY32 D);
Argument Name
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the decimal ASCII data stored in
(* sData is converted into BIN 32-bit data, and the result is stored into dData.
DDABIN_S_MD (X0, sData, dData);
Corresponding MELSEC command
DDABIN (Decimal ASCII
DABIN_S_MD
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be converted (decimal ASCII code data)
OUT
Conversion result (BIN 16-bit data)
BIN 16-bit conversion)
DDABIN_S_MD
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be converted (decimal ASCII code data)
OUT
Conversion result (BIN 32-bit data)
BIN 32-bit conversion)
For the usable data type, refer to "3.2.2 About
ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
5 - 76

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents