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>
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值