5 - 66 5 - 66
5 MELSEC FUNCTIONS
5.14.15 32-bit data maximum value retrieval DMAX_M
The maximum value is retrieved from n points of BIN 32-bit data, starting at the specified device.
Function definition
BOOL DMAX_M (BOOL EN, ANY32 S1, ANY16 n, ANY32 D);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
S1
IN
Head of data to be retrieved (BIN 32-bit data)
n
IN
Number of data to be retrieved (BIN 16-bit data)
D
OUT
Maximum value retrieval result (BIN 32-bit data)
Return Value
Description
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)
5.14.16 Data minimum value retrieval MIN_M
The minimum value is retrieved from n points of BIN 16-bit data, starting at the specified device.
Function definition
BOOL MIN_M (BOOL EN, ANY16 S1, ANY16 n, ANY16 D);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
S1
IN
Head of data to be retrieved (BIN 16-bit data)
n
IN
Number of data to be retrieved (BIN 16-bit data)
D
OUT
Minimum value retrieval result (BIN 16-bit data)
Return Value
Description
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)
For the usable data type, refer to "3.2.2 About
ANY type".
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......