5 - 32 5 - 32
5 MELSEC FUNCTIONS
5.6.19 Block BCD BIN conversion BKBIN_M
n points of BCD 4-digit data (0 to 9999), starting at the specified device, is converted into BIN 16-bit data.
Function definition
BOOL BKBIN_M (BOOL EN, ANY16 S1, ANY16 n, ANY16 D);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
S1 IN
Data to be converted (BCD 4-digit data)
n IN
Number of converted data
D
OUT
Conversion result (BIN 16-bit data)
Return Value
Description
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)
For the usable data type, refer to "3.2.2
About ANY type".
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......