CN104333474B - Profibus‑dp网关产品参数智能化配置方法 - Google Patents

Profibus‑dp网关产品参数智能化配置方法 Download PDF

Info

Publication number
CN104333474B
CN104333474B CN201410668583.5A CN201410668583A CN104333474B CN 104333474 B CN104333474 B CN 104333474B CN 201410668583 A CN201410668583 A CN 201410668583A CN 104333474 B CN104333474 B CN 104333474B
Authority
CN
China
Prior art keywords
gateway
grades
configuration
network
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410668583.5A
Other languages
English (en)
Other versions
CN104333474A (zh
Inventor
周晓峰
胡炎良
程卫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Super Information Co Ltd
Original Assignee
Hunan Super Information Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Super Information Co Ltd filed Critical Hunan Super Information Co Ltd
Priority to CN201410668583.5A priority Critical patent/CN104333474B/zh
Publication of CN104333474A publication Critical patent/CN104333474A/zh
Application granted granted Critical
Publication of CN104333474B publication Critical patent/CN104333474B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明公开了PROFIBUS‑DP网关产品参数智能化配置方法,包括以下步骤:步骤一:重新设定网关设备的GSD文件,该GSD文件包含网关设备及网关所控制的2级网络所有设备类型的设备定义,即将网关所控制的2级网络的各种设备变成网关设备的各个槽位;步骤二:通过PLC的逻辑编程及配置的专用软件对网络硬件进行配置网关所控制的2级网络设备;步骤三:PLC通过设置参数服务协议(SAP 61)对网关的参数及组态进行配置,直接控制2级网络的智能IO控制器,网关根据收到的该组参数配置2级网络的控制逻辑及轮询机制。

Description

PROFIBUS-DP网关产品参数智能化配置方法
技术领域
本发明涉及工业自动控制领域,特别是PROFIBUS-DP网关产品参数智能化配置方法。
背景技术
PROFIBUS现场总线是世界上应用最广泛的现场总线技术,PROFIBUS既适合于自动化系统与现场信号单元的通讯,也可用于可以直接连接带有接口的变送器、执行器、传动装置和其它现场仪表及设备,对现场信号进行采集和监控,并且用一对双绞线替代了传统的大量的传输电缆,大量节省了电缆的费用,也相应节省了施工调试以及系统投运后的维护时间和费用;目前,常规的网关产品,是集通讯处理和逻辑控制于一体的智能控制单元,通常布置于就地,负责单个区域的设备群控制,可以自主编程独立完成下连基地式智能控制器所连设备的控制逻辑,编程语言是符合IEC61131-3标准的LD(梯形图);由于是分层式的控制方式,仅有网关产品连接在主PLC,2级网络由网关控制;目前模式下,对于系统下,每个网关都必须单独设置,而现场环境下网关都是单独放置的,距离很远,环境条件也不好,各网关的互换性也不好,因此对于现场维护非常不便。
发明内容
本发明的目的是提供一种PROFIBUS-DP网关产品参数智能化配置方法。
本发明是通过以下技术方案予以实现的:
PROFIBUS-DP网关产品参数智能化配置方法,包括以下步骤:
步骤一:重新设定网关设备的GSD文件,该GSD文件包含网关设备及网关所控制的2级网络所有设备类型的设备定义,即将网关所控制的2级网络的各种设备变成网关设备的各个槽位;
步骤二:通过PLC的逻辑编程及配置的专用软件对网络硬件进行配置网关所控制的2级网络设备;
步骤三:PLC通过设置参数服务协议(SAP 61)对网关的参数及组态(包括2级网络设备数,超时时间,每个2级网络设备的IO数,IO类型及地址影射,操作逻辑等信息)进行配置,直接控制2级网络的智能IO控制器,网关根据收到的该组参数配置2级网络的控制逻辑及轮询机制,具体步骤如下:
步骤①:修改PLC的参数设置,利用DP协议设置参数的服务(SAP61),将2级网络组态配置参数下载到网关;
步骤②:网关根据PLC下载的2级网络组态配置参数转换为相应的SS-Pro虚拟机轮询参数及轮询策略;
步骤③:启动虚拟机。
附图说明
图1是本发明的软件设计流程图。
具体实施方式
下面结合附图对本发明的实施例做进一步描述:
如图1所示,PROFIBUS-DP网关产品参数智能化配置方法,按以下步骤进行:
步骤一:重新设定网关设备的GSD文件,该GSD文件包含网关设备及网关所控制的2级网络所有设备类型的设备定义,即将网关所控制的2级网络的各种设备变成网关设备的各个槽位;
步骤二:通过PLC的逻辑编程及配置的专用软件对网络硬件进行配置网关所控制的2级网络设备;
步骤三:PLC通过设置参数服务协议(SAP 61)对网关的参数及组态(包括2级网络设备数,超时时间,每个2级网络设备的IO数,IO类型及地址影射,操作逻辑等信息)进行配置,直接控制2级网络的智能IO控制器,网关根据收到的该组参数配置2级网络的控制逻辑及轮询机制,具体操作步骤如下:
①. PLCDP协议设置参数的服务(SAP61)数据包:
SAP 61(Set_Prm )
SD2 LE LER SD2 DA SA FC DSAP SSAP DU FCS ED
68H X X 68H 8X 8X X 61/3DH 62/3EH X... X l6H
VPC3+C 分析前7 个字节(不含 User_Prm_Data(byte10-byte243))或前 8 个字节(含 User_Prm_Data(byte10-byte243)),前7 个字节是依据标准规定的,第 8 个字节用于 VPC3+C 的特性描述,其他字节是与实际应用相关的,如果使用PROFIBUS DP扩展功能,字节7-9 被称为 DPV1_Status,通常User_Prm_Data从第10 字节开始,不推荐将 DPV1_Status(bytes 7-9 )用于用户参数,User_Prm_Data区域从(bytes 10 - bytes 243 ),因此,我们使用User_Prm_Data(bytes10-byte243)作为2级网络组态参数其具体定义如下:
typedef struct DEVICE_HEADER
{
unsigned short Active;
unsigned char ver;
unsigned char total_ScanTimer;
unsigned char dev_num;
unsigned char BaudrateIndex;
unsigned char ProtocolIndex;
unsigned char Reserved[34];
}
DEVICE_HEADER;
typedef struct DEVICE_FOR_GATEWAY
{
unsigned char dev_type:5; //空设备:0,0804:1,0800:2,2010:3,0817:4,RTD:5...
unsigned char ver:3;
unsigned char id:5;
unsigned char BusType:3:
unsigned char ScanTimer:4;
unsigned char Timeout:4;
}
DEVICE_FOR_GATEWAY;
typedef struct DEVICE_TABLE
{
DEVICE_HEADER Header;
DEVICE_FOR_GATEWAY dev[32];
}
DEVICE_TABLE;
前41个字节为参数头,描述2级网络组态的整体信息,紧接着6*32字节为各设备信息;
②.PLC与网关数据交换时.
读输入数据的244个字节的最后4个字节(240-243)作为2级网络设备是否在线的标志位(目前工作方式通常为对网关用SS-pro编程,使用紧接着设备input状态后的字节作为伴随处理的断线标志位),前240个字节作为设备input量(与目前方式相同,但目前方式不是固定字节数,是根据SS-pro设定的设备),前240个字节的数据结构如下:
设备1 设备2 ... 设备n Byte240 Byte241 Byte242 Byte243
DI,AI DI,AI ... DI,AI 设备7-0 状态 设备15-8 状态 设备23-16 状态 设备31-24状态

Claims (1)

1.PR0FIBUS-DP网关产品参数智能化配置方法,包括以下步骤:
步骤一:重新设定网关设备的GSD文件,该GSD文件包含网关设备及网关所控制的2级网络所有设备类型的设备定义,即将网关所控制的2级网络的各种设备变成网关设备的各个槽位;
步骤二:通过PLC的逻辑编程及配置的专用软件对网络硬件进行配置网关所控制的2级网络设备;
步骤三:PLC通过设置参数服务协议对网关的参数及组态进行配置,所述参数及组态包括2级网络设备数、超时时间、每个2级网络设备的I0数、I0类型及地址影射、操作逻辑,直接控制2级网络的智能IO控制器,网关根据收到的2级网络设备数、超时时间、每个2级网络设备的I0数及I0类型的参数配置2级网络的控制逻辑及轮询机制,具体步骤如下:
步骤①:修改PLC的参数设置,利用DP协议设置参数的服务,将2级网络组态配置参数下载到网关;
步骤②:网关根据PLC下载的2级网络组态配置参数转换为相应的SS-Pro虚拟机轮询参数及轮询策略;
步骤③:启动虚拟机。
CN201410668583.5A 2014-11-21 2014-11-21 Profibus‑dp网关产品参数智能化配置方法 Active CN104333474B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410668583.5A CN104333474B (zh) 2014-11-21 2014-11-21 Profibus‑dp网关产品参数智能化配置方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410668583.5A CN104333474B (zh) 2014-11-21 2014-11-21 Profibus‑dp网关产品参数智能化配置方法

Publications (2)

Publication Number Publication Date
CN104333474A CN104333474A (zh) 2015-02-04
CN104333474B true CN104333474B (zh) 2017-07-18

Family

ID=52408133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410668583.5A Active CN104333474B (zh) 2014-11-21 2014-11-21 Profibus‑dp网关产品参数智能化配置方法

Country Status (1)

Country Link
CN (1) CN104333474B (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811341A (zh) * 2015-05-08 2015-07-29 湖南先步信息股份有限公司 一种网络适配器参数自动化配置方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801016A (zh) * 2005-09-19 2006-07-12 上海电器科学研究所(集团)有限公司 带Profibus-DP总线接口的远程IO模拟量模块
CN201047911Y (zh) * 2005-09-19 2008-04-16 上海电器科学研究所(集团)有限公司 一种带Profibus-DP总线接口的远程IO模拟量模块
CN202771226U (zh) * 2012-06-28 2013-03-06 上海华建电力设备股份有限公司 一种profibus-dp1主站通讯服务器
CN103513620A (zh) * 2012-06-27 2014-01-15 上海华建电力设备股份有限公司 一种profibus-dp1主站通讯服务器及其实现方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7054922B2 (en) * 2001-11-14 2006-05-30 Invensys Systems, Inc. Remote fieldbus messaging via Internet applet/servlet pairs
EP2657797B1 (de) * 2012-04-27 2017-01-18 Siemens Aktiengesellschaft Verfahren zum Betreiben eines redundanten Automatisierungssystems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801016A (zh) * 2005-09-19 2006-07-12 上海电器科学研究所(集团)有限公司 带Profibus-DP总线接口的远程IO模拟量模块
CN201047911Y (zh) * 2005-09-19 2008-04-16 上海电器科学研究所(集团)有限公司 一种带Profibus-DP总线接口的远程IO模拟量模块
CN103513620A (zh) * 2012-06-27 2014-01-15 上海华建电力设备股份有限公司 一种profibus-dp1主站通讯服务器及其实现方法
CN202771226U (zh) * 2012-06-28 2013-03-06 上海华建电力设备股份有限公司 一种profibus-dp1主站通讯服务器

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《PROFIBUS-DP现场总线智能从站通信协议研究 》;方彦军;《仪表技术与传感器》;20041225;第10卷(第12期);第38-40页 *
《基于Profibus_DP智能温度巡检仪的设计与开发》;张倩等;《电力科学与工程》;20121228;第28卷(第12期);第39-44页 *

Also Published As

Publication number Publication date
CN104333474A (zh) 2015-02-04

Similar Documents

Publication Publication Date Title
CN108847979B (zh) 一种基于scada的自适应组态系统及方法
CN108769165A (zh) 一种物联网中数据处理方法、物联网接入系统
EP3616365B1 (de) Verfahren zum betreiben eines feldgeräts
JP6885039B2 (ja) 通信システム、通信装置および通信プログラム
US20090326852A1 (en) Method for Testing Device Descriptions for Field Devices of Automation Technology
Thramboulidis Development of distributed industrial control applications: The CORFU framework
US20210351982A1 (en) System, Computer Program, Computer-Readable Medium and Method for Automatically Configuring the System
JP2013157752A (ja) データ中継装置、データ送信装置、ネットワークシステム
CN201708820U (zh) Modbus与profibus-dp的协议转换器
CN109814482B (zh) 机器人的控制器及其控制方法和工业机器人
CN103532835A (zh) 通用物联网关
Hammerstingl et al. Unified Plug&Produce architecture for automatic integration of field devices in industrial environments
CN107222458A (zh) 一种兼容Modbus协议的BACnet协议栈的数据处理方法及系统
WO2017182201A1 (de) Verfahren zur zustandsüberwachung einer anlage der prozessautomatisierung
CN105323330A (zh) 采用网络环拓扑的工业控制装置的互联网协议寻址
CN109361585A (zh) 一种主节点自动设置子节点波特率和地址的方法
CN104301813A (zh) 以太无源光网络系统及配置方法
CN104333474B (zh) Profibus‑dp网关产品参数智能化配置方法
CN105420443A (zh) 转炉倾动控制系统
CN110300055A (zh) 异构现场总线用网关系统
CN105939211B (zh) 网络设备异常时的恢复方法及装置
EP3759889B1 (de) Verfahren zum etablieren einer netzwerkkommunikation in einer anlage der automatisierungstechnik
JP2004306200A (ja) ロボット制御システム
CN108243232B (zh) 一种工业网络信息互联方法与系统
CN104950880A (zh) 工控设备调试系统及方法

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Intelligent PROFIBUS-DP gateway production parameter configuration method

Effective date of registration: 20190522

Granted publication date: 20170718

Pledgee: Bank of Communications Co.,Ltd. Hunan Branch

Pledgor: HUNAN SUPER INFORMATION Co.,Ltd.

Registration number: 2019430000045

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20201214

Granted publication date: 20170718

Pledgee: Bank of Communications Co.,Ltd. Hunan Branch

Pledgor: HUNAN SUPER INFORMATION Co.,Ltd.

Registration number: 2019430000045

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Intelligent configuration method of product parameters for PROFIBUS-DP gateway

Effective date of registration: 20221101

Granted publication date: 20170718

Pledgee: Huarong Bank of Xiangjiang Limited by Share Ltd. Changsha branch

Pledgor: HUNAN SUPER INFORMATION Co.,Ltd.

Registration number: Y2022430000095