550 838 01

 

 

Service Channel (channel 0)  (PD 951)

 

Registers in Service channel.

RegNo

Identifier

Memory type

Read Out

Type

0

NumberOfSWNo

PROM Read only

-------

Record

1

DeviceID

PROM Read only

-------

Record

2

Notification

RAM Read only

Binary

Bit8

3

Reset

RAM Read Write

Decimal

Byte

4

PNETSerialNo

Special function

-------

Record

5

 

 

 

 

6

 

 

 

 

7

FreeRunTimer

RAM Read only

Decimal

LongInteger

8

WDTimer

RAM Read Write

Decimal

Real

9

EnableNotification

EEPROM RPW

Binary

Bit8

10

WDPreset

EEPROM RPW

Decimal

Real

11

 

 

 

 

12

 

 

 

 

13

WriteEnable

RAM Read Write

Binary

Boolean

14

Guid

PROM Read only

-------

String

15

ChError

RAM Read Write

-------

Record

 

 

RegNo 0: NumberOfSWNo

This constant holds the highest SWNo in the device and a Guid for the entire device.

Record

 

(* Factory setting *)

 

NumberOfSWNo:

Integer;

(* 31 *)

 

NodeTypeGuid:

String[22];

(* "xxxxxxxxxxxxxxxxxxxxxx" *)

End;

 

 

 

 

RegNo 1: DeviceID

The purpose of this record is to be able to identify a connected device. The record includes registered manufacturer number, the type number of the device and a string, identifying the manufac­turer.

 

The record is of the following type:

Record

 

(* Factory setting *)

 

DeviceNumber:

Word;

(* 951 *)

 

ProgramVersion:

Word;

(* 101 *)

 

ManufacturerNo:

Word;

(* 1 *)

 

Manufacturer:

String[20];

(* "PROCES-DATA DK" *)

End;

 

 

 

 

RegNo 2: Notification

 

 

Notification:

 Bit8;

 

 

A notification is used to inform users of variable values when new values are available. Several conditions can set the notification bit and the conditions can be chosen in ChConfig.Notification / NotificationEnable on each channel. The Notification register is cleared automatically after a read. After a power-up all notification bits are set.

 

7

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0: Channel_0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1: Channel_1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2: Channel_2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3: Channel_3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4: Channel_4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7:

 

 

 

 

 

 

 

 

 

 

 

RegNo 3: Reset

 

 

Reset:

Byte;

 

 

By writing 255 to the Reset variable, the device performs a reset, and ExternalReset in ChError is set TRUE. Any value other than 255 can cause random behaviour.

 

 

RegNo 4: PNETSerialNo

This Variable is a record of the following type:

 

Record

 

(* Factory setting *)

 

PNETNo:

Byte;

(Node Address) (* 0 *)

 

SerialNo:

String[20];

(* "xxxxxxxxPD" *)

End;

 

 

 

The serial number is used for service purposes and as a 'key' to setting the device's P-NET Node address.

A special function is included for identifying a device connected to a network containing many other devices, having the same or unknown node addresses, and to enable a change of the node address via the P-NET.

Setting a new node address via the P-NET is performed by writing the required node address together with the serial number of the device in question, into the PnetSe­rialNo at node address 126 (calling all devices). All devices on the P-NET will receive the message, but only the device with the transmitted serial number will store the P-NET node address.

 

 

RegNo 7: FreeRunTimer

 

 

FreeRunTimer:

LongInteger;

 

 

FreeRunTimer is a timer, to which internal events are sync­hronized. The timer is of type LongInteger in 1/256 Second.

 

 

 

RegNo 8: WDTimer [s]

 

 

WDTimer:

Real;

 

 

WDTimer is automatically preset with the value from WDPreset, either each time the device is called via P-NET, or following a power-up or device reset. If the WDTimer reaches zero before it is preset again and the watchdog is enabled on the current output channel, the current outputs will switch off and the PnetWDRunOut error is generated. The WDTimer contains a value in sec.

 

 

RegNo 9: EnableNotification

 

 

EnableNotification:

Bit8;

(* Factory setting = 0 *)

 

The notification function can be enabled as shown below.

7

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0: ChangeInChErrorAct

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7:

 

 

 

 

 

 

 

 

 

 

 

RegNo 10: WDPreset [s]

 

 

WDPreset:

Real;

(* Factory setting = 0 *)

 

The maximum allowable time between two calls for the device, before the watchdog is activated, is defined in seconds, in this register.

 

 

RegNo 13: WriteEnable

 

 

WriteEnable:

Boolean;

 

 

Write protected variables can only be changed when Write­Enab­le is TRUE. After reset, WriteEnable is set to FALSE.

 

 

RegNo 14: Guid

Each channel type in an interface device consists of a unique Guid.

 

 

Guid:

String[22];

(* "xxxxxxxxxxxxxxxxxxxxxx" *)

 

 

RegNo 15: ChError

 

Record

 

 

 

His:

Bit16;

 

 

Act:

Bit16;

 

End;

 

 

 

There are two sets of error bits, actual and historical. The actual error bits reflect the current situation and will automatically follow the situation.

The historical error bits reflect the history and have the purpose to hold sporadic errors. The historical error bits are set together with the corresponding actual bits, and cleared by the host. Only the bits where the corresponding actual bit is false can be cleared.

The “His data error” bit in the P-NET response is set if any historical bit is true.

The “Act data error” bit in the P-NET response is reflecting the validity of the data in the response. Overload, electrical error or an error in other registers involved in calculating the result gives “Act data error”.

 

 

 

 

15

 

 

 

 

 

 

 

7

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0: Program_storage_fault

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1: RAM_storage_fault

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2: InternalReset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3: ExternalReset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4: EEPROM_error_in_PNETSerialNo

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5: EEPROM_error_in_NotificationEnable

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6: EEPROM_error_in_WDPreset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

9:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

13:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

14:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The following bits also appear in ChError in all channels, and will cause Act error in the

P-NET response on access to all variables.

 

Bit 0               Program_storage_ fault is set TRUE if the self-test finds an error in the program memory.

 

Bit 1               RAM_storage_fault is set TRUE if the self-test finds an error in the data memory (RAM).

 

The following bits also appear in ChError in all channels, and will only be set in His.

 

Bit 2               InternalReset is set TRUE if a reset is caused by a power failure, or if the power has been disconnected.

 

Bit 3               ExternalReset is set TRUE if a reset is caused by writing 255 to Reset, via P‑NET.

 

The following bits are set TRUE if the self-test finds an error in the data memory (EEPROM)

for the variable. EEPROM fault is only set at power-up. If the corresponding variable is accessed, Act error in the P-NET response is set.

This error can occur if the power disappears when writing to EEPROM, so a rewrite to the

variable can possibly solve the problem.

 

Bit 4               EEPROM_error_in_PNETSerialNo.

 

Bit 5               EEPROM_error_in_NotificationEnable.

 

Bit 6               EEPROM_error_in_WDPreset.

 

Bit 7               EEPROM_error_in_SGVTable.

 

Bit 8               EEPROM_error_in_NetParam.