Chapter 9
136
Logic programming – Function blocks
Parameters of the function block
Parameter Possible values
Stopping mode Immediately
After last clock
Clock period (cycle duration)
2 to 65535
Duration = Parameter value × Logic execution time
Pulse time
1 to 65534
Duration = Parameter value × Logic execution time
The pulse time has to be lower than the clock period.
If the logic execution time of the configuration changes (e.g. through addition or
subtraction of function blocks), the clock period and the pulse time will change.
Sequence/timing diagram
9.7.11 Event counter (Up, Down and Up and down)
Function block diagram
General description
The Event counter function blocks allow to count events, either upward and/or
downward. When a pre-defined overflow value is reached, this will be indicated on the
Overflow output or, when zero is reached, this will be indicated on the Underflow
output. Depending on the required counting direction there are the function blocks
Event counter (Up), Event counter (Down) and Event counter (Up and down).
Parameters of the function block
Parameter Possible values
Counter reset Manual
Automatic
Counter reload Manual
Automatic
Overflow limit
Integer between 1 and 65,535. The overflow value limit has to
be higher than or equal to the reload value.
Reload value Integer between 1 and 65,535
Min. restart pulse time 100 ms
350 ms
Min. reload pulse time 100 ms
350 ms
Table 39:
Parameters of the Clock
generator function block
Note
Figure 110:
Timing diagram for the
Clock generator function
block
Figure 111:
Function block diagram for
the Event counter (Up and
down) function block
Table 40:
Parameter for the Event
counter function blocks