Block Bcd 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.6.19 Block BCD
n points of BCD 4-digit data (0 to 9999), starting at the specified device, is converted into BIN 16-bit data.
Function definition
5 - 32
BIN conversion
BOOL BKBIN_M (BOOL EN, ANY16 S1, ANY16 n, ANY16 D);
Argument Name
EN
S1
n
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the BCD data of the number of points *)
(* stored in W0, starting at D0, is converted into BIN, and the result is stored into *)
(* D100 and later.
BKBIN_ M (X0, D0, W0, D100);
Corresponding MELSEC command
BKBIN (Conversion from block BCD 4-digit data to block BIN 16-bit data)
BKBIN_M
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Data to be converted (BCD 4-digit data)
IN
Number of converted data
IN
OUT
Conversion result (BIN 16-bit data)
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
*)
5 - 32

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents