CN203338071U - Embedded PLC hardware device based on STC single chip microcomputer - Google Patents

Embedded PLC hardware device based on STC single chip microcomputer Download PDF

Info

Publication number
CN203338071U
CN203338071U CN2013203574329U CN201320357432U CN203338071U CN 203338071 U CN203338071 U CN 203338071U CN 2013203574329 U CN2013203574329 U CN 2013203574329U CN 201320357432 U CN201320357432 U CN 201320357432U CN 203338071 U CN203338071 U CN 203338071U
Authority
CN
China
Prior art keywords
module
chip
chip microcomputer
circuit
plc hardware
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.)
Expired - Lifetime
Application number
CN2013203574329U
Other languages
Chinese (zh)
Inventor
郭奔
李汉莹
朱辉平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Tobacco Zhejiang Industrial Co Ltd
Original Assignee
China Tobacco Zhejiang Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Tobacco Zhejiang Industrial Co Ltd filed Critical China Tobacco Zhejiang Industrial Co Ltd
Priority to CN2013203574329U priority Critical patent/CN203338071U/en
Application granted granted Critical
Publication of CN203338071U publication Critical patent/CN203338071U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

The utility model relates to an embedded PLC hardware device based on an STC single chip microcomputer. The system comprises an STC12C5201AD single chip microcomputer, a DC power supply module, a photoelectric coupling input module and an analog quantity input module, a relay output module, a thyristor output module, a programming downloading module, and a Can bus communication module, wherein the Can bus communication module adopts an SJA1000 chip, a CAN bus transceiver adopts an 82C250 chip, and a photoelectric coupler 6N137 chip and the SJA1000 chip are connected to improve the bus driving capability. Since the STC12 series single chip microcomputer is adopted as a core for construction, the PLC hardware device has the advantages of low hardware cost and high reliability; and since a minimum system is taken as the center, various function boards can be expanded, thus the embedded PLC hardware device has the advantages of strong customization and flexible expansion.

Description

Embedded PLC hardware unit based on the STC single-chip microcomputer
Technical field
The utility model relates to a kind of industry control programmable logic device, relates in particular to the Embedded PLC hardware unit of a kind of STC12 of usining series monolithic as control core.
Background technology
Programmable logic controller (PLC) (Programmable Logic Controller, abbreviation PLC) is widely used in field of industrial automatic control, and its convenient, flexible control mode has obtained general approval.PLC has the development of decades and application widely, and its technical development is very fast, also more ripe.Main flow PLC product reliability and stability in the market are higher, but the cost costliness.Control and require not high occasion relatively at some, the control system that adopts existing PLC product to build has only been utilized PLC resource and function seldom, has been not intended to cause the increase of production cost.Simultaneously, many producers are for the exclusive developing instrument of own product and high-level programming language, and versatility is poor.Therefore, make new type PLC support the exploitation of general programming language can reduce slip-stick artist's cost of development and difficulty.
The STC12C5201AD series monolithic be a new generation of releasing of macrocrystalline science and technology superpower anti-interference, at a high speed, the single-chip microcomputer of low-power consumption, fully compatible traditional 8051 single-chip microcomputers of order set not only, and the fast 8-12 of speed doubly, inner integrated MX810 Special reset circuit, 2 road PWM, 88, tunnel A/D conversions, Resources on Chip is abundant, on existing PLC basic function basis, can expand other functions; Also support to download after GX-DEVELOPER 7 software trapezoid figure language direct editing conversions simultaneously.
Summary of the invention
In order to solve the Cost Problems of existing PLC system, the purpose of this utility model is to provide the hardware unit of the Embedded PLC based on the STC single-chip microcomputer.It is lower that this installs its hardware cost, and reliability is strong; Due to centered by minimum system, can expand various feature boards, so customization is strong, expansion is flexibly.
In order to realize above-mentioned purpose, the utility model has adopted following technical scheme:
Embedded PLC hardware unit based on the STC single-chip microcomputer, this system comprises STC12C5201AD single-chip microcomputer, DC power supplier, photoelectric coupling load module and analog input module, relay output module, SCR-output module, program downloads module, Can bus communication module; Described STC12C5201AD single-chip microcomputer comprises chip and external circuit, and external circuit consists of reset circuit and crystal oscillating circuit; Described DC power supplier selects B2405S 1W chip as linear voltage decreasing type DC-DC converter, at input and output side jumbo electrochemical capacitor in parallel with for the leaded multilayer ceramic capacitor of High frequency filter; Described photoelectric coupling load module, adopt the measure of photoelectricity isolation to realize, at the entrance terminals, uses resistance to carry out dividing potential drop to it, and then with being sampled on the pin that directly is linked into the STC12C5201AD single-chip microcomputer after the isolation of general T LP521 photoelectricity; Described analog input module utilizes inner 8 ADC of STC12C5201AD single-chip microcomputer self to be changed input; Described relay output module selects the S8050 thyristor to be amplified output circuit; Described SCR-output module, control its output state by relay UNL2003 Darlington transistor Inside coil; Described program downloads module, select respectively MAX232CPE chip and the MAX485CPA chip hardware driving as RS232 serial ports and RS485 serial ports; Described Can bus communication module is selected the SJA1000 chip, and the CAN bus transceiver is selected the 82C250 chip, by photoelectrical coupler 6N137 chip, with the SJA1000 chip, is connected to improve the bus driver ability.
As further improvement, described reset circuit is selected to power on and is automatically reset, and utilizes RC to charge to realize, the delayed time is determined by the value of R1, C3; Oscillatory circuit select the external crystal-controlled oscillation of 11.0952M and electric capacity make system clock and the serial ports baud rate more accurate.
As further improvement, the E2PROM district of described STC12C5201AD single-chip microcomputer is used STC_ISP software directly to download the program that writes host computer HEX form by the analog input module.As preferably, described HEX program directly under Keil uVision2 software environment programming language C or assembly language obtain; Perhaps use trapezoid figure language to obtain the PWM file on GX-DEVELOPER 7 softwares, then obtain the HEX file through the format conversion of PWM-HEX.
As further improvement, be designed with the LED state indicating circuit of pilot light electric coupling load module duty on described STC12C5201AD single-chip microcomputer pin simultaneously.
As further improvement, described analog input module also comprises the circuit that divider resistance and filter capacitor form.
As further improvement, this system switch is selected analog input module or the input of photoelectric coupling load module.
As further improvement, at 82C250 chip RS pin pull down resistor.
The utility model is owing to selecting the STC12 series monolithic to be built as core, and its hardware cost is lower, and reliability is strong; Due to centered by minimum system, can expand various feature boards, so customization is strong, expansion is flexibly.
The accompanying drawing explanation
Fig. 1 is structural representation of the present utility model.
Fig. 2 is the utility model single-chip microcomputer pin schematic diagram and reset circuit, crystal oscillating circuit figure.
Fig. 3 is the utility model DC power supplier circuit diagram.
Fig. 4 is the input of the utility model photoelectric coupling and simulated measurement input circuit figure.
Fig. 5 is the utility model relay/SCR-output circuit diagram.
Fig. 6 is the utility model ISP programmed circuit figure.
Fig. 7 is the CAN bus circuit figure of the utility model based on SJA1000.
Embodiment
Below in conjunction with accompanying drawing, embodiment of the present utility model is made a detailed explanation.
As Fig. 1, the utility model is usingd STC12C5201AD single-chip microcomputer 1 as the core structure, comprises direct supply 2, photoelectric coupling load module 3, relay output module 4, SCR-output module 5, program downloads module 6, analog input module 7 and bus communication module 13.
Described STC12C5201AD single-chip microcomputer 1 comprises chip and external circuit, and external circuit consists of reset circuit 14 and crystal oscillating circuit 15, and the embedded system program 8 of described chip comprises programming module 9 and control module 10.The subfunction storehouse that programming module 9 comprises principal function and realizes the predetermined instruction function.The function subfunction storehouse of this principal function Linked Invoke after compiling, and by programming software, above-mentioned principal function and function subfunction storehouse are made an explanation and reconstruct, produce corresponding steering order with the programming data according to the user, this control module 10 gathers the state of photoelectric coupling load module 3 and analog input module 7 within the fixing cycle, and the steering order generated according to this programming module is carried out concentrated routine processes, the unified mode pilot relay output module 4 of output and the state of SCR-output module 5 of refreshing of finally employing.
The E of STC12C5201AD single-chip microcomputer 1 2the PROM district, by analog input module 7, is used STC_ISP software directly to download the program that writes host computer HEX form.The HEX program can be directly under Keil uVision2 software environment programming language C or assembly language obtain; Also can use trapezoid figure language to obtain the PWM file on GX-DEVELOPER 7 softwares, then obtain the HEX file through the format conversion of PWM-HEX.
As shown in Figure 2, for guaranteeing STC12C5201AD single-chip microcomputer 1 system stability reliably working, the utility model is selected to power on to automatically reset 14, utilizes RC to charge to realize.The delayed time is determined by the value of R116, C3 17.Oscillatory circuit 15 select the external crystal-controlled oscillation 18 of 11.0952M and electric capacity make system clock and the serial ports baud rate more accurate.
As shown in Figure 3, select B2405S 1W chip 19 as linear voltage decreasing type DC-DC converter, convert to+5V of the utility model input power+24V is supplied to the electronic chip work such as single-chip microcomputer.In order to improve the stability of power supply, eliminate ripple, system is at input and output side jumbo electrochemical capacitor 20 in parallel with for the leaded multilayer ceramic capacitor 21 of High frequency filter.
As shown in Figure 4, the utility model load module comprises digital quantity input module and analog input module.System is in order to guarantee the reliability of input on principle, and digital quantity is used the reverse logic input, and input pin drags down level for connecting logic, and when input pin is high level, logic state is off-state.For improving the antijamming capability of system, native system adopts photoelectric coupling load module 3 to realize the input of digital quantity.At the entrance terminals, use resistance 22,23 to carry out dividing potential drop to it, and then with being sampled on the pin that directly is linked into single-chip microcomputer after the isolation of general T LP521 photoelectricity.Be designed with LED state indicating circuit 24 on the single-chip microcomputer pin simultaneously.Analog input module 7 is because STC12C5201AD inside carries 8 A/D change-over circuits, so simulated measurement input circuit only needs simple divider resistance 25,26, filter capacitor 27 to get final product.In addition, the utility model has designed switch 28, can freely select to adopt digital quantity or analog input.
As shown in Figure 1, shown in Figure 5, the utility model output module comprises SCR-output module 5 and relay output module 4, is respectively used to connect thyristor 12 and relay 11.SCR-output module 5 and relay output module 4 all adopt the output of forward logic, i.e. output is broken as low level, and output is connected as high level.SCR-output module 5 selects S8050 thyristor 29 to be amplified output circuit, and relay output module 4 is controlled its output state by relay UNL2003 Darlington transistor 30 Inside coils.
Shown in Fig. 6, program downloads module 6 is selected respectively MAX232CPE chip 31 and MAX485CPA chip 32 hardware driving as RS232 serial ports and RS485 serial ports, and native system supports above-mentioned two kinds of serial ports to download.
Shown in Fig. 7, the CAN bus controller is selected the SJA1000 chip 33 of PHILIPS company, supports CAN 2.0B agreement.The CAN bus transceiver is selected 82C250 chip 34, by photoelectrical coupler 6N137 chip 35, with SJA1000 chip 33, is connected to improve the bus driver ability.For reducing Radio frequency interference (RFI), at the RS of 82C250 chip 34 pin pull down resistor 36, thus the slope of control rising edge and negative edge.
The above-mentioned Embedded PLC based on the STC single-chip microcomputer is usingd the STC12C5201AD single-chip microcomputer as control core, and its hardware cost is lower, and reliability is strong, is easy to use.Can realize existing PLC basic function by lower cost, even can expand according to the actual requirements other functions.
The foregoing is only preferred embodiment of the present utility model, all equalizations of doing according to the utility model claim change and modify, and all should belong to the covering scope of the utility model patent.Usable range of the present utility model not only is confined to the Industry Control of simple logic, can expand other functions and be applied to more complicated industrial control field.

Claims (6)

1. the Embedded PLC hardware unit based on the STC single-chip microcomputer, it is characterized in that: this device comprises STC12C5201AD single-chip microcomputer (1), DC power supplier (2), photoelectric coupling load module (3) and analog input module (7), relay output module (4), SCR-output module (5), program downloads module (6), Can bus communication module (13); Described STC12C5201AD single-chip microcomputer (1) comprises chip and external circuit, and external circuit consists of reset circuit (14) and crystal oscillating circuit (15); Described DC power supplier (2) connects STC12C5201AD single-chip microcomputer (1), select B2405S 1W chip (19) as linear voltage decreasing type DC-DC converter, at input and output side jumbo electrochemical capacitor (20) in parallel with for the leaded multilayer ceramic capacitor (21) of High frequency filter; Described photoelectric coupling load module (3), adopt the measure of photoelectricity isolation to realize, at the entrance terminals, use resistance (22,23) to carry out dividing potential drop to it, and then with being sampled on the pin that directly is linked into STC12C5201AD single-chip microcomputer (1) after the isolation of general T LP521 photoelectricity; Described analog input module (7) utilizes inner 8 ADC of STC12C5201AD single-chip microcomputer (1) self to be changed input; Described relay output module (4) selects S8050 thyristor (29) to be amplified output circuit; Described SCR-output module (5), control its output state by relay UNL2003 Darlington transistor (30) Inside coil; Described program downloads module (6), select respectively MAX232CPE chip (31) and MAX485CPA chip (32) hardware driving as RS232 serial ports and RS485 serial ports; Described Can bus communication module (13) is selected SJA1000 chip (33), the CAN bus transceiver is selected 82C250 chip (34), is connected to improve the bus driver ability with SJA1000 chip (33) by photoelectrical coupler 6N137 chip (35).
2. the Embedded PLC hardware unit based on the STC single-chip microcomputer according to claim 1, it is characterized in that: reset circuit (14) is selected to power on and is automatically reset, utilize RC to charge to realize, the delayed time is by R1(16), the value of C3 (17) determines; Oscillatory circuit (15) is selected external crystal-controlled oscillation (18) and the electric capacity of 11.0952M.
3. the Embedded PLC hardware unit based on the STC single-chip microcomputer according to claim 1, is characterized in that: the LED state indicating circuit (24) that simultaneously is designed with pilot light electric coupling load module (3) duty on STC12C5201AD single-chip microcomputer (1) pin.
4. the Embedded PLC hardware unit based on the STC single-chip microcomputer according to claim 1 is characterized in that: described analog input module (7) also comprises the circuit that divider resistance (25,26) and filter capacitor (27) form.
5. the Embedded PLC hardware unit based on the STC single-chip microcomputer according to claim 1, is characterized in that: this device design switch (28) selection analog input module (7) or photoelectric coupling load module (3) input.
6. the Embedded PLC hardware unit based on the STC single-chip microcomputer according to claim 1, is characterized in that: at 82C250 chip (34) RS pin pull down resistor (36).
CN2013203574329U 2013-06-19 2013-06-19 Embedded PLC hardware device based on STC single chip microcomputer Expired - Lifetime CN203338071U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013203574329U CN203338071U (en) 2013-06-19 2013-06-19 Embedded PLC hardware device based on STC single chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013203574329U CN203338071U (en) 2013-06-19 2013-06-19 Embedded PLC hardware device based on STC single chip microcomputer

Publications (1)

Publication Number Publication Date
CN203338071U true CN203338071U (en) 2013-12-11

Family

ID=49706736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013203574329U Expired - Lifetime CN203338071U (en) 2013-06-19 2013-06-19 Embedded PLC hardware device based on STC single chip microcomputer

Country Status (1)

Country Link
CN (1) CN203338071U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068502A (en) * 2015-09-01 2015-11-18 苏州达力客自动化科技有限公司 Control mechanism for five-degree-of-freedom transfer robot
CN111045380A (en) * 2019-12-30 2020-04-21 广东工业大学 Embedded soft PLC hardware system based on Cortex-M3

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068502A (en) * 2015-09-01 2015-11-18 苏州达力客自动化科技有限公司 Control mechanism for five-degree-of-freedom transfer robot
CN111045380A (en) * 2019-12-30 2020-04-21 广东工业大学 Embedded soft PLC hardware system based on Cortex-M3

Similar Documents

Publication Publication Date Title
CN103345193B (en) A kind of Embedded PLC system based on STC single-chip microcomputer
CN101656431B (en) Digital management system and method of distributed power supply system
CN203338071U (en) Embedded PLC hardware device based on STC single chip microcomputer
CN201478881U (en) Power controller based on SOPC
CN204462781U (en) A kind of PLC Collaborative Control device based on EP1C6
CN201662055U (en) ARM platform-based three-element water feeding regulator of steam boiler
CN203117688U (en) Multifunctional signal generator based on ARM and DDS technologies
CN103840727A (en) Intelligent motor drive circuit used for controlling liquid flow
CN203490567U (en) Intelligent control circuit of breeding environment
CN206781908U (en) Service robot universal chassis based on STM32
CN205453491U (en) Two -way DCDC converter device based on DCDC alternaties module
CN203386342U (en) Wireless data acquisition terminal
CN103258467A (en) Embedded experimental platform capable of being allocated dynamically and based on modularization
CN203444380U (en) Output voltage control circuit
CN201628720U (en) Vehicle speed signal converter
CN201448277U (en) Temperature-control fan controller
CN203350654U (en) Modularization-based embedded-type experimental platform capable of being dynamically arranged
CN204613933U (en) Based on general micro-USB interface zigbee debugging board
CN202003209U (en) Digital power-supply control system based on FPGA (Field-Programmable Gate Array)
CN203166863U (en) Bidirectional electrical level conversion circuit and electronic product
CN205546092U (en) A circuit module for driving electronic candle lamp
CN204967679U (en) Direct current servo motor control system based on DSP
CN104661362A (en) Dedicated chip for lighting control
CN103441544A (en) Multivoltage output control circuit for intelligent charger
CN207663248U (en) A kind of Portable photovoltaic tracking control unit debugging apparatus

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20131211