CN108732987A - It can customize the embedded soft PLC control system and its design method of I/O port numbers - Google Patents
It can customize the embedded soft PLC control system and its design method of I/O port numbers Download PDFInfo
- Publication number
- CN108732987A CN108732987A CN201810613234.1A CN201810613234A CN108732987A CN 108732987 A CN108732987 A CN 108732987A CN 201810613234 A CN201810613234 A CN 201810613234A CN 108732987 A CN108732987 A CN 108732987A
- Authority
- CN
- China
- Prior art keywords
- input
- output
- module
- needle
- board
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/054—Input/output
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
Abstract
The present invention provides a kind of embedded soft PLC control systems and its design method can customize I/O port numbers comprising core board and peripheral board, wherein:The core board be can plug module, have row's needle on the core board, can be inserted in the corresponding socket of the peripheral board, externally provide the digital quantity of standard Transistor-Transistor Logic level to the peripheral board;Hardware circuit module with optical coupling isolator, relay and a flexibly configurable input/output end port quantity on the peripheral board, the peripheral board also provides the socket of input/output module, if what is be inserted into is input module, then the port is input port, externally can connect external input device by binding post;If what is be inserted into is output module, which is output port, externally can connect output peripheral equipment by binding post.Control system and its design method according to the present invention can improve flexibility with the quantity of flexible configuration input/output end port, avoid the occurrence of contact wasting phenomenon, maintainable strong.
Description
Technical field
The present invention relates to programmable logic controller (PLC) (PLC) technical field, more particularly to one kind can customize I/O port numbers
The embedded soft PLC control system and its design method of amount.
Background technology
Programmable logic controller (PLC) (Programmable Logic Controller, abbreviation PLC) be it is a kind of exclusively for
The electronic device of digital operation applied and designed under industrial environment.All the time, because its reliable operation, programming are convenient
Feature and can for industrial automation application provides safe and reliable, perfect solution and it is industrial automatic to be applied to for a long time
Change control field.PLC is most common control device now, can almost complete all tasks of industrial control field.In work
In industry control system, PLC completes complex process control, and the real time monitoring to production status frequently as main controller.With
Supply side continuous development of the reform, the controller of the too busy to get away bottom that flourishes of intelligence manufacture, the use demand of PLC also will
It is more and more, and also to its function, higher requirements are also raised.
The realization of PLC is divided into hard PLC and Soft- PLC.So-called hard PLC from the strict sense for be by hardware or one piece specially
Asic chip realizes the execution of PLC instructions, that is, traditional PLC.And Soft- PLC be with some general CPU or
MCU holds row come the explanation or compiling for realizing PLC instructions.PLC software (SoftPLC, also referred to as soft logic SoftLogic) is one
Kind of the control system based on PC machine development structure, it have the function of hard PLC, reliability, speed, trouble shoot etc. spy
The Industrial PC of standard can be converted into Full Featured PLC process controllers by point using software technology.PLC software combines meter
The functions such as the digital output modul of calculation machine and PLC, Analog control, mathematical operation, numerical value processing, network communication, PID adjustings, lead to
Multitask control kernel is crossed, powerful instruction set, quickly and accurately scan period, reliable operation are provided and can be connected
Various I/O systems and network Open architecture.So PLC software provides function same as hard PLC, while carrying again
The various advantages of PC environment are supplied.
The beginning of this century, with computer and microelectric technique further development and associated control software gradually at
Ripe, the bottleneck problem of SoftPLC technology is gradually resolved, and Soft- PLC has obtained further development.At the same time, embedded system
System has obtained swift and violent development with its distinctive advantage.People combine SoftPLC technology with embedded system, produce embedding
Enter formula SoftPLC technology.Embedded soft PLC is Soft- PLC of the framework in embedded system, has very extensive application prospect,
Traditional hard PLC is replaced to have become a trend using the Soft- PLC based on embedded system in automatic field.However at present
Embedded soft PLC both domestic and external is in the early stage of development, and ripe product is few, therefore develops embedded soft PLC with important
Meaning.
Fig. 1 is traditional PLC controller, i.e., hard PLC technology.Such as Fig. 2, it is one piece and is based on STM32F103ZET6 microprocessors
The Soft- PLC control module of the application-oriented layer insertion of device.It can develop PLC module software program under C language development environment, make
Obtain Embedded PLC module can complete basic FX2N functions, i.e., complete PLC language in GX Developer development environments and compile
Journey then downloads on mainboard, completes to run the explanation that PLC is instructed by STM32F103ZET6, and it is defeated externally to provide 64*64
The standard Transistor-Transistor Logic level for entering/exporting.That is SoftPLC technology.
However, there is also its disadvantages by existing PLC.PLC occur because of its closed framework expandability with flexibly
The relatively low problem of property.The fixation of I/O (input/output) mouth number of traditional PLC just determines when manufacture, is by mark
Quasi- I/O, which counts, to be designed, for example, 32MRPLC (16 points of/16 point relays of input output), 40MT-PLC (/ 20 points of crystalline substances of 20 points of inputs
Body pipe exports), 64MR PLC (32 points input/32 point relays output) etc..User's later stage can not voluntarily change, and cannot reach and appoint
Meaning cuts collocation;Although IO numbers can be extended by expansion module, resulting cost can also rise therewith.In practical work
In journey project, it is frequently encountered actual needs I/O port quantity and the used unmatched situation of PLC controller IO quantity, is easy
I/O port is caused to waste.Meanwhile once cause entire PLC to be unable to operate normally because of the failure of input/output end port, at this moment need
Entire PLC controller is sent and is repaiied, maintenanceability is poor, extremely inconvenient.
Invention content
The shortcomings that it is an object of the invention to overcome the prior art and deficiency, provide one kind and can customize I/O port numbers
Embedded soft PLC control system and its design method, user can be according to actual items demand, flexible configuration input/output terminal
The quantity of mouth, improves flexibility, avoids the occurrence of contact wasting phenomenon.Meanwhile PLC controller used in the present invention is to pass through
Embedded system research and development instead of traditional Soft- PLC controller module, once input/output module even core board module goes out
Existing failure, only needs to change the module of failure, is repaiied without will integrally send, improve maintenanceability.Quite there is practical significance.
The purpose of the invention is achieved by the following technical solution:A kind of embedded soft PLC can customize I/O port numbers
Control system comprising core board and peripheral board, wherein:
The core board be can plug module, have row's needle on the core board, the corresponding socket of the peripheral board can be inserted in
On, the digital quantity of standard Transistor-Transistor Logic level is externally provided to the peripheral board;
There is optical coupling isolator, relay and a flexibly configurable input/output end port quantity on the peripheral board
Hardware circuit module, the peripheral board also provides the socket of input/output module, should if what is be inserted into is input module
Port is input port, externally can connect external input device by binding post;If what is be inserted into is output module, the port
It is output port, externally can connects output peripheral equipment by binding post.
Further, when what is be inserted into is input module, the input module circuit receives opening for industrial field device
Switching signal is converted to the acceptable signal of microcontroller by OFF signal by input isolation circuit, to allow PLC inside and outside signals
Meet electrical isolation, the wherein isolation of input circuit is isolated using photoelectrical coupler TLP521-1.
Further, when what is be inserted into is output module, the Transistor-Transistor Logic level that the output module is provided according to core board,
Via output interface module, the output signal after being boosted directly drives relay, wherein the output interface module uses
Eight road NPN Darlingtons connection transistor array series ULN2803.
Correspondingly, the present invention also provides a kind of embedded soft PLC Control System Designs can customize I/O port numbers
Method is realized by such as above-mentioned embedded soft PLC control system.Input/output module is respectively designed to two pieces of circuits
Plate, has row's needle on the circuit board, the socket above corresponding peripheral board, and row's needle on the input/output module is inserted in phase
In the socket for answering needle mouth, all kinds of voltages and and input/output Transistor-Transistor Logic level are provided for the input/output module.
Further, the input/output module is respectively provided with 6 needles row's needle and 2 needles row's needle, wherein described 6
The operating voltage signal that needle row's needle is separately connected power supply voltage signal, is supplied to core board, and the input corresponding to core board
Transistor-Transistor Logic level signal and output Transistor-Transistor Logic level signal;The 2 needle row needle is connected to external equipment by binding post.
Further, this approach includes the following steps:
The first step builds embedded soft PLC platform;
Embedded software plc control panels are selected first, and it includes external power interface, power-switching circuit, core then to make
The peripheral board of the insert row of plate and input/output module gets out M blocks input module and N block output modules, core board is inserted in
M blocks input module and N blocks output module are arbitrarily inserted in input/output socket by peripheral board middle position, and input/
It exports and connects external equipment on corresponding binding post, wherein M, N are the positive integer for being less than or equal to 64 more than 0, described outer
Portion's equipment includes switch, motor;
Second step compiles programming code according to the hardware platform put up, and the code enables to the external equipment
Execute operating;
Third step, equipment debugging observe motor working order by pressing lower switch, can customize I/O port numbers to realize
The debugging of the embedded soft PLC control system of amount.
The present invention has the following advantages and effects with respect to the prior art:
A kind of embedded soft PLC control system and its design method can customize I/O port numbers provided by the invention,
There are very high flexibility and maintenanceability, compared with the fixation input/output end port number of traditional PLC controller, the present invention
The method for realizing flexible configuration input/output end port quantity.It, can be direct when causing to break down because of I/O unit
The input/output module more renewed is repaiied without whole send.
Also, the embedded soft PLC control system provided by the invention that can customize I/O port numbers and its design side
Method, control main body is the embedded soft PLC controller researched and developed based on ARM microprocessor, and the controller used is microprocessor
Device, rather than be traditional PLC controller.In existing technology, plate is typically expanded plus IO with traditional PLC controller and is carried out
The expansion of I/O port.Coordinate input/output module electricity of the present invention with the core control panel that embedded soft PLC technology is researched and developed
Road is designed, and flexibility and the cost optimization of application have undoubtedly been reached.
Description of the drawings
Fig. 1 is traditional in the prior art PLC controller, i.e., hard PLC technology;
Fig. 2 is the Soft- PLC control module of the application-oriented layer insertion based on STM32F103ZET6 microprocessors;
Fig. 3 is the embedded soft PLC control system frame diagram that can customize I/O port numbers of the present invention;
Fig. 4 is the input module circuit diagram of the present invention;
Fig. 5 is ULN2803 schematic diagrames used in the output module of the present invention;
Fig. 6 is the output module circuit diagram of the present invention;
Fig. 7 is the flow of the embedded soft PLC Control System Design method that can customize I/O port numbers of the present invention
Figure.
Specific implementation mode
Present invention will now be described in further detail with reference to the embodiments and the accompanying drawings, but embodiments of the present invention are unlimited
In this.
Embodiment one
As shown in figure 3, the present invention provides a kind of embedded soft PLC control system can customize I/O port numbers,
Range be suitable for it is any can external outputting standard Transistor-Transistor Logic level embedded software plc control panels.The control system include core board and
Peripheral board, wherein:
The core board be can plug module, have row's needle on the core board, the corresponding socket of the peripheral board can be inserted in
On, the digital quantity of standard Transistor-Transistor Logic level is externally provided to the peripheral board.Core board is the embedded software plc in existing research
Control panel, so the realization of the present invention is in the hardware circuit design of peripheral board.Core board is under high-level language development environment
(such as C language) develops PLC module software program so that core board can complete basic traditional PLC functions, such as in GX
Developer development environments are completed PLC language programming, are then downloaded on mainboard, are voluntarily completed to PLC by ARM microprocessor
The explanation of instruction is run.Core board externally provides the digital quantity of standard Transistor-Transistor Logic level to peripheral board.
There is optical coupling isolator, relay and a flexibly configurable input/output end port quantity on the peripheral board
Hardware circuit module, the peripheral board also provides the socket of input/output module, should if what is be inserted into is input module
Port is input port, externally can connect external input device by binding post;If what is be inserted into is output module, the port
It is output port, externally can connects output peripheral equipment by binding post.
In existing research, there is the bare board for using the conventional one-pieces such as 51 or STM32 machine as control chip
Embedded software plc control panels also occur that the embedded software plc control panels of operating system can be run.These control panels are above
" core board ".How to realize that the explanation to PLC language is run as core board, software code, hardware circuit do not exist
This patent scope is briefly described at this, it is only necessary to know that these embedded softwares plc control panels can explain PLC language
Operation, and the digital quantity of the Transistor-Transistor Logic level of standard is externally provided, for user's designed, designed external circuit.Continue emphatically peripheral board below
The external hardware circuit design of arbitrary disposition input/output end port quantity is realized based on the Transistor-Transistor Logic level that core board provides.
As shown in Fig. 2, being the Soft- PLC control of one piece of application-oriented layer insertion based on STM32F103ZET6 microprocessors
Module.It can be communicated using serial ports 422 as traditional PLC, by the serial ports, PLC language can be downloaded to core board by PC machine,
Core board can voluntarily analyze operation code, and externally provide the Transistor-Transistor Logic level of 64*64 as shown in the figure.
Fig. 3 is the embedded soft PLC control system frame diagram that can customize I/O port numbers of the present invention, because of drawing side
Just, 8 road input/output modules are only drawn.Certainly different core boards, by the different demands of user, designed periphery are directed to
Plate is not necessarily identical.Wherein, the embedded soft PLC core control panel module based on ARM microprocessor can be inserted among peripheral board,
Just as core control panel shown in Fig. 2 is just inserted among peripheral board on corresponding insert row, and input/output is provided to peripheral board
The digital quantity of Transistor-Transistor Logic level, peripheral board provide DC voltage by power supply adaptor, are converted to operating voltage and are supplied to core board.?
Here the operating voltage of ± 24V supply voltages and ± 5V might as well be set as.Either core board or input/output circuitry are all
Be designed to can plug module.Such as Fig. 2, there is row's needle on core board, can be inserted in the corresponding socket of peripheral board.While peripheral board is also
The socket of input/output module is provided, as shown in figure 3, respective modules can be inserted into according to selection, if what is be inserted into is input mould
Block, then the port is input port, and external input device, such as control switch can be externally connected by binding post;If be inserted into
Be output module, then the port is output port, can externally pass through binding post and connect output peripheral equipment, such as motor.
Further, when what is be inserted into is input module, the input module circuit receives opening for industrial field device
Switching signal is converted to the acceptable signal of microcontroller by OFF signal by input isolation circuit, to allow PLC inside and outside signals
Meet electrical isolation, the wherein isolation of input circuit is isolated using photoelectrical coupler TLP521-1.
PLC has various Anti-interference Designs in order to improve the anti-interference ability of system, in input circuit part.The design's is defeated
Enter circuit and also copy PLC, is separated input power and system power supply using photoelectric coupling before signal is input to microcontroller.Below
Input isolation circuit all the way is only introduced, remaining each road input isolation circuit is similar.
The switching signal that input circuit receives industrial field device converts a signal into monolithic by input isolation circuit
The acceptable signal of machine, to allow PLC, inside and outside signal meets electrical isolation.The input signal of the design selects direct current input side
Formula designs in literary and ensures that electric current arrives 7mA 5 when signal is true.In view of the interference free performance of control circuit, input circuit every
It is isolated from using TLP521-1.
As shown in figure 4, P2 is an input terminal of PLC, a binding post can be connected to and conveniently connect with external equipment.D1
It is used to indicate the on off state of the input point.It is separated with U1 photoelectrical couplers TLP521-1 between input signal and microcontroller.R1
It is current-limiting resistance.Estimate that input current is about:The primary side driving current of (24-2)/4.7=4.7mA, photoelectrical coupler are general
In 4.5mA or more, meet design requirement.The input pin of IN1 connection microcontrollers.Assuming that P2 is connected to a control switch, such as
Fruit switch is closed, the circuit conducting where the light emitting diode of U1, then another way will also be connected, and IN1 is high level, and is passed to
Core board informs core board input port conducting, meanwhile, D1 shines, and indicates that the input point has been turned on.
Further, when what is be inserted into is output module, the Transistor-Transistor Logic level that the output module is provided according to core board,
Via output interface module, the output signal after being boosted directly drives relay, wherein the output interface module uses
Eight road NPN Darlingtons connection transistor array series ULN2803.
If Fig. 5, ULN2803 are eight road NPN Darlingtons connection transistor array series, especially suitable for low logic level number
Circuit (such as TTL, CMOS or PMOS/NMOS) and higher current/voltage require between interface, can be used to directly drive after
Electric appliance.Core board provide the ends Transistor-Transistor Logic level O0-O7 boosted after ULN2803 after OUT0-OUT7, can directly drive
Motor type relay.
The output circuit of the present invention is the relay way of output, can drive DC load, the voltage swing range used
It is wider, while the ability of bear to take advantage of a situation overvoltage and overcurrent is stronger.The rated current of PLC external equipments should be less than output electricity
The output current driving capability on road, it is therefore desirable to determine the output current of output circuit according to actually.
As shown in fig. 6, P5 is an output end of PLC, a binding post can be connected to and conveniently connect with external equipment, it is right
External drive equipment, such as motor etc. can be connect outside.It is directly connected to via the OUT0 for directly driving relay that ULN2803 is obtained
Relay, when it is conducting that OUT0, which is arranged, to correspond to pin, OUT0 is low level, and long switch K1 is closed, and the both ends P5 are also switched on, just
Controllable external equipment, while D2 indicator lights are bright, indicate that the output point has been turned on.
As it can be seen that a kind of embedded soft PLC control system can customize I/O port numbers provided by the invention, has very
High flexibility and maintenanceability, compared with the fixation input/output end port number of traditional PLC controller, the present invention can be flexible
The quantity of input/output end port is configured, flexibility is high.Also, a traditional PLC controller part breaks down, and needs entire
Controller sent for maintenance, the present invention are integrally built using modularization idea, either core board module or input/output
Module only needs to change corresponding module once module breaks down, other hardware are all not required to change, maintainable strong.
Embodiment two
Correspondingly, the present invention also provides a kind of embedded soft PLC Control System Designs can customize I/O port numbers
Method is realized by the embedded soft PLC control system in embodiment one.Input/output module is respectively designed to two pieces
Circuit board, has row's needle on the circuit board, the socket above corresponding peripheral board, and row's needle on the input/output module is inserted
In the socket of respective needle mouth, all kinds of voltages and and input/output Transistor-Transistor Logic level are provided for the input/output module.In this way
It can the corresponding input/output module of plug as needed.
Further, the input/output module is respectively provided with 6 needles row's needle and 2 needles row's needle, wherein described 6
The operating voltage signal that needle row's needle is separately connected power supply voltage signal, is supplied to core board, and the input corresponding to core board
Transistor-Transistor Logic level signal and output Transistor-Transistor Logic level signal;The 2 needle row needle is connected to external equipment by binding post.
By above to the analysis of input/output circuitry, it can be found that the unified point of one of the two.Both there are one 6
Needle arranges needle and 2 needles arrange needle.Wherein, 6 pins that 6 needles are arranged with needle have connect supply voltage and have been supplied to core respectively
The operating voltage of plate, might as well be set as the supply voltage of ± 24V and the operating voltage of ± 5V herein and one corresponds to core
The input Transistor-Transistor Logic level signal of plate and an output Transistor-Transistor Logic level signal, this 6 signals are for using any ARM microprocessor as master
The core control panel for controlling chip, is the same, is required for a pair of outer supply voltage, and convert by voltage conversion chip
For the required operating voltage of core board, generally ± 5V or ± 3.3V, meanwhile, no matter for input or output circuit
It is consistent.So the socket of 6 needles can be designed on peripheral board, and above 6 signals are connected, on input/output module
Corresponding 6 needle row's needle can be inserted in this 6 needle socket, and all kinds of voltages and and defeated can be so provided to input/output module
Enter/export Transistor-Transistor Logic level.
Needle is arranged for 2 needles on input/output module, in input circuit module, in conjunction with Fig. 3 and according to before to input
2 needles known to the analysis of circuit at this time arrange the one of needle and are terminated with -24V, and-the 24V that can be arranged by 6 needles on needle is provided, while this both ends
Pass through the external input equipment of binding post.Equally, in output circuit module, the both ends that 2 needles arrange needle are directly external by binding post
Output peripheral equipment.That is this 2 needle arranges needle not by peripheral board, is not influenced by core board, directly by the input/output mould
Circuit above block determines function.
Therefore, for input/output module, 6 needles arrange needle can be provided 6 unified needle sockets by peripheral board, and each 6 needle is arranged
It inserts and is all connected to same voltage signal and corresponding input/output Transistor-Transistor Logic level, 2 needles row's needle is carried without core board or peripheral board
For any signal, only needs peripheral board to provide a 2 needle sockets and facilitate input/output module plug, while this 2 needle socket can connect
It is connected on a binding post, facilitates the connection of input/output end port and external equipment.
It is exactly the basic introduction of the circuit design principle above.Below in a step-by-step manner, the one of the lower present invention is summarized
Kind can customize the flow of the embedded soft PLC Control System Design method of I/O port numbers, and flow chart is as shown in Figure 7.
Embodiment three
The design of peripheral circuit plate can be it is rich and varied, in order to coordinate the present invention introduced flexible configuration input/
The method of output port quantity is verified just for the basic input/output function of embedded soft PLC module, future herein
More functions can be added, other functional interfaces are such as increased, expand voltage and current range etc..Made by the use of this example based on
The embedded software plc control panels of STM32F103ZET6, as shown in Fig. 2, sharing 64*64 input/output Transistor-Transistor Logic level interface, institute
Totally 64 input/output sockets can be designed in peripheral board.
The case where common input port quantity of simulation actual items engineering is much larger than output port number now, does 9 groups of experiments,
Every group takes 5 input port X1-X5, and 2 output ports Y1, Y2.Wherein 5 input ports are connected to 5 and switch, 2
Output port connects 2 motors.So needing 45 * 18 output interfaces of input.This approach includes the following steps:
The first step builds embedded soft PLC platform.
1) it is needed to select embedded software plc control panels according to project.Here select team make based on
The embedded software plc control panels of STM32F103ZET6, can externally provide 64*64 input/output Transistor-Transistor Logic levels, and certainly following is embedding
Entering control chip used by formula plc control panels has prodigious development potentiality, and more advanced chip can be used and realize longitudinal carry
It rises.
2) peripheral board is made with the design method of the present invention.For convenience of experiment, peripheral circuit plate only includes external electrical
The insert row of source interface, power-switching circuit and core board and input/output module, rough lithograph as shown in figure 3,
In follow-up study, more functions will be increased, such as increase voltage and current.
3) 45 pieces of input modules and 18 pieces of output modules are ready to according to experiment demand.According to Fig. 4, Fig. 6 make input/it is defeated
Go out module board.
4) equipment is built.As shown in figure 3, core board is inserted in peripheral board middle position, by 45 pieces of input modules and 18 pieces
Output module is arbitrarily inserted in input/output socket, but connection external equipment or every group is placed simultaneously for convenience.And
External equipment is connected on the corresponding binding post of input/output, has 5 switches and 2 motors for every group herein.
Second step compiles programming code according to the hardware platform put up, and the code enables to the external equipment
Execute operating.
At this point it is possible to complete PLC language programming in PLC development environments (the GX Developer of such as Mitsubishi) according to demand.
Wherein 1 group of experiment is explained below, other 8 groups are just as.The purpose of program is positive and negative by motor Y1 difference after lower switch X1, X2
Turn, distinguishes positive and negative rotation by motor Y2 after lower switch X3, X4, press two motors of X5 and stop operating.After compiled program, to outer
Coaming plate is connected with the mains, can will be on program burn writing to core board by 422 serial ports (simulation practical PLC communication).
Third step, equipment debugging observe motor working order by pressing lower switch, can customize I/O port numbers to realize
The debugging of the embedded soft PLC control system of amount.
By above embodiment, the facility that the present invention is brought can be more intuitively realized.For above 45 input *
18 outputs, if will be unable to meet this examination if using 64 points of PLC (32*32 input/output) using traditional PLC controller
Test 45 input ports of needs.If using 128 points (64*64 input/output), it will cause contact to waste, improve cost.
Example IV
Another embodiment that can reach same effect is introduced with most common 51 microcontroller again below.It is intended to illustrate
Invention be applicable in it is any can external outputting standard Transistor-Transistor Logic level embedded software plc control panels.
In order to facilitate introduction, only make battery of tests here, only take 5 input port X1-X5 and 2 output port Y1,
Y2.Wherein 5 input ports are connected to 5 switches, and 2 output ports connect 2 motors.
The first step builds embedded soft PLC platform.
1) it is needed to select embedded software plc control panels according to project.Most common microcontroller is specifically selected, that is, is based on tradition
The embedded software plc control panels of 51 microcontrollers, can externally provide 8*8 input/output Transistor-Transistor Logic levels.
2) peripheral board is made with thinking of the present invention.For convenience of experiment, peripheral circuit plate equally only includes outside
The insert row of power interface, power-switching circuit and core board and input/output module, rough lithograph are as shown in Figure 3.
3) 5 pieces of input modules and 2 pieces of output modules are ready to according to experiment demand.Input/output is made according to Fig. 4, Fig. 6
Module board.
4) equipment is built.As shown in figure 3, core board is inserted in peripheral board middle position, 5 pieces of input modules and 2 pieces are defeated
Go out module to be arbitrarily inserted in input/output socket, but connection external equipment for convenience, every group is placed simultaneously.And input/
It exports and connects external equipment on corresponding binding post, there is 5 switches and 2 motors herein.
Second step compiles programming code according to the hardware platform put up, and the code enables to the external equipment
Execute operating.
At this point it is possible to according to purpose, directly adopt and show a C language the program that can reach purpose, need not realize to PLC's
Interpretive analysis.After compiled program, connect with the mains to peripheral board, it can be by jtag interface by program burn writing to 51 microcontrollers
On.
Third step, equipment debugging observe motor working order by pressing lower switch, can customize I/O port numbers to realize
The debugging of the embedded soft PLC control system of amount.
To sum up, can verify the circuit designing thought introduced of the present invention be applicable in it is any can external outputting standard Transistor-Transistor Logic level
Embedded software plc control panels.Either rudimentary microprocessor or advanced processor either directly use C language
It directly writes control program or realizes the interpretive analysis to PLC language, as long as core control panel can finally provide standard
Transistor-Transistor Logic level, the method that the present invention all may be used.
As it can be seen that a kind of embedded soft PLC Control System Design side can customize I/O port numbers provided by the invention
Method has very high flexibility and maintenanceability, compared with the fixation input/output end port number of traditional PLC controller, this hair
The bright method for realizing flexible configuration input/output end port quantity.It, can be straight when causing to break down because of I/O unit
The input/output module more renewed is connect, is repaiied without whole send.
Also, the control main body of the present invention is the embedded soft PLC controller researched and developed based on ARM microprocessor, is used
Controller be microprocessor, rather than be traditional PLC controller.In existing technology, typically with traditional PLC controller
In addition IO expands the expansion that plate carries out I/O port.It is of the present invention with the core control panel cooperation that embedded soft PLC technology is researched and developed
Input/output module circuit design, undoubtedly reached application flexibility and cost optimization.
The above embodiment is a preferred embodiment of the present invention, but embodiments of the present invention are not by above-described embodiment
Limitation, it is other it is any without departing from the spirit and principles of the present invention made by changes, modifications, substitutions, combinations, simplifications,
Equivalent substitute mode is should be, is included within the scope of the present invention.
Claims (6)
1. a kind of embedded soft PLC control system can customize I/O port numbers, which is characterized in that including core board and outside
Coaming plate, wherein:
The core board be can plug module, have row's needle on the core board, can be inserted in the corresponding socket of the peripheral board,
The digital quantity of standard Transistor-Transistor Logic level is externally provided to the peripheral board;
With the hard of optical coupling isolator, relay and flexibly configurable input/output end port quantity on the peripheral board
Part circuit module, the peripheral board also provide the socket of input/output module, if what is be inserted into is input module, the port
It is input port, externally can connects external input device by binding post;If what is be inserted into is output module, which is defeated
Exit port externally can connect output peripheral equipment by binding post.
2. a kind of embedded soft PLC control system can customize I/O port numbers as described in claim 1, feature exist
In when what is be inserted into is input module, the input module circuit receives the switching signal of industrial field device, passes through input
Switching signal is converted to the acceptable signal of microcontroller by isolation circuit, and to allow PLC, inside and outside signal meets electrical isolation,
The isolation of middle input circuit is isolated using photoelectrical coupler TLP521-1.
3. a kind of embedded soft PLC control system can customize I/O port numbers as described in claim 1, feature exist
In, when what is be inserted into is output module, the Transistor-Transistor Logic level that the output module is provided according to core board, via output interface mould
Block, the output signal after being boosted directly drive relay, wherein the output interface module is connected using eight road NPN Darlingtons
Meet transistor array series ULN2803.
4. a kind of embedded soft PLC Control System Design method can customize I/O port numbers, passes through such as claim 1-
Embedded soft PLC control system described in any one of 3 is realized, which is characterized in that input/output module is respectively designed to two
Block circuit board, has row's needle on the circuit board, the socket above corresponding peripheral board, row's needle on the input/output module
It is inserted in the socket of respective needle mouth, all kinds of voltages and and input/output Transistor-Transistor Logic level is provided for the input/output module.
5. a kind of embedded soft PLC Control System Design method can customize I/O port numbers as claimed in claim 4,
It is characterized in that, the input/output module is respectively provided with 6 needles row's needle and 2 needles row's needle, wherein 6 needle arranges needle
The operating voltage signal for being separately connected power supply voltage signal, being supplied to core board, and the input Transistor-Transistor Logic level corresponding to core board
Signal and output Transistor-Transistor Logic level signal;The 2 needle row needle is connected to external equipment by binding post.
6. a kind of embedded soft PLC Control System Design method can customize I/O port numbers as claimed in claim 5,
It is characterized by comprising the following steps:
The first step builds embedded soft PLC platform;
First select embedded software plc control panels, then make include external power interface, power-switching circuit, core board with
And the peripheral board of the insert row of input/output module, M blocks input module and N block output modules are got out, core board is inserted in periphery
M blocks input module and N blocks output module are arbitrarily inserted in input/output socket by plate middle position, and in input/output
External equipment is connected on corresponding binding post, wherein M, N is the positive integer for being less than or equal to 64 more than 0, and the outside is set
Standby includes switch, motor;
Second step compiles programming code according to the hardware platform put up, and the code enables to the external equipment to execute
Operating;
Third step, equipment debugging observe motor working order by pressing lower switch, can customize I/O port numbers to realize
The debugging of embedded soft PLC control system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810613234.1A CN108732987A (en) | 2018-06-14 | 2018-06-14 | It can customize the embedded soft PLC control system and its design method of I/O port numbers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810613234.1A CN108732987A (en) | 2018-06-14 | 2018-06-14 | It can customize the embedded soft PLC control system and its design method of I/O port numbers |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108732987A true CN108732987A (en) | 2018-11-02 |
Family
ID=63929655
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810613234.1A Pending CN108732987A (en) | 2018-06-14 | 2018-06-14 | It can customize the embedded soft PLC control system and its design method of I/O port numbers |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108732987A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109490865A (en) * | 2018-12-11 | 2019-03-19 | 北京饮冰科技有限公司 | A kind of novel face battle array laser radar |
CN110850802A (en) * | 2019-11-30 | 2020-02-28 | 信联科技(南京)有限公司 | Safe intelligent programmable logic controller supporting cloud data interconnection |
CN111045380A (en) * | 2019-12-30 | 2020-04-21 | 广东工业大学 | Embedded soft PLC hardware system based on Cortex-M3 |
CN111856981A (en) * | 2019-04-25 | 2020-10-30 | 上海佑显科技有限公司 | IO controller |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103345193A (en) * | 2013-06-19 | 2013-10-09 | 浙江中烟工业有限责任公司 | Embedded type PLC system based on STC single-chip microcomputer |
CN203520079U (en) * | 2013-09-11 | 2014-04-02 | 夏杰 | Industrial automation controller of which input-output modules and MCU main control units are replaceable |
CN208334996U (en) * | 2018-06-14 | 2019-01-04 | 广东工业大学 | It can customize the embedded soft PLC control system of I/O port number |
-
2018
- 2018-06-14 CN CN201810613234.1A patent/CN108732987A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103345193A (en) * | 2013-06-19 | 2013-10-09 | 浙江中烟工业有限责任公司 | Embedded type PLC system based on STC single-chip microcomputer |
CN203520079U (en) * | 2013-09-11 | 2014-04-02 | 夏杰 | Industrial automation controller of which input-output modules and MCU main control units are replaceable |
CN208334996U (en) * | 2018-06-14 | 2019-01-04 | 广东工业大学 | It can customize the embedded soft PLC control system of I/O port number |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109490865A (en) * | 2018-12-11 | 2019-03-19 | 北京饮冰科技有限公司 | A kind of novel face battle array laser radar |
CN109490865B (en) * | 2018-12-11 | 2021-03-05 | 锐驰智光(北京)科技有限公司 | Area array laser radar |
CN111856981A (en) * | 2019-04-25 | 2020-10-30 | 上海佑显科技有限公司 | IO controller |
CN110850802A (en) * | 2019-11-30 | 2020-02-28 | 信联科技(南京)有限公司 | Safe intelligent programmable logic controller supporting cloud data interconnection |
CN111045380A (en) * | 2019-12-30 | 2020-04-21 | 广东工业大学 | Embedded soft PLC hardware system based on Cortex-M3 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108732987A (en) | It can customize the embedded soft PLC control system and its design method of I/O port numbers | |
CN208334996U (en) | It can customize the embedded soft PLC control system of I/O port number | |
CN101398776A (en) | Automatic powering-on/powering-off test device and method | |
CN102360046B (en) | General test method for motor vehicle electrical product | |
CN101793931B (en) | High-pressure transducer testing system | |
CN101793944A (en) | Fault simulation system used for developing, marking and testing battery management system | |
CN102436200B (en) | Modularized multifunctional robot controller | |
CN110262360A (en) | Frequency converter simulator and analogy method | |
CN107305526A (en) | A kind of debugger for microcontroller | |
CN106980304B (en) | Programmer and programmed method for programmable controller | |
JP4405713B2 (en) | Method and system for configuring input / output points | |
CN102955096B (en) | A kind of wireline test mechanism | |
CN203233024U (en) | A PLC programming cable equipped with an electronic change-over switch | |
CN104317286A (en) | Test bed for testing LCU device and testing method | |
CN103744387A (en) | Intelligent electric control executing system with redundant site bus and analog quantity control functions | |
CN205091732U (en) | Automatic switching device for USB interface | |
CN202975731U (en) | Novel asynchronous multiple nuclear automation controller | |
CN203720314U (en) | Apparatus for integrated testing of circuit board functions | |
CN207457368U (en) | A kind of test board | |
CN202956473U (en) | Quality detection circuit of motor drive plate | |
CN106547218B (en) | Direct-current transmission field layer real-time simulation system, simulation system and closed-loop test system | |
CN205608716U (en) | Multiunit optical module communication interface switching circuit | |
CN102929194B (en) | Asynchronous multi-core programmable automation controller (PAC) | |
CN201740852U (en) | Interface adapter with cascaded structure used for rear panel testing | |
CN104109934A (en) | Textile device, control circuit board and expansion board |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |