Volume Profibus | |
Attributes: Runtime | Development | System | Template | Detail C Binding: Struct | Class  ClassTree | INDEX NO INDEX |
Class Pb_Profiboard![]() |
||
---|---|---|
Redaktör | Claes Jurstrand/Marcus Nordenberg | |
Version | 1.1 | |
Modified | 16-JAN-2006 09:46:40.51 |
Configurates a Profibus PCI master card (Softing Profiboard). Available on LynxOS and Linux. The object should be named Px, where x is the number of the device, eg P1. You can have maximum two buses (master cards) on each system. The latest API from Softing can only handle one board per process. So you have to make sure to select PlcThread objects from different PlcProcess objects.
RtBody attributes pwr_sClass_Pb_Profiboard | |||
---|---|---|---|
String80 | Description | Text description of the object (comment). | |
IoProcessMask | Process | Defines the ProviewR process that will handle I/O for the bus. 1 for the PLC process (default). |
|
Objid | ThreadObject | Defines which of the PLC threads that will handle I/O for the bus (if Process = 1). | |
Status | Status | Indicates the current state of the bus in runtime. Updated by the I/O-handler. PB__NOTINIT : Bus is not initialized. PB__INITFAIL : Bus failed to be initialized. PB__DISABLED : Bus is disabled, no i/o-handling will be performed. PB__STOPPED : Bus is in stopped mode. PB__CLEARED : Bus is in cleared mode. PB__NORMAL : Bus is in operating mode (this should be the normal state when running). |
|
UInt8 | DisableBus | Flag that disables the initialization of the bus, if initialized turns off i/o-handling. | |
UInt16 | NumberSlaves | Number of configured slaves in the bus. Updated by the I/O-handler. | |
UInt16 | BusNumber | Number of the bus. You can have one or two buses (master cards) on each system. | |
UInt16 | SlaveAddress | ||
UInt16 | MaxNumberSlaves | Maximum number of slaves allowed on the bus. Range 0..127. Observe that maximum size of the DPRAM is 16 kB. This means that: MaxNumberSlaves * (MaxSlaveOutputLen + MaxSlaveInputLen) < 16384 |
|
UInt16 | MaxSlaveOutputLen | Maximum size of each slaves output area. | |
UInt16 | MaxSlaveInputLen | Maximum size of each slaves input area. | |
UInt16 | MaxSlaveDiagLen | Maximum length for slave diagnostic. | |
UInt16 | BaudRate | Baud rate for the bus in Kbit/s. Possible values are 500, 1500, 3000, 6000, 12000. Note that the values for some of the following attributes are depending on the baud rate. For further information about these bus parameters, please refer to the documentation from Softing. |
|
UInt16 | StallTime | Watchdog timer for write supervision in the master card. This watchdog is activated at the first write operation after initialization. If the timer later elapses without a write operation, the master card will reset itself, and the bus will stop, leaving all slaves to stall when their own stalltime elapses. Range 100..10000 ms |
|
UInt16 | Tsl | Slot time, the maximum time a master station must wait for a transaction response. Range 37..16383 Bit Times. Recommended values for each baudrate: 500 kbit/s - 200 1500 kbit/s - 300 3000 kbit/s - 400 6000 kbit/s - 600 12000 kbit/s - 1000 |
|
UInt16 | MinTsdr | Minimum station delay time for responder, the period of time which may elapse before the responder can send the response frame. Range 11..1023 Bit Times. Recommended values for each baudrate: 500 kbit/s - 11 1500 kbit/s - 11 3000 kbit/s - 11 6000 kbit/s - 11 12000 kbit/s - 11 |
|
UInt16 | MaxTsdr | Maximum station delay time for responder, the responder has to send the response frame before this time is elapsed. Range 37..2^16-1 Bit Times. Recommended values for each baudrate: 500 kbit/s - 100 1500 kbit/s - 150 3000 kbit/s - 250 6000 kbit/s - 450 12000 kbit/s - 800 |
|
UInt8 | Tqui | Quiet time, the period of time which a transmitting station must wait after the end of a frame before enabling its receiver. It is significant when using repeaters. Range 0..493 Bit Times. Recommended values for each baudrate: 500 kbit/s - 0 1500 kbit/s - 0 3000 kbit/s - 3 6000 kbit/s - 6 12000 kbit/s - 9 |
|
UInt8 | Tset | Setup time, the time between the occurance of an interrupt request and the necessary request action is performed. Range 1..494-Tqui BitTimes. Recommended values for each baudrate: 500 kbit/s - 1 1500 kbit/s - 1 3000 kbit/s - 4 6000 kbit/s - 8 12000 kbit/s - 16 |
|
UInt32 | Ttr | Target rotation time, the anticipated time for one token rotation on the bus, including allowances for high and low priority transactions and GAP maintenance. Range 256..2^24-1 Bit Times. The value is irrelevant in Profibus DP operations. |
|
UInt8 | G | Gap update factor, defines the number of token rotations between GAP maintenance cycles. Range 1..100. Recommended values for each baudrate: 500 kbit/s - 1 1500 kbit/s - 10 3000 kbit/s - 10 6000 kbit/s - 10 12000 kbit/s - 10 |
|
UInt8 | Hsa | Highest station address. Range 1..126. | |
UInt8 | MaxRetryLimit | Maximum retry limit, indicates how often FDL has to repeat the request frame when no response or acknowledge frame is receive from the recognized station within the slot time. Range 0..7. Recommended values for each baudrate: 500 kbit/s - 1 1500 kbit/s - 1 3000 kbit/s - 2 6000 kbit/s - 3 12000 kbit/s - 4 |
|
UInt8 | BpFlag | Bus parameter flag. Should not be changed from the default value. | |
UInt16 | MinSlaveInterval | Data exchange cycle time in 100 us. Should not be changed from the default value. | |
UInt16 | PollTimeout | Watchdog timer for Master to Master communication. | |
UInt16 | DataControlTime | Control interval for global control status reports of the DP master. | |
Array of UInt8 | Diag | Area for receiving diagnostic data from the master. Not implemented yet. |
Template Object | |
---|---|
Process | 1 |
BusNumber | 1 |
MaxNumberSlaves | 48 |
MaxSlaveOutputLen | 128 |
MaxSlaveInputLen | 128 |
MaxSlaveDiagLen | 60 |
BaudRate | 12000 |
StallTime | 3000 |
Tsl | 1000 |
MinTsdr | 11 |
MaxTsdr | 800 |
Tqui | 9 |
Tset | 16 |
Ttr | 300000 |
G | 10 |
Hsa | 126 |
MaxRetryLimit | 4 |
MinSlaveInterval | 1 |
PollTimeout | 1000 |
DataControlTime | 100 |
Description Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | String80 | |
Flags | ||
Kropp | RtBody |
Text description of the object (comment).
Process Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | IoProcessMask | |
Flags | ||
Kropp | RtBody |
Defines the ProviewR process that will handle I/O for the bus. 1 for the PLC process (default).
ThreadObject Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | Objid | |
Flags | ||
Kropp | RtBody |
Defines which of the PLC threads that will handle I/O for the bus (if Process = 1).
Status Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | Status | |
Flags | Noedit|Invisible | |
Kropp | RtBody |
Indicates the current state of the bus in runtime. Updated by the I/O-handler. PB__NOTINIT : Bus is not initialized. PB__INITFAIL : Bus failed to be initialized. PB__DISABLED : Bus is disabled, no i/o-handling will be performed. PB__STOPPED : Bus is in stopped mode. PB__CLEARED : Bus is in cleared mode. PB__NORMAL : Bus is in operating mode (this should be the normal state when running).
DisableBus Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt8 | |
Flags | Noedit|Invisible | |
Kropp | RtBody |
Flag that disables the initialization of the bus, if initialized turns off i/o-handling.
NumberSlaves Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt16 | |
Flags | Noedit|Invisible | |
Kropp | RtBody |
Number of configured slaves in the bus. Updated by the I/O-handler.
BusNumber Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt16 | |
Flags | ||
Kropp | RtBody |
Number of the bus. You can have one or two buses (master cards) on each system.
SlaveAddress Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt16 | |
Flags | ||
Kropp | RtBody |
MaxNumberSlaves Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt16 | |
Flags | ||
Kropp | RtBody |
Maximum number of slaves allowed on the bus. Range 0..127. Observe that maximum size of the DPRAM is 16 kB. This means that: MaxNumberSlaves * (MaxSlaveOutputLen + MaxSlaveInputLen) < 16384
MaxSlaveOutputLen Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt16 | |
Flags | ||
Kropp | RtBody |
Maximum size of each slaves output area.
MaxSlaveInputLen Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt16 | |
Flags | ||
Kropp | RtBody |
Maximum size of each slaves input area.
MaxSlaveDiagLen Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt16 | |
Flags | ||
Kropp | RtBody |
Maximum length for slave diagnostic.
BaudRate Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt16 | |
Flags | ||
Kropp | RtBody |
Baud rate for the bus in Kbit/s. Possible values are 500, 1500, 3000, 6000, 12000. Note that the values for some of the following attributes are depending on the baud rate. For further information about these bus parameters, please refer to the documentation from Softing.
StallTime Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt16 | |
Flags | ||
Kropp | RtBody |
Watchdog timer for write supervision in the master card. This watchdog is activated at the first write operation after initialization. If the timer later elapses without a write operation, the master card will reset itself, and the bus will stop, leaving all slaves to stall when their own stalltime elapses. Range 100..10000 ms
Tsl Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt16 | |
Flags | ||
Kropp | RtBody |
Slot time, the maximum time a master station must wait for a transaction response. Range 37..16383 Bit Times. Recommended values for each baudrate: 500 kbit/s - 200 1500 kbit/s - 300 3000 kbit/s - 400 6000 kbit/s - 600 12000 kbit/s - 1000
MinTsdr Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt16 | |
Flags | ||
Kropp | RtBody |
Minimum station delay time for responder, the period of time which may elapse before the responder can send the response frame. Range 11..1023 Bit Times. Recommended values for each baudrate: 500 kbit/s - 11 1500 kbit/s - 11 3000 kbit/s - 11 6000 kbit/s - 11 12000 kbit/s - 11
MaxTsdr Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt16 | |
Flags | ||
Kropp | RtBody |
Maximum station delay time for responder, the responder has to send the response frame before this time is elapsed. Range 37..2^16-1 Bit Times. Recommended values for each baudrate: 500 kbit/s - 100 1500 kbit/s - 150 3000 kbit/s - 250 6000 kbit/s - 450 12000 kbit/s - 800
Tqui Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt8 | |
Flags | ||
Kropp | RtBody |
Quiet time, the period of time which a transmitting station must wait after the end of a frame before enabling its receiver. It is significant when using repeaters. Range 0..493 Bit Times. Recommended values for each baudrate: 500 kbit/s - 0 1500 kbit/s - 0 3000 kbit/s - 3 6000 kbit/s - 6 12000 kbit/s - 9
Tset Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt8 | |
Flags | ||
Kropp | RtBody |
Setup time, the time between the occurance of an interrupt request and the necessary request action is performed. Range 1..494-Tqui BitTimes. Recommended values for each baudrate: 500 kbit/s - 1 1500 kbit/s - 1 3000 kbit/s - 4 6000 kbit/s - 8 12000 kbit/s - 16
Ttr Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt32 | |
Flags | ||
Kropp | RtBody |
Target rotation time, the anticipated time for one token rotation on the bus, including allowances for high and low priority transactions and GAP maintenance. Range 256..2^24-1 Bit Times. The value is irrelevant in Profibus DP operations.
G Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt8 | |
Flags | ||
Kropp | RtBody |
Gap update factor, defines the number of token rotations between GAP maintenance cycles. Range 1..100. Recommended values for each baudrate: 500 kbit/s - 1 1500 kbit/s - 10 3000 kbit/s - 10 6000 kbit/s - 10 12000 kbit/s - 10
Hsa Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt8 | |
Flags | ||
Kropp | RtBody |
Highest station address. Range 1..126.
MaxRetryLimit Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt8 | |
Flags | ||
Kropp | RtBody |
Maximum retry limit, indicates how often FDL has to repeat the request frame when no response or acknowledge frame is receive from the recognized station within the slot time. Range 0..7. Recommended values for each baudrate: 500 kbit/s - 1 1500 kbit/s - 1 3000 kbit/s - 2 6000 kbit/s - 3 12000 kbit/s - 4
BpFlag Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt8 | |
Flags | ||
Kropp | RtBody |
Bus parameter flag. Should not be changed from the default value.
MinSlaveInterval Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt16 | |
Flags | ||
Kropp | RtBody |
Data exchange cycle time in 100 us. Should not be changed from the default value.
PollTimeout Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt16 | |
Flags | ||
Kropp | RtBody |
Watchdog timer for Master to Master communication.
DataControlTime Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | UInt16 | |
Flags | ||
Kropp | RtBody |
Control interval for global control status reports of the DP master.
Diag Attribute | ||
---|---|---|
Klass | Attribute | |
Typ | Array of UInt8 | |
Flags | Array|Noedit|Invisible | |
Elements | 256 | |
Kropp | RtBody |
Area for receiving diagnostic data from the master. Not implemented yet.