Addition Of Bcd 8-Digit Data (2 Devices); Addition Of Bcd 8-Digit Data (3 Devices) - 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.5.5 Addition of BCD 8-digit data (2 devices) DBPLUS_M
The specified two BCD 8-digit data are added.
Function definition
5.5.6 Addition of BCD 8-digit data (3 devices) DBPLUS_3_M
The specified two BCD 8-digit data are added.
Function definition
5 - 15
BOOL DBPLUS_M (BOOL EN, ANY16 S1, ANY32 D);
Argument Name
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the BCD 8-digit data stored in
(* dwData1 and Result are added, and the addition result is stored into Result.
DBPLUS_M (X0, dwData1, Result);
Corresponding MELSEC command
DB+ (BCD 8-digit data addition)
DBPLUS_3_M (BOOL EN, ANY32 S1, ANY32 S2, ANY32 D);
Argument Name
EN
S1
S2
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the BCD 8-digit data stored in
(* dwData1 and dwData2 are added, and the addition result is stored into Result. *)
DBPLUS_3_M (X0, dwData1, dwData2, Result);
Corresponding MELSEC command
DB+ (BCD 8-digit data addition)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Addend data (BCD 8-digit data)
IN
IN/OUT
Augend data, addition result (BCD 8-digit data)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Augend data (BCD 8-digit data)
IN
Addend data (BCD 8-digit data)
IN
Addition result (BCD 8-digit data)
OUT
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
*)
*)
*)
5 - 15

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents