Defining a Population

Concept Link IconApplies to

A population is defined by a number of text lines stored in a memory buffer. The text is placed in the buffer using the instruction SEQ_BUFFER.

Each population definition consists of a line defining its name followed by a number of other lines defining its attributes.

The number of attributes of each type is limited to 50 for a population, e.g. 50 domains, 50 natures etc.

If more attributes are added, they cause an error in the Log Viewer when the application is loaded: '\popu.dat line 104...'.

A work-around of defining more populations would impose system overheads.

Syntax for population name

POPULATION, Version, Name, 0, 0, Comment

Argument

Meaning

Version

Always 23.

Name

The name by which the population will be known.

Comment

A free format comment.

Syntax for population attributes

POPDEF, Name, Attribute, Mode, Value

Argument

Meaning

Name

The name of the population to which the attribute is to be applied.

Attribute

The attribute type:

  • NAME - The full name of a variable.

  • BRANCH - A branch.

  • TATT1 - A domain.

  • TATT2 - A nature.

  • TATT3 - Text attribute 3.

  • TATT4 - Text attribute 4.

  • BATT - Binary attributes (argument Value must be in the range 1..30).

  • FLAG - A hexadecimal mask:

    • 0080 - Equipment variable.

    • 0100 - Internal variable.

    • 1000 - Variable DDE.

    • 2000 - Variable OPC.

    • 4000 - Variable IEC 60870-5.

    • 8000 - Variable DNP3.

    • 10000 - Variable IEC 61850.

    • 20000 - Variable LonWorks.

    • 40000 - Variable BACnet.

    • 80000 - Variable SNMP.

  • TYPE - A hexadecimal mask:

    • 0001 - Bit variable.

    • 0002 - Register variable.

    • 0004 - Text variable.

    • 0008 - Alarm variable.

Mode

IN Include in the population.

OUT Exclude from the population.

Value

The value of the attribute.

For example, if the attribute parameter is FLAG, it could be the value 0080.