UDCTR (35)
UDCTR (35)
ID 35
Application: |
PLC |
SIM |
Group: TIMERS AND COUNTERS
Short description:
Function counting pulses with the option of decrementation.
Inputs (3):
no. |
type |
impulse |
mark |
notes |
1 |
B |
yes (0 -> 1) |
UP |
Binary input no. 1 |
2 | B | yes (0 -> 1) | DOWN | Binary input no. 2 |
3 | B | no | reset | Binary input no. 3 |
Outputs (1):
no. |
type |
impulse |
mark |
notes |
1 |
B |
no |
OUT |
Binary output no. 1 |
Settings:
no. |
type |
name |
notes |
1 |
I |
Counter |
Set counter value |
Function operation:
The UDCTR 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 (Counter), a high state appears on the OUT 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