Class TIMER
- Namespace
- L5Sharp.Types.Predefined
- Assembly
- L5Sharp.dll
A predefined data type that is built into Logix and used with timer instructions.
public sealed class TIMER : StructureType, ILogixSerializable
- Inheritance
-
TIMER
- Implements
- Inherited Members
Constructors
TIMER()
Creates a new TIMER data type instance.
public TIMER()
TIMER(XElement)
Creates a new StructureType initialized from the provided XElement data.
public TIMER(XElement element)
Parameters
element
XElementThe element to parse as the new member object.
Exceptions
- ArgumentNullException
element
is null.- InvalidOperationException
element
does not have required attributes or child elements.
Properties
ACC
public DINT ACC { get; set; }
Property Value
Remarks
The accumulated value specifies the number of milliseconds that have elapsed since the Timer instruction was enabled.
Class
The class (atomic, predefined, user-defined) that the type belongs to.
public override DataTypeClass Class { get; }
Property Value
- DataTypeClass
A DataTypeClass option representing the class type.
DN
public BOOL DN { get; set; }
Property Value
Remarks
The done bit is set when .ACC ≥ .PRE.
EN
public BOOL EN { get; set; }
Property Value
Remarks
The enable bit indicates that the Timer instruction is enabled.
PRE
public DINT PRE { get; set; }
Property Value
Remarks
The preset value specifies the value (1 msec units) which the accumulated value must reach before the instruction sets the .DN bit.
TT
public BOOL TT { get; set; }
Property Value
Remarks
The timing bit indicates that a timing operation is in process