32-Bit Total Value Calculation - 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.14.21 32-bit total value calculation

n points of BIN 32-bit data, starting at the specified device, are all added.
Function definition
5 - 69
BOOL DWSUM_M (BOOL EN, ANY32 S1, ANY16 n, ANY16(4) D);
Argument Name
EN
S1
n
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, iData points of 32-bit BIN data,
(* starting at dData, are all added, and the result is stored into Result.
DWSUM_M (X0, dData, iData, Result);
Corresponding MELSEC command
DWSUM (32-bit total value calculation)
DWSUM_M
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Data from which total value will be calculated (BIN 32-bit
IN
data)
IN
Number of data (BIN 16-bit data)
Total value storage destination
(ARRAY [0..3] OF ANY16)
OUT
For the usable data type, refer to "3.2.2 About
ANY type".
Description
D[0]
D[1]
D[2]
D[3]
Description
Upper 4 digits
to
Lower 4 digits
*)
*)
5 - 69

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents