Character String Processing; Bin; 32-Bit Bin Decimal Ascii Conversion; Decimal Ascii Bin Conversion - 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.17 Character string processing

5.17.1 BIN

decimal ASCII conversion
The numeric value in each digit of the specified BIN 16-bit data represented in decimal is converted into ASCII
code data.
Function definition
5.17.2 32-bit BIN
The numeric value in each digit of the specified BIN 32-bit data represented in decimal is converted into ASCII
code data.
Function definition
5 - 73
BOOL BINDA_S_MD (BOOL EN, ANY16 S1, STRING(8) D);
Argument Name
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the numeric value in each digit of the *)
(* BIN data stored in iData and represented in decimal is converted into ASCII
(* code, and the result is stored into sData.
BINDA_S_MD (X0, iData, sData);
Corresponding MELSEC command
BINDA (BIN 16-bit to decimal ASCII conversion)
decimal ASCII conversion
BOOL DBINDA_S_MD (BOOL EN, ANY32 S1, STRING(12) D);
Argument Name
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the numeric value in each digit of
(* the BIN data stored in dData and represented in decimal is converted into
(* ASCII code, and the result is stored into sData.
DBINDA_S_MD (X0, dData, sData);
Corresponding MELSEC command
DBINDA (BIN 32-bit
BINDA_S_MD
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be converted (BIN 16-bit data)
OUT
Conversion result (decimal ASCII code data)
DBINDA_S_MD
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be converted (BIN 32-bit data)
OUT
Conversion result (decimal ASCII code data)
decimal ASCII conversion)
For the usable data type, refer to "3.2.2 About
ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
*)
5 - 73

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents