Symbol Name
Description
Timer block
When the input to a timer block goes to TRUE, the timer starts to count from zero to a
preconfigured value. There are three different timer modes: timer on (TON), timer off (TOF), and
timer pulse (TP). More details regarding each of these modes can be found in the sections below.
Counter
block
The counter block functions as a counter between 0 and 9999, and can store one pre-set value. A
counter block consists of four inputs which operate the counter and three outputs which give the
current status of the counter. More details regarding the counter block can be found in the sections
below.
9.3.2 Function blocks
Timer block
The tables below describe the timer block properties and variables.
Table 9.1
Timer block properties
Properties
Range
Default
Description
ID
TM0
The name of the timer. When specifying timer variables, the variable is
preceded by the timer ID.
Mode
TON, TOF,
TP
TON
When
TON
is selected: After the timer reaches the preset value, the timer
output changes from FALSE to TRUE.
When
TOF
is selected: After the timer reaches the preset value, the timer
output changes from TRUE to FALSE.
When
TP
is selected: After the timer reaches the preset value, the timer
output will change from TRUE to FALSE. The timer starts counting when the
input is TRUE (pulse or constant), and continues to count until it reaches the
preset value.
Preset
0 to 9999
0
The preset value where the timer stops and the output is changed.
Unit
minutes,
seconds, 100
milliseconds
minutes
The unit of time used for the count.
If the timer is set to 200 ms or less, it will run out after one scan due to the
CustomLogic scanning frequency.
INFO
After changing the
ID
or the
Preset
properties, select
Save
to apply the new value to the element.
Table 9.2
Timer block variables
Variables
Range
Description
TMxx.Q*
TRUE, FALSE
The variable value is the same as the
timer output.
* "TMxx" should be substituted by the timer ID when referring to the variable.
PPM 300 PICUS manual 4189341080 UK
www.deif.com
Page 115 of 213