Subtraction Of Bcd 8-Digit Data (2 Devices); Subtraction Of Bcd 8-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.7 Subtraction of BCD 8-digit data (2 devices) DBMINUS_M
Subtraction is performed between the specified two BCD 8-digit data.
Function definition
5.5.8 Subtraction of BCD 8-digit data (3 devices) DBMINUS_3_M
Subtraction is performed between the specified two BCD 8-digit data.
Function definition
5 - 16
BOOL DBMINUS_M (BOOL EN, ANY32 S1, ANY32 D);
Argument Name
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, subtraction is performed between the *)
(* BCD 8-digit data stored in dwData1 and Result, and the subtraction result is
(* stored into Result.
DBMINUS_M (X0, dwData1, Result);
Corresponding MELSEC command
DB- (BCD 8-digit data subtraction)
BOOL DBMINUS_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, subtraction is performed between the *)
(* BCD 8-digit data stored in dwData1 and dwData2, and the subtraction result
(* is stored into Result.
DBMINUS_3_M (X0, dwData1, dwData2, Result);
Corresponding MELSEC command
DB- (BCD 8-digit data subtraction)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Subtrahend data (BCD 8-digit data)
IN
IN/OUT
Minuend data, subtraction result (BCD 8-digit data)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Minuend data (BCD 8-digit data)
IN
Subtrahend data (BCD 8-digit data)
IN
Subtraction result (BCD 8-digit data)
OUT
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
5 - 16

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents