Invention content
The a kind of of proposition of the embodiment of the present invention supports the IO-LINK master station devices of multibus and method, the object of the invention to exist
All kinds of fieldbus modes complexity are integrated in solving IO-LINK, upgrading used equipment needs to change original control system, be unfavorable for
The upgrading of used equipment.And existing IO-LINK device configurations tool (PDCT) usually connects IO- with wired modes such as USB
LINK main websites need to carry out configuration work in industry spot, inconvenient.
In a first aspect, a kind of IO-LINK master station devices for supporting multibus, including Industrial Ethernet module, CAN bus connect
Mouth mold block, RS485 communication modules, IO-LINK main websites physical layer communication module, central processing module and wireless communication module;
Wherein, Industrial Ethernet module is connected to central processing module by MII interface modes;CAN communication module passes through UART interface
It is connected to central processing module;RS485 communication modules are connected to central processing module by UART interface;Wireless communication module is adopted
It is connect with center processor with UART interface.
Further, Industrial Ethernet module includes data link interface unit, ethernet physical layer chip, network transformation
Device and RJ45 interfaces or the light Ethernet by opto-electronic conversion;The ethernet physical layer chip, network transformer, RJ45 connect
The ethernet physical layer packet sending and receiving of the responsible physical layer of mouth;The data-link of the data link interface unit operation Industrial Ethernet
Road floor.
Further, central processing module includes microprocessor, memory ram, ROM, Flash, MMCD and peripheral circuit
Composition.
Further, wireless communication module is communicated in a manner of wireless ethernet, and uses MQTT agreements and server
Exchange data.
Second aspect, the embodiment of the present invention provide a kind of method for the IO-LINK main websites supporting multibus, the method by
IO-LINK main websites execute, and specifically include:
The device parameter of IO-LINK equipment is read, and carries out the parameter testing of IO-LINK equipment;
Field bus type is determined by the state of DIP switch according to device parameter;
According to identified Field bus type, the periodic data agency towards fieldbus is established;On fieldbus
Controller corresponding process data is addressed to by device address in device parameter and SLOT and subSLOT, to read
Periodic data;
The aperiodicity agent data with server is established by way of wireless connection;
It is sent from the device parameter that the IO-LINK equipment obtains to the server;It is sent to server
Device parameter is for making the server describe file according to the field bus device for automatically generating the IO-LINK main websites;Its
In, field bus device describes file and reads the IO-LINK master for making controller PLC or PAC pass through the fieldbus
Periodic data on standing;Being sent to the device parameter of server also enables terminal device by connecting with the wireless of the server
It connects and debugging is set to IO-LINK equipment progress device parameter.
Further, it reads the device parameter of IO-LINK equipment and carries out the step of the parameter testing of the IO-LINK equipment
Further include before rapid:Initialize IO-LINK communication modules, the ports load IO-LINK protocol stack IO-LINK.
Further, IO-LINK main websites are connected to proxy server by the way of the first MQTT according to terminal device and lead to
It crosses registered events and replys theme, direct parameter access theme, ISDU parameter access theme to be in communication with.
Further, the step of aperiodicity agent data with server is established by way of wireless connection is also wrapped
It includes:Initializing wireless communication module is connected to proxy server using the 2nd MQTT modes, and registers subscription theme;Wherein, institute
Stating subscription theme includes:Device parameter theme, event topic, direct parameter replys theme, ISDU parameters reply theme.
Further, DIP switch forms 3 groups by 32 scales and represents 0-7 8 numbers in total, respectively represents one now
Field bus agreement stack type.
Implement the embodiment of the present invention, has the advantages that:
1, a kind of to support that the device of the IO-LINK main websites of multibus includes:Support the data link of a variety of Industrial Ethernet
Layer module, physical layer block;Support the Can data link layers and physical layer block of DeviceNet and Canopen;It supports
The data link layer and physical layer communication module of Profibus DP and Modbus.And support the wireless communication of wifi or bluetooth
Module.
2, IO-LINK facility informations separately transmit:Process data information is transferred to control by Industrial Ethernet, fieldbus
Control equipment such as PLC or PAC, equipment debugging and event information are transferred to by wireless module on far-end server, by server
It is responsible for processing and is forwarded to mobile end equipment.PDCT tools by Field Force in mobile terminal carry out parameter configuration.This mode
So that without adding event or configuration code on control device PLC or IPC, but thing is handled by additional wireless network channel
Part and configuration information.
3, far-end server is responsible for forwarding the event of IO-LINK equipment, diagnosis and control information.Both it can pass through OPC
The mode of server is integrated into MES system, can also be forwarded to mobile device end, and device configuration is carried out at the scene for Field Force
And control.
4, the PDCT tools at wireless mobile end can lead to mobile PDCT tools and mode and run on local by radio communication
Net or the server in high in the clouds are associated.It carries out IO-LINK main websites in this way to be communicated, to carry out IO-LINK equipment
Parameter configuration and debugging.Field Force's operation being facilitated, Field Force being made to be set without can be carried out IO-LINK into scene
Standby debugging, parameter configuration etc..
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
First embodiment of the invention:
It is that the present invention provides a kind of structural schematic diagram of device that supporting multibus IO-LINK main websites referring to Fig. 1, Fig. 1.This
The purpose of invention is to solve the multibus coexisting issues that current IO-LINK main websites face, and provides a kind of multibus of supporting
IO-LINK master station devices, and the scheme that existing I/O device is smoothly transitted into IO-LINK equipment is provided, the program can retain greatly
Most IO-LINK are in diagnosis, configuration, the technical advantage of installation.And wireless communication is utilized in IO-LINK main websites, it is real
The diagnosis of existing equipment, configuration can be completed flexibly with mobile hand-held device.
The embodiment of the present invention provides a kind of device for supporting multibus IO-LINK main websites, specifically includes:Industrial Ethernet mould
Block, CAN interface module, RS485 communication modules, IO-LINK main websites physical layer communication module, central processing module and nothing
Line communication module.Wherein, the central processing module has multiple UART interfaces;The Industrial Ethernet module passes through MII interfaces
Mode is connected to the central processing module;The CAN communication module is connected to the central processing module by UART interface;
The RS485 communication modules are connected to the central processing module by UART interface;The wireless communication module uses UART
Interface is connect with the center processor.
IO-LINK main websites by fieldbus and main control device communicate and exchange cycle data.Wherein, this implementation
Process data also makes periodic data, event, diagnosis, control data also be aperiodicity data in example.
Industrial Ethernet module includes data link interface unit, ethernet physical layer chip, network transformer and RJ45
Interface or light Ethernet by opto-electronic conversion.Ethernet physical layer chip, network transformer, RJ45 interfaces are responsible for physical layer
Ethernet physical layer packet sending and receiving.Data link interface unit runs the data link layer of Industrial Ethernet, may be used
Software control is lower to support the Industrial Ethernet such as Profinet, PowerLink, EtherCAT, Ethernet/IP, Modbus/TCP
Bus communication.The protocol stack of Industrial Ethernet in central processing module more than operation, to supporting industry ethernet communication.
The PRU-ICSS units in the sitara processors of Ti may be used to realize in the data-link layer unit of Industrial Ethernet, PRU-
ICSS can be by a variety of Industrial Ethernet of programming support, and can be by the data-link layer unit and central processing of Ethernet
Unit integrates, to reduce PCB expenses.
CAN interface module includes that CAN physical layer transceiver and interlock circuit form.CAN interface module is used for
It realizes and supports CANOpen, DeviceNet physical layer and data link layer, and the operation support in central processing unit module
The protocol stack of CANOpen, DeviceNet.CAN interface can realize with the CAN controller for being integrated in microprocessor, or solely
Vertical CAN physical layer transceiver such as ISO1050T is realized.
RS485 communication modules are made of 485 communication isolating transceivers with accessory circuit, and isolated transceiver uses
ISO1176T.RS485 communication modules are used for supporting the physical layer and data link layer communication of Profibus and Modbus, at center
Operation support Profibus and Modbus communication protocol stack in processing module.
Wireless communication module is communicated in a manner of WIFI, bluetooth, GPRS etc., and transparent transmission mould may be used in wireless communication module
Formula is communicated with the server in LAN.Such as:It is communicated using ESP8266.
Central processing module includes microprocessor, memory ram, ROM, Flash and MMCD etc. and peripheral circuit composition.
Central processing module runs real time operating system such as vxWorks, FreeRTOS, TI-RTOS, ucOS, QNX and beat benefit in real time
The linux system of fourth.The task of main operation controller has:The protocol stack of a certain fieldbus above-mentioned, IO-LINK master station protocols
Stack, protocol conversion task, wireless communications task, parameter synchronization and store tasks, major state management.
IO-LINK main websites by radio communication module with scene wireless router access to LAN, by the clothes of LAN
Business device or cloud server are responsible for processing and forwarding.It is event, diagnosis and control information by the information that the radio channel transmits.
Operation monitoring or warning function on the server Realtime Alerts and can remind Field Force to be handled when I/O device is damaged,
Server can also access the MES system of factory by OPC or OPC UA interfaces simultaneously.In addition Field Force passes through mobile device
It is communicated with server, the warning message of mobile device acceptable server, and can have PDCT work(by mobile APP
Can, configuration can be carried out to IO-LINK equipment.
The hardware of IO-LINK main websites is made of central processing module and communication module.Central processing module includes microprocessor
Device is formed with memory.Communication module includes Industrial Ethernet module, CAN interface module, RS485 communication modules, wireless
Communication module, IO-LINK main websites physical layer communication module.
IO-LINK modules are made of digital isolation module and IO-LINK main websites physical layer transceiver module and accessory circuit,
Digital isolation module uses Max14931, IO-LINK main websites physical layer transceiver module that Max14819, center processor is used to use
SPI interface is attached thereto, and SPI connections 4 Max14819, every Max14819 can support two-way IO-LINK to communicate.
Communication module described above is divided into three parts:First part is IO-LINK main websites physical layer communication module, IO-
LINK main websites are connect with live actuator with sensor, for transmit the periodic data of live IO-LINK equipment with it is aperiodic
Property data;Second part is field bus communication, including Industrial Ethernet communication module, CAN interface module, RS485 logical
Believe module.Synchronization can only be communicated using a kind of fieldbus, which kind of communication acquire DIP switch in booting using
The positions 1-3 state determine.The periodic data that IO-LINK communications generate is transmitted on fieldbus and supplies by fieldbus part
Controller uses;Part III is wireless communication section, and wireless communication section transmits IO-LINK main websites physical layer communication module
The aperiodic data come, such as debugging, event, alarm, configuration information are transmitted in network server.
Second embodiment of the invention:
On the basis of one embodiment, referring to Figure 2 to Figure 4, Fig. 2 is a kind of support multibus provided by the invention
The flow diagram of the method for IO-LINK main websites, Fig. 3 are that a kind of support multibus IO-LINK main websites provided by the invention start
Flow diagram, Fig. 4 are a kind of support multibus IO-LINK main websites provided by the invention integrated morphology schematic diagrames.A kind of support
The method of the IO-LINK main websites of multibus, the method by
IO-LINK main websites execute, and specifically include:
S10, reads the device parameter of IO-LINK equipment, and carries out the parameter testing of IO-LINK equipment.
Referring to Fig. 3, when electrifying startup program starts, hardware initialization initializes IO-LINK communication modules, loads IO-
LINK protocol stacks, and the ports IO-LINK are scanned, the parameter of IO-LINK equipment is read, and carry out the parameter inspection of IO-LINK equipment
It looks into.
In IO-LINK main websites, the Process image area of 66 byte-sizeds delimited for each IO-LINK equipment, wherein 32 bytes
As read procedure image area, 32 bytes store read procedure image area property as Process image area, 1 byte is write, and 1 byte storage is write
Process image area property.Data character occupies a byte, and data character is divided into the validity and data type of data, and data have
The highest bit identification of effect property byte, 0 mark data is effective, and 1 indicates data invalid.Data type can be BIT, UINT8,
The types such as UINT16, UINT32, Float, Double.Each data type is encoded for low 7 with data character.According to PDCT
Tool configures the parameter of IO-LINK equipment, determines data type.
S20 determines Field bus type according to device parameter by the state of DIP switch.
DIP1-3 forms 32 system positions, can represent 0-7 8 numbers in total, respectively represent a field bus protocol
Stack type.Profinet agreements are selected when the Field bus type for determining to use by the state of DIP switch such as DIP1-3 is 0
Stack.Different Field bus types will load different driver and protocol stack for different communication modules.For industry
Ethernet module realizes the MAC layer of Industrial Ethernet using the PRU coprocessors that Sitara processors are internally integrated.It is live total
Line type includes:Profinet protocol stacks, Ethernet/IP protocol stacks, Powerlink protocol stacks, Ethercat protocol stacks,
Modbus/TCP protocol stacks, CANOPEN protocol stacks, DeviceNet protocol stacks, Profibus protocol stacks, Modbus protocol stacks.
S30 establishes the periodic data agency towards fieldbus according to identified Field bus type.It is live total
Controller on line is addressed to corresponding process data by device address in device parameter and SLOT and subSLOT, to
Read cycle data.
After having checked IO-LINK device parameters, according to the IO-LINK equipment of connection, the mistake towards fieldbus is established
Journey agent data.Such as Profinet, one SLOT of setting represents IO-LINK main websites, for each IO-LINK equipment, if
A subSlot is set, the process data of each IO-LINK equipment is mapped in subSlot.Controller in Profinet buses
Respective process data can be addressed to by the device addresses IO-LINK and SLOT and subSLOT, to read cycle.
S40 establishes the aperiodicity agent data with server by way of wireless connection.
It, is connected to proxy server by intiating radio module ESP8266 in a manner of WIFI, and ESP8266 modules are integrated
ICP/IP protocol and MQTT agreements, are registered using MQTT modes and subscribe to theme.
The theme of registration has:Device parameter theme, event topic, direct parameter replys theme, ISDU parameters reply theme.
The theme of subscription has:Device parameter confirms that theme, recovery theme, direct parameter access theme, ISDU parameters
Access theme.
S50 sends it from the device parameter that the IO-LINK equipment obtains to the server;It is sent to service
The device parameter of device is used to make the server to describe text according to the field bus device for automatically generating the IO-LINK main websites
Part.
Wherein, field bus device describes file for making controller PLC or PAC pass through described in the fieldbus reading
Periodic data in IO-LINK main websites;Be sent to server device parameter also enable terminal device by with the service
The wireless connection of device is set to debugging to IO-LINK equipment progress device parameter.
According to the parameter of IO-LINK device scans, pass through the device parameter theme sending device parameter in the channels MQTT to generation
Server is managed, the field bus device that server can automatically generate IO-LINK main websites according to the parameter sent describes file.According to
The device description file generated upper according to this can carry out configuration in bus, so as to logical by controller PLC or PAC at the scene
Cross the process data in fieldbus reading IO-LINK main websites.The PDCT configuration tools of any mobile terminal or the ends PC, can adopt
It is connected to proxy server with the mode of MQTT, replys theme by registered events, direct parameter accesses theme, ISDU parameters are visited
Theme is asked to be communicated with IO-LINK main websites.By this communication mechanism, the equipment ginseng of IO-LINK can be carried out with PDCT
Number setting and debugging.
It should be noted that the apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separated, and the component shown as unit can be or can also
It is not physical unit, you can be located at a place, or may be distributed over multiple network units.It can be according to actual
It needs that some or all of module therein is selected to achieve the purpose of the solution of this embodiment.In addition, device provided by the invention
In embodiment attached drawing, the connection relation between module indicates there is communication connection between them, specifically can be implemented as one or
A plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, you can to understand
And implement.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as
Protection scope of the present invention.