Hexadecimal Ascii 32-Bit Bin Conversion - 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.17.9 Hexadecimal ASCII
The specified hexadecimal ASCII code data is converted into BIN 16-bit data.
Function definition
5.17.10 Hexadecimal ASCII
The specified hexadecimal ASCII code data is converted into BIN 32-bit data.
Function definition
5 - 77
BIN conversion
BOOL HABIN_S_MD (BOOL EN, STRING(4) S1, ANY16 D);
Argument Name
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the hexadecimal ASCII data stored
(* in sData is converted into BIN 16-bit data, and the result is stored into iData.
HABIN_S_MD (X0, sData, iData);
Corresponding MELSEC command
HABIN (Hexadecimal ASCII
32-bit BIN conversion
BOOL DHABIN_S_MD (BOOL EN, STRING (8) S1, ANY32 D) ;
Argument Name
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the hexadecimal ASCII data stored in *)
(* sData is converted into BIN 32-bit data, and the result is stored into dData.
DHABIN_S_MD (X0, sData, dData);
Corresponding MELSEC command
DHABIN (Hexadecimal ASCII
HABIN_S_MD
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be converted (hexadecimal ASCII code data)
OUT
Conversion result (BIN 16-bit data)
BIN 16-bit conversion)
DHABIN_S_MD
IN/OUT
IN
Execution condition (Function is executed only when the
result is TRUE)
IN
Data to be converted (hexadecimal 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 - 77

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents