BinaryCounterInfo

class c104.BinaryCounterInfo

This class represents all specific integrated totals of binary counter point information

__init__(self: c104.BinaryCounterInfo, counter: int, sequence: c104.UInt5, quality: c104.BinaryCounterQuality = c104.BinaryCounterQuality(), recorded_at: Optional[datetime.datetime] = None) None

create a new short measurement info

Parameters:
  • counter (int) – Counter value

  • sequence (c104.UInt5) – Counter info sequence number

  • quality (c104.BinaryCounterQuality) – Binary counter quality information

  • recorded_at (Optional[datetime.datetime]) – Timestamp contained in the protocol message, or None if the protocol message type does not contain a timestamp.

Example

>>> counter_info = c104.BinaryCounterInfo(counter=2345, sequence=c104.UInt5(35), quality=c104.Quality.Invalid, recorded_at=datetime.datetime.utcnow())
property counter

the value (read-only)

Type:

int

property processed_at

timestamp with milliseconds of last local information processing (read-only)

Type:

datetime.datetime

property quality

the quality (read-only). The setter is available via point.quality=xyz

Type:

c104.BinaryCounterQuality

property recorded_at

timestamp with milliseconds transported with the value itself or None (read-only)

Type:

Optional[int]

property sequence

the counter sequence number (read-only)

Type:

c104.UInt5

property value

maps to property counter (read-only). The setter is available via point.value=xyz

Type:

int