JPH04222026A - Program controller - Google Patents

Program controller

Info

Publication number
JPH04222026A
JPH04222026A JP2413451A JP41345190A JPH04222026A JP H04222026 A JPH04222026 A JP H04222026A JP 2413451 A JP2413451 A JP 2413451A JP 41345190 A JP41345190 A JP 41345190A JP H04222026 A JPH04222026 A JP H04222026A
Authority
JP
Japan
Prior art keywords
program
data
program data
control
cpu
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
Application number
JP2413451A
Other languages
Japanese (ja)
Inventor
Haruyuki Ando
晴行 安藤
Morimitsu Miyauchi
宮内 衛三
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.)
NEC Corp
NEC Office Systems Ltd
Original Assignee
NEC Corp
NEC Office Systems 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 NEC Corp, NEC Office Systems Ltd filed Critical NEC Corp
Priority to JP2413451A priority Critical patent/JPH04222026A/en
Publication of JPH04222026A publication Critical patent/JPH04222026A/en
Pending legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To easily change the contents of a program at a real time by receiving program data from another device and applying an instruction code constituting the program data to a program control means. CONSTITUTION:A CPU 1 to be the program control means for forming a control command in accordance with a program is connected to a program data receiving part 3 through a CPU interface part 2 and fetches a program instruction code. The receiving part 3 receives program data from a master device (program sending device) 5 through a communication channel 4 and sends the received data to the interface part 2. The CPU 1 is connected to a data memory 7 and an I/O controller 8 through a data bus 6 and executes the storage of respective data and the control of the I/O unit 9.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、リアルタイムに変更さ
れるプログラム命令で処理されるプログラム制御装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program control device that processes program instructions that are changed in real time.

【0002】0002

【従来の技術】従来のプログラム制御装置は、図4に示
すように、大容量メモリを備え、あらかじめプログラム
データがそのプログラムストアードメモリ17内に記憶
され、CPU1はそのメモリ内のデータを命令コードと
してフェッチして処理を実行している。メモリの種類に
はROMあるいはRAMがあり、メモリがROMの場合
にはあらかじめプログラムデータを不揮発メモリに書き
込み、装置組み立て段階で実装するので、プログラムを
固定的に使用するシステムに用いられる。また、メモリ
がRAMの場合には、電源オン時にプログラムデータを
ファイルユニットまたは上位装置から通信回線を通じて
一括してメモリに書き込み処理する。電源オン動作中は
プログラムを固定的に使用する。制御プログラムは、こ
のように、プログラムデータファイルを変えることによ
りプログラムを変更させることが可能である。すなわち
、従来例ではプログラムを格納している記憶部を有し、
その記憶されているデータコードにより制御している。
2. Description of the Related Art As shown in FIG. 4, a conventional program control device is equipped with a large-capacity memory, and program data is stored in advance in a program stored memory 17, and a CPU 1 uses the data in the memory as an instruction code. Fetching and processing. Types of memory include ROM and RAM. When the memory is ROM, program data is written in advance into a non-volatile memory and installed at the device assembly stage, so it is used in systems that use programs in a fixed manner. Furthermore, if the memory is a RAM, program data is written into the memory all at once from a file unit or a host device through a communication line when the power is turned on. The program is used permanently during power-on operation. The control program is thus capable of changing the program by changing the program data file. In other words, in the conventional example, it has a storage section that stores a program,
It is controlled by the stored data code.

【0003】0003

【発明が解決しようとする課題】このように従来のプロ
グラム制御回路ではあらかじめプログラムを記憶部に格
納しておくので、プロセス制御等運用動作中にリアルタ
イムにプログラムを変更することが困難であった。
As described above, in the conventional program control circuit, since the program is stored in advance in the storage section, it is difficult to change the program in real time during operation such as process control.

【0004】本発明は、このような欠点を除去するもの
で、リアルタイムでプログラム内容の変更が容易にでき
るプログラム制御装置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention aims to eliminate these drawbacks, and aims to provide a program control device that can easily change program contents in real time.

【0005】[0005]

【課題を解決するための手段】本発明は、プログラムに
従って制御指令を生成するプログラム制御手段を備えた
プログラム制御装置において、他装置から到来するプロ
グラムデータを受信し、このプログラムデータを構成す
る命令コードを上記プログラム制御手段に逐次与えるプ
ログラムデータ受信部を備えたことを特徴とする。
[Means for Solving the Problems] The present invention provides a program control device equipped with a program control means for generating control commands according to a program, which receives program data coming from another device, and receives instruction codes constituting the program data. The present invention is characterized by comprising a program data receiving section that sequentially provides the program control means with the program data.

【0006】また、上記プログラムデータ受信部は、到
来するプログラムデータの誤りを検出し、誤りが検出さ
れるとプログラムデータの送信元に再送を要求する通信
制御部を含むことが望ましい。
Preferably, the program data receiving section includes a communication control section that detects an error in the incoming program data and, when an error is detected, requests the sender of the program data to retransmit the program data.

【0007】さらに、上記通信制御部が誤りが検出した
プログラムデータに代わりNOPコードを上記プログラ
ム制御手段に与えるCPUインタフェース部を備えるこ
とが望ましい。
Furthermore, it is preferable that the communication control section includes a CPU interface section for supplying a NOP code to the program control means in place of the program data in which an error has been detected.

【0008】[0008]

【作用】正常に受信したプログラムデータをバッファに
格納し、プログラム制御手段からのフェッチを待つ。プ
ログラムデータの異常が検出されると、NOPコードが
プログラム制御手段に与えられる。この間にプログラム
データの再送を送信元に要求する。これにより、リアル
タイムでプログラム内容の変更が容易に行える。
[Operation] Stores the normally received program data in a buffer and waits for it to be fetched from the program control means. When an abnormality in the program data is detected, a NOP code is given to the program control means. During this time, the sender is requested to resend the program data. This makes it easy to change program content in real time.

【0009】[0009]

【実施例】以下、本発明の一実施例につき図面を参照し
て説明する。図1はこの実施例の構成を示すブロック図
である。この実施例は、図1に示すように、プログラム
に従って制御指令を生成するプログラム制御手段である
CPU1を備え、さらに、本発明の特徴とする手段とし
て、他装置から到来するプログラムデータを受信し、こ
のプログラムデータを構成する命令コードを上記プログ
ラム制御手段に逐次与えるプログラムデータ受信部3を
備え、このプログラムデータ受信部3は、到来するプロ
グラムデータの誤りを検出し、誤りが検出されるとプロ
グラムデータの送信元に再送を要求する通信制御部10
を含み、さらに、通信制御部10が誤りが検出したプロ
グラムデータに代わりNOPコードを上記プログラム制
御手段に与えるCPUインタフェース部2を備える。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of this embodiment. As shown in FIG. 1, this embodiment includes a CPU 1 which is a program control means that generates control commands according to a program, and further includes a CPU 1 which is a program control means that generates control commands according to a program. The program data receiving section 3 includes a program data receiving section 3 that sequentially supplies the instruction codes constituting the program data to the program control means, and this program data receiving section 3 detects an error in the incoming program data, and when an error is detected, the program data communication control unit 10 that requests retransmission from the source of the
The communication control unit 10 further includes a CPU interface unit 2 for providing the program control means with a NOP code in place of the program data in which an error has been detected.

【0010】次に、この実施例の動作を説明する。CP
U1はCPUインタフェース部2を介してプログラムデ
ータ受信部3に接続され、プログラムの命令コードをフ
ェッチする。プログラムデータ受信部3は通信ライン4
を通して上位装置5(プログラム送出装置)からのプロ
グラムデータを受信し、CPUインタフェース部2へ送
る。CPU1はデータバス6を介してデータメモリ7お
よびIOコントローラ8に接続され、それぞれデータの
記憶とIOユニット9の制御とを行う。
Next, the operation of this embodiment will be explained. C.P.
U1 is connected to the program data receiving section 3 via the CPU interface section 2, and fetches the instruction code of the program. The program data receiving section 3 is connected to the communication line 4
It receives program data from the higher-level device 5 (program sending device) through the CPU interface section 2, and sends it to the CPU interface section 2. The CPU 1 is connected to a data memory 7 and an IO controller 8 via a data bus 6, and stores data and controls the IO unit 9, respectively.

【0011】図2はプログラムデータのインタフェース
部のブロック図である。プログラムデータ受信部3は通
信制御部10および通信レシーバ11、通信ドライバ1
2から構成される。通信ライン4を介しデータを受信し
て通信制御部10で誤りがないか否かをチェックする。 正常なデータを受信したならばライト信号13をアクテ
ィブにし、受信データ14にデータを出力してCPUイ
ンタフェース部2へ送る。データに誤りがあれば否定応
答を通信ドライバ12を通して送出してデータの再送を
要求する。本通信に関して信頼性が高ければ通信手順は
どんな種類の通信手順でも良い。CPUインタフェース
部2では通信制御部10からの受信データをバッファに
入れ、プログラムコードフェッチ信号15がアクティブ
になるとラッチ回路に出力する。受信データが無い場合
にはNOPコードを出力する。CPU1はプログラムコ
ードフェッチ信号15を出力することによりプログラム
命令コード16を受け取り処理を行うことができる。
FIG. 2 is a block diagram of the program data interface section. The program data receiving section 3 includes a communication control section 10, a communication receiver 11, and a communication driver 1.
Consists of 2. Data is received via the communication line 4 and checked by the communication control unit 10 for errors. When normal data is received, the write signal 13 is activated, and the data is output to the received data 14 and sent to the CPU interface unit 2. If there is an error in the data, a negative response is sent through the communication driver 12 to request retransmission of the data. Any type of communication procedure may be used as long as the reliability of this communication is high. The CPU interface section 2 buffers the received data from the communication control section 10, and outputs it to the latch circuit when the program code fetch signal 15 becomes active. If there is no received data, a NOP code is output. The CPU 1 can receive and process the program instruction code 16 by outputting the program code fetch signal 15.

【0012】図3は本制御回路の命令コード処理の概略
フローを示す。プログラムデータ受信部3では命令コー
ドA、B、C、D─と受信するが、命令コードDで受信
エラーが発生してリカバリ処理(再送要求処理)を実施
している。リカバリが終了すると命令コードD、E─と
受信する。それに伴いCPU1はフェッチ処理を行い、
それぞれ命令コードA、B、C─と受けとって処理を実
行する。命令コードDのリカバリ処理を実行中はNOP
コードを受けとる。図3に示すようにCPU1では受信
されたプログラムデータにそって命令を実行する(命令
コードA、B、C、D、E─)。このようにすることに
よりリアルタイムに処理を変更することが可能である。
FIG. 3 shows a schematic flow of instruction code processing in this control circuit. The program data receiving unit 3 receives instruction codes A, B, C, and D, but a reception error occurs with instruction code D, and recovery processing (retransmission request processing) is performed. When the recovery is completed, instruction codes D and E- are received. Accordingly, CPU1 performs fetch processing,
They each receive instruction codes A, B, and C and execute processing. NOP while executing recovery process for instruction code D
Receive code. As shown in FIG. 3, the CPU 1 executes instructions in accordance with the received program data (instruction codes A, B, C, D, E-). By doing so, it is possible to change the processing in real time.

【0013】以上の説明では例として通信ライン4は有
線を前提としたが、無線通信でも同様の効果が得られる
[0013] In the above explanation, it is assumed that the communication line 4 is wired as an example, but the same effect can be obtained with wireless communication.

【0014】[0014]

【発明の効果】本発明は、以上説明したように、プログ
ラムデータ格納用の記憶部の代わりに通信制御部を有し
、受信データをプログラムデータとして扱い、通信上の
データを任意に変える機能を上位装置に持たせることに
より、プログラム制御をリアルタイムに変えることがで
き、運用動作中にプログラム命令を変えられプロセス制
御等リアルタイムに処理が変わるシステムにおいて効果
がある。また、大容量のプログラム格納用のメモリを削
除できる効果がある。
Effects of the Invention As explained above, the present invention has a communication control section instead of a storage section for storing program data, handles received data as program data, and has a function of arbitrarily changing communication data. By providing it in a host device, program control can be changed in real time, and it is effective in systems where program instructions can be changed during operation and processing can be changed in real time, such as process control. It also has the effect of eliminating memory for storing large-capacity programs.

【0015】[0015]

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】  本発明実施例の全体構成を示すブロック図
FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention.

【図2】  図1に示すCPUインタフェース部とプロ
グラムデータ受信部の詳細を示したブロック図。
FIG. 2 is a block diagram showing details of a CPU interface section and a program data receiving section shown in FIG. 1.

【図3】  プログラムの命令コード処理の概略を示す
フロー図。
FIG. 3 is a flow diagram showing an outline of program instruction code processing.

【図4】  従来例の構成を示すブロック図。FIG. 4 is a block diagram showing the configuration of a conventional example.

【符号の説明】[Explanation of symbols]

1  CPU 2  CPUインタフェース部 3  プログラムデータ受信部 4  通信ライン 5  上位装置 6  データバス 7  データメモリ 8  IOコントローラ 9  IOユニット 10  通信制御部 11  通信レシーバ 12  通信ドライバ 13  ライト信号 14  受信データ 15  プログラムコードフェッチ信号16  プログ
ラム命令コード 17  プログラムストアードメモリ
1 CPU 2 CPU interface section 3 Program data receiving section 4 Communication line 5 Host device 6 Data bus 7 Data memory 8 IO controller 9 IO unit 10 Communication control section 11 Communication receiver 12 Communication driver 13 Write signal 14 Received data 15 Program code fetch signal 16 Program instruction code 17 Program stored memory

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  プログラムに従って制御指令を生成す
るプログラム制御手段を備えたプログラム制御装置にお
いて、他装置から到来するプログラムデータを受信し、
このプログラムデータを構成する命令コードを上記プロ
グラム制御手段に逐次与えるプログラムデータ受信部を
備えたことを特徴とするプログラム制御装置。
Claim 1: A program control device comprising program control means for generating control commands according to a program, which receives program data coming from another device,
A program control device comprising a program data receiving section that sequentially supplies instruction codes constituting the program data to the program control means.
【請求項2】  上記プログラムデータ受信部は、到来
するプログラムデータの誤りを検出し、誤りが検出され
るとプログラムデータの送信元に再送を要求する通信制
御部を含む請求項1記載のプログラム制御装置。
2. The program control according to claim 1, wherein the program data receiving section includes a communication control section that detects an error in the incoming program data and requests retransmission from the source of the program data when an error is detected. Device.
【請求項3】  上記通信制御部が誤りが検出したプロ
グラムデータに代わりNOPコードを上記プログラム制
御手段に与えるCPUインタフェース部を備えた請求項
1記載のプログラム制御装置。
3. The program control device according to claim 1, wherein said communication control section includes a CPU interface section that provides a NOP code to said program control means in place of program data in which an error has been detected.
JP2413451A 1990-12-21 1990-12-21 Program controller Pending JPH04222026A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2413451A JPH04222026A (en) 1990-12-21 1990-12-21 Program controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2413451A JPH04222026A (en) 1990-12-21 1990-12-21 Program controller

Publications (1)

Publication Number Publication Date
JPH04222026A true JPH04222026A (en) 1992-08-12

Family

ID=18522086

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2413451A Pending JPH04222026A (en) 1990-12-21 1990-12-21 Program controller

Country Status (1)

Country Link
JP (1) JPH04222026A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009009560A (en) * 1997-02-14 2009-01-15 Fisher Rosemount Syst Inc System for configuring process control environment using graphic element

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009009560A (en) * 1997-02-14 2009-01-15 Fisher Rosemount Syst Inc System for configuring process control environment using graphic element

Similar Documents

Publication Publication Date Title
US7024495B2 (en) Programmable controller
JPH04222026A (en) Program controller
JP2004206716A (en) Deciding method of code downloaded for run time constitution
JPS62239235A (en) Data processor with fast comparison action of operation code
JPS626269B2 (en)
JP2001117864A (en) Communication buffer access method and its writing controller
JP2508982B2 (en) In-device control method
JPH04175957A (en) Data transfer device
JPH02116933A (en) Control system for maneuvering apparatus
JPH0619816A (en) Data write method
JP3329155B2 (en) Information processing device
JPH05290589A (en) Semiconductor integrated circuit
JPH0226252B2 (en)
JPH05216808A (en) Data processor
JPS62190544A (en) Higher link unit for programmable controller
JPH0673117B2 (en) Address error recovery device
JPH0244452A (en) Channel controller
JPH0315217B2 (en)
JPS6336304A (en) Programmable controller system
JPH08129485A (en) Mpu program changing device
JPH0782447B2 (en) DMA data transfer control device
JPH0351934A (en) Electronic disk subsystem
JPH0496135A (en) Computer system
JPS60262257A (en) Input and output controller
JPH01291336A (en) Data error correcting system