CN105282226A - Control system communication method based on Ethernet - Google Patents

Control system communication method based on Ethernet Download PDF

Info

Publication number
CN105282226A
CN105282226A CN201510552374.9A CN201510552374A CN105282226A CN 105282226 A CN105282226 A CN 105282226A CN 201510552374 A CN201510552374 A CN 201510552374A CN 105282226 A CN105282226 A CN 105282226A
Authority
CN
China
Prior art keywords
communication
communication processor
ethernet
data
processor
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.)
Pending
Application number
CN201510552374.9A
Other languages
Chinese (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.)
Zhejiang Communications Services Co Ltd
Original Assignee
Zhejiang Communications Services 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 Zhejiang Communications Services Co Ltd filed Critical Zhejiang Communications Services Co Ltd
Priority to CN201510552374.9A priority Critical patent/CN105282226A/en
Publication of CN105282226A publication Critical patent/CN105282226A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2869Operational details of access network equipments
    • H04L12/2878Access multiplexer, e.g. DSLAM
    • H04L12/2879Access multiplexer, e.g. DSLAM characterised by the network type on the uplink side, i.e. towards the service provider network
    • H04L12/2881IP/Ethernet DSLAM
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/4185Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by the network communication
    • G05B19/41855Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by the network communication by local area network [LAN], network structure

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a control system communication method based on an Ethernet. The control system communication method is characterized in that mutual communication of a first system and a second system is performed through communication processors, the first system provides a first communication processor, and an Ethernet communication processor serves as the first communication processor; the second system is provided with a CPU and a second communication processor, and the second communication processor uses a dual-port RAM for being directly connected to the second system; and four page frames serve as connection interfaces between the second communication processor and application programs of the CPU, and each used interface must be initialized in a start program and a restart program. According to the invention, mutual communication among different systems is realized through the Ethernet.

Description

