CN2168274Y - Programmable controller - Google Patents

Programmable controller Download PDF

Info

Publication number
CN2168274Y
CN2168274Y CN 93212485 CN93212485U CN2168274Y CN 2168274 Y CN2168274 Y CN 2168274Y CN 93212485 CN93212485 CN 93212485 CN 93212485 U CN93212485 U CN 93212485U CN 2168274 Y CN2168274 Y CN 2168274Y
Authority
CN
China
Prior art keywords
interface
utility
chip microcomputer
model
main frame
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 - Fee Related
Application number
CN 93212485
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN 93212485 priority Critical patent/CN2168274Y/en
Application granted granted Critical
Publication of CN2168274Y publication Critical patent/CN2168274Y/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The utility model belongs to the field of microcomputer control, relating to a programmable controller. The utility model is composed of a host machine and a programmer; the host machine is provided with thirty-two input ports and twenty-four output ports; the programmer is used for compiling applications for users, the programmer can detect, store, simulate and transmit the applications, and the programmer exchanges information with the host machine by a serial communication interface. The utility model adopts a universal single-chip microcomputer and a universal I / O interface, and the utility model achieves the functions of a special integrated circuit by software design, which reduces cost and makes maintenance convenient. The utility model can be used for industrial fields, such as mechanical manufacturing, metallurgy, chemical engineering, traffics, electron, textiles, printing, food, constructions, etc.

Description

Programmable controller
The utility model belongs to the Controlled by Microcomputer field.
At present, popular Programmable Logic Controller can be divided into two types, and is a kind of for adopting general single card microcomputer or single chip microcomputer and Programmable Logic Controller that general purpose I/O interface is manufactured, another kind of Programmable Logic Controller for adopting special circuit stamen sheet to manufacture.The former advantage is that cost is low, simple to operate, and its shortcoming is that speed is slow, function singleness.The latter's advantage is that speed is fast, reliability is high, function is strong, but its poor, the complicated operation of cost height, maintainability.
The purpose of this utility model is: general 8-bit microcontroller of a kind of employing and general purpose I/O interface is provided, pass through software design, make function of the present utility model, travelling speed, all near and reach the level that adopts special-purpose stamen flake products, reduce its cost greatly simultaneously, improve its maintainability.
The utility model is made up of main frame and programmable device two parts.
Programmable device is formed (Fig. 4) by single-chip microcomputer (IC7), address latch (IC8), memory under program (IC9), I/O interface (IC10), data memory (IC11), dot character display (LCD), keyboard (JP), parallel delivery outlet (CN), serial communication interface (RXD, TXD).Single-chip microcomputer during work (IC7) at first sends address information by P0.0~P0.7 and P2.0~P2.5 to memory under program (IC9).A0~the a7 of memory under program (IC9) and a8~a13 end is address input end, because P0.0~P0.7 is address and data time sharing shared mouthful, it is an address mouth in preceding half machine cycle, it is a data port in half machine cycle of back, therefore, in order to guarantee that in the back address information is not lost during half machine cycle, on P0.0~P0.7, be connected to address latch (IC8), its effect is in the back during half machine cycle, the address information that preceding half period is sent here still latchs, to guarantee memory under program (IC9) in entire machine in the cycle, the address is effective all the time.P2.0~P2.5 mouth itself has latch function, so they can directly be received on the address end of IC9.
The data of memory under program (IC9) are in the back during half machine cycle, and the P0.0 from its d0~d7 oral instructions to single-chip microcomputer (IC7)~P0.7 port handles thereby enter single-chip microcomputer (IC7).
I/O interface (IC10) has 24 input/output lines, and being divided into is 3 groups, i.e. Pa0~Pa7(Pa mouth), Pb0~Pb7(Pb mouth), PC0~PC7(PC mouth).Pa0~Pa7 is (as write device, the printer) that is used for driving various peripheral hardwares, and Pb0~Pb7 is a keyboard line scanning incoming line, and PC0~PC3 is a keyboard column scan output line.
The a0 of the a0 of I/O interface (IC10) and a1 end and memory under program (IC9) holds with a1 and joins, and their effect is: by the different coding of single-chip microcomputer (IC7), determine that current what will control is Pa mouth or Pb mouth to these two terminals, or the Pc mouth.I/O interface (IC10)
Figure 932124852_IMG2
Be respectively and write line and read line.
The P2.6 end of single-chip microcomputer (IC7) is the chip select line of single-chip microcomputer to I/O interface (IC10), when it is 0, choose IC10, single-chip microcomputer (IC7) begins the operation to I/O interface (IC10), otherwise do not select IC10, the P2.7 end of single-chip microcomputer (IC7) is the chip select line of data memory (IC11), when being 0, it chooses data memory (IC11), single-chip microcomputer (IC7) begins the operation to data memory (IC11), otherwise do not select data memory (IC11), single-chip microcomputer (IC7)
Figure 932124852_IMG3
End is write line, and single-chip microcomputer when it is 0 (IC7) begins I/O interface (IC10) or data memory (IC11) are carried out write operation.Single-chip microcomputer (IC7)
Figure 932124852_IMG4
For reading control line, when it was 0, single-chip microcomputer (IC7) began I/O interface (IC10) or data memory (IC11) are carried out write operation.
Data memory (IC11)
Figure 932124852_IMG5
End is respectively to be write line and reads line, and d0~d7 is a data line, and a0~a12 is an address wire, and data memory (IC11) is used to deposit user program.
The P3.2 of single-chip microcomputer (IC7)~P3.4 end is used to control the display mode and the display setting of dot matrix alphanumeric display (LCD).P1.0~the P1.7 of single-chip microcomputer (IC7) sends data to dot character display (LCD), makes dot character display (LCD) demonstrate definite character.Dot character shows the content that device (LCD) can the explicit user program, also can show from any information of keyboard input, also can show the error message after having inspected simultaneously.
Keyboard (JP) has 28 keys, and it is double function key that 26 keys are wherein arranged.By keyboard, the user can programme, modification of program, programming check, procedure simulation operation, and program storage, program transmit.
The function of serial communication interface is that programmable device and main frame are joined, and by this mouth, program, the instruction of programmable device can be passed in the main frame, duty, the information of main frame can be sent in the programmable device again simultaneously.RXD is that serial interface closes up, and TXD is the serial emission port.
The programmable device software flow is such: after the start, system carries out initialization, shows initialization information then, then carries out keyboard scan, has key to press in case differentiate, and just carries out the function of this key immediately, begins new keyboard scan after executing again.
Because dot character display (LCD) is special not supporting for single-chip microcomputer, so if do not take special software approach, just can not operate as normal.In the utility model, adopted software to differentiate to add the software delay method that combines, promptly when reading or writing dot character display (LCD) at every turn, all according to the difference of present instruction, adopt different software delay methods, make the sequential of single-chip microcomputer (IC7) just in time identical, reached the purpose of correct interface, operate as normal with the sequential of dot character display (LCD).
Main frame is by single-chip microcomputer (IC1), address latch (IC2), memory under program (IC3), I/O interface (IC4, IC6), user program memory (IC5), input isolation circuit (IP1, IP2), and output driving circuit (OP1) (comprising output isolation and power output block), serial communication interface (RXD, TXD) are formed (Fig. 3).
IC1(is except that P1.0~P1.7 in the host circuit), being connected and acting on identical of IC7, IC8 in the connection of IC2, IC3, IC5 and effect and the programmable device, IC9, IC11.I/O interface (IC6) removes its chip select line
Figure 932124852_IMG6
Be that other connects with IC4 identical outside the P3.5 control by single-chip microcomputer (IC1).The connection of I/O interface (IC10) is identical in the wiring of I/O mouth (IC4) and the programmable device.The effect of I/O interface (IC4) provides 24 input ports, the effect of I/O interface (IC6) provides 24 delivery outlets, the P1.0 of single-chip microcomputer (IC1)~P1.7 end provides 8 input ports in addition, so main frame can provide 32 input ports and 24 delivery outlets at most.
The effect of input isolation circuit (IP1, IP2) is with input signal filtering, shaping and by the photoelectricity coupling outside input signal and host circuit to be isolated, thus the anti-interference and the functional reliability of raising main frame.
Output driving circuit (OP1) effect is, the output signal of I/O interface (IC6) is become the drive signal of power output block, drive the more purpose of high power load thereby reach, be coupled by photoelectricity simultaneously, host circuit and extraneous input signal are thoroughly isolated, improved the anti-interference of main frame.
Serial input port (RXD) is used to receive the information that programmable device or up-computer send.Serial delivery outlet (TXD) is used for main frame internal work situation is sent to programmable device or upper control microcomputer.
During the main frame operation, single-chip microcomputer (IC1) will constantly scan the user program in the user program memory (IC5), make delivery outlet be subjected to the control of user program.
The software flow of main frame is such: start back system carries out initialization, scan pointer points to article one user program then, read a user program and carry out a user program, scan pointer adds one then, reads a user program again and carries out user program again one time, and scan pointer adds one more then, a direct-reading is gone down like this, till reading the last item user program and executing this program, scan pointer is got back to article one user program again then, begins another scan cycle.
When the scanning user program, adopted the interruption circulating technology, it is user program of every scanning, just that this program is stacked, use " RET " instruction in the software then, make this program ejection stack and point to the specific porch of this instruction, so just can reach the purpose of conditional transfer without the condition distinguishing method, thereby accelerate software cycles speed.
Characteristics of the present utility model are:
(1) main frame and programmable device all adopt general single chip microcomputer and general purpose I/O interface integrated circuit, make the utility model exempt all restrictions that are subjected to special-purpose stamen sheet, and convenient sources, maintenance and repair are convenient, cost significantly reduces, and can expand and develop new purposes arbitrarily;
(2) the hardware printed circuit board (PCB) of main frame and programmable device adopts with a kind of printed circuit board (PCB), makes simplified manufacturing process, improves yield rate.
The utility model compared with prior art has the following advantages:
(1). adopt general single chip microcomputer and general purpose I/O interface, make function of the present utility model, travelling speed, all near or reach the product that adopts special-purpose stamen sheet, and cost reduces greatly, maintainability improves greatly.
(2). because the utility model adopts universal circuit, therefore make it get further exploitation and expanded application field.
(3). on software, adopt the interruption recycle design, thereby accelerated the speed of program loop greatly;
(4). adopt software " trap " and software to be disturbed automatic answering technology, thereby make reliability of system operation better,, also can automatically reply normally even make under the situation of program " richochet " being interfered.
Description of drawings:
Fig. 1 is the utility model host function block diagram
The CT2--central processing unit--form by IC1, IC2, IC3 among Fig. 3
The P2--input port--form by IC4, IP1, IP2 among Fig. 3
The P3--delivery outlet--form by IC6, OP1 among Fig. 3
There is storage in the RAM2--user program--forms by IC5 among Fig. 3
RXD--serial input port
TXD--serial delivery outlet
Fig. 2 is the utility model programmable device functional block diagram
The CT1--central processing unit is made up of IC7, IC8, IC9 among Fig. 4
The P1--I/O interface.Form by IC10 among Fig. 4
The RAM1--data memory--form by IC11 among Fig. 4
LCD--dot character display
The JP--keyboard
RXD serial input port
TXD serial delivery outlet
Fig. 3 is the utility model host circuit figure
The IC1--single chip microcomputer
The IC2--address latch
The IC3--memory under program
The IC4--I/O interface
IC5--user program memory
The IC6--I/O interface
The IP1--input isolation circuit
The IP2--input isolation circuit
The OP1--output driving circuit
RXD--serial input port
TXD--serial delivery outlet
Fig. 4 is the utility model programmable device circuit diagram
The IC7--single chip microcomputer
The IC8--address latch
The IC9--memory under program
The IC10--I/O interface
Fig. 5 is the utility model main frame and the general printed circuit board diagram of programmable device
Fig. 6 is the utility model host software FB(flow block).
Fig. 7 is the utility model programmable device software flow block diagram.
Fig. 8 is a functional diagram among the embodiment
OUT--main frame delivery outlet
IN--main frame input port
K1--output type options button
K2--checks display key
The K3--style changes increases key
The K4--style changes and reduces key
K5--time programming key
K6--ON/OFF programming key
The external light of T--
LED--light emitting diode nixie display
Embodiment
The utility model has been applied to light of stage controller and ornament lamp controller, has realized that cost is low, high-performance, multi-functional effect.
In the present embodiment, output terminal (OUT) is connected to 16 street lamp light (T).Other has seven delivery outlets to connect three light-emitting diode displays, this display is used to show light output style code, have 256 kinds of fixedly style confession user selections, can change the style number by K3 or K4, K1 is the output type options button, it can change the output Packet State, as 16 * 1 groups, 8 * 2 groups, 4 * 4 groups, 2 * 8 groups etc.K2 is used to check the usefulness of user program.K5, K6 are used for carrying out time and ON/OFF programming to exporting arbitrary path.
Present embodiment can be widely used in the light control of the large-scale theatrical evening of various complexity, the control of music fountain control and various dedicated advertisement lamps.

Claims (1)

1, a kind of Programmable Logic Controller, be made up of main frame and programmable device: main frame is by single-chip microcomputer (IC1), address latch (IC2), memory under program (IC3), I/O interface (IC4, IC6), user program memory (IC5), input isolation circuit (IP1, IP2), output driving circuit (OP1), serial communication interface (RXD, TXD) form, programmable device is by single-chip microcomputer (IC7), address latch (IC8), memory under program (IC9), I/O interface (IC10), keyboard (JP), data memory (IC11), dot character display (LCD), parallel output interface (CN), serial communication interface (RXD, TXD) form, it is characterized in that:
(1) main frame and programmable device all adopt general single chip microcomputer and general purpose I/O interface integrated circuit;
(2) the hardware printed circuit board (PCB) of main frame and programmable device adopts with a kind of printed circuit board (PCB).
CN 93212485 1993-05-15 1993-05-15 Programmable controller Expired - Fee Related CN2168274Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 93212485 CN2168274Y (en) 1993-05-15 1993-05-15 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 93212485 CN2168274Y (en) 1993-05-15 1993-05-15 Programmable controller

Publications (1)

Publication Number Publication Date
CN2168274Y true CN2168274Y (en) 1994-06-08

Family

ID=33793807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 93212485 Expired - Fee Related CN2168274Y (en) 1993-05-15 1993-05-15 Programmable controller

