Function Modules
15.6.3 Functional Description of the Counter Mode
In the operation mode "Counter", the module works as a "port-controlled" up-counter and counts
the positive edges of the counting pulses while the enable input is active. If the counter reaches a
preselected setpoint, the respective output is enabled.
Initial Settings
Use the operating mode switch to make the following selections:
•
"Counter" (C)
•
Signal level of counting pulses (5 V or 24 V)
The position of the switches for the position resolution is irrelevant.
For this operation, you need a counting pulse sensor (e.g., BERO). The pulses can be applied as
5-V differential signals according to RS 422A (up to 500 kHz) or as 24-V signals (up to 25 kHz).
The sensor is connected to the sub-D connector of the module.
Loading Setpoints
The control program can transfer two setpoints to the module. These setpoints must be between 0
and 65,535. The transfer of the setpoints via the module depends on whether the "setpoint 1
(setpoint 2) reached" bit is set in the diagnostic byte (S1 and S2).
If the bit is not set, which means the existing setpoint has not been reached or has not been ex-
ceeded, the new setpoint is transferred immediately and is immediately valid.
If the bit is set, which means the existing setpoint has been reached or exceeded, the new setpoint
is valid only after a positive edge occurs at the enable input.
If you do not specify a setpoint, a setpoint of "0" applies.
Enabling the Counter
The signal state of the enable input (terminal 3 on the terminal block) determines the function of the
counter.
A positive edge at the enable input
•
Sets the counter to 0
•
Resets the diagnostic bits for "setpoint reached"
•
Resets the outputs
•
Enables the counter
Note
The enable input should be set to "1" only after the setpoint has been transferred.
Otherwise, the outputs are enabled automatically when the first positive edge occurs.
EWA 4NEB 812 6120-02
S5-100U
15-27