Mitsubishi Electric MELSEC Q Series Programming Manual page 76

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5 MELSEC FUNCTIONS
5 - 3
1) Applicable CPU types
CPU types that can use the instructions are indicated.
2) Applicable devices
• The correspondences between the arguments of the MELSEC function and
MELSEC command are as follows. (The arguments of the same argument
names correspond to each other.)
3)
8)
4)
Precaution for use of the arguments of the MELSEC and IEC functions
When the argument is of ANY32 type, the data type that can be specified is the
DIN type, and therefore, an actual device cannot be specified. Only the double
word type label can be specified. However, digit specification is allowed.
Example: BSQR_MD(BOOL EN, ANY16 s, ANY32 d);
BSQR_MD (X0, D0, dData);
In the MELSEC common command, an actual device can be
described as indicated below.
BSQR(D0, W0);
However, it cannot be described in the MELSEC/IEC function.
BSQR_MD(X0, D0, W0);
When the argument is of REAL type, the data type that can be specified is the
real number type label, or a real number value can be described directly.
An actual device cannot be specified.
Example: ESTR_M(BOOL EN, REAL s1, ANY16(3) s2, STRING d);
ESTR_M(X0, rData, ArrayData, sData);
In the MELSEC common command, the actual device can be
described as indicated below.
ESTR(R0, R10, D10);
However, it cannot be described in the MELSEC/IEC function.
ESTR_M(X0, R0, ArrayData, sData);
9)
5)
10)
(* Function definition of BSQR_MD *)
(* Program example
An error will occur.
(* Function definition of ESTR_M *)
(* Program example
7)
11)
6)
12)
An error will occur.
5 - 3
*)
*)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents