Arithmetic Operation; Addition Of Bcd 4-Digit Data (2 Devices); Addition Of Bcd 4-Digit Data (3 Devices) - 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.5 Arithmetic Operation

5.5.1 Addition of BCD 4-digit data (2 devices) BPLUS_M
The specified two BCD 4-digit data are added.
Function definition
5.5.2 Addition of BCD 4-digit data (3 devices) BPLUS_3_M
The specified two BCD 4-digit data are added.
Function definition
5 - 13
BOOL BPLUS_M (BOOL EN, ANY16 S1, ANY16 D);
Argument Name
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the BCD 4-digit data stored in D0
(* and D100 are added, and the addition result is stored into D100.
BPLUS_M (X0, D0, D100);
Corresponding MELSEC command
B+ (BCD 4-digit data addition)
BOOL BPLUS_3_M (BOOL EN, ANY16 S1, ANY16 S2, ANY16 D);
Argument Name
EN
S1
S2
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the BCD 4-digit data stored in D1
(* and D2 are added, and the addition result is stored into D100.
BPLUS_3_M (X0, D1, D2, D100);
Corresponding MELSEC command
B+ (BCD 4-digit data addition)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Addend data (BCD 4-digit data)
IN
IN/OUT
Augend data, addition result (BCD 4-digit data)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Augend data (BCD 4-digit data)
IN
Addend data (BCD 4-digit data)
IN
Addition result (BCD 4-digit data)
OUT
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
5 - 13

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents