GSD文件簡介

不同語言的擴展名:
“ GSE ” - 英語
“ GSF ” - 法國
“ GSG 。 ” - 德國
“ GSI ” - 意大利
“ GSS ” - 西班牙






西門子的PLC採用GSD文件進行接口通信配置,使得不需要更改任何硬件的情況,可以滿足客戶的諸多需求。

GSD即電子設備數據庫文件,用於Profibus-Dp主站與從站交換數據時的參考數據,當主站與從站使用簡介組態時,可以利用組態工具存取當前的參數和有關DP從站的GSD數據(電子設備數據庫文件)?。

GSD 文件的組成:

  1. 一般規範 這部分包括生產廠商和設備的名稱,硬件和軟件的版本狀況,支持的波特率一可能的監視時間問隔
  2. 與DP 主站有關的規範這部分包括只運用於DP 主站的各項參數(如連接從站的最多臺數或上裝和下裝能力)。這一部分對從站沒有規定;
  3. 與DP 從站有關的規範 這部分包括與從站有關的一切規範(如輸入/輸出通道的數量和類型、中斷測試的規範以及輸入/輸出數據一致性的信息)。

GSD文件規範:
在GSD文件中,“;”作爲註釋符。#Profibus_D作爲文件正式開頭。
GSD_Revision——GSD文件的版本ID
Vendor_Name——製造商名字
Model_Name——製造商所設計的DP設備名字
Revision——DP設備的版本號
Ident_Number——DP設備的設備類型
Protocol_Ident——DP設備的協議ID
Station_Type——DP設備類型
Hardware_Release——該DP設備的硬件版本
Software_Release——該DP設備的軟件版本
9.6_supp:(選項組)
19.2_supp:
31.25_supp:(GSDv2增加)
45.45_supp:(GSDv2增加)
93.75_supp:
187.5_supp:
500_supp:
1.5M_supp:
3M_supp:(GSDv1增加)
6M_supp:(GSDv1增加)
12M_supp:(GSDv1增加) ——DP設備是否支持xxx波特率

MaxTsdr_9.6:(選項組)
MaxTsdr_19.2:
MaxTsdr_31.25:(GSDv2增加)
MaxTsdr_45.45:(GSDv2增加)
MaxTsdr_93.75:
MaxTsdr_500:
MaxTsdr_1.5M:
MaxTsdr_3M:(GSDv1增加)
MaxTsdr_6M:(GSDv1增加)
MaxTsdr_12M:(GSDv1增加) ——在xxx波特率下,從站響應一個請求消息所需要的最大時間。(參閱EN50170 8-2 部分 8.8條款)。(注意:爲了保證可靠性,此參數必須與設備實際支持的數值一致)

Redundancy:(默認) ——設備是否支持冗餘傳輸機制。
Repeater_Ctrl_Sig:(默認)——Here, the level of the bus connector signal CNTR-P is specified——0: Not connected, 1: RS485, 2:TTL
24V_Pins:(默認)——Here, the meaning of the bus connector signal M24V and P24V is specified——0: Not connected, 1:Input, 2:Output
Implementation_Type——描述了DP從站使用了哪些標準實現。比如,軟件標準,控制器或是ASIC方案。此描述由標準方案提供商給出,GSD規範裏也要遵從它。(例:“SPC3”)
Bitmap_Device——用於一般情況下,代表設備特徵的位圖文件的文件名。格式爲.DIB,70*40像素(寬高)
Bitmap_SF——用於特殊運行情況下,代表設備特徵的位圖文件的文件名。格式爲.DIB,70*40像素(寬高)
Bitmap_Diag——用於診斷情況下,代表設備特徵的位圖文件的文件名。格式爲.DIB,70*40像素(寬高)
OrderNumber——規格?產品序列號,可按用戶名修改
Freeze_Mode_supp——DP設備是否支持凍結模式。支持此模式的DP從站要保證在凍結控制命令之後的下一個數據週期開始,傳入值要凍結在最後的狀態。
Sync_Mode_supp——DP設備是否支持同步模式
Auto_Baud_supp——DP設備是否支持自動檢測識別總線的波特率
Min_Slave_Intervall——兩個DP設備列表週期間最小的時間間隔
Fail_Safe——DP device with fail safe workaround
Slave_Family——組態中的分類名
Max_Diag_Data_Len——診斷信息的最大長度
Modul_Offset——第一個插槽號進行配置
Modular_Station——緊湊型從站
Max_Module——模塊的最大數量
Max_Input_Len——輸入數據的最大長度
Max_Output_Len——輸出數據的最大長度
Max_Data_Len——輸入輸出數據的最大長度
User_Prm_Data_Len——Length of User_Param_Data
;— Module-Definitions —
Module——I/O配置數據,與初始化報文中的CFG一致
EndModule

一個例子:

;==========================================================
; GSD File  for SINEC CP 342-5       SIEMENS AG
; MLFB  : 6GK7 342-5DA03-0XE0
;
; Dated   : 20.04.2010 V1.0 RT
; File    : SI0180D6.GSD
;===========================================================
#Profibus_DP
GSD_Revision=4                         ; Version ID of the GSD file format
Vendor_Name="SIEMENS"                  ; Manufacturer's name
Model_Name="CP 342-5 DA03"             ; Manufacturer's designation of DP device
Revision="V1.0"                        ; Revision version of the DP device
Ident_Number=0x80D6                    ; Device type of the DP device
Protocol_Ident=0                       ; Protocol ID of the DP device
                                       ; 0 : PROFIBUS DP
Station_Type=0                         ; DP device type
                                       ; 0 : DP Slave
Hardware_Release="V 1.0"               ; Hardware release of the DP device
Software_Release="V 6.0"               ; Software release of the DP device
;
;
9.6_supp=1
19.2_supp=1
45.45_supp=1
93.75_supp=1
187.5_supp=1
500_supp=1
1.5M_supp=1
3M_supp=1
6M_supp=1
12M_supp=1
;
MaxTsdr_9.6=60
MaxTsdr_19.2=60
MaxTsdr_45.45=250
MaxTsdr_93.75=60
MaxTsdr_187.5=60
MaxTsdr_500=100
MaxTsdr_1.5M=150
MaxTsdr_3M=250
MaxTsdr_6M=450
MaxTsdr_12M=800
;
;
Implementation_Type="SOC1"                   ; String (32)
Bitmap_Device="SI9001TN"                     ; (*.DIB) (70x40 pixels 16 colors)
;
; Slave-Specification:
OrderNumber="6GK7 342-5DA03-0XE0"            ; Spec?
;
; Basic DP-Slave Related Key Words
Auto_Baud_supp=0                             ; DP device supports automatic baudrate
User_Prm_Data_Len=3                          ; Length of User_Param_Data
User_Prm_Data = 0x40,0x00,0x00               ; Default value of User_Param_Data
Min_Slave_Intervall=6                        ; Min interval between two slave list
                                             ; cycles
;
Modular_Station=1                            ; DP device is a modular station
Max_Module=63                                ; Max modules of a modular station
Max_Input_Len=240                            ; Max length of input data
Max_Output_Len=240                           ; Max length of output data
Max_Data_Len=480                             ; Max length of input and output data
;
Freeze_Mode_supp=1                           ; The DP device supports the Freeze mode
Sync_Mode_supp=1                             ; The DP device supports the Sync mode
;
Fail_Safe=1                                  ; DP device with fail safe workaround
Max_Diag_Data_Len=6                          ; Max length of diagnostic information
Modul_Offset=1                               ; First slot number to configuring
Slave_Family=3@SIMATIC                       ; Function class an family
;
Info_Text="CP 342-5 as PROFIBUS DP Slave, \
 Firmware: V6.0"                             ; String (256) max length of line : 80
;
;<Module Definition List>
;****************************************************************************
;                    BYTE MODULES  (special identification formats)
;****************************************************************************
;**************************** I N P U T *************************************
;****************************************************************************
; Input * Byte Consistentcy* Bytes of Data  * 1..64 bytes
;**********************************************************
Module = " 1 byte DI / Consistency 1 byte " 0x40,0x00
1
EndModule
Module = " 2 bytes DI / Consistency 1 byte" 0x40,0x01
2
EndModule
Module = " 4 bytes DI / Consistency 1 byte" 0x40,0x03
3
EndModule
Module = " 8 bytes DI / Consistency 1 byte" 0x40,0x07
4
EndModule
Module = "16 bytes DI / Consistency 1 byte" 0x40,0x0F
5
EndModule
Module = "32 bytes DI / Consistency 1 byte" 0x40,0x1F
6
EndModule
Module = "64 bytes DI / Consistency 1 byte" 0x40,0x3F
7
EndModule
;**********************************************************
; Input * Total Consistency * Bytes of Daten * 1..64 bytes
;**********************************************************
Module = " 1 byte DI / Total consistency  " 0x40,0x80
11
EndModule
Module = " 2 bytes DI / Total consistency " 0x40,0x81
12
EndModule
Module = " 4 bytes DI / Total consistency " 0x40,0x83
13
EndModule
Module = " 8 bytes DI / Total consistency " 0x40,0x87
14
EndModule
Module = "16 bytes DI / Total consistency " 0x40,0x8F
15
EndModule
Module = "32 bytes DI / Total consistency " 0x40,0x9F
16
EndModule
Module = "64 bytes DI / Total consistency " 0x40,0xBF
17
EndModule
;**********************************************************
; Input * Word Consistency * Words of Data * 1..64 words
;**********************************************************
Module = " 1 word AI / Consistency 1 word " 0x40,0x40
21
EndModule
Module = " 2 words AI / Consistency 1 word" 0x40,0x41
22
EndModule
Module = " 4 words AI / Consistency 1 word" 0x40,0x43
23
EndModule
Module = " 8 words AI / Consistency 1 word" 0x40,0x47
24
EndModule
Module = "16 words AI / Consistency 1 word" 0x40,0x4F
25
EndModule
Module = "32 words AI / Consistency 1 word" 0x40,0x5F
26
EndModule
Module = "64 words AI / Consistency 1 word" 0x40,0x7F
27
EndModule
;**********************************************************
; Input * Total Consistency * Words of Data * 1..64 words
;**********************************************************
Module = " 1 word AI / Total consistency  " 0x40,0xC0
31
EndModule
Module = " 2 words AI / Total consistency " 0x40,0xC1
32
EndModule
Module = " 4 words AI / Total consistency " 0x40,0xC3
33
EndModule
Module = " 8 words AI / Total consistency " 0x40,0xC7
34
EndModule
Module = "16 words AI / Total consistency " 0x40,0xCf
35
EndModule
Module = "32 words AI / Total consistency " 0x40,0xDF
36
EndModule
Module = "64 words AI / Total consistency " 0x40,0xFF
37
EndModule
;****************************************************************************
;**************************** O U T P U T ***********************************
;****************************************************************************
; Output * Byte Consistency * Bytes of Data * 1..64 bytes
;**********************************************************
Module = " 1 byte DO / Consistency 1 byte " 0x80,0x00
41
EndModule
Module = " 2 bytes DO / Consistency 1 byte" 0x80,0x01
42
EndModule
Module = " 4 bytes DO / Consistency 1 byte" 0x80,0x03
43
EndModule
Module = " 8 bytes DO / Consistency 1 byte" 0x80,0x07
44
EndModule
Module = "16 bytes DO / Consistency 1 byte" 0x80,0x0F
45
EndModule
Module = "32 bytes DO / Consistency 1 byte" 0x80,0x1F
46
EndModule
Module = "64 bytes DO / Consistency 1 byte" 0x80,0x3F
47
EndModule
;**********************************************************
; Output * Total Consistency * Bytes of Data * 1..64 bytes
;**********************************************************
Module = " 1 byte DO / Total consistency  " 0x80,0x80
51
EndModule
Module = " 2 bytes DO / Total consistency " 0x80,0x81
52
EndModule
Module = " 4 bytes DO / Total consistency " 0x80,0x83
53
EndModule
Module = " 8 bytes DO / Total consistency " 0x80,0x87
54
EndModule
Module = "16 bytes DO / Total consistency " 0x80,0x8F
55
EndModule
Module = "32 bytes DO / Total consistency " 0x80,0x9F
56
EndModule
Module = "64 bytes DO / Total consistency " 0x80,0xBF
57
EndModule
;**********************************************************
; Output * Word Consistency * Words of Data * 1..64 words
;**********************************************************
Module = " 1 word AO / Consistency 1 word " 0x80,0x40
61
EndModule
Module = " 2 words AO / Consistency 1 word" 0x80,0x41
62
EndModule
Module = " 4 words AO / Consistency 1 word" 0x80,0x43
63
EndModule
Module = " 8 words AO / Consistency 1 word" 0x80,0x47
64
EndModule
Module = "16 words AO / Consistency 1 word" 0x80,0x4F
65
EndModule
Module = "32 words AO / Consistency 1 word" 0x80,0x5F
66
EndModule
Module = "64 words AO / Consistency 1 word" 0x80,0x7F
67
EndModule
;**********************************************************
; Output * Total Consistency * Words of Data * 1..64 words
;**********************************************************
Module = " 1 word AO / Total consistency  " 0x80,0xC0
71
EndModule
Module = " 2 words AO / Total consistency " 0x80,0xC1
72
EndModule
Module = " 4 words AO / Total consistency " 0x80,0xC3
73
EndModule
Module = " 8 words AO / Total consistency " 0x80,0xC7
74
EndModule
Module = "16 words AO / Total consistency " 0x80,0xCf
75
EndModule
Module = "32 words AO / Total consistency " 0x80,0xDF
76
EndModule
Module = "64 words AO / Total consistency " 0x80,0xFF
77
EndModule
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
        </article>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章