Commit 7456d7d0 authored by Claes Sjofors's avatar Claes Sjofors

Softing profiboard, MaxSlaveDiagLen added

parent 0660f0fa
......@@ -167,6 +167,8 @@ static short fmb_set_configuration(T_PROFI_DEVICE_HANDLE *hDevice,
data.dp.max_slave_output_len = op->MaxSlaveOutputLen;
data.dp.max_slave_input_len = op->MaxSlaveInputLen;
data.dp.max_slave_diag_entries = op->MaxNumberSlaves * 4;
data.dp.max_slave_diag_len = op->MaxSlaveDiagLen;
if ( data.dp.max_slave_diag_len == 0)
data.dp.max_slave_diag_len = 60;
data.dp.max_bus_para_len = 1024;
data.dp.max_slave_para_len = 1024;
......
......@@ -1888,7 +1888,7 @@ Volume Profibus $ClassVolume 0.0.250.7
Object RtBody $ObjBodyDef 1 16-JAN-2006 09:46:40.51
Body SysBody 16-JAN-2006 09:46:40.51
Attr StructName = "Pb_Profiboard"
Attr NextAix = "_X27"
Attr NextAix = "_X28"
EndBody
!/**
! Text description of the object (comment).
......@@ -1993,6 +1993,15 @@ Volume Profibus $ClassVolume 0.0.250.7
EndBody
EndObject
!/**
! Maximum length for slave diagnostic.
!*/
Object MaxSlaveDiagLen $Attribute 27 05-DEC-2011 14:15:03.22
Body SysBody 05-DEC-2011 14:15:04.84
Attr PgmName = "MaxSlaveDiagLen"
Attr TypeRef = "pwrs:Type-$UInt16"
EndBody
EndObject
!/**
! 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
......@@ -2199,12 +2208,13 @@ Volume Profibus $ClassVolume 0.0.250.7
EndObject
EndObject
Object Template Pb_Profiboard 2151120896 16-JAN-2006 09:59:41.00
Body RtBody 01-JAN-1970 01:00:00.00
Body RtBody 05-DEC-2011 14:15:48.65
Attr Process = 1
Attr BusNumber = 1
Attr MaxNumberSlaves = 48
Attr MaxSlaveOutputLen = 128
Attr MaxSlaveInputLen = 128
Attr MaxSlaveDiagLen = 60
Attr BaudRate = 12000
Attr StallTime = 3000
Attr Tsl = 1000
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment