Download Mitsubishi Electronics Mitsubishi Digital Electronics Welding System FXCPU User's Manual

Transcript
FXCPU Structured Programming Manual
(Application Functions)
6.6 TP(_E)
1
TP(_E)
Outline
6.6
6 Standard Function Blocks
FX3U(C)
FX3G
FX2N(C)
FX1N(C)
FX1S
FXU/FX2C
FX0N
FX0(S)
2
Function List
Outline
This function block keeps ON a signal for specified duration.
1. Format
Expression in each language
Function name
Structured ladder
TP
M0
Label 1
IN
PT
Q
ET
M10
Label 2
Instance name
M0
Label 1
*1.
EN
IN
PT
TP_E
ENO
Q
ET
M10
Label 2
4
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;
How to Read
Explanation of
Functions
X000
TP_E
Function
Construction
Instance name
TP
3
ST
TP(IN,PT); *1
Example:
Instance name(IN:=M0,
PT:=Label 1);
M10:=Instance name.Q;
Label 2:=Instance name. ET;
5
Refer to caution points.
Applied
Functions
2. Set data
Variable
EN
Input
variable
Data type
Bit
ON start input signal
Bit
PT ( n )
ON duration data
Time
ENO
Execution status
Bit
Output signal
Bit
ON duration current value
Time
IN
Q
( s )
( d1 )
ET ( d2 )
6
Standard
Function Blocks
Output
variable
Description
Execution condition
In explanation of functions, I/O variables inside ( ) are described.
A
When a device specified in s turns ON, this function block turns ON a device specified in d1 , and keeps
it ON for duration specified in n .
The elapsed time while a device specified in d1 remains ON is set to a device specified in d2 .
A device specified in d1 turns OFF when the elapsed time reaches the set value.
Even if a device specified in d1 turns OFF, this function block does not reset the elapsed time. When a
device specified in s turns ON from OFF next time, this function block resets the elapsed time and turns
ON again a device specified in d1 .
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.
217
Correspondence
between Devices
and Addresses
Explanation of function and operation