Byte Unit Data Connection; Data Maximum 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.13 Byte unit data connection

The lower 8 bits of n points of BIN 16-bit data in and after the specified device are connected in word units.
Function definition

5.14.14 Data maximum value retrieval

The maximum value is retrieved from n points of BIN 16-bit data, starting at the specified device.
Function definition
5 - 65
BTOW_MD
BOOL BTOW_MD (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 lower 8 bits of iData2 words of
(* 16-bit data in and after iData1 are connected in word units, and the result is
(* stored into Result and later.
BTOW_MD (X0, iData1, iData2, Result);
Corresponding MELSEC command
BTOW (Connection of byte unit data)
BOOL MAX_M (BOOL EN, ANY16 S1, ANY16 n, ANY16 D);
Argument Name
EN
S1
n
D
Remarks: When a constant is specified for the timer set value, only a decimal number
can be specified.
The timer set value can be specified within the range 0 to 32767.
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the maximum value is retrieved
(* from iData2 points of 16-bit BIN data in and after iData1,and the result is
(* stored into Result. *
MAX_M (X0, iData1, iData2, Result)
Corresponding MELSEC command
MAX (16-bit data maximum value retrieval)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be connected in byte units (BIN 16-bit data)
IN
Number of byte data to be connected (BIN 16-bit data)
OUT
Connection result (BIN 16-bit data)
MAX_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
Maximum 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 - 65

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents