Mitsubishi Electronics FXCPU Welding System User Manual


 
5.6 Standard Selection Functions
169
FXCPU Structured Programming Manual
(Application Functions)
1
Outline
2
Function List
3
Function
Construction
4
How to Read
Explanation of
Functions
5
Applied
Functions
6
Standard
Function Blocks
A
Correspondence
between Devices
and Addresses
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) When handling 32-bit data in structured programs, you cannot specify 16-bit devices directly, different
from simple projects. Use labels when handling 32-bit data.
You can specify 32-bit counters directly, however, because they are 32-bit devices.
Use global labels when specifying labels.
Error
An operation error occurs when this function is executed in the following setting status. The error flag M8067
turns ON, and D8067 stores the error code K6706.
Contents of a device specified in > Contents of a device specified in
(Lower limit data) (Upper limit data)
Program example
In this program, data whose type is same as the data stored in devices specified in , and is
output to a device specified in in accordance with ANY_SIMPLE type data stored in devices specified in
, and .
1) Function without EN/ENO(LIMITATION)
2) Function with EN/ENO(LIMITATION_E)
[Structured ladder]
[ST]
[Structured ladder]
[ST]
s1
s3
s1
s2 s3
d
s1
s2 s3
LIMITATION
g_int1=500
g_int2=1300
_MN
_IN
g_int4=1300
g_int3=5000
_MX
g_int4:=LIMITATION(g_int1,g_int2,g_int3);
LIMITATION_E
EN ENO
g_int4
g_bool1
g_int1
g_int2
_MN
_IN
g_bool3
g_int3
_MX
g_bool3:=LIMITATION_E(g_bool1,g_int1,g_int2,g_int3,g_int4);