Counter
The tables below describe the counter properties, inputs and outputs, and variables.
Table 9.3
Counter properties
Properties
Range
Default
Description
ID
C0
The name of the counter. When specifying counter variables, the variable is
preceded by the timer ID.
Preset
0 to 9999
0
The preset value is a target value to which the counter counts.
INFO
After changing the
ID
or the
Preset
properties, select
Save
to apply the new value to the element.
Table 9.4
Counter inputs and outputs
Properties
Type
Description
R
Input
When this input is TRUE, the count is reset to 0.
P
Input
When this input is TRUE, the count is set to the preset value.
U
Input
When this input is TRUE, the count will be increased by 1.
D
Input
When this input is TRUE, the count is decreased by 1.
E
Output
This output registers count under flow. The output will change from FALSE
to TRUE when the counter rolls back from 0 to 9999.
D
Output
This output (
Done
) registers when the count has reached the preset value.
When the count does not equal the preset value, the output is FALSE. When
the count is equal to the preset value, the output is TRUE.
F
Output
This output registers count over flow. The output will change from FALSE to
TRUE when the counter rolls over from 9999 to 0.
Table 9.5
Counter variables
Variables
Range
Description
Cxx.D*
TRUE, FALSE
TRUE if the count equals the preset
value. FALSE otherwise.
Cxx.E*
TRUE, FALSE
TRUE if the count changed from 0 to
9999. FALSE otherwise.
Cxx.F*
TRUE, FALSE
TRUE if the count changed from 9999
to 0. FALSE otherwise.
* "Cxx" should be substituted by the counter ID when referring to the variable.
9.3.3 Variables
Variables can be used in CustomLogic instead of physical inputs and outputs to transfer the logic from one line to another. By
using variables more of the controller's physical inputs and outputs are available for other functions. Variables are outputs
that can be reused in more than one position or situation in the logic.
PPM 300 PICUS manual 4189341080 UK
www.deif.com
Page 116 of 213