6 Standard Function Blocks
6.8 TOF(_E)
221
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.8 TOF(_E)
Outline
When the input signal turns OFF, this function block turns OFF the output signal after the 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 .
When a device specified in turns OFF from ON, this function block turns OFF a device specified in
after the time specified in .
The elapsed time until a device specified in turns OFF is set to a device specified in .
When a device specified in turns ON again, this function block turns ON a device specified in and
resets the 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
TOF
TOF(IN,PT); *1
Example:
Instance name(IN:=M0,
PT:=Label 1);
M10:=Instance name.Q;
Label 2:=Instance name. ET;
TOF_E
TON_F(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 ( )
OFF duration data Time
Output
variable
ENO Execution status Bit
Q( )
Output signal Bit
ET ( )
OFF duration current value Time
TOF
Q
M10INM0
PTLabel 1 ET Label 2
Instance name
TOF_E
EN ENO
X000
Q
M10INM0
PTLabel 1 ET Label 2
Instance name
s
n
d1
d2
s d1
s d1
n
d1 d2
s d1