550 985 01

 

PD 667 Profibus - DriverInfo:

 

Record name: DriverInfo.       

Softwire number: 402.

Variable name

Variable description

ActiveSlave

Currently active index in DP_Slaves

MasterStatus

Status of loading the Profibus driver

ScanCounter

Counts number of scan loops

Version

Driver version

ReStartDriver

Restart the driver

InitCounter

Counts number of driver initializations

 

 

 


ActiveSlave

 

 

ActiveSlave:

Byte;

 (* factory setting 0 *)

 

Contains the index of the DP_Slaves array, which is currently active in the master. The ActiveSlave will continuously loop from 1 to NumberOfSlaves, when the driver is active.

 

Note:

ActiveSlave is the index number, which does not necessarily have any relationship with the actual slave Profibus address.

 

 

 


MasterStatus

 

 

MasterStatus:

Byte;

 (* factory setting 0 *)

 

 

MasterStatus shows the status of the driver:

0

OK.  The driver is loaded and running

1

Master configuration error:  Number of slaves not within 1.. Max Slave No.

2

A slave with configuration error found.

ActiveSlave contains the slave index, which has the bad configuration.

Slave configuration limits:

Configuration.Size = 0  OR

Configuration.Size > Max  OR

SlaveAdr > 125 OR

IdentNo = 0 Or

IdentNo = $FFFF OR

Parameters.Size > Max

3

Illegal baud rate selected

4

PD 667 hardware not detected

 

 

If MasterStatus is not = 0, an error is detected and the driver is halted. There will be no activity on the Profibus network. Checking is only done when loading the driver. When the data is corrected the driver must be reinitialized setting ReStartDriver to true or by Reset or Power cycle.

 

 

ScanCounter

 

 

ScanCounter:

Word;

 (0..10000)

 

ScanCounter is incremented by one each time a full scan of all slaves has been performed.

The ScanCounter counts to 10000, and then it restarts from 1.

 

 


Version

 

 

Version:

Word;

 

 

Version shows the version number of the Profibus driver.

 

Example:

'Version 1.09' is shown as '109'

 

 

ReStartDriver

 

 

ReStartDriver:

Boolean;

 

 

If the driver is halted at startup, due to detected illegal parameters (MasterStatus > 0), the ReStartDriver flag can be set and the PD 667 will reset and make a new start.

 

 

InitCounter

 

 

InitCounter:

Word;

 

 

Counts the number of times the driver has been initialized.