6 Standard Function Blocks
6.7 TON(_E)
219
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
6.7 TON(_E)
Outline
This function block turns ON after specified time.
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 after the
time specified in .
The delay elapsed time until a device specified in turns ON is set to a device specified in .
When a device specified in turns OFF, this function block turns OFF a device specified in and
resets the delay elapsed time.
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.
FX3U(C) FX3G FX2N(C) FX1N(C) FX1S
FX
U
/FX
2C
FX0N FX0(S)
Function name
Expression in each language
Structured ladder ST
TON
TON(IN,PT); *1
Example:
Instance name(IN:=M0,
PT:=Label 1);
M10:=Instance name.Q;
Label 2:=Instance name. ET;
TON_E
TON_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 ( )
Input signal Bit
PT ( )
ON start time data Time
Output
variable
ENO Execution status Bit
Q( )
Output signal Bit
ET ( )
ON start time current value Time
TON
Q
M10INM0
PTLabel 1 ET Label 2
Instance name
TON_E
EN ENO
X000
Q
M10INM0
PTLabel 1 ET Label 2
Instance name
s
n
d1
d2
s d1
n
d1 d2
s d1