UDCTR_B (40)
UDCTR_B (40)
ID 40
Application: |
PLC |
SIM |
Group: TIMERS AND COUNTERS
Short description:
Pulse counting function with external change of counter value and option of decrementation.
Inputs (4):
no. |
type |
impulse |
mark |
notes |
1 |
B |
yes (0 -> 1) |
imp |
Binary input no. 1 |
2 | B | yes (0 -> 1) | imp | Binary input no. 2 |
3 | B | no | reset | Binary input no. 3 |
4 | I | no | preset | Set counter value |
Outputs (1):
no. |
type |
impulse |
mark |
notes |
1 |
B |
no |
OUT |
Binary output no. 1 |
Settings: none
Function operation:
The UDCTR_B function counts the pulses. When a rising edge of the signal appears at the UP input, the current value of the counter is incremented. When a rising edge of the signal appears at the DOWN input, the present value of the counter is decremented. When the counter reaches the set value at the preset input, a high state appears on the output. When a high state appears at the reset input, the present value of the counter is reset to zero.
R registers and M markers used: none