TOF / TOFR

PLCopen motion icon

 Function BlockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. - Off timer.

Inputs

Input

Data Type

Range

Unit

Default

Description

IN

BOOL

FALSE, TRUE

 

 

Timer command.

PT

TIME

 

 

 

ProgrammedClosed The act of performing a sequence of instructions or commands. time.

RST

BOOL

FALSE, TRUE

 

 

ResetClosed New start of the microprocessor. (TOFR only).

Outputs

Output

Data Type

Range

Unit

Description

Q

BOOL

FALSE, TRUE

 

Timer elapsed output signal.

ET

TIME

 

 

Elapsed time.

Remarks

Time Diagram

Figure 1: Time Diagram

FBD Language Example

FFLD Language Example

  • In the FFLD Language, the input rung is the IN command.
    • The output rung is Q the output signal.

IL Language Example

(* MyTimer is a declared instance of TOF functionClosed A function calculates a result according to the current value of its inputs. 
A function has no internal data and is not linked to declared instances. block *) 
Op1: CAL MyTimer (IN, PT)
     FFLD  MyTimer.Q
     ST  Q
     FFLD  MyTimer.ET
     ST  ET

ST Language Example

(* MyTimer is a declared instance of TOF function block *)
MyTimer (IN, PT);
Q := MyTimer.Q;
ET := MyTimer.ET;

See Also