Topic: DMD0179 TMRADOWN - Accumulating Down Timer |
|
The Accumulating Up Timer (TMRA) instruction is used to accumulate time for a specified duration, typically to initiate some action when the Timer has accumulated the prescribed amount of time. The instruction has two ladder logic input legs. The first input leg (EN) enables and disables the Timer. When this input logic is ON, the Timer will begin to accumulate time downward from ta preset value toward 0. When this input logic is OFF, the Timer will stop timing, but the accumulator and the status flags will retain their current values. If this input logic comes back ON, the Timer will continue to accumulate time. The second input leg (RST) is the Reset. If this input logic is ON the Timer will reset meaning the accumulator value will return to the preset value and the Timer's associated structure members will reset.
When a new Timer is added to the ladder logic the Common Timer Editor will be used. When editing an existing Timer, the following type-specific editor will be used. This can be changed in the View -> Options -> Ladder tab -> Editing section by selecting either Use only with new Timers (the default) or Use with new and existing Timers
|
|
Parameters:Note: Use the F9 key or click the 'three dot box' at the right edge of the parameter field to open the Default Element Selection Tool (the Element Picker or the Element Browser) or use the Down-Arrow key (Auto-Complete) on any parameter field to see a complete list of the memory locations that are valid for that parameter of the instruction.
Timer Struct specifies which Timer number to edit, and by extension, the name of the Timer's associated structure. This can be any of the System-created Timers, or any user-created Timer. The default Memory Configuration contains 255 predefined Timers named T0 through T255.
Preset is the amount of time after which you want some action to take place. All Timers have a resolution of 1 millisecond. The maximum value for a Preset is 2,147,483,647 milliseconds. The Preset value can be specified in one of two ways:
|
|
Termination Scan Behavior:All Timers - with one exception - have termination logic. This means if the Timer instruction is contained within a Program, a Task, or a Stage, the Timer will automatically be reset any time that Program, Task, or Stage stops executing because of an End Program, End Task, or Disable Stage respectively.
The Global Accumulating Up Timer (TMRAG) instruction does NOT have termination logic, meaning that it will retain it's accumulated time and the state of it's internal flags even if it is contained within a Program, a Task, or a Stage, that is disabled.
Refer to the Help topic on Termination Behavior for detailed information on the programming elements that have termination logic.
|
|
Status Display:
The yellow triangle in the upper left corner indicates this is a Multi-Scan instruction.
|
|
Timer Structure Members:All Timers have an associated structure with fields that can be used in the ladder program. The structure fields are updated whenever the Timer instruction is processed in the PLC scan. The syntax for using them is <Timer structure>.<field name>, for example, T7.Acc.
.Acc (read/write) is a 32-bit signed value that represents the total accumulated time whenever the Timer is enabled.
.Done (read-only)will be ON any time the Timer's input logic is ON and Timer's accumulator value (.Acc) is 0.
.Zero (read-only) will be ON any time the Timer's accumulator value (.Acc) is 0.
.Timing (read-only)will be ON any the Timer's input logic is ON and is NOT being held in Reset by the Reset input (RST).Will turn OFF when .DN turns ON.
.Reset (read-only) will be ON any time the Timer's Reset input (RST) is ON.
.TT (read-only) will be ON if the Timer's input logic is ON and is NOT being held in Reset by the Reset input (RST). Will turn OFF when .DN turns ON.
.EN (read-only)will be ON any time the Timer's input logic is ON and is NOT being held in Reset by the Reset input (RST).
.DN (read-only) will be ON any time the Timer's accumulator value (.Acc) is 0 and is NOT being held in Reset by the Reset input (RST). Will remain ON after .Done turns ON.
|
|
See Also:
TMRADOWN - Accumulating Down Timer
TMRAG - Global Accumulating Up Timer
|
|
Related Topics:
|
|
Rung Example:
|
|