|
551 247 01 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Service Channel (channel 0) (PD 981)
Registers in Service channel.
RegNo 0: NumberOfSWNoThis constant holds the highest SWNo in the device and a Guid for the entire device.
RegNo 1: DeviceIDThe 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 manufacturer.
The record is of the following type:
RegNo 2: Notification
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.
RegNo 3: Reset
By writing 255 to the Reset variable, the device performs a reset, and ExternalReset in ChError is set TRUE. Any other value than 255 can cause random behaviour.
RegNo 4: PNETSerialNoThis Variable is a record of the following type:
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 PnetSerialNo 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 is a timer, to which internal events are synchronized. The timer is of type LongInteger in 1/256 Second.
RegNo 8: WDTimer [s]
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
The notification function can be enabled as shown below.
RegNo 10: WDPreset [s]
The maximum allowable time between two calls for the device, before the watchdog is activated, is defined in seconds, in this register.
RegNo 11: SGVTableWhen a P-NET block is received with most significant bit set in SWNo it is a Super Global Variable. The device performs a binary search through the SGVSWNo’s in the SGVTable to find a match, if a match was found SGVTable.SWNo is used instead. If Load instruction and owner bit is set a special response is sent on the P-NET (a P-NET Store request).
The SGVSWNo must be in decreasing order (-1 on index 1, -2 on index 2.......). There must not be identical SGVSWNo in the table. SGVSWNo must hold 0 in not used entries.
RegNo 12: NetParam
Baudrate: This variable selects the baud rate for the PD 981. Baudrate can hold the value 76800.
RegNo 13: WriteEnable
Write protected variables can only be changed when WriteEnable is TRUE. After reset, WriteEnable is set to FALSE.
RegNo 14: GuidEach channel type in an interface device consists of a unique Guid.
RegNo 15: ChError
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||