Bin Block Addition; Bin Block Subtraction - 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.15 BIN block addition

n points of BIN 16-bit data, starting at the specified devices, are added.
Function definition

5.5.16 BIN block subtraction

Subtraction is performed between n points of BIN 16-bit data, starting at the specified devices.
Function definition
5 - 20
BKPLUS_M
BOOL BKPLUS_M (BOOL EN, ANY16 S1, ANY16 S2, ANY16 n, ANY16 D);
Argument Name
EN
S1
S2
n
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the data of the number of points
(* stored in D0, starting at D100, and the data of the number of points stored in
(* D0, starting at D200, are added, and the result is stored into D1000 and later. *)
BKPLUS_M (X0, D100, D200, D0, D1000);
Corresponding MELSEC command
BK+ (Block data addition)
BKMINUS_M
BOOL BKMINUS_M (BOOL EN, ANY16 S1, ANY16 S2, ANY16 n, ANY16 D);
Argument Name
EN
S1
S2
n
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, subtraction is performed between
(* the data of the number of points stored in D0, starting at D100, and the data
(* of the number of points stored in D0, starting at D200, and the result is
(* stored into D1000 and later.
BKMINUS_M (X0, D100, D200, D0, D1000);
Corresponding MELSEC command
BK- (Block data subtraction)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Augend data (BIN 16-bit data)
IN
Addend data (BIN 16-bit data)
IN
Number of addition data (BIN 16-bit data)
IN
OUT
Addition result (BIN 16-bit data)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Minuend data (BIN 16-bit data)
IN
Subtrahend data (BIN 16-bit data)
IN
Number of subtraction data (BIN 16-bit data)
IN
Subtraction result (BIN 16-bit data)
OUT
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
*)
*)
5 - 20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents