
S5-90U/S5-95U
Function Modules
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 lie in the range of 0 to 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 enabled 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
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 16-17.
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.
EWA 4NEB 812 6115-02b
16-29
Содержание SIMATIC S5-90U
Страница 3: ...SIMATIC S5 S5 90U S5 95U Programmable Controller System Manual EWA 4NEB 812 6115 02b Edition 03 ...
Страница 6: ...EWA 4NEB 812 6115 02b ...
Страница 16: ...EWA 4NEB 812 6115 02b ...
Страница 23: ......
Страница 32: ...EWA 4NEB 812 6115 02b ...
Страница 46: ...EWA 4NEB 812 6115 02b ...
Страница 50: ......
Страница 51: ......
Страница 52: ......
Страница 53: ......
Страница 54: ......
Страница 55: ......
Страница 57: ......
Страница 58: ......
Страница 59: ......
Страница 64: ......
Страница 65: ......
Страница 66: ......
Страница 67: ......
Страница 89: ......
Страница 102: ...EWA 4NEB 812 6115 02b ...
Страница 118: ...EWA 4NEB 812 6115 02b ...
Страница 242: ...EWA 4NEB 812 6115 02b ...
Страница 288: ...EWA 4NEB 812 6115 02b ...
Страница 300: ...EWA 4NEB 812 6115 02b ...
Страница 362: ...EWA 4NEB 812 6115 02b ...
Страница 536: ...EWA 4NEB 812 6115 02b ...
Страница 538: ...EWA 4NEB 812 6115 02b ...
Страница 540: ...EWA 4NEB 812 6115 02b ...
Страница 562: ...EWA 4NEB 812 6115 02b ...
Страница 564: ...EWA 4NEB 812 6115 02b ...
Страница 590: ...EWA 4NEB 812 6115 02b ...
Страница 596: ...EWA 4NEB 812 6115 02b ...
Страница 598: ...EWA 4NEB 812 6115 02b ...
Страница 604: ...EWA 4NEB 812 6115 02b ...
Страница 606: ...EWA 4NEB 812 6115 02b ...
Страница 608: ...EWA 4NEB 812 6115 02b ...
Страница 610: ...EWA 4NEB 812 6115 02b ...
Страница 620: ...EWA 4NEB 812 6115 02b ...