Tp(_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)
6.6

TP(_E)

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents