32-Bit Data Maximum Value Retrieval; Data Minimum Value Retrieval - 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.14.15 32-bit data maximum value retrieval

The maximum value is retrieved from n points of BIN 32-bit data, starting at the specified device.
Function definition

5.14.16 Data minimum value retrieval

The minimum value is retrieved from n points of BIN 16-bit data, starting at the specified device.
Function definition
5 - 66
BOOL DMAX_M (BOOL EN, ANY32 S1, ANY16 n, ANY32 D);
Argument Name
EN
S1
n
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the maximum value is retrieved
(* from iData points of 32-bit BIN data in and after dData, and the result
(* is stored into Result.
DMAX_M (X0, dData, iData, Result);
Corresponding MELSEC command
DMAX (32-bit data maximum value retrieval)
BOOL MIN_M (BOOL EN, ANY16 S1, ANY16 n, ANY16 D);
Argument Name
EN
S1
n
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the minimum value is retrieved from
(* iData2 points of 16-bit BIN data in and after iData1, and the result is stored
(* into Result. Execution condition X0 is output to the assigned device of bData.
MIN_M (X0, iData1, iData2, Result);
Corresponding MELSEC command
MIN (16-bit data minimum value retrieval)
DMAX_M
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Head of data to be retrieved (BIN 32-bit data)
IN
Number of data to be retrieved (BIN 16-bit data)
OUT
Maximum value retrieval result (BIN 32-bit data)
MIN_M
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Head of data to be retrieved (BIN 16-bit data)
IN
Number of data to be retrieved (BIN 16-bit data)
OUT
Minimum value retrieval result (BIN 16-bit data)
For the usable data type, refer to "3.2.2 About
ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
*)
*)
5 - 66

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents