Clear CLR
Sets Dest to 0.
CLEAR
DestGlobal.BatchCount0
| Tag | After two scans |
|---|---|
| BatchCount | 0 |
How it works
While the rung is true, writes 0 to the destination each scan. A false rung does nothing.
How it's used
Use CLR to set a number back to 0, such as a batch count on reset.
Global.ResetPBXIC
CLEAR
DestGlobal.BatchCount0
| Tag | Value |
|---|---|
| ResetPB | 1 |
| BatchCount | 0 |
ResetPB set BatchCount to 0.
Operands
| Operand | Data type | Read or write |
|---|---|---|
| Dest | DINT, REAL | Writes |
Common mistakes
- Using it on a timerCLR writes 0 to a number. Use RES for a timer or counter.