CN1407428A - Program language input method based on eight segment digital symbols - Google Patents
Program language input method based on eight segment digital symbols Download PDFInfo
- Publication number
- CN1407428A CN1407428A CN 01127173 CN01127173A CN1407428A CN 1407428 A CN1407428 A CN 1407428A CN 01127173 CN01127173 CN 01127173 CN 01127173 A CN01127173 A CN 01127173A CN 1407428 A CN1407428 A CN 1407428A
- Authority
- CN
- China
- Prior art keywords
- function
- digital symbols
- segment digital
- language
- pixel
- 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
Images
Landscapes
- Programmable Controllers (AREA)
Abstract
An eight-segment numeral symbols based program language input method can be used to directly input electric layout diagram with specific logical functions by various program controllers with eight-segment numeral symbols display device.
Description
The invention belongs to a kind of program language input method based on eight segment digital symbols, this input method can be widely used in various novel programmable controllers (hereinafter to be referred as PC) with process control function.
The eight segment digital symbols of indication of the present invention is a kind of most popular character Display mode on industrial automation instrument at present, mainly contain displays such as liquid crystal, LED luminotron, fluorescence, plasma, it is simple that this class display mostly possesses driving, reliable, clear display, lower-price characteristic is specially adapted to industry spot and makes data presentation.The programmable device that general in the market PC is disposed also adopts eight sections charactrons as its information display mostly.
As everyone knows, great majority are used its master control logic relation of system of PC and are all represented with a kind of so-called ladder diagram that is similar to electrical schematic diagram, make the PC that is adopted have the logical relation that ladder diagram is represented, most PC make the commercial city and have stipulated the corresponding instruction set of logical relation that cover and ladder diagram are represented for the programmable device based on eight segment digital symbols separately and come to be PC input logic function.If with the logical relation shown in ladder diagram input PC, at first must press language rule that PC manufacturer stipulates with corresponding statement written-out program according to the logical relation of ladder diagram, then program is imported PC with programmable device.Yet when the logical relation more complicated, accurate written-out program will be very loaded down with trivial details and make mistakes an easily job.And, the language rule of each PC manufacturer defined is incompatible in the market, particularly when the system that uses PC not only needed to have logic control but also needs to have analog quantity observing and controlling function, the engineering technical personnel that generally only possess electrician's knowledge were difficult to grasp the language of each PC manufacturer defined fast and compile out accurate application program.
Adopt eight sections charactrons generally must not work out specific program in the market, need only do a spot of parameter setting, promptly can be applicable in the various analog quantity TT﹠C system as the instrument and meter with analog quantity observing and controlling function of its information display.But when application system had both needed analog quantity observing and controlling, when needing switching value observing and controlling again, this quasi-instrument instrument can't satisfy the needs of application system mostly.
The objective of the invention is to provide a kind of input method easy to learn, this input method can various based on the novel programmable controller with process control function of eight segment digital symbols in the direct electrical schematic diagram of input with specific logical function.
Please examine accompanying drawing 21 and accompanying drawing 22, each figure corresponding row number and row number each indicated group information are compared, we can find to have strict corresponding relationship between them, that is to say, accompanying drawing 22 has contained all information of drawings attached 21.Accompanying drawing 21 is threephase asynchronous Y-Δ reduced voltage starting control electrical schematic diagrams that a kind of simplified painting is represented.So the programmable device that adopts eight segment digital symbols to design just might directly be imported PC with the logical relation shown in the electrical schematic diagram and needn't program.For the relation between accurate description electrical schematic diagram and the eight hop count sign indicating numbers more and can take into account logic control and process control simultaneously, we simplify the back with common electrical schematic diagram and introduce new notions such as element, function, parameter pointer, operating unit, virtual instrument, form a kind of patterned PC programming language of taking into account logic control and process control simultaneously, the present invention is with this language called after P language based on the eight segment digital symbols input.
1.P linguistic notation collection
Character combination among P language employing 0~9, the A~Z is as the identifier of element, contact, function, parameter pointer, operating unit, virtual instrument, glyph [.] plays an important role in the P language as designator, and character and eight hop count sign indicating number corresponding relations are referring to accompanying drawing 1.
P language definition often open, normally closed, normal open, normal off, often open down connect, connect under normally closed, connect under the normal open, connect under the normal off, nine kinds of icons of element interface, the title of each icon, the technique of painting and with eight hop count sign indicating number corresponding relations referring to accompanying drawing 2.
2.P language syntax
The described function of P language is that contact and the element interface by the line with logical relation, element constitutes, and it is a kind of patterned language.For ease of reading and debugging, the pixel that P language established procedure file number is arranged by row number and row by strictness is formed, and the upper left corner is 0000 row, 00 row, and Cis time is 0001 row downwards, and 0002 goes, and 0003 goes ..., be listed as for Cis time 01 to the right, 02 row, 03 row ...The program Far Left is a power lead, and rightmost pixel can only be element interface or function identifier (except 0000 row), and the row of rightmost pixel correspondence are called the element interface row, and the pixel of other each row can only be contact, identifier and the logical relation line of element.
P language file 0000 row be for Cis time from left to right filename, extension name, operational code ..., 0000 row is mainly used in explanation to file, and its effect and putting in order is determined as required by concrete type.
P language file 0001 row begins to write the program that can regularly circulate and carry out, and must there be end mark [END] at executable program end line 1 row place by Shall.
Following each row of end mark [END] can be write the prestrain explanation, and the prestrain explanation can be system indicates needs disposable setting when powering on parameter and element state.Parameter is set need uses two adjacent pixels of colleague, left pixel is placed function identifier and parameter pointer, and right pixel is placed the required parameter of function.The setting element state only needs a pixel placing element identifier and element state.Must there be end mark [ENDF] at prestrain explanation end line 1 row place by Shall.The prestrain explanation is not essential according to application need.
2.1 element and counterelement
Each element in the P language or element contacts must have an identifier, are called the element identifier symbol.Element identifier symbol is by two or two above character representations, and the first character must Shall be a character in 26 characters of A~Z, the expression component type.After the sexadecimal number that connects more than one or one represent element addresses, the element addresses figure place is determined by different types.When element addresses was one digit number, the manageable element number of P language was 26 * 16=416.When element addresses was two figure places, the manageable element number of P language was 26 * 16 * 16=6656.When element addresses was three figure places, the manageable element number of P language was 26 * 16 * 16 * 16=106496.For general type, element addresses is got two figure places and is enough used.Behind the first character element of glyph [.] being arranged is counterelement.
Each element in the P language all has the contact of one or more reusable two kinds of forms, i.e. normally opened contact and normally closed contact.An element interface is connected with the corresponding normally opened contact of this element interface during with power connection, and normally closed contact disconnects.A counterelement interface disconnects with the corresponding normally opened contact of this counterelement interface during with power connection, and normally closed contact is connected.
For concrete type, everyly be called real elements with the hardware corresponding elements, otherwise be virtual component.The function that virtual component is mainly used in real elements expands, in order to enlarge the range of application of real elements.
Real elements is exactly in fact input, the output port of concrete type hardware, is called input element and output element.The input element interface can not appear at the element interface row of P language executable program file.
2.2 on-off element
The element of no any symbol is called on-off element behind the element addresses, is mainly used in logic control.
2.3 function element
Have the element of glyph [.] to claim function element behind the element addresses, be mainly used in finish special-purpose logic control and with the related logic control of sequential.Be expressed as the control end of function element in the P language program during the no any symbol in the glyph [.] of function element back.Can be expressed as the state end of function element behind the glyph [.] with the sexadecimal number more than or.A function element is indicated with 0~F respectively with 16 state ends of a sexadecimal number definable.A function element is indicated with 00~FF respectively with 256 state ends of two sexadecimal number definables.For general type, the state end of function element is got one digit number and is enough used.
Function element must connect an identifier that is used to define the element function by Shall in the P language program, be called function identifier.Function identifier only allows to be placed on function element control end same column next line or the right row of colleague that are defined, and particular location is stipulated voluntarily by different machines.Virtual component all can be defined as function element with the element with output terminal.At same machine intimate, different elements can be defined as with a kind of function, but same element can only be defined as a kind of specific function.
2.4 function identifier
Function identifier is made up of function type and parameter pointer.Function type is that function element indicates specific function, as with door or door, timer, counter, rest-set flip-flop, pulse producer, ring counter or the like.Parameter pointer is the position that function element indicates first parameter of desired parameters array, and parameter array length is determined that by concrete function the array that the difference in functionality element uses can not be overlapping.Separate with glyph [.] between function type and the parameter pointer.
Function type is by one or an above character representation, and the first character must Shall be a character in 26 characters of A~Z, other everybody can be 0~9, any character among A~Z.The character number of composition function type determined by different types, but the character number of same type composition function type can only be got element identifier symbol character number and subtracts one.
Parameter pointer is by two or two above character representations, and character can be 0~9, any character among A~Z.The first character begins to be indicated by one or above character the operating unit number at parameter place, and everybody indicates the parameter numbering of the operating unit at parameter place for other.Operating unit sign character number is determined by different types with parameter numbering character number.
2.5 operating unit
For the various electromechanical equipments that can regulate continuously, as various electric actuator, buncher, adjustable speed water pump, speed-governing belt scale, rotary kiln, power regulating eqiupment etc., will operate these equipment, a personal-machine interface must be arranged, this man-machine interface is defined as operating unit.The operating unit number is determined by different types.
Each operating unit all has the special parameters register and the general parameter register of some.The general parameter register can be split into the continuous set of dispense of several piece and give a plurality of function element.
2.6 virtual instrument
Each operating unit can constitute a plurality of meter speciallies of finishing specific function through suitable configuration, shows control instrument or the like as the display temperature controller table of band pid control function, the flow of band fuzzy control function, and this instrument is defined as virtual instrument.Each operating unit should have the specific function indicator corresponding to virtual instrument, is used to indicate current operating unit the virtual instrument of which specific function to be operated.The virtual instrument number is determined by different types.
Each virtual instrument with specific function can have a plurality of switching value input and switching value output interfaces of forming with virtual component, and the interface of these virtual components can enroll the logic control of the system that participates in directly in the P language program.
3.P language pixel and eight segment digital symbols corresponding relation example
According with [P10] and often open the P language pixel with normally opened contact logic function that icon is formed for element identifier in accompanying drawing 3 square frames (1), is four corresponding eight segment digital symbols in the square frame (2).
For the P language pixel with normally closed contact logic function of element identifier symbol [P10] and normally closed icon composition, in the square frame (2) four corresponding eight segment digital symbols in accompanying drawing 4 square frames (1).
The P language pixel of forming for the normal open icon in accompanying drawing 5 square frames (1) with normal open logic function is four corresponding eight segment digital symbols in the square frame (2).
The P language pixel of forming for the normal off icon in accompanying drawing 6 square frames (1) with normal off logic function is four corresponding eight segment digital symbols in the square frame (2).
In accompanying drawing 7 square frames (1) for element identifier symbol [P10] and often open down that the map interlinking symbol forms have normally opened contact logic function and a following P language pixel that connects logic function, be four eight segment digital symbols of correspondence in the square frame (2).
Having the normally closed contact logic function and connect the P language pixel of logic function down for what element identifier symbol [P10] and the normally closed symbol of map interlinking were down formed in accompanying drawing 8 square frames (1), is four eight segment digital symbols of correspondence in the square frame (2).
Having the normal open logic function and connect the P language pixel of logic function down for what map interlinking symbol under the normal open was formed in accompanying drawing 9 square frames (1), be four eight segment digital symbols of correspondence in the square frame (2).
Having the normal off logic function and connect the P language pixel of logic function down for what map interlinking symbol under the normal off was formed in accompanying drawing 10 square frames (1), be four eight segment digital symbols of correspondence in the square frame (2).
For the P10 element interface P language pixel with relay switch function of element identifier symbol [P10] and element interface icon composition, in the square frame (2) four corresponding eight segment digital symbols in accompanying drawing 11 square frames (1).
For the P10 switch counterelement interface P language pixel with relay function of counterelement identifier [P.10] and element interface icon composition, in the square frame (2) four corresponding eight segment digital symbols in accompanying drawing 12 square frames (1).
Being function element identifier [P10.], element interface icon and the P language pixel that is timed to the function element control interface with timing relay effect of turn-on power loss identifier [T1.23] composition in accompanying drawing 13 square frames (1), is four corresponding eight segment digital symbols in the square frame (2).
Accompanying drawing 14 is another kind of method for expressing of function shown in the accompanying drawing 13.
Being the function element state interface P language pixel that function element state interface identifier [P10.F] and element interface icon are formed in accompanying drawing 15 square frames (1), is four corresponding eight segment digital symbols in the square frame (2).
Being the function counterelement state interface P language pixel that function counterelement state interface identifier [P.10.F] and element interface icon are formed in accompanying drawing 16 square frames (1), is four corresponding eight segment digital symbols in the square frame (2).
In accompanying drawing 17 square frames (1) function element state interface identifier [P10.F] and the P language pixel of often opening the icon composition with normally opened contact logic function, being four corresponding eight segment digital symbols in the square frame (2), is five corresponding eight segment digital symbols in the square frame (3).
It in accompanying drawing 18 square frames (1) the P language pixel that function element state interface identifier [P10.F] and normally closed icon are formed with normally closed contact logic function, being four corresponding eight segment digital symbols in the square frame (2), is five corresponding eight segment digital symbols in the square frame (3).
In accompanying drawing 19 square frames (1) for function element state interface identifier [P10.F] and often open down that map interlinking symbol forms have normally opened contact logic function and a following P language pixel that connects logic function, being four corresponding eight segment digital symbols in the square frame (2), is five corresponding eight segment digital symbols in the square frame (3).
Have normally closed contact logic function and a following P language pixel that connects logic function for what function element state interface identifier [P10.F] and normally closed down map interlinking symbol were formed in accompanying drawing 20 square frames (1), being four corresponding eight segment digital symbols in the square frame (2), is five corresponding eight segment digital symbols in the square frame (3).
4.P Programming with Pascal Language example
Can move the target machine regulation of program shown in the accompanying drawing 21:
1) target machine has from left to right tactic 1#~8#8 operating unit, and each operating unit has one group of eight segment digital symbols display of being made up of four LED charactrons and is used to show a P language program pixel.Corresponding 00~07 row P language program pixel of the alphanumeric display order of 1#~8# operating unit, 07 row P language program pixel of the alphanumeric display correspondence of 8# operating unit is a P language program right column pixel, i.e. the element interface row.Target machine has one group of eight segment digital symbols display of being made up of four LED charactrons and is used to show P language program pixel 0000~0255 line number count value.
2) target machine has [0]~[9], [A]~[Z], [.] character keys, has [often opening], [normally closed], [normal open], [normal off] icon key, and has necessary editing key and be used to import P language character and the icon shown in accompanying drawing 1 and the accompanying drawing 2.
3) target machine regulation element addresses is two sexadecimal numbers, and wherein C00~CFF is an input element, and P00~PFF is an output element.
4) target machine predetermined function type is by two character representations, and T0 possesses the time-delay turn-on power loss, and T1 possesses the time-delay break function, and C0 possesses the turn-on power loss of counting down to, and C1 possesses the break function of counting down to.
5) target machine regulation parameter pointer is by two character representations, and the first character is an operating unit number, 0~7 corresponding 1#~8# operating unit.Second is parameter numbering, 0~35# parameter of corresponding each operating unit of 0~Z.
4.1 threephase asynchronous Y-Δ reduced voltage starting control
Configuration: C10-start button input end; P10-outputs to the general supply contactor;
C11-stop button input end; P11-outputs to and the asterism contactor;
C12-electrical fault input end; P12-outputs to and the connection delta tentaculum.
The 3rd parameter Zhong Let of 2# operating unit puts the reduced voltage starting delay time that can revise at any time.
Accompanying drawing 21 is a threephase asynchronous Y-Δ reduced voltage starting control P language program, and accompanying drawing 22 is the input procedure for displaying based on eight segment digital symbols with accompanying drawing 21 corresponding ranks P language pixels.
In sum, the P language program in fact is exactly a kind of electrical schematic diagram through the standardization technique of painting, and it follows the design rule of general electrical principle, is easy to be accepted by general electrical engineering technician.P language character and icon collection based on eight segment digital symbols can directly adopt eight hop count sign indicating numbers to do to programme on the various novel programmable controller of display format and debug this electrical schematic diagram through the standardization technique of painting, provide fabulous scheme for applying these novel programmable controllers on a large scale.
Claims (5)
1. program language input method based on eight segment digital symbols, the graphical program that it is characterized in that being similar to electric control theory figure directly have the eight segment digital symbols display capabilities and are having input or debugging on the equipment of programmable controller function.
2. input method according to claim 1, it is characterized in that electric control theory figure standard is changed into the strict pixel of number arranging by row number and row that contains specific function, these pixels that contain specific function have one-to-one relationship with the display graphics of one group of eight segment digital symbols composition.
3. input method according to claim 2, the pixel that it is characterized in that containing specific function are to be combined by the character more than 0 or 0, [.] symbol and 1 icon more than 0 or 0.
4. input method according to claim 3, the character that it is characterized in that forming pixel can be 0,1,2,3,4,5,6,7,8,9, the character among A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y and the Z, and the display graphics that these characters and eight segment digital symbols are formed has one-to-one relationship.
5. input method according to claim 3, it is characterized in that the icon of forming pixel is the icon in [often opening], [normally closed], [normal open], [normal off], [often open down and connect], [connecing under normally closed], [connecing under the normal open], [the connecing under the normal off] and [element interface], the display graphics that these icons and eight segment digital symbols are formed has one-to-one relationship.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 01127173 CN1407428A (en) | 2001-09-05 | 2001-09-05 | Program language input method based on eight segment digital symbols |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 01127173 CN1407428A (en) | 2001-09-05 | 2001-09-05 | Program language input method based on eight segment digital symbols |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1407428A true CN1407428A (en) | 2003-04-02 |
Family
ID=4667161
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 01127173 Pending CN1407428A (en) | 2001-09-05 | 2001-09-05 | Program language input method based on eight segment digital symbols |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1407428A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102331728A (en) * | 2011-10-13 | 2012-01-25 | 吴继坤 | Direct-reading circuit diagram type controller and control method thereof |
CN109683885A (en) * | 2018-12-26 | 2019-04-26 | 王新宇 | The method and device thereof of programming language input, apparatus control method |
-
2001
- 2001-09-05 CN CN 01127173 patent/CN1407428A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102331728A (en) * | 2011-10-13 | 2012-01-25 | 吴继坤 | Direct-reading circuit diagram type controller and control method thereof |
CN109683885A (en) * | 2018-12-26 | 2019-04-26 | 王新宇 | The method and device thereof of programming language input, apparatus control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA1183292A (en) | Telephone apparatus capable of inputting character data | |
KR100238358B1 (en) | Programming system for sequence control and control unit for executing program for sequence control | |
JPS6122808B2 (en) | ||
CN108319178B (en) | Frequency converter and method for automatically acquiring internal parameter information of product | |
CN1407428A (en) | Program language input method based on eight segment digital symbols | |
JP2008158813A (en) | Programmable display unit, display control program and recording medium with this program recorded | |
CN112836248A (en) | Method and system for drawing electrical wiring diagram | |
KR970049266A (en) | Computer systems | |
Jones | Programmable logic controllers: the complete guide to the technology | |
CN1588258A (en) | Intelligent analogue simulating method for switch volume control process | |
FI87403C (en) | Programmable alarm clock | |
CN2210423Y (en) | Computer digital displaying regulating arrangement | |
Mendoza | PLC controlled cascaded water tank system | |
CN209746893U (en) | PLC teaching aid | |
CN109754747A (en) | Integrated LED drive circuit structure and corresponding LED display system | |
CN1310521A (en) | Electronic counter | |
Kaftan | PLC Basic Course with SIMATIC S7 | |
SU1288745A1 (en) | Permanent calendar | |
JP4913021B2 (en) | How to edit ladder diagram | |
CN100442109C (en) | Reference voltage changing over circuit and changing over method | |
CN1313543A (en) | Franking machine with languade conversion function | |
JP3688518B2 (en) | Process control controller label information processing method | |
KR950002090Y1 (en) | Display unit | |
CN102739232A (en) | Level shifter circuit | |
SU1327090A1 (en) | Apparatus for displaying graphic information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |