551 406 01

 

 

Configuration Channel (channel 2)

 

Registers in Configuration channel.

RegNo

Identifier

Memory type

Read Out

Type

0

Reserve

PC RAM

Decimal

Boolean

1

ReserveTimer

PC RAM

Decimal

Real

2

ReservePreset

PC RAM

Decimal

Real

3

 

 

 

 

4

ConfigRecord

PC RAM

-----------

Record

5

CommandResult

Special function

Decimal

Integer

6

ProjectName

Stream

-------

String

7

LastConfigurationDate

Stream

-------

RealDate

8

 

 

 

 

9

 

 

 

 

10

 

 

 

 

11

 

 

 

 

12

 

 

 

 

13

 

 

 

 

14

Guid

Stream Read only

-------

String

15

 

 

 

 

 

RegNo 0: Reserve

 

Reserve:

Real;

 

 

To avoid any conflicts when configuring the service, use the TestAndSet instruction to first check whether the channel is already in use.

 

RegNo 1: ReserveTimer

 

ReserveTimer:

Real;

 

 

When the Reserve flag is set, the Reservetimer is preset with the value stored in the ReservePreset register. When the reservetimer reaches 0.0 the reserve flag is cleared.

 

RegNo 2: ReservePreset

 

ReservePreset:

Real;

 

 

This register holds the value used to preset the reserve timer. This value defines the maximum time the channel will be reserved.

 

RegNo 4: ConfigRecord

Record

 

 

 

ObjectType:

String[32];

 

 

NetName:

String[32];

 

 

NodeNo:

Byte;

 

 

NeighbourNetName:

String[32];

 

 

NeighbourNodeNo:

Byte;

 

End;

 

 

 

This register is used to configure the service. Enter the correct values into the record and then store the value ‘1’ in the CommandResult register.

 

 

RegNo 5: CommandResult

 

CommandResult:

Integer;

 

This register is used to signal the service when a new configuration is to be downloaded.

The following commands can be used:

  • To add an element, store the value ‘1’ in the register.
  • When all elements are added store the value ‘2’ in the register.

 

Results returned to the CommandResult register

  • Results when adding an element
    • 0  -> Success
    • –1 -> Type does not exist.
    • –2 -> The element already exists.

 

  • Results when activating the configuration
    • 0 -> Success
    • –1 -> Error

 

RegNo 6: ProjectName

 

ProjectName:

String[100];

 

 

The P-NET Gateway Service Editor writes the name of the VIGO project used during the configuration to this register.

 

RegNo 7: LastConfigurationDate

 

LastConfigurationDate:

RealDate;

 

 

The P-NET Gateway Service Editor writes the date and time to this register during the configuration.

 

RegNo 14: GUID

 

GUID:

String21;

 

 

Each channel type is identified by means of a unique GUID. The value of GUID for the Configuration channel is: PD/551406-01.