gsd文件是什么

发布时间:2024-06-13
西门子的plc采用gsd文件进行接口通信配置,使得不需要更改任何硬件的情况,可以满足客户的诸多需求。
gsd即电子设备数据库文件,用于profibus-dp主站与从站交换数据时的参考数据,当主站与从站使用简介组态时,可以利用组态工具存取当前的参数和有关dp从站的gsd数据(电子设备数据库文件)?。
gsd 文件的组成:
一般规范 这部分包括生产厂商和设备的名称,硬件和软件的版本状况,支持的波特率一可能的监视时间问隔
与dp 主站有关的规范这部分包括只运用于dp 主站的各项参数(如连接从站的多台数或上装和下装能力)。这一部分对从站没有规定;
与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
上一个:麒麟电脑操作系统怎么安装软件(国产麒麟操作系统怎么安装exe)
下一个:遇到连续高温该怎样管理银杏树呢

fang护服干态落絮测试仪组成部分
win10开机黑屏很久才进入系统(wind10开机黑屏好长时间才正常)
ssd硬盘是固态吗,ssd与sd固态硬盘有什么区别
泰捷盒子能连接wifi吗(泰捷盒子有什么功能)
维修电工高级工应知应会考试题库之多选&问答
图解:一饼好普洱是怎样制成的
监护人证明怎么打
肇事逃逸20年如何处罚规定
手机模拟电脑手柄软件(手柄 模拟器)
农村房屋转让合同怎么写才合法