Utility model content
The utility model provides a kind of programmable logic controller (PLC) based on industrial real-time ethernet, can solve above-mentioned technology
Problem.
Specifically, including technical solution below:
Provide a kind of programmable logic controller (PLC) based on industrial real-time ethernet, comprising: power module, master control mould
Block, I/O expansion module and pedestal;
The pedestal includes at least three jacks, is provided with power bus and industry ethernet in each jack;
The power module, the main control module and the I/O expansion module are respectively inserted into the different institutes of the pedestal
It states in jack;Wherein,
The main control module includes microprocessor unit and ethernet communication unit, the microprocessor unit and it is described with
Too Netcom's news unit communication connection, and the main control module is communicated by the ethernet communication unit with the I/O expansion module
Connection.
In a kind of possible embodiment, the main control module further includes IEC61131-3 unit;
The IEC61131-3 unit and microprocessor unit communication connection.
In a kind of possible embodiment, the main control module further includes all purpose communication unit;
The all purpose communication unit and microprocessor unit communication connection, all purpose communication unit is used for and network
Interface connection.
In a kind of possible embodiment, the network interface includes RS232 interface, RS485 interface, Zigbee interface
At least one of.
In a kind of possible embodiment, the main control module further includes display unit;
The display unit and microprocessor unit communication connection.
In a kind of possible embodiment, the main control module further includes positioning unit;
The positioning unit and microprocessor unit communication connection.
In a kind of possible embodiment, the main control module further includes failure diagnosis unit;
The failure diagnosis unit and microprocessor unit communication connection.
In a kind of possible embodiment, the main control module further includes storage unit;
The storage unit and microprocessor unit communication connection.
In a kind of possible embodiment, the programmable logic controller (PLC) further includes redundant module;
The redundant module is arranged on the base, different from the power module, the main control module and the IO
In jack where expansion module;
The main control module further includes redundancy control unit, the redundancy control unit and microprocessor unit communication
Connection, and the main control module is communicated to connect by the redundancy control unit and the redundant module.
The beneficial effect of technical solution provided by the embodiment of the utility model is:
Programmable logic controller (PLC) provided by the utility model, by setting main control module and I/O expansion module between with
Too net connection, so that main control module can be communicated to connect based on Ethernet by ethernet communication unit and I/O expansion module.This can
Programmed logic controller is avoided using dedicated asic chip, and main control module and IO can be realized by the way that ethernet communication unit is arranged
Data interaction between expansion module, and ethernet communication unit can be by using common PHY chip and exchange chip
It completes PLC system hardware design and meets industrial application demand so as to reduce the cost of manufacture of PLC.
Specific embodiment
To keep the technical solution of the utility model and advantage clearer, the utility model is implemented below in conjunction with attached drawing
Mode is described in further detail.
It is understood that " Ethernet " is the most general communication protocol standard that existing local area network uses.The standard is fixed
The type of cable and signal processing method that justice uses in local area network (LAN).In the utility model embodiment, " Ethernet "
It is equivalent to physical medium, for realizing being in communication with each other between module, in order to meet industrial requirement, the real-time ether of industry can be used
Net.More specifically, " Ethernet " can be standard ethernet, it is " standard ethernet that " ethernet communication unit ", which accordingly can be used,
Communication unit ".
The utility model embodiment provides a kind of programmable logic controller (PLC) based on industrial real-time ethernet, such as Fig. 1
Shown, which includes: power module, main control module, I/O expansion module and pedestal;
Pedestal includes at least three jacks, is provided with power bus and industry ethernet in each jack;
Power module, main control module and I/O expansion module are respectively inserted into the different jacks of pedestal;Wherein,
Main control module includes microprocessor unit and ethernet communication unit, microprocessor unit and ethernet communication unit
Communication connection, and main control module is communicated to connect by ethernet communication unit and I/O expansion module.
In application, by the jack of power module, main control module and I/O expansion module difference inserted base, so that master control mould
Block and I/O expansion module are connect by power bus with power module, while main control module and I/O expansion module being made to pass through Ethernet
Bus is connected on Ethernet.Within a surface sweeping period, be based on Ethernet, the microprocessor unit of main control module can by with
Too net communication unit is acquired and calculates (logic and/or arithmetic operator) to the data of I/O expansion module, then again by with
Too net communication unit, which exports the data after calculating, gives I/O expansion module, controls the operation of I/O expansion module.So circulation, until
Programmable logic controller (PLC) is out of service.
Programmable logic controller (PLC) provided by the utility model, by setting main control module and I/O expansion module between with
Too net connection, so that main control module can be communicated to connect based on Ethernet by ethernet communication unit and I/O expansion module.This can
Programmed logic controller is avoided using dedicated asic chip, and main control module and IO can be realized by the way that ethernet communication unit is arranged
Data interaction between expansion module, and ethernet communication unit can be by using common PHY chip and exchange chip
It completes PLC system hardware design and meets industrial application demand so as to reduce the cost of manufacture of PLC.
In addition, the advantages of Ethernet is numerous, for example, communication speed is fast, hot plug is supported, the real-time of product can be with
The upgrading of ethernet technology, the promotion of network transfer speeds and be improved.Using this communication modes, so that programmable logic
Controller has the advantages that high speed, open interface and support hot plug of Ethernet, while also improving programmable logic
Controller is in the safety of industrial control field, stability, real-time, flexibility and compatibility.
Jack on pedestal is used to plug the modular assembly of programmable logic controller (PLC), the corresponding insertion one of each modular assembly
In a jack.The quantity of jack can be configured with specific reference to the quantity of modular assembly, by taking Fig. 1 as an example, Programmable logical controller
Device includes power module, main control module, I/O expansion module and redundant module (will be described hereinafter), therefore settable pedestal has four
A jack.And in fact, since I/O expansion module may include multiple modules (I/O expansion module 1 shown in FIG. 1, I/O expansion module
2, I/O expansion module 3 etc.), such as analog input/output module, digital quantity input/output module, counter module, PWM
Output module, relay output control module and communication expansion module (as shown in Figure 2).It therefore, can according to actual needs, the bottom of at
Setting has the jack of respective numbers on seat.
Be provided with power bus and industry ethernet on pedestal in each jack, power module by power bus to its
He powers at modular assembly, wherein power supply may include DC5V power-supply system and DC24V power-supply system.Industry ethernet makes each component
In access network based on ethernet.
In above-mentioned programmable controller, main control module develops environment phase as key process unit, with PLC system
Even, the functions such as upload, downloading, operation, the on-line debugging of PLC engineering are realized.Wherein, the microprocessor unit of main control module is used for
Acquisition, operation, processing and the control of signal;Ethernet communication unit is the Ethernet interface of programmable logic controller (PLC), is used for
Data interaction between main control module and I/O expansion module is realized and is controlled data acquisition, operation and the output of I/O expansion module.
Too net communication unit can run on standard ethernet medium, transmit for solving data in Industry Control and data collecting field
The problem of real-time.
In addition, ethernet communication unit can also be communicated with external I/O unit, extension Communication Card, realization can
The extension of programmed logic controller controller resource.
Further, main control module is using microprocessor unit as core, can also other multiple unit blocks of carry, for example,
As shown in Fig. 2, can carry IEC61131-3 unit, all purpose communication unit, display unit, positioning unit, failure diagnosis unit, deposit
Storage unit etc..
Below in conjunction with attached drawing 2, respectively to can the unit block of carry illustrate.
In a kind of possible embodiment, can make main control module includes IEC61131-3 unit, IEC61131-3 unit
It is communicated to connect with microprocessor unit.
IEC61131-3 unit between PLC secondary development environment and programmable logic controller (PLC) engineering downloading with
Biography, on-line debugging and interactive correspondence.The data interaction with exploitation environment can be achieved, carry out Hardware I/O resource in exploitation environment
Configuration, and the project file after secondary development, compiling can be handed over by ethernet communication unit and IEC61131-3 unit
Mutually.
The utility model provides the IEC61131-3 second development interface of standard, can be widely applied to petroleum, chemical industry, wisdom
The fields such as urban construction also have practicability while having versatility.
In a kind of possible embodiment, can make main control module further includes all purpose communication unit;All purpose communication unit and
Microprocessor unit communication connection.
All purpose communication unit for being connect with network interface, network interface may include RS232 interface, RS485 interface,
At least one of Zigbee interface.Fig. 2 shows include the case where three interfaces simultaneously.All purpose communication unit use is total on site
Data acquisition control etc. in gauze network, and the quadratic programming to these general-purpose interfaces can be realized by programmable interface.
In a kind of possible embodiment, can also make main control module includes display unit;Display unit and microprocessor
Unit communication connection.
Display unit can be used for indicating the operating status of microprocessing unit in real time.Including RS232, RS485,
Zigbee, Ethernet data transmitting-receiving instruction;Microprocessor unit and the instruction of I/O unit connection status, microprocessor unit are run
State instruction, the instruction of microprocessor unit operation troubles etc..
Illustratively, display unit can be LED display unit, can indicate system running state using LED display unit
(1HZ flashing), malfunction (be always on/often go out), connection status are (not connected: 4HZ flashing;Normal connection: it is always on;It goes offline: 2HZ
Flashing), communication indicator light (fieldbus data transmitting-receiving instruction).
In a kind of possible embodiment, can also make main control module includes positioning unit;Positioning unit and microprocessor
Unit communication connection.
Positioning unit positions the installation site of current device for realizing the acquisition of location information, and will positioning
Information gives microprocessor unit.
Illustratively, positioning unit can be GPS positioning unit, using high-precision GPS positioning unit (chip), it can be achieved that can
The real-time acquisition of programmed logic controller installation site uploads, in conjunction with generalized information system, it can be achieved that programmable logic controller (PLC) equipment is pacified
The real-time acquisition of holding position uploads and automatic Display.
In a kind of possible embodiment, can also make main control module includes failure diagnosis unit;Failure diagnosis unit and
Microprocessor unit communication connection.
Failure diagnosis unit is for diagnosing main control module oneself state, it can also be used to diagnose its of programmable logic controller (PLC)
He can carry out current failure when monitoring the system failure modular assembly (for example, I/O expansion module and redundant module) state
It analyzes, diagnosis, forms report and alarm, to guarantee discovery and timely handling failure in real time.
In a kind of possible embodiment, can also make main control module includes storage unit;Storage unit and microprocessor
Unit communication connection.
Storage unit is used for process data when inherent parameters and the operation of storage system, including configuration information, log letter
Breath etc..Ferroelectric memory can be used in memory cell, has both the non-volatile data storage characteristic of ROM and the unlimited reading of RAM
It writes, the advantages such as high-speed read-write and low-power consumption.
In above-mentioned programmable logic controller (PLC), programmable logic controller (PLC) further includes redundant module;Redundant module is set
It sets on pedestal, different from the jack where power module, main control module and I/O expansion module;
Main control module further includes redundancy control unit, and redundancy control unit and microprocessor unit communicate to connect, and master control
Module is communicated to connect by redundancy control unit and redundant module.
Redundancy control unit carries out the synchronous and mutual coordination of data for making between main control module and redundant module, once it is main
It controls that module is abnormal, redundant module is capable of the work of adapter tube main control module in real time, increases the Stability and dependability of system.
Illustratively, when exception occurs in microprocessor unit, redundancy control unit can activate redundant module in real time, substitute micro-
The function of processor unit enables programmable logic controller (PLC) is safe and stable to run.
The above is merely for convenience of it will be understood by those skilled in the art that the technical solution of the utility model, not to
Limit the utility model.Within the spirit and principle of the utility model, any modification, equivalent replacement, improvement and so on,
It should be included within the scope of protection of this utility model.