Reset RES

Sets a timer's or counter's ACC to 0 and clears DN.

TagAfter two scans
BatchTimerPRE 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.

TagValue
Heating0
ResetPB1
HeatTimePRE 60000 ACC 0 EN 0 TT 0 DN 0

ResetPB set HeatTime.ACC back to 0.

Operands

OperandData typeRead or write
TimerTIMER, COUNTERReads and writes

Inside a TIMER tag

MemberTypeMeaning
.PREDINTYou can write it
.ACCDINTRead only
.ENBOOLRead only
.TTBOOLRead only
.DNBOOLRead only

Inside a COUNTER tag

MemberTypeMeaning
.PREDINTYou can write it
.ACCDINTRead only
.CUBOOLRead only
.CDBOOLRead only
.DNBOOLRead only
.OVBOOLRead only
.UNBOOLRead 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

Related