Справочник Пользователя для Mitsubishi Electronics Mitsubishi Digital Electronics Welding System FXCPU

Скачать
Страница из 236
6 Standard Function Blocks
6.6 TP(_E)
217
FXCPU Structured Programming Manual
(Application Functions)
1
O
utlin
e
2
Function Li
st
3
Functi
on 
Cons
tructi
on
4
Ho
w t
o R
ea
Explanati
on of 
Func
tions
5
Appl
ie
Functions
6
Stan
dard 
Functi
on
 Blocks
A
Correspondence 
be
tw
een Dev
ice
an
d A
ddres
ses
6.6
TP(_E)
Outline
This function block keeps ON a signal for specified duration.
1. Format
*1.
Refer to caution points.
2. Set data
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
When a device specified in 
 turns ON, this function block turns ON a device specified in 
, and keeps
it ON for duration specified in 
.
The elapsed time while a device specified in 
 remains ON is set to a device specified in 
.
A device specified in 
 turns OFF when the elapsed time reaches the set value.
Even if a device specified in 
 turns OFF, this function block does not reset the elapsed time. When a
device specified in 
 turns ON from OFF next time, this function block resets the elapsed time and turns
ON again a device specified in 
.
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.
3) Expression of function blocks in each language
*1.
Set the instance when using a function block.
Describe the instance name when programming a function block.
FX
3U(C)
FX
3G
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(S)
Function name
Expression in each language
Structured ladder
ST
TP
TP(IN,PT); *1
Example:
Instance name(IN:=M0,
PT:=Label 1);
M10:=Instance name.Q;
Label 2:=Instance name. ET;
TP_E
TP_E(EN,IN,PT); *1
Example:
Instance name(EN:=X000,
IN:=M0,PT:=Label 1);
M10:=Instance name.Q;
Label 2:=Instance name. ET;
Variable
Description
Data type
Input
variable
EN
Execution condition
Bit
IN
(
)
ON start input signal
Bit
PT (
)
ON duration data
Time
Output
variable
ENO
Execution status
Bit
Q
(
)
Output signal
Bit
ET (
)
ON duration current value
Time
TP
Q
M10
IN
M0
PT
Label 1
ET
Label 2
Instance name
TP_E
EN
ENO
X000
Q
M10
IN
M0
PT
Label 1
ET
Label 2
Instance name
s
n
d1
d2
s
d1
n
d1
d2
d1
d1
s
d1