The content of the invention
EtherCAT provided by the invention based on SPARC architecture microprocessors and Modbus protocol conversion gateways, can
Farthest improve security and production autonomous control ability, further expand the communication scope of application, and significantly subtract
Few cost.
Turn in a first aspect, the present invention provides a kind of EtherCAT based on SPARC architecture microprocessors and Modbus agreements
Draping is closed, including:
EtherCAT is connected with least two EtherCAT communication interfaces from station control, for handle EtherCAT from
Physical layer of standing and data link layer protocol;
RS-485 interface circuits, for carrying out bi-directional conversion to Modbus-RTU protocol data frames and 485 signal data frames
Processing;
SPARC architecture microprocessors, for from station control and passing through string with by the EtherCAT that communication bus is connected
The RS-485 interface circuits of port communications connection carry out two-way communication and by the EtherCAT from the EtherCAT of station control from
The Modbus-RTU master station applications layer protocol of application layer protocol and the RS-485 interface circuits of standing carries out communication conversion.
Alternatively, the SPARC architecture microprocessors include:
Shift control module, for by EtherCAT slave station application layer protocols of the EtherCAT from station control and institute
The Modbus-RTU master station applications layer protocol for stating RS-485 drive circuits carries out communication conversion;
Interrupt response module, for receiving the IRQ interrupt signals produced by EtherCAT from station control, and according to described
Interrupt signal performs IRQ interrupt process.
Alternatively, the shift control module includes:
First protocol conversion module, for reading and writing EtherCAT slave station protocols data packet and being parsed to the data packet
Then valid data after EtherCAT slave station protocol resolve packets are converted into Modbus-RTU protocol data frames simultaneously by processing
Export to RS-485 interface circuits;
Second protocol modular converter, for receiving and dispatching Modbus-RTU protocol data frames and being carried out to the data frame at parsing
Reason, the valid data after then Modbus-RTU protocol data frames are parsed are converted into EtherCAT slave station protocols data packet and defeated
Go out to EtherCAT from station control.
Alternatively, the gateway further includes:
SRAM, is connected with the SPARC architecture microprocessors, and for storing the journey of SPARC architecture microprocessors operation
Sequence and data message;
Flash, is connected with the SPARC architecture microprocessors, and starts for storing needed for SPARC architecture microprocessors
The program of loading, the configuration information of the EtherCAT slave stations application layer protocol and Modbus-RTU protocol stacks and described
The configuration information of Modbus-RTU master station applications layer protocol and EtherCAT protocol stacks.
Alternatively, the gateway further includes:
EEPROM, is connected by iic bus with the EtherCAT from station control, for store the EtherCAT from
The configuration information of station control.
Alternatively, the RS-485 interface circuits include:
RS-485 drive circuits, are connected with SPARC architecture microprocessors and RS-485 interfaces respectively, for by described in
The Modbus-RTU protocol data frames of SPARC architecture microprocessors are sent with RS485 signals, or read Modbus-RTU slave stations
485 signals that equipment is sent through RS-485 interfaces with Modbus-RTU protocol data frames send to SPARC architecture microprocessors into
Row dissection process;
RS-485 interfaces, for receiving and dispatching RS-485 signals.
Alternatively, the RS-485 interface circuits further include:
Optical coupling isolator, is connected with RS-485 drive circuits and SPARC architecture microprocessors respectively, for isolating 485 cores
The communications pins of piece and the serial ports pin of SPARC architecture microprocessors.
Alternatively, the EtherCAT passes through EBUS Low voltage differential signaling lines from station control and EtherCAT communication interfaces
Connection, and work mould, differential mode inductance are set on the EBUS Low voltage differential signalings line.
EtherCAT provided in an embodiment of the present invention based on SPARC architecture microprocessors and Modbus protocol conversion nets
Close, the gateway mainly uses 32 domestic microprocessors of SPARC V8 frameworks, passes through parallel bus and EtherCAT slave station controls
Device ET1100 communications processed, and be connected by serial ports with RS485 interface circuits and carry out Modbus-RTU data frame transmitting-receivings, and then utilize
SPARC architecture microprocessors lead to the EtherCAT slave stations application layer protocol and Modbus-RTU master station application layer protocols
Letter conversion, realizes Modbus networks being incorporated to EtherCAT networks, be conducive to the centralized Control of equipment, improve the effect of automation
Rate.
Meanwhile the present invention is by using 32 domestic microprocessors of SPARC V8 frameworks, the one side SPARC V8 framves
Structure microprocessor uses register window structure, and function call speed is fast, while SPARC V8 frameworks are Open Source Frameworks, therefore,
Design and production entirely autonomousization can be realized using the architecture microprocessor;It is on the other hand, also further to improve information security,
Realize entirely autonomous controllable.
In conclusion gateway of the present invention farthest improves security and production autonomous control ability, into one
Step expands the communication scope of application, and cost is greatly reduced.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
Only it is part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill
Personnel's all other embodiments obtained without making creative work, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of EtherCAT based on SPARC architecture microprocessors and Modbus protocol conversion nets
Close, as shown in Figure 1, the gateway includes:
EtherCAT is connected, for handling EtherCAT from station control 11 with least two EtherCAT communication interfaces
Slave station physical layer and data link layer protocol;
RS-485 interface circuits 12, for carrying out two-way turn to Modbus-RTU protocol data frames and 485 signal data frames
Change processing;
SPARC architecture microprocessors 13, for from station control and passing through with by the EtherCAT that communication bus is connected
The RS-485 interface circuits of serial communication connection carry out two-way communication and the EtherCAT by the EtherCAT from station control
Slave station application layer protocol and the Modbus-RTU master station applications layer protocol of the RS-485 interface circuits carry out communication conversion.
EtherCAT provided in an embodiment of the present invention based on SPARC architecture microprocessors and Modbus protocol conversion nets
Close, the gateway mainly uses 32 domestic microprocessors of SPARC V8 frameworks, passes through parallel bus and EtherCAT slave station controls
Device ET1100 communications processed, and be connected by serial ports with RS485 interface circuits and carry out Modbus-RTU data frame transmitting-receivings, and then utilize
SPARC architecture microprocessors lead to the EtherCAT slave stations application layer protocol and Modbus-RTU master station application layer protocols
Letter conversion, realizes Modbus networks being incorporated to EtherCAT networks, be conducive to the centralized Control of equipment, improve the effect of automation
Rate.
Meanwhile the present embodiment is by using 32 domestic microprocessors of SPARC V8 frameworks, the one side SPARC V8
Architecture microprocessor uses register window structure, and function call speed is fast, while SPARC V8 frameworks are Open Source Frameworks, because
This, design and production entirely autonomousization can be realized using the architecture microprocessor;On the other hand, it is also further to improve information peace
Entirely, realize entirely autonomous controllable.
In conclusion gateway described in the present embodiment farthest improve security and production autonomous control ability, into
One step expands the communication scope of application, and cost is greatly reduced.
Alternatively, as shown in Fig. 2, the SPARC architecture microprocessors 13 include:
Shift control module 131, for the EtherCAT slave station application layer protocols by the EtherCAT from station control
Communication conversion is carried out with the Modbus-RTU master station applications layer protocol of the RS-485 drive circuits;
Interrupt response module 132, the IRQ interrupt signals produced for reception by EtherCAT from station control, and according to
The interrupt signal performs IRQ interrupt process.
Alternatively, the shift control module 131 includes:
First protocol conversion module 1311, for reading and writing EtherCAT slave station protocols data packet and being carried out to the data packet
Then valid data after EtherCAT slave station protocol resolve packets are converted into Modbus-RTU protocol datas by dissection process
Frame is simultaneously exported to RS-485 interface circuits;
Second protocol modular converter 1312, for receiving and dispatching Modbus-RTU protocol data frames and being solved to the data frame
Analysis is handled, and the valid data after then Modbus-RTU protocol data frames are parsed are converted into EtherCAT slave station protocol data packets
And export to EtherCAT from station control.
Specifically, the first protocol conversion module 1311 of SPARC architecture microprocessors 13 described in the present embodiment is by parallel
Bus responds slave station protocol data packets of the EtherCAT from station control ET1100, and resolve packet and processing are packaged into
Modbus-RTU protocol data frame formats, export to RS-485 interface circuits;
The second protocol modular converter 1312 of the SPARC architecture microprocessors 13 responds RS-485 interfaces electricity by serial ports
The Modbus-RTU protocol data frames on road, and data frame analyzing processing is packaged into slave station protocol data packet format, output is extremely
EtherCAT is from station control;And then realize that two-way interconnections of the EtherCAT between station control and RS-485 interface circuits is mutual
It is logical so that the gateway intelligent can adapt to EtherCAT agreements and Modbus agreements.
Meanwhile SPARC architecture microprocessors 13 and EtherCAT between station control ET1100 except parallel communications connects
Outside mouthful, ET1100_IRQ interrupt signals are further included;Wherein, the ET1100_IRQ interrupt signals by EtherCAT from station control
ET1100 produces the IRQ2 interruptions to SPARC architecture microprocessors 13, is EtherCAT from station control ET1100 application layer things
Part interrupts and clock sync break signal, the interrupt response module of SPARC architecture microprocessors 13 are responded by this interrupt signal
The various application-layer events of EtherCAT communications;And then improve the work safety and work efficiency of the gateway.
Alternatively, the gateway further includes:
SRAM14, is connected with the SPARC architecture microprocessors, and for storing the operation of SPARC architecture microprocessors
Program and data message;
Flash15, is connected with the SPARC architecture microprocessors, and starts SPARC architecture microprocessors institute for storing
The program that need to be loaded, the configuration information of the EtherCAT slave stations application layer protocol and Modbus-RTU protocol stacks and described
The configuration information of Modbus-RTU master station applications layer protocol and EtherCAT protocol stacks.
Specifically, SPARC architecture microprocessors described in the present embodiment 13 extends out static state by 16 data address bus
Random access memory SRAM and flash ROM FLASH.
Alternatively, the gateway further includes:
EEPROM16, is connected by iic bus with the EtherCAT from station control, for storing the EtherCAT
From the configuration information of station control.
Alternatively, the RS-485 interface circuits 12 include:
RS-485 drive circuits 121, are connected with SPARC architecture microprocessors and RS-485 interfaces respectively, for by described in
The Modbus-RTU protocol data frames of SPARC architecture microprocessors are sent with RS485 signals, or read Modbus-RTU slave stations
485 signals that equipment is sent through RS-485 interfaces with Modbus-RTU protocol data frames send to SPARC architecture microprocessors into
Row dissection process;
RS-485 interfaces 122, for receiving and dispatching RS-485 signals.
Alternatively, the RS-485 interface circuits 12 further include:
Optical coupling isolator 123, is connected with RS-485 drive circuits and SPARC architecture microprocessors respectively, for isolating 485
The communications pins of chip and the serial ports pin of SPARC architecture microprocessors.
Specifically, by RS-485 drive circuits 121 and SPARC in RS-485 interface circuits described in the present embodiment 12
Architecture microprocessor sets optically coupled isolator 123, on the one hand improves the system anti-electromagnetic interference capability of the gateway;It is another
Aspect also realizes the electrical isolation of Modbus-RTU communication fields side and gateway system side, is done so as to improve the anti-electromagnetism of slave station system
The ability disturbed.
Meanwhile the RS-485 interface circuits on 485 difference transmission lines also by setting TVS pipe and terminal partial pressure electricity
Resistance, further increases the antijamming capability of the gateway communication.
Alternatively, the EtherCAT passes through EBUS Low voltage differential signaling lines from station control and EtherCAT communication interfaces
Connection, and work mould, differential mode inductance are set on the EBUS Low voltage differential signalings line.
Specifically, the EBUS low pressure in the present embodiment in EtherCAT between station control and EtherCAT communication interfaces
Common mode, differential mode inductance are set on difference transmission lines, further improve the anti-common mode of the gateway, the ability of differential mode electromagnetic interference.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, the change or replacement that can readily occur in, all should
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to scope of the claims.