JPH05224712A - Producing method of prom for programmable controller - Google Patents
Producing method of prom for programmable controllerInfo
- Publication number
- JPH05224712A JPH05224712A JP2559892A JP2559892A JPH05224712A JP H05224712 A JPH05224712 A JP H05224712A JP 2559892 A JP2559892 A JP 2559892A JP 2559892 A JP2559892 A JP 2559892A JP H05224712 A JPH05224712 A JP H05224712A
- Authority
- JP
- Japan
- Prior art keywords
- prom
- program
- memory
- user
- execution program
- 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
- 238000000034 method Methods 0.000 title abstract description 7
- 238000012545 processing Methods 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 2
- 239000000758 substrate Substances 0.000 description 2
- 239000013256 coordination polymer Substances 0.000 description 1
- 238000012805 post-processing Methods 0.000 description 1
Landscapes
- Programmable Controllers (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明はプログラマブル・コント
ローラ用PROMの作成方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for making a PROM for a programmable controller.
【0002】[0002]
【従来の技術及び発明が解決しようとする課題】図2は
PROMライタの構成図である。このPROMライタ
は、CPU1、メモリ2及びPROMインターフェース
回路3から構成されている。PROMインターフェース
回路3はPROM4への書き込み又はPROM4に書き
込まれた内容を読み込み出すための回路であり、メモリ
2にはPROM4又はプログラマブル・コントローラ
(以下PCという)5から読み出されたユーザプログラ
ムが格納される。2. Description of the Related Art FIG. 2 is a block diagram of a PROM writer. This PROM writer comprises a CPU 1, a memory 2 and a PROM interface circuit 3. The PROM interface circuit 3 is a circuit for writing to the PROM 4 or reading out the contents written in the PROM 4, and the memory 2 stores a user program read from the PROM 4 or a programmable controller (hereinafter referred to as PC) 5. It
【0003】図3は従来のPCのPROMの作成方法を
示したフローチャートである。まず、PROM4又はP
C5からユーザープログラムの読み出しを行ない、メモ
リ2に格納する。次に、このメモリ2内のユーザープロ
グラムをPROMライタに新らしく装着された未書き込
み状態のPROM4に書き込む。FIG. 3 is a flow chart showing a conventional method for creating a PROM for a PC. First, PROM4 or P
The user program is read from C5 and stored in the memory 2. Next, the user program in the memory 2 is written in the unwritten PROM 4 newly installed in the PROM writer.
【0004】従来、PC用PROMの作成に際しては、
上述のようにPROMライタによりユーザープログラム
を書き込んでおり、このPROMをPCに装着して使用
した場合には次のような問題点があった。 (1) PCが運転を実行する際には、PROMに格納され
ているユーザープログラムをCPUが直接実行できる機
械語からなる実行プログラムに変換し、それをPC内の
メモリに格納しなければならない。この実行プログラム
は、一般にはユーザープログラムの3倍程度の容量とな
るため、格納用メモリが余分に必要となり、コスト高と
なっている。また、この格納用メモリを基板上に配置し
なければならず、小規模PCでは基板にそのスペースを
設けることが困難な場合がある。 (2) また、動作環境の悪い場所で使用されると、メモリ
の内容が変化する事があり、この結果、実行プログラム
の内容が破壊されてPCが制御不能に陥る場合があっ
た。Conventionally, when creating a PROM for a PC,
As described above, the user program is written by the PROM writer, and when this PROM is mounted on the PC and used, there are the following problems. (1) When the PC executes the operation, it is necessary to convert the user program stored in the PROM into an execution program composed of a machine language that can be directly executed by the CPU and store it in the memory in the PC. Since this execution program generally has a capacity about three times as large as that of the user program, an extra storage memory is required, resulting in high cost. Further, this storage memory must be arranged on the substrate, and it may be difficult to provide the space for the substrate in a small-scale PC. (2) When used in a place where the operating environment is bad, the contents of the memory may change, and as a result, the contents of the execution program may be destroyed and the PC may become uncontrollable.
【0005】本発明は、このような問題点を解決するた
めになされたものであり、小容量メモリのPCを実現す
ると共に動作環境においてもその内容が破壊されにくい
PC用PROMの作成方法を提供することを目的とす
る。The present invention has been made in order to solve the above problems, and provides a method for realizing a PC having a small-capacity memory and a PC PROM whose contents are not easily destroyed even in an operating environment. The purpose is to do.
【0006】[0006]
【課題を解決するための手段及び作用】本発明に係るP
C用PROMの作成方法は、PC用のユーザープログラ
ムをPROMに書き込むとともに、このPROMをCP
Uが直接実行できる機械語からなる実行プログラムに変
換してPROMに書き込む。このようにして作成したP
ROMをPCに装着してシーケンス制御を実行すると、
PCのCPUがPROMに書き込まれた機械語の実行プ
ログラムを直接実行することができ、演算処理を早める
ことができる。また、機械語の実行プログラムをPC内
のメモリに格納する必要がないので、PCの小型化に寄
与できる。また、PROMを使用することにより、そこ
に書き込まれたプログラムは悪環境においても破壊され
難い。Means and Actions for Solving the Problems P according to the present invention
To create a C PROM, write the PC user program in the PROM,
It is converted into an execution program composed of a machine language that can be directly executed by U and written in the PROM. P created in this way
When the ROM is attached to the PC and sequence control is executed,
The CPU of the PC can directly execute the machine language execution program written in the PROM, and the arithmetic processing can be speeded up. Further, since it is not necessary to store the machine language execution program in the memory in the PC, it is possible to contribute to downsizing of the PC. Further, by using the PROM, the program written therein is less likely to be destroyed even in a bad environment.
【0007】[0007]
【実施例】図1は本発明の一実施例のプログラマブル・
コントローラのPROM作成方法を示すフローチャート
である。まず、PROM4又はPC5からユーザープロ
グラムの読み出しを行ない、メモリ2に格納する(S1)。
次に、このメモリ2内のユーザープログラムをPROM
ライタに新らしく装着された未書き込み状態のPROM
に書き込む(S2)。以上の処理は図3のフローチャートに
おける処理と同一である。DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a programmable circuit diagram of an embodiment of the present invention.
It is a flow chart which shows a PROM creation method of a controller. First, the user program is read from the PROM 4 or PC 5 and stored in the memory 2 (S1).
Next, the user program in the memory 2 is stored in the PROM.
An unwritten PROM newly installed in the writer
Write to (S2). The above processing is the same as the processing in the flowchart of FIG.
【0008】次に、初期設定を行なう(S3)。この初期設
定により、ユーザプログラムの読み出し番地の設定、こ
れから作成される機械語による実行プログラムのPRO
Mへの書き込み番地の設定等が設定される。その後、メ
モリ2内のユーザプログラムを1命令読み出す(S4)。読
み出し後解析し(S5)、このPROMと組み合わせて使用
されるPCのCPUが直接実行可能な機械語による実行
プログラムを、その命令実行手順に基づいて作成し、メ
モリ2に書き込む(S6)。次に、このメモリ2内の機械語
実行プログラムをPROMインターフェース回路3経由
しPROM4に書き込む(S7)。そして、処理された命令
がEND命令(プログラム終了命令)であるかどうかを
判断し、END命令でない場合には後処理を行ない(S
9)、ユーザプログラムの読み出し番地、PROMへの書
き込み番地等の更新を行なう。そして上記の処理(S4)に
戻り、END命令があるまで(S8)上述の処理を繰り返し
て行う。Next, initialization is performed (S3). By this initial setting, the read address of the user program is set, and the PRO of the execution program in machine language to be created is set.
The setting of the write address to M and the like are set. After that, one instruction of the user program in the memory 2 is read (S4). After the reading, the program is analyzed (S5), an execution program in machine language that can be directly executed by the CPU of the PC used in combination with this PROM is created based on the instruction execution procedure, and written in the memory 2 (S6). Next, the machine language execution program in the memory 2 is written in the PROM 4 via the PROM interface circuit 3 (S7). Then, it is determined whether the processed instruction is an END instruction (program end instruction), and if it is not an END instruction, post-processing is performed (S
9) Update the read address of the user program and the write address of the PROM. Then, returning to the above processing (S4), the above processing is repeated until the END instruction is received (S8).
【0009】[0009]
【発明の効果】以上のように本発明によれば、通常のユ
ーザープログラムの他にそれを機械語に変換した実行プ
ログラムをPROMに格納するようにしたので、そのP
ROMをPCに装着してシーケンス制御をすると、CP
UがそのPROMに格納された機械語の実行プログラム
を直接実行することができるので演算処理が迅速に行わ
れる。そして、その機械語実行プログラムをPCのメモ
リではなく、PROMに格納するようにしたので、小容
量メモリのPCが実現でき、安価なPCをユーザに提供
することができる。また、動作環境の悪い状況で使用し
ても、ユーザプログラム及びその実行プログラムが、悪
動作環境でも、その内容が壊れにくいPROM内に書き
込まれているので、安定した動作を行なうPCをユーザ
に提供することができる。As described above, according to the present invention, in addition to the normal user program, the execution program converted into a machine language is stored in the PROM.
When ROM is mounted on the PC and sequence control is performed, CP
Since the U can directly execute the machine language execution program stored in the PROM, the arithmetic processing can be performed quickly. Since the machine language execution program is stored in the PROM instead of the memory of the PC, a PC with a small capacity memory can be realized and an inexpensive PC can be provided to the user. In addition, even when used in a bad operating environment, the user program and its execution program are written in a PROM that is not easily damaged even in a bad operating environment, thus providing a user with a PC that operates stably. can do.
【図面の簡単な説明】[Brief description of drawings]
【図1】本発明の一実施例のPC用PROM作成方法を
示すフローチャートである。FIG. 1 is a flowchart showing a PC PROM creating method according to an embodiment of the present invention.
【図2】PROMライタの構成図である。FIG. 2 is a configuration diagram of a PROM writer.
【図3】従来のPC用PROMの作成方法を示したフロ
ーチャートである。FIG. 3 is a flowchart showing a conventional method for creating a PROM for PC.
Claims (1)
ザープログラムをPROMに書き込むとともに、前記ユ
ーザープログラムをCPUが直接実行できる機械語から
なる実行プログラムに変換してPROMに書き込むこと
を特徴とするプログラマブル・コントローラ用PROM
の作成方法。1. A PROM for a programmable controller, characterized in that a user program for a programmable controller is written in a PROM, and the user program is converted into an execution program consisting of a machine language that can be directly executed by a CPU and written in the PROM.
How to create.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2559892A JPH05224712A (en) | 1992-02-13 | 1992-02-13 | Producing method of prom for programmable controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2559892A JPH05224712A (en) | 1992-02-13 | 1992-02-13 | Producing method of prom for programmable controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH05224712A true JPH05224712A (en) | 1993-09-03 |
Family
ID=12170347
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2559892A Pending JPH05224712A (en) | 1992-02-13 | 1992-02-13 | Producing method of prom for programmable controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH05224712A (en) |
-
1992
- 1992-02-13 JP JP2559892A patent/JPH05224712A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5600807A (en) | Programmable controller capable of updating a user program during operation by switching between user program memories | |
| JPH05224712A (en) | Producing method of prom for programmable controller | |
| JPH11110224A (en) | Language processing device, its method and information storage medium | |
| JPH0612253A (en) | Microcomputer | |
| JPH11259308A (en) | Programmable controller | |
| JP2000353359A (en) | Storage device initializing method | |
| JPH04130949A (en) | Simple method for starting system | |
| JPS60169938A (en) | Microprogram control device | |
| JPH0594281A (en) | Computer system | |
| JPH04268615A (en) | Reset processing system | |
| JPH03160524A (en) | information processing equipment | |
| JPH0287227A (en) | Data processor | |
| JP2000056991A (en) | Micro computer programmable controller provided with multi-task function and its control method | |
| JPH03189726A (en) | Data processor | |
| JPS60171537A (en) | Microprogram controller | |
| JPH0268624A (en) | Program correcting circuit | |
| JPH0158522B2 (en) | ||
| JPH04335438A (en) | Virtual storage space generating system | |
| JPS5935239A (en) | Microprogram control system | |
| JPS59186048A (en) | Microprogram control system | |
| JP2001331205A (en) | Programmable controller | |
| JPS6144339B2 (en) | ||
| JPH0319570B2 (en) | ||
| JPH11134186A (en) | Information processing device | |
| JPH1139149A (en) | Information processing apparatus and rewritable nonvolatile memory rewriting method |