Country Status (1)

Country Link
CN (1) CN2168274Y (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1117303C (en) * 1997-11-26 2003-08-06 默勒有限公司 Mini controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1117303C (en) * 1997-11-26 2003-08-06 默勒有限公司 Mini controller

Similar Documents

Publication Publication Date Title
CN1087639C (en) Displaying information changing device and information processing system
CN1550960A (en) Mode-altering key for a character input device
CN2168274Y (en) Programmable controller
CN201853466U (en) LED (light-emitting diode) display screen control system
CN1878600A (en) Toy, data transmission method, and data transmission system
CN1854949A (en) AC servo controller
CN1750069A (en) Display system for persistance of vision and its method for realizing display
CN101080073A (en) A between-module communication circuit and method of dual-mode communication terminal
CN1851601A (en) Multi-path digital-control constant-flow source
CN1159656C (en) Arbiter and its bus system
CN1320456C (en) Automatic forming method for intelligent instrument interface
CN2888480Y (en) A multi-color backlighting source
CN1545308A (en) Multiple binary tree cycle timer scheduling method
CN200969094Y (en) Marseilles electronic lottery calculator
CN201044527Y (en) Decorating lamp
CN1180354C (en) USB control circuit capable of switching path automatically
CN1333071A (en) Interactive toy and method for generating reaction mode
CN1229960C (en) Knee mobile phoe system
CN2786743Y (en) Improved digital display screen module
CN1763725A (en) Computer state indication method and apparatus
CN1598740A (en) Computer keyboard and operating method
CN1149746C (en) Hand-held electronic equipment, and output system of displaying picture and method
CN1501236A (en) System and method of continuous unique key executing compound command
CN2634628Y (en) Anti-theft alarm controller
CN1098720C (en) Multiconnector for game machine

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee