EP0273054A1 - System for writing rom cassette for a programmable machine controller - Google Patents
System for writing rom cassette for a programmable machine controller Download PDFInfo
- Publication number
- EP0273054A1 EP0273054A1 EP87902139A EP87902139A EP0273054A1 EP 0273054 A1 EP0273054 A1 EP 0273054A1 EP 87902139 A EP87902139 A EP 87902139A EP 87902139 A EP87902139 A EP 87902139A EP 0273054 A1 EP0273054 A1 EP 0273054A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- ram
- address
- data
- stored
- rom cassette
- 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.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C7/00—Arrangements for writing information into, or reading information out from, a digital store
-
- 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/056—Programming the PLC
-
- 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
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/13—Plc programming
- G05B2219/13013—Transferring ram to eprom see also prom burning
-
- 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
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/13—Plc programming
- G05B2219/13161—Easily exchangable rom, eprom cassette, earom
Definitions
- the present invention relates to a ROM cassette writing system for a programmable machine controller.
- a programmable machine controller has come into wide use which implements the function of the sequence circuit through processing under program control.
- a programmable machine controller prestores, in a ROM cassette composed of an EPROM (an erasable and electrically reprogrammable ROM), Ladder diagram sequence language program a program written in PASCAL or a similar computer language to perform four operations, functional operations, etc., and a control programs for controlling them, and a microprocessor performs processing under control of these programs, effecting sequence control of the machine.
- Ladder diagram sequence language program and the program written in the computer language such as PASCAL (These programs will hereinafter be referred to as a PCM program.) are usually prepared using a RAM panel on which are mounted a ROM having stored therein the above-mentioned control program, a ROM having stored therein an editing program and a RAM for producing the PMC program.
- the PMC program generated on the RAM and the control program stored in the ROM are transferred serially to a ROM write via an interface circuit such as RS232C, whereby they are stored in the afore-mentioned ROM cassette.
- the PMC program is created using the RAM mounted on the RAM panel and is serially transferred to the ROM write for storage in the ROM cassette.
- the prior art since stored contents at the head address through the final address of the RAM having stored therein the PMC program are all transferred to the ROM writer, the prior art has such a defect as follows: That is to say, since contents of all storage areas of the RAM are always transferred regardless of the quantity of the PMC program, much time is wasted (during which stored contents of the RAM at those addresses where no PMC program is stored are transferred).
- the present invention offers a solution to the above-mentioned problem, and has for its object to eliminate a waste of time in writing the PMC program in the ROM cassette.
- the system of the present invention by which the PMC program prepared on the RAM is written onto the ROM cassette of a programmable machine controller, comprising:
- the address detected by the address decect means is an address of the RAM at which the final portion of the PMC program has been stored. Accordingly, the write means writes onto the RAM cassette the data of only the storage areas of the RAM where the PMC program has been stored.
- Fig. 1 is a block diagram illustrating an example of an apparatus for embodying the system of the present invention
- Fig. 2 is a plan view showing an example of the constitution of a RAM panel 22
- Fig. 3 is a flowchart showing the contents of processing by a microprocessor 21.
- Fig. 1 is a block diagram illustrating an example of an apparatus for embodying the system of the present invention.
- Reference numeral 1 indicates a numerical controller, 2 a programmable machine controller, 3 a machine tool, 4 a RAM which is shared between the numerical controller 1 and the programmable machine controller 2, 5 a ROM writer, 6 a ROM cassette composed of an EPROM or the like, 21 a microprocessor, 22 a RAM panel, 23 a keyboard, 24 a CRT, 25 a data memory for storing the states of relay contacts, 26 an interface circuit such as RS232C, and 27 an input/output unit.
- Fig. 2 is a plan view showing the constitution of the RAM panel 22.
- the RAM panel 22 is composed of a ROM 22a which has stored therein a monitor program, a RAM 22b in which the PMC program is prepared and storedj and a ROM 22d which has stored therein an editing program (a program for displaying the PMC program on the CRT 24 and inserting or removing a program).
- the ROM 22a is assigned addresses 0 to Al, the RAM 22b addresses (Al+1) to A2, and the ROM 22c addresses (A2+1) to A3.
- the programmer clears the whole area of the RAM 22b with FFH (eight bits all "1's") and then starts the preparation of the PMC program. Upon completion of the preparation of the PMC program, the programmer enters a transfer command from the keyboard 23.
- step Sl the count value N of a counter provided software-wise in the microprocessor is made A2 (the final address of the RAM 22b), followed by (step_S2) in which it is decided whether the stored contents at an address N of ⁇ the RAM 22b are FFH or not. If the result of the decision is YES, then the microprocessor 21 decrements the count value N of the counter by one and (step S3) and returns to the processing of step S2.
- step S2 the microprocessor 21 serially transfers the stored contents of the ROM 22a at the addresses 0 to A1 and the stored contents of the RAM 22b at the addresses (Al+l) to N successively to the ROM writer 5 via the interface circuit 26 (step S4), thereby storing the monitor program and the PMC program on the ROM cassette 6.
- the PMC program is stored in the RAM 22b at the addresses (Al+l) to A2', for example, as. shown in Fig. 2, it is when the count value N of the counter has reached A2' that the result of the decision in step S2 is NO. Accordingly, only the stored contents of the RAM 22b at the addresses (Al+1) to A2' where the PMC program has been stored are transferred to the ROM writer 5, and the stored contents of the addresses A2' to A2 where the PMC program has not been stored are not transferred to the ROM writer 5. This eliminates the waste of time existing in the prior art.
- the ROM cassette 6 on which the monitor program and the PMC program have been written as described above is connected to a bus instead of the RAM panel in the case of operating the programmable machine controller 2.
- the FFH is stored in the whole area of the RAM 22b prior to the production of the PMC program, it is also possible, of course, to store a specific code other than the FFH in the whole area of the RAM 22b.
- the system of the present invention by which a PMC program prepared on a RAM is written onto a ROM cassette of a programmable machine controller, comprises: readout means which successively reads out stored data of the RAM, starting at the final address, such as the microprocessor 21; decision means which decides whether the data read out by the readout means is a specific code (FFH in the embodiment) or not, such as the microprocessor 21; address detect means which detects the address of the RAM at which is stored the data decided first by the decision means not to be the specific code, such as the microprocessor 21; and write means which successively writes the stored data of the RAM onto the ROM cassette, starting at the head address of the RAM, such as the microprocessor 21 and the ROM writer 5.
- readout means which successively reads out stored data of the RAM, starting at the final address, such as the microprocessor 21
- decision means which decides whether the data read out by the readout means is a specific code (FFH in the embodiment) or not, such as the microprocessor 21
- the write means sequentially writes onto the ROM cassette the data stored in the RAM from the head address to the address detected by the address detect means, and accordingly, writes only the PMC program onto the ROM cassette. Therefore, the present invention possesses the advantage of eliminating the waste of time from which the prior art suffers.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
- Numerical Control (AREA)
- Read Only Memory (AREA)
Abstract
In a system for writing ROM cassette for a programmable machine controller, to write a PMC program prepared on a RAM onto the ROM cassette, provision is made of: a reading means which successively reads the data stored in said RAM starting from a final address; a discrimination means which discriminates whether the data read by said reading means is a specific code or not; an address detecting means which detects the address of said RAM which stores the data that was first discriminated by said discrimination means not to be said specific code; and a writing means which successively writes the data stored in said RAM starting from the head address; wherein said writing means is so constituted as to successively write the data onto said ROM cassette from the head address of said RAM through up to the address detected by said address detecting means. The address detected by the address detecting means is an address of the RAM which stores a final portion of the PMC program. Therefore, the writing means writes onto the RAM cassette the data of only a portion where the PMC program is stored.
Description
- The present invention relates to a ROM cassette writing system for a programmable machine controller.
- It is customary in the prior art to interpose between a numerical controller and a machine a sequence circuit composed of a number of relays and actuate required ones of them by a command from the numericalccontroller, thereby causing machine elements to perform an operation corresponding to the command. However, the provision of such a sequence circuit inevitably makes the system bulky and expensive because it calls for a number of relays.
- To avoid this, a programmable machine controller has come into wide use which implements the function of the sequence circuit through processing under program control. In general, such a programmable machine controller prestores, in a ROM cassette composed of an EPROM (an erasable and electrically reprogrammable ROM), Ladder diagram sequence language program a program written in PASCAL or a similar computer language to perform four operations, functional operations, etc., and a control programs for controlling them, and a microprocessor performs processing under control of these programs, effecting sequence control of the machine.
- Incidentally, Ladder diagram sequence language program and the program written in the computer language such as PASCAL (These programs will hereinafter be referred to as a PCM program.) are usually prepared using a RAM panel on which are mounted a ROM having stored therein the above-mentioned control program, a ROM having stored therein an editing program and a RAM for producing the PMC program. The PMC program generated on the RAM and the control program stored in the ROM are transferred serially to a ROM write via an interface circuit such as RS232C, whereby they are stored in the afore-mentioned ROM cassette.
- As described above, according to the prior art, the PMC program is created using the RAM mounted on the RAM panel and is serially transferred to the ROM write for storage in the ROM cassette. However, since stored contents at the head address through the final address of the RAM having stored therein the PMC program are all transferred to the ROM writer, the prior art has such a defect as follows: That is to say, since contents of all storage areas of the RAM are always transferred regardless of the quantity of the PMC program, much time is wasted (during which stored contents of the RAM at those addresses where no PMC program is stored are transferred).
- The present invention offers a solution to the above-mentioned problem, and has for its object to eliminate a waste of time in writing the PMC program in the ROM cassette.
- To solve the above problem, the system of the present invention by which the PMC program prepared on the RAM is written onto the ROM cassette of a programmable machine controller, comprising:
- readout means for successively reading out stored contents of the RAM, starting at the final address;
- decision means for deciding whether the data read out by the readout means is a specific code or not;
- address detect means for detecting the address of the RAM at which is stored the data which was first decided by the decision means not to be the specific code; and
- write means for suceessibely writing the stored contents of the RAM onto the ROM cassette, starting at the head address;
- wherein the write means is so arranged as to succesively write the data onto the ROM cassette from the head address of the RAM to the address detected by the address detect means.
- The address detected by the address decect means is an address of the RAM at which the final portion of the PMC program has been stored. Accordingly, the write means writes onto the RAM cassette the data of only the storage areas of the RAM where the PMC program has been stored.
- Fig. 1 is a block diagram illustrating an example of an apparatus for embodying the system of the present invention;: Fig. 2 is a plan view showing an example of the constitution of a
RAM panel 22; and Fig. 3 is a flowchart showing the contents of processing by amicroprocessor 21. - Fig. 1 is a block diagram illustrating an example of an apparatus for embodying the system of the present invention.
Reference numeral 1 indicates a numerical controller, 2 a programmable machine controller, 3 a machine tool, 4 a RAM which is shared between thenumerical controller 1 and theprogrammable machine controller 2, 5 a ROM writer, 6 a ROM cassette composed of an EPROM or the like, 21 a microprocessor, 22 a RAM panel, 23 a keyboard, 24 a CRT, 25 a data memory for storing the states of relay contacts, 26 an interface circuit such as RS232C, and 27 an input/output unit. Fig. 2 is a plan view showing the constitution of theRAM panel 22. TheRAM panel 22 is composed of aROM 22a which has stored therein a monitor program, aRAM 22b in which the PMC program is prepared and storedj and a ROM 22d which has stored therein an editing program (a program for displaying the PMC program on theCRT 24 and inserting or removing a program). TheROM 22a is assignedaddresses 0 to Al, theRAM 22b addresses (Al+1) to A2, and theROM 22c addresses (A2+1) to A3. - In the case of preparing Ladder diagram sequence language program and a program written in PASCAL or a similar computer language, the programmer clears the whole area of the
RAM 22b with FFH (eight bits all "1's") and then starts the preparation of the PMC program. Upon completion of the preparation of the PMC program, the programmer enters a transfer command from thekeyboard 23. - When the transfer command is entered, the
microprocessor 21 initiates the processing shown in the flowchart of Fig. 3, starting with (step Sl) in which the count value N of a counter provided software-wise in the microprocessor is made A2 (the final address of theRAM 22b), followed by (step_S2) in which it is decided whether the stored contents at an address N of` theRAM 22b are FFH or not. If the result of the decision is YES, then themicroprocessor 21 decrements the count value N of the counter by one and (step S3) and returns to the processing of step S2. Where the result of the decision in step S2 is NO, themicroprocessor 21 serially transfers the stored contents of theROM 22a at theaddresses 0 to A1 and the stored contents of theRAM 22b at the addresses (Al+l) to N successively to the ROM writer 5 via the interface circuit 26 (step S4), thereby storing the monitor program and the PMC program on the ROM cassette 6. - Now, assuming that the PMC program is stored in the
RAM 22b at the addresses (Al+l) to A2', for example, as. shown in Fig. 2, it is when the count value N of the counter has reached A2' that the result of the decision in step S2 is NO. Accordingly, only the stored contents of theRAM 22b at the addresses (Al+1) to A2' where the PMC program has been stored are transferred to the ROM writer 5, and the stored contents of the addresses A2' to A2 where the PMC program has not been stored are not transferred to the ROM writer 5. This eliminates the waste of time existing in the prior art. - Incidentally, the ROM cassette 6 on which the monitor program and the PMC program have been written as described above is connected to a bus instead of the RAM panel in the case of operating the
programmable machine controller 2. Further, while in the above embodiment the FFH is stored in the whole area of theRAM 22b prior to the production of the PMC program, it is also possible, of course, to store a specific code other than the FFH in the whole area of theRAM 22b. - As described above, the system of the present invention by which a PMC program prepared on a RAM is written onto a ROM cassette of a programmable machine controller, comprises: readout means which successively reads out stored data of the RAM, starting at the final address, such as the
microprocessor 21; decision means which decides whether the data read out by the readout means is a specific code (FFH in the embodiment) or not, such as themicroprocessor 21; address detect means which detects the address of the RAM at which is stored the data decided first by the decision means not to be the specific code, such as themicroprocessor 21; and write means which successively writes the stored data of the RAM onto the ROM cassette, starting at the head address of the RAM, such as themicroprocessor 21 and the ROM writer 5. The write means sequentially writes onto the ROM cassette the data stored in the RAM from the head address to the address detected by the address detect means, and accordingly, writes only the PMC program onto the ROM cassette. Therefore, the present invention possesses the advantage of eliminating the waste of time from which the prior art suffers.
Claims (1)
- A ROM cassette writing system for a programmable machine controller in which a PMC program prepared on a RAM is written onto a ROM cassette, comprising:readout means for successively reading out stored data of the RAM, starting at its final address;decision means for deciding whether the data read out by the readout means is a specific code or not;address detect means for detecting the address of the RAM at which is stored the data which was first decided by the decision means not to be the specific code; andwrite means for successively writing the stored data of the RAM onto the ROM cassette, starting at the head address of the RAM;
characterized in that the write means successively writes onto the ROM cassette the data stored in the RAM at its head address to the address detected by the address detect means.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP70366/86 | 1986-03-28 | ||
JP61070366A JPS62226309A (en) | 1986-03-28 | 1986-03-28 | Write system for rom cassette in programmable machine controller |
Publications (2)
Publication Number | Publication Date |
---|---|
EP0273054A1 true EP0273054A1 (en) | 1988-07-06 |
EP0273054A4 EP0273054A4 (en) | 1990-06-26 |
Family
ID=13429367
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP19870902139 Withdrawn EP0273054A4 (en) | 1986-03-28 | 1987-03-19 | System for writing rom cassette for a programmable machine controller. |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP0273054A4 (en) |
JP (1) | JPS62226309A (en) |
WO (1) | WO1987006049A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1996021178A1 (en) * | 1994-12-29 | 1996-07-11 | Siemens Energy And Automation, Inc. | Serial access memory cartridge for programmable logic controller |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0743839Y2 (en) * | 1988-05-12 | 1995-10-09 | カシオ計算機株式会社 | Data storage |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2152564A1 (en) * | 1971-09-13 | 1973-04-27 | Allen Bradley Co | |
FR2206540A1 (en) * | 1972-11-15 | 1974-06-07 | Bendix Corp |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS58143496A (en) * | 1982-02-22 | 1983-08-26 | Yokogawa Hokushin Electric Corp | Writing device for read-only memory |
-
1986
- 1986-03-28 JP JP61070366A patent/JPS62226309A/en active Pending
-
1987
- 1987-03-19 EP EP19870902139 patent/EP0273054A4/en not_active Withdrawn
- 1987-03-19 WO PCT/JP1987/000170 patent/WO1987006049A1/en not_active Application Discontinuation
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2152564A1 (en) * | 1971-09-13 | 1973-04-27 | Allen Bradley Co | |
FR2206540A1 (en) * | 1972-11-15 | 1974-06-07 | Bendix Corp |
Non-Patent Citations (1)
Title |
---|
See also references of WO8706049A1 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1996021178A1 (en) * | 1994-12-29 | 1996-07-11 | Siemens Energy And Automation, Inc. | Serial access memory cartridge for programmable logic controller |
Also Published As
Publication number | Publication date |
---|---|
JPS62226309A (en) | 1987-10-05 |
EP0273054A4 (en) | 1990-06-26 |
WO1987006049A1 (en) | 1987-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0386935A2 (en) | Apparatus capable of varying number of wait states for access | |
EP0362386B1 (en) | Expert system for a machine tool equipped with an nc apparatus | |
US5265004A (en) | Sequence controller with combinatorial Boolean logic | |
US4504900A (en) | Sequence instruction display system | |
US6038375A (en) | Non-volatile memory data initialization/rewrite apparatus for a printer | |
EP0389175A3 (en) | Data prefetch system | |
US5713036A (en) | Programmable logic controller having program for designating addresses of memory to which data indicating operating statuses of machine arc to be stored | |
EP0089193A2 (en) | Method and apparatus for displaying ladder diagrams | |
EP0273054A1 (en) | System for writing rom cassette for a programmable machine controller | |
US4839852A (en) | Programmable controller with self testing I/O structure | |
US4887220A (en) | Parameter initializing method for a programmable machine controller | |
EP0230536B1 (en) | I/o processor for programmable sequence controller | |
KR100425371B1 (en) | Method of generating and storing a user programme consisting of instructions for a stored-programme control unit and method of operating the stored-programme control unit | |
EP0550864B1 (en) | Communication control apparatus | |
US4601009A (en) | Memory system and accessing method | |
US5315500A (en) | Diagnostic system and method for detecting retardation of an object controlled by a programmable controller | |
GB1580808A (en) | Sequence controller with a state memory for input and output elements | |
EP0216336B1 (en) | Programmable controller with self testing i/o structure | |
EP0089194B1 (en) | Method and apparatus for displaying ladder diagrams | |
JP3000989B2 (en) | Numerical control method and device | |
JP2727717B2 (en) | Programmable controller system | |
KR100319870B1 (en) | Method for processing the data in the non volatilization RAM safely | |
JP2600499B2 (en) | Fault alarm output method and circuit for peripheral control device | |
EP0425688A1 (en) | Method of editing program for program controller | |
EP0381140A2 (en) | Data processing apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
17P | Request for examination filed |
Effective date: 19871123 |
|
AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): DE FR GB |
|
A4 | Supplementary search report drawn up and despatched |
Effective date: 19900626 |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN |
|
18D | Application deemed to be withdrawn |
Effective date: 19900905 |
|
RIN1 | Information on inventor provided before grant (corrected) |
Inventor name: KIYA, NOBUYUKI Inventor name: SAIKI, YOSHIHARU Inventor name: TORIYAMA, SHUJI |