A kind of control system communication means based on Ethernet
[technical field]
The present invention relates to the technical field of communication means, particularly based on the technical field of the control system communication means of Ethernet.
[background technology]
Current influential standard for Fieldbus is in the world a lot, is singly the international standard for Fieldbus organized to set up of IEC in 2000 with regard to 8,9 kind more than.Numerous standard for Fieldbus, makes troubles to the integrated of control system, makes the Fieldbus Products of each manufacturers produce be difficult to integrate, and realizes can operating mutually.When bus standard is difficult to unified at the scene, Ethernet obtains in industrial automation and process control field and increases rapidly, now many manufacturers are all for its PLC produced and remote I/O thereof provide the interface and function that are connected with Ethernet, provide and are connected with its control system based on PC with Ethernet.
[summary of the invention]
Object of the present invention solves the problems of the prior art exactly, proposes a kind of control system communication means based on Ethernet, the mutual communication that can realize between different system by Ethernet.
For achieving the above object, the present invention proposes a kind of control system communication means based on Ethernet, comprise the following steps successively:
A) system constructing: the first system adopts communication processor to realize with the intercommunication mutually with second system, and the first system provides the first communication processor, the first described Communication processor adopts ethernet communication processor, second system is provided with CPU and second communication processor, second communication processor adopts two-port RAM to be directly connected to second system, two-port RAM is divided into 4 equal sections being called page frame, the interface that this 4 page frames are connected with the application program of CPU as second communication processor, the interface of each use in startup and must restart initialization in program, in described second system, job request is defined by interface number and job number, and sent to second communication processor through data management function, in second communication processor, the exchange of data is realized by communication function block,
B) H1-ethernet communication: during second system communication, second communication processor has prepared a data buffer zone, and use background communications function " all to send " transfer of data to data buffer zone, then second communication processor creates a H1 frame, and transmits this frame to remote station; A confirmation message be beamed back to second communication processor after remote station receives this H1 frame; The triggering of the data communication of ethernet communication processor in the first system is realized by user program, and the first system provides user interface to realize transmission and the reception of data; The communication connection of second system is completed by the Internet;
C) tcp/ip communication: in the first system and second system, the connection of its tcp/ip communication employs two parameters: IP address and port, it uses and method of attachment adopts mode second system application corresponding to the local port intersection of local station and distant station to require the size of definition transfer of data, do not allow to use default value, and can designated communication job priority, in the global buffer of buffering area tcp/ip communication protocol stack that receives and transmit in communication;
D) realization of ethernet communication: the first system comprises two parts with communicating of second system: the connection configuration of communication processor; Plc communication is programmed; First communication processor configuration of the first system and plc communication programming all use software STEP7, and second communication processor connects configuration and uses Win-NCS configuration software, and PLC programming uses software S5;
D1) in the first system, the realization of ethernet communication data-interface function uses SEND, RECEIVE interface function; In software STEP7 user program, the CPU in the first system and exchanges data using function FC5 and FC6 between the first communication processor has come, and use FC50 and FC60 that the every frame of data for transmission is greater than 240 bytes has come;
D2) ethernet communication of second system realizes, first the ethernet communication should setting up second communication processor connects, the communication link of second communication processor is connected to H1-ethernet communication and is connected two kinds with TCP/IP, and the realization of communication starts by corresponding communication operations and completes; When each respective communication setting up second communication processor connects, think that each connection is as the job number of specifying; Operationally, the communication specifying job number uses the communication operations of specifying to complete the transfer of data of specifying to second system; During system cloud gray model, second communication processor establishes a communications link according to MAC Address, TSAP and configuration, and after communication connection is set up, just log-on data exchanges.
Above-mentioned based in the control system communication means of Ethernet, described second communication processor once can manage nearly 64 job request, comprises second communication processor 32 tie points.
Above-mentioned based in the control system communication means of Ethernet, in described b) step, the task one of second communication processor receives data from the Internet, and be transferred to the user data area of CPU; Two is receive data from the user data area of CPU, and is sent on the Internet.
Above-mentioned based in the control system communication means of Ethernet, described steps d 2) in be provided with the communication application program that can process connection request in second system, communication process block is employed in communication application program, second communication processor is before coming into operation, must initialization, initialized content comprises the local relevant with each connection and Global Information and general parameters.
Beneficial effect of the present invention: utilize Ethernet to realize the intercommunication mutually between two different systems, communication means is more, both Industrial Ethernet H1 can have been used to connect, TCP also can be used to connect, the application scenario that, data volume lower to communications security is large can use UDP to connect.The volume of transmitted data that each H1 or TCP connects can from 16 bytes to 8192 bytes not etc., and maximum 2048 bytes that can reach of UDP, therefore quite flexible, the needs of various control system can be met.The workload of simultaneously programming is also little, and a large amount of communication practical functions has been integrated in functional block and CP all, and user only need complete simple configuration can realize mutual communicating with the simple signal procedure of establishment.
[embodiment]
The present invention is based in the control system communication means of Ethernet, comprise the following steps successively:
A) system constructing: the first system adopts communication processor to realize with the intercommunication mutually with second system, and the first system provides the first communication processor, the first described Communication processor adopts ethernet communication processor, second system is provided with CPU and second communication processor, second communication processor adopts two-port RAM to be directly connected to second system, two-port RAM is divided into 4 equal sections being called page frame, the interface that this 4 page frames are connected with the application program of CPU as second communication processor, the interface of each use in startup and must restart initialization in program, in described second system, job request is defined by interface number and job number, and sent to second communication processor through data management function, in second communication processor, the exchange of data is realized by communication function block,
B) H1-ethernet communication: during second system communication, second communication processor has prepared a data buffer zone, and use background communications function " all to send " transfer of data to data buffer zone, then second communication processor creates a H1 frame, and transmits this frame to remote station; A confirmation message be beamed back to second communication processor after remote station receives this H1 frame; The triggering of the data communication of ethernet communication processor in the first system is realized by user program, and the first system provides user interface to realize transmission and the reception of data; The communication connection of second system is completed by the Internet;
H1-Industrial Ethernet is a kind of agreement based on ethernet standard IEEE802.3, exchanges for the high speed between Programmable Logic Controller, mass data.Exchanges data between its station adopts " H1-frame ", and transmission connects for logic connects, and uses transport service access point (TSAP) to carry out transmission service between different stations.Transmission connects based on addressing information, and addressing information provides the definite path explanation of between two service access points one.Transmission connection employs following two parameters: MAC Address and TSAP (transport service access point).MAC Address, i.e. ethernet node address, define the access application at a station.TSAP identifies the access path of transmission service.
C) tcp/ip communication: in the first system and second system, the connection of its tcp/ip communication employs two parameters: IP address and port, it uses and method of attachment adopts mode second system application corresponding to the local port intersection of local station and distant station to require the size of definition transfer of data, do not allow to use default value, and can designated communication job priority, in the global buffer of buffering area tcp/ip communication protocol stack that receives and transmit in communication;
D) realization of ethernet communication: the first system comprises two parts with communicating of second system: the connection configuration of communication processor; Plc communication is programmed; First communication processor configuration of the first system and plc communication programming all use software STEP7, and second communication processor connects configuration and uses Win-NCS configuration software, and PLC programming uses software S5;
D1) in the first system, the realization of ethernet communication data-interface function uses SEND, RECEIVE interface function; In software STEP7 user program, CPU in the first system and the exchanges data using function FC5 (AG-SENG) between the first communication processor and FC6 (AG-RECE) has come, and the every frame of data for transmission is greater than the use FC50 (AG-LSEND) of 240 bytes and FC60 (AG-LRECE) have been come;
D2) ethernet communication of second system realizes, first the ethernet communication should setting up second communication processor connects, the communication link of second communication processor is connected to H1-ethernet communication and is connected two kinds with TCP/IP, and the realization of communication starts by corresponding communication operations and completes; When each respective communication setting up second communication processor connects, think that each connection is as the job number of specifying; Operationally, the communication specifying job number uses the communication operations of specifying to complete the transfer of data of specifying to second system; During system cloud gray model, second communication processor establishes a communications link according to MAC Address, TSAP and configuration, and after communication connection is set up, just log-on data exchanges.
When second system or when restarting, CPU and second is that the reason device that communicates performs respective boot, and CPU detects the module of installing and also starts application program, then calls initialize routine initialization CP.Devise an initialization audit program in program, if there is initialization mistake, put corresponding initialization error code, and stop the operation of second system, indication mechanism starts unsuccessfully.Second system starts needs about 15s, and after about 15s, second is that communication reason device waits for that the initialization request come from CPU is until initialization completes.The boot time of CPU approximately needs 18s at (comprising the boot time of CP), defines the start-up study timer of a 20s at this.In order to ensure correct guiding and the initialization of second system, and CPU by stop be switched to operational mode or by run be switched to stopping after re-execute cold/warm start time, prevent communication failure, must re invocation second be communicate with managing the initialize routine of device in transmitting tissue's block, cold start-up and warm start tissue block, re-establish connection.
Above-mentioned based in the control system communication means of Ethernet, described second communication processor once can manage nearly 64 job request, comprise second communication processor 32 tie points, in described b) step, the task one of second communication processor receives data from the Internet, and be transferred to the user data area of CPU; Two is receive data from the user data area of CPU, and be sent on the Internet, described steps d 2) in be provided with the communication application program that can process connection request in second system, communication process block is employed in communication application program, second communication processor is before coming into operation, must initialization, initialized content comprises the local relevant with each connection and Global Information and general parameters.
Above-described embodiment is to explanation of the present invention, is not limitation of the invention, anyly all belongs to protection scope of the present invention to the scheme after simple transformation of the present invention.

Claims (4)

1., based on a control system communication means for Ethernet, comprise the following steps successively:
A) system constructing: the first system adopts communication processor to realize with the intercommunication mutually with second system, and the first system provides the first communication processor, the first described Communication processor adopts ethernet communication processor, second system is provided with CPU and second communication processor, second communication processor adopts two-port RAM to be directly connected to second system, two-port RAM is divided into 4 equal sections being called page frame, the interface that this 4 page frames are connected with the application program of CPU as second communication processor, the interface of each use in startup and must restart initialization in program, in described second system, job request is defined by interface number and job number, and sent to second communication processor through data management function, in second communication processor, the exchange of data is realized by communication function block,
B) H1-ethernet communication: during second system communication, second communication processor has prepared a data buffer zone, and use background communications function " all to send " transfer of data to data buffer zone, then second communication processor creates a H1 frame, and transmits this frame to remote station; A confirmation message be beamed back to second communication processor after remote station receives this H1 frame; The triggering of the data communication of ethernet communication processor in the first system is realized by user program, and the first system provides user interface to realize transmission and the reception of data; The communication connection of second system is completed by the Internet;
C) tcp/ip communication: in the first system and second system, the connection of its tcp/ip communication employs two parameters: IP address and port, it uses and method of attachment adopts mode second system application corresponding to the local port intersection of local station and distant station to require the size of definition transfer of data, do not allow to use default value, and can designated communication job priority, in the global buffer of buffering area tcp/ip communication protocol stack that receives and transmit in communication;
D) realization of ethernet communication: the first system comprises two parts with communicating of second system: the connection configuration of communication processor; Plc communication is programmed; First communication processor configuration of the first system and plc communication programming all use software STEP7, and second communication processor connects configuration and uses Win-NCS configuration software, and PLC programming uses software S5;
D1) in the first system, the realization of ethernet communication data-interface function uses SEND, RECEIVE interface function; In software STEP7 user program, the CPU in the first system and exchanges data using function FC5 and FC6 between the first communication processor has come, and use FC50 and FC60 that the every frame of data for transmission is greater than 240 bytes has come;
D2) ethernet communication of second system realizes, first the ethernet communication should setting up second communication processor connects, the communication link of second communication processor is connected to H1-ethernet communication and is connected two kinds with TCP/IP, and the realization of communication starts by corresponding communication operations and completes; When each respective communication setting up second communication processor connects, think that each connection is as the job number of specifying; Operationally, the communication specifying job number uses the communication operations of specifying to complete the transfer of data of specifying to second system; During system cloud gray model, second communication processor establishes a communications link according to MAC Address, TSAP and configuration, and after communication connection is set up, just log-on data exchanges.
2. as claimed in claim 1 based on the control system communication means of Ethernet, it is characterized in that: described second communication processor once can manage nearly 64 job request, comprises second communication processor 32 tie points.
3. as claimed in claim 1 based on the control system communication means of Ethernet, it is characterized in that: in described b) step, the task one of second communication processor receives data from the Internet, and be transferred to the user data area of CPU; Two is receive data from the user data area of CPU, and is sent on the Internet.
4. as claimed in claim 1 based on the control system communication means of Ethernet, it is characterized in that: described steps d 2) in be provided with the communication application program that can process connection request in second system, communication process block is employed in communication application program, second communication processor is before coming into operation, must initialization, initialized content comprises the local relevant with each connection and Global Information and general parameters.
CN201510552374.9A 2015-09-01 2015-09-01 Control system communication method based on Ethernet Pending CN105282226A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510552374.9A CN105282226A (en) 2015-09-01 2015-09-01 Control system communication method based on Ethernet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510552374.9A CN105282226A (en) 2015-09-01 2015-09-01 Control system communication method based on Ethernet

Publications (1)

Publication Number Publication Date
CN105282226A true CN105282226A (en) 2016-01-27

Family

ID=55150531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510552374.9A Pending CN105282226A (en) 2015-09-01 2015-09-01 Control system communication method based on Ethernet

Country Status (1)

Country Link
CN (1) CN105282226A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6004345A (en) * 1998-06-10 1999-12-21 Sudsina; Loretta A. Therapeutic wrap for sore throats
CN104737138A (en) * 2012-10-08 2015-06-24 国际商业机器公司 Adjunct component to provide full virtualization using paravirtualized hypervisors

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6004345A (en) * 1998-06-10 1999-12-21 Sudsina; Loretta A. Therapeutic wrap for sore throats
CN104737138A (en) * 2012-10-08 2015-06-24 国际商业机器公司 Adjunct component to provide full virtualization using paravirtualized hypervisors

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
方彦军, 廖廷常: ""基于以太网的控制系统通信技术研究"", 《工业仪表与自动化装置》 *

Similar Documents

Publication Publication Date Title
CN105610876B (en) Industrial control automation network communication protocol converter and communication protocol conversion method
CN111556136B (en) Data interaction method between internal containers of power edge Internet of things agent
CN102297493B (en) System and method for monitoring air conditioning unit
US8369244B2 (en) Method for operating an ethernet-capable field-bus device
CN114222009A (en) Industrial communication multi-protocol conversion system
CN103095703B (en) A kind of method, equipment and system realizing network and serial port data interactive
CN106016587B (en) multi-connected air conditioning unit and communication method and device thereof
CN107124393B (en) Remote host management over a network
CN104009976A (en) Real-time communication method and equipment used among multiple main station systems
CN107168161A (en) EtherCAT master-salve station communication systems based on ROS systems
CN105356991A (en) Driver real-time synchronization communication device
CN102438017A (en) Routing function-based conversion apparatus of Modbus protocol and BACnet Ethernet protocol and conversion method thereof
CN106506306B (en) Method and device for transmitting data message
CN102983988A (en) Equipment agent device and network management device
CN117749559A (en) Communication method, device and system based on EtherCAT and computing equipment
CN111404739B (en) System for configuring serial port networking attribute
KR20190110705A (en) Gateway system for heterogeneous fieldbus network
CN110958590B (en) Heterogeneous equipment integrated system based on multi-protocol edge computing gateway
CN104821948A (en) Method for realizing openSAFETY function security based on POWERLINK
CN105282226A (en) Control system communication method based on Ethernet
US10374834B2 (en) Modular industrial automation appliance and method for transmitting messages via a backplane bus system of the modular industrial automation appliance
JP2015119389A (en) Communication adapter
WO2012032808A1 (en) Programmable logic controller
US11522762B2 (en) Coordination device and method for providing control applications via a communication network for transmitting time-critical data
CN105743927B (en) A kind of CANopen and DP protocol data conversion method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160127