Operations with Timers

Top  Previous  Next

 

In the PLC there are 512 ‘Timers’ that can be used for the delay of events or for the creation of pulses. The timers are numbered from T0 till T511, naturally you can name them properly by the symbol table. It is not specified right from the beginning which function a timer has got but it is specified starting the timer. The following functions are possible:

 

On-Delay

Off-Delay

Pulse

Extended Pulse

Saving On-Delay

 

In the example ‘For_Beginners’ the use of timers is demonstrated.

 

Insert Timers in FBD/LAD.

 

How to enter the duration of a timer you can read here.

 

The timers can also be specified memory-indirect or register-indirect.

 

Operation

Operands

Description

SE

 

T

TIMER-Parameter

Will start a timer as on-delay if the RLO changes from ‘0’ to ‘1’.

 

SA

 

T

TIMER-Parameter

 

Will start a timer as off-delay if the RLO changes from ‘1’ to ‘0’.

SI

 

T

TIMER-Parameter

Will start a timer as pulse if the RLO changes from ‘0’ to ‘1’.

 

SV

 

T

TIMER-Parameter

Will start a timer as extended pulse if the RLO changes from ‘0’ to ‘1’.

 

SS

 

T

TIMER-Parameter

Will start a timer as saving on-delay if the RLO changes from ‘0’ to ‘1’.

 

R

 

T

TIMER-Parameter

If the RLO is ‘1’ the timer will be reset. As long as the RLO is ‘1’ the evaluation of the

timer comes to ‘0’ in every case and a query of the run off timer with L Txx or LC Txx is

‘0’ in every case.

 

L

 

T

TIMER-Parameter

Loads the current value of the timer into accu 1. The timers run from the value with which

they are started down until ‘0’. With this instruction the current value is loaded

binary coded in units of the time base. Evaluating of the so loaded number

it has to be considered with which time base the timer was started.

 

LC

 

T

TIMER-Parameter

Loads the current value of the timer BCD-coded with the time base into accu 1.

A timer value that is loaded so can directly be used to start another timer.

 

The function ‘FR’, enable a timer is not implemented in TrySim.

 

See also:

Data Types