Mitsubishi Electronics FXCPU Welding System User Manual


 
5.6 Standard Selection Functions
168
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
*1. Output variable
2. Set data
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 , and
to a device specified in in accordance with ANY_SIMPLE type data stored in devices specified in ,
and .
1) In the case of "Contents of a device specified in > Contents of a device specified in ", this
function outputs the contents of a device specified in to a device specified in .
2) In the case of "Contents of a device specified in < Contents of a device specified in ", this
function outputs the contents of a device specified in to a device specified in .
3) In the case of "Contents of a device specified in Contents of a device specified in Contents
of a device specified in ", this function outputs the contents of a device specified in to a device
specified in .
Example: When the data type is word [signed]
FX3U(C) FX3G FX2N(C) FX1N(C) FX1S
FX
U
/FX
2C
FX0N FX0(S)
Function name
Expression in each language
Structured ladder ST
LIMITATION
LIMITATION(_MN,_IN,_MX);
Example:
D30:=
LIMITATION(D0,D10,D20);
LIMITATION_E
LIMITATION_E(EN,_MN,_IN,_MX,
Output label);
Example:
LIMITATION_E(X000,D0,D10,D20,
D30);
Variable Description Data type
Input
variable
EN Execution condition Bit
_MN( )
Lower limit data, or word device which stores such data ANY_SIMPLE
_IN ( )
Input data, or word device which stores such data ANY_SIMPLE
_MX( )
Upper limit data, or word device which stores such data ANY_SIMPLE
Output
variable
ENO Execution status Bit
*1 ( )
Word device which will store the output data ANY_SIMPLE
LIMITATION
*1
D30D0 _MN
_IND10
_MXD20
LIMITATION_E
EN ENO
X000
*1
D30D0 _MN
_IND10
_MXD20
s1
s2
s3
d
s1
s2 s3
d
s1
s2 s3
s2 s3
s3
d
s2
s1
s1
d
s1
s2
s3 s2
d
LIMITATION
_MN
_IN
_MX
120
Word [signed] data
Word [signed] data
100
Word [signed] data
Output value
Input value
Maximum input value
Minimum input value
-100
Word [signed] data
100