Table of Contents

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 XElement

The 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

Gets the ACC member of the TIMER data type.

public DINT ACC { get; set; }

Property Value

DINT

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

Gets the DN member of the TIMER data type.

public BOOL DN { get; set; }

Property Value

BOOL

Remarks

The done bit is set when .ACC ≥ .PRE.

EN

Gets the EN member of the TIMER data type.

public BOOL EN { get; set; }

Property Value

BOOL

Remarks

The enable bit indicates that the Timer instruction is enabled.

PRE

Gets the PRE member of the TIMER data type.

public DINT PRE { get; set; }

Property Value

DINT

Remarks

The preset value specifies the value (1 msec units) which the accumulated value must reach before the instruction sets the .DN bit.

TT

Gets the TT member of the TIMER data type.

public BOOL TT { get; set; }

Property Value

BOOL

Remarks

The timing bit indicates that a timing operation is in process