12.07.2015 Views

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Timer and Counter <strong>Instructions</strong> (TON, TOF, RTO, TONR, TOFR, RTOR, CTU, CTD, CTUD, RES) 111Input Parameter Data Type DescriptionDN BOOL Timing done output. Indicates when the accumulated time is greater than or equal to thepreset value.Status DINT Status of the function block.InstructFault (Status.0) BOOL The instruction detected one of the following execution errors. This is not a minor or majorcontroller error. Check the remaining status bits to determine what occurred.PresetInv (Status.1) BOOL The preset value is invalid.Description:The TONR instruction accumulates time until the:• TONR instruction is disabled• ACC ≥ PREThe time base is always 1 msec. For example, for a 2-second timer,enter 2000 for the PRE value.TimerEnableenable bit (EN)timer timing bit (TT)timer done bit (DN)presettimer accumulated value (ACC) 0timer did notreach PRE valueONdelay16649Set the Reset input parameter to reset the instruction. If TimerEnable isset when Reset is set, the TONR instruction begins timing again whenReset is cleared.How a Timer RunsA timer runs by subtracting the time of its last scan from the time now:ACC = ACC + (current_time - last_time_scanned)Publication 1756-RM003I-EN-P - January 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!