Table of Contents

Class COUNTER

Namespace
L5Sharp.Types.Predefined
Assembly
L5Sharp.dll

A predefined or built in data type used with counter instructions.

public sealed class COUNTER : StructureType, ILogixSerializable
Inheritance
COUNTER
Implements
Inherited Members

Constructors

COUNTER()

Creates a new COUNTER data type instance.

public COUNTER()

COUNTER(XElement)

Creates a new StructureType initialized from the provided XElement data.

public COUNTER(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 COUNTER data type.

public DINT ACC { get; set; }

Property Value

DINT

CD

Gets the CD member of the COUNTER data type.

public BOOL CD { get; set; }

Property Value

BOOL

CU

Gets the CU member of the COUNTER data type.

public BOOL CU { get; set; }

Property Value

BOOL

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 COUNTER data type.

public BOOL DN { get; set; }

Property Value

BOOL

OV

Gets the OV member of the COUNTER data type.

public BOOL OV { get; set; }

Property Value

BOOL

PRE

Gets the PRE member of the COUNTER data type.

public DINT PRE { get; set; }

Property Value

DINT

UN

Gets the UN member of the COUNTER data type.

public BOOL UN { get; set; }

Property Value

BOOL