Limitation_E - Mitsubishi Electric MELSEC FX Series Structured Programming Manual

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
5.6.4
LIMITATION(_E)
Outline
This function judges whether data is located within the range between the upper limit value and the lower limit
value.
1. Format
Function name
LIMITATION

LIMITATION_E

*1.
Output variable
2. Set data
Variable
EN
_MN (
Input
variable
_IN (
_MX (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function outputs data whose type is same as the data stored in devices specified in
to a device specified in
and
s2
s3
1) In the case of "Contents of a device specified in
function outputs the contents of a device specified in
2) In the case of "Contents of a device specified in
function outputs the contents of a device specified in
3) In the case of "Contents of a device specified in
of a device specified in
specified in
Example: When the data type is word [signed]
Word [signed] data
Word [signed] data
Word [signed] data
168
FX
3U(C)
Structured ladder
LIMITATION
D0
_MN
D10
_IN
D20
_MX
LIMITATION_E
X000
EN
D0
_MN
D10
_IN
D20
_MX
Execution condition
Lower limit data, or word device which stores such data
)
s1
)
Input data, or word device which stores such data
s2
Upper limit data, or word device which stores such data
)
s3
Execution status
Word device which will store the output data
(
)
d
in accordance with ANY_SIMPLE type data stored in devices specified in
d
.
", this function outputs the contents of a device specified in
s3
.
d
-100
LIMITATION
_MN
_IN
120
_MX
100
FX
3G
FX
2N(C)
FX
Expression in each language
LIMITATION(_MN,_IN,_MX);
Example:
*1
D30
D30:=
LIMITATION(D0,D10,D20);
LIMITATION_E(EN,_MN,_IN,_MX,
Output label);
ENO
Example:
LIMITATION_E(X000,D0,D10,D20,
*1
D30
D30);
Description
> Contents of a device specified in
s2
to a device specified in
s3
< Contents of a device specified in
s2
to a device specified in
s1
≤ Contents of a device specified in
s1
Minimum input value
100
Word [signed] data
5.6 Standard Selection Functions
1N(C)
FX
1S
FX
U
/FX
2C
ST
Bit
ANY_SIMPLE
ANY_SIMPLE
ANY_SIMPLE
Bit
ANY_SIMPLE
s1
d
d
Output value
Maximum input value
FX
0N
FX
0(S)
Data type
,
and
s2
s3
,
s1
", this
s3
.
", this
s1
.
≤ Contents
s2
to a device
s2
Input value

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents