Function Modules
S5-100U
Disabling the Counter
A negative edge at the enable input disables the counter. The outputs, diagnostic bits, and the
counter are not reset. You can continue reading the current count. A positive edge at the enable
input resets the outputs and the diagnostic bytes.
Reaching the Setpoints - Setting the Outputs - Resetting the Outputs
If setpoints have been preselected and the counter is enabled, the module counts the positive edges
at the counter input. The count is incremented by “1” with every leading edge.
After setpoint 1 has been reached, output Q 0 is enabled. At the same time, status bit S1 is set.
After setpoint 2 has been reached, output Q 1 is enabled. At the same time, status bit S2 is set.
As long as the enable input is active, the counter counts the pulses. After the enable command has
been cancelled, the counter is disabled. The actual value remains constant.
You can read the current count in the STEP 5 program. The actual value is displayed as an
unsigned whole number and must be between 0 and 65,535.
Note
If no setpoint is preselected, the respective value “0” is assigned. The corresponding
output is enabled with the positive edge of the enable input.
Example: Setpoints S1=2 and S2=4 are entered into the counter
Counter status
Counting pulses
Enable
input
Output Q 1
(setpoint 2
reached)
0
1
3
2
4
5
5 0 1
2
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
Pulse is not counted because
counter is disabled by enable
input=0.
The count is "frozen" to the
current value.
Output Q 0
(setpoint 1
reached)
Figure 15-16.
Switching the Outputs Dependent on the Status of the Counter and
the Enable Input
When the programmable controller goes from RUN to STOP, outputs Q 0 and Q 1 are reset.
15-28
EWA 4NEB 812 6120-02b
Summary of Contents for SIMATIC S5-100U
Page 6: ...EWA 4NEB 812 6120 02b ...
Page 16: ...EWA 4NEB 812 6120 02b ...
Page 21: ...1 The SIMATIC S5 System Family EWA 4NEB 812 6120 02b ...
Page 22: ...Figures 1 1 Members of the SIMATIC S5 System Family 1 1 EWA 4NEB 812 6120 02b ...
Page 23: ......
Page 27: ......
Page 36: ...EWA 4NEB 812 6120 02b ...
Page 40: ......
Page 41: ......
Page 42: ......
Page 43: ......
Page 48: ......
Page 49: ......
Page 50: ......
Page 102: ...EWA 4NEB 812 6120 02b ...
Page 156: ...EWA 4NEB 812 6120 02b ...
Page 232: ...EWA 4NEB 812 6120 02b ...
Page 268: ...EWA 4NEB 812 6120 02b ...
Page 272: ...EWA 4NEB 812 6120 02b ...
Page 336: ...EWA 4NEB 812 6120 02b ...
Page 352: ...EWA 4NEB 812 6120 02b ...
Page 412: ...EWA 4NEB 812 6120 02b ...
Page 482: ...EWA 4NEB 812 6120 02b ...
Page 484: ...EWA 4NEB 812 6120 02b ...
Page 505: ...B Dimension Drawings EWA 4NEB 812 6120 02b ...
Page 515: ...C Active and Passive Faults in Automation Equipment EWA 4NEB 812 6120 02b ...
Page 516: ...EWA 4NEB 812 6120 02b ...
Page 522: ...EWA 4NEB 812 6120 02b ...
Page 523: ...D Information for Ordering Accessories EWA 4NEB 812 6120 02b ...
Page 524: ...EWA 4NEB 812 6120 02b ...
Page 530: ...EWA 4NEB 812 6120 02b ...
Page 531: ...E Reference Materials EWA 4NEB 812 6120 02b ...
Page 532: ...EWA 4NEB 812 6120 02b ...
Page 534: ...EWA 4NEB 812 6120 02b ...
Page 535: ...F Siemens Addresses Worldwide EWA 4NEB 812 6120 02b ...
Page 536: ...EWA 4NEB 812 6120 02b ...
Page 542: ...EWA 4NEB 812 6120 02b ...
Page 543: ...Index EWA 4NEB 812 6120 02b ...
Page 544: ...EWA 4NEB 812 6120 02b ...
Page 550: ...EWA 4NEB 812 6120 02b ...