Reset RES
Sets a timer's or counter's ACC to 0 and clears DN.
Global.BatchTimerRES
| Tag | After two scans |
|---|---|
| BatchTimer | PRE 3000 ACC 0 EN 1 TT 0 DN 0 |
How it works
While the rung is true, sets ACC to 0 and clears DN; PRE is kept. A false rung does nothing.
How it's used
Use RES to clear a retentive timer or a counter.
Global.HeatingXIC
Global.HeatTimeRTO
PRE 60000 ACC 0 EN 0 TT 0 DN 0
Global.ResetPBXIC
Global.HeatTimeRES
| Tag | Value |
|---|---|
| Heating | 0 |
| ResetPB | 1 |
| HeatTime | PRE 60000 ACC 0 EN 0 TT 0 DN 0 |
ResetPB set HeatTime.ACC back to 0.
Operands
| Operand | Data type | Read or write |
|---|---|---|
| Timer | TIMER, COUNTER | Reads and writes |
Inside a TIMER tag
| Member | Type | Meaning |
|---|---|---|
| .PRE | DINT | You can write it |
| .ACC | DINT | Read only |
| .EN | BOOL | Read only |
| .TT | BOOL | Read only |
| .DN | BOOL | Read only |
Inside a COUNTER tag
| Member | Type | Meaning |
|---|---|---|
| .PRE | DINT | You can write it |
| .ACC | DINT | Read only |
| .CU | BOOL | Read only |
| .CD | BOOL | Read only |
| .DN | BOOL | Read only |
| .OV | BOOL | Read only |
| .UN | BOOL | Read only |
Common mistakes
- Expecting PRE to clearRES sets ACC back to 0. On a timer it clears TT and DN and EN stays. On a counter it clears CU, CD, DN, OV and UN. PRE stays on both.
Learn it in a lesson
- On-delay timingIntermediate · 25 min
- Off-delay and retentive timersIntermediate · 25 min
- Counting eventsIntermediate · 25 min