JPS63174150A - Selector for start program - Google Patents

Selector for start program

Info

Publication number
JPS63174150A
JPS63174150A JP643687A JP643687A JPS63174150A JP S63174150 A JPS63174150 A JP S63174150A JP 643687 A JP643687 A JP 643687A JP 643687 A JP643687 A JP 643687A JP S63174150 A JPS63174150 A JP S63174150A
Authority
JP
Japan
Prior art keywords
data
rom
ram
started
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
Application number
JP643687A
Other languages
Japanese (ja)
Inventor
Hiraaki Nagase
長瀬 平明
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP643687A priority Critical patent/JPS63174150A/en
Publication of JPS63174150A publication Critical patent/JPS63174150A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Abstract

PURPOSE:To require no selecting switch and setting operation of a start program by comparing the writing data of a ROM/RAM with reading data and discriminating whether the program to be started is present in a ROM or RAM according to the compared result. CONSTITUTION:A device is started by the ROM 2 in which an initial program loader IPL is described and arbitrary data is written to an address for discriminating the ROM/RAM 3. Then, the data of the same address of the ROM/RAM 3 is read to compare both the data, when the data is different, it is discriminated to be the ROM and the data of the ROM is read and started. When the data coincides, the writing data is changed to compare with the data of the same address again and if it coincides again, it is discriminated to be the RAM. Then, a data transfer request is carried out to a host system 6, the transferred data is stored in the RAM 3, thereafter the data of the RAM 3 is started.

Description

【発明の詳細な説明】 〔産業上の利用分野] この発明は、上位システム(上位制御装置)に接続され
、マイクロコンピュータを用いて構成された制御装置に
おいて、その起動プログラムの選択装置に関するもので
ある。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a device for selecting a startup program in a control device connected to a host system (host control device) and configured using a microcomputer. be.

〔従来の技術] 第3図は、従来の制御装置の起動に関する部分の構成図
である。(1)はマイクロコンピュータ、(2)は起動
用のマイクロコードが記述されたROM(I P L 
) 、 (3)はデータの記述されたROM又は、RA
 M 、 (4)はRAM (ワークメモリ) 、 (
5)は上位システムとの送受信バッファ、(6)は上位
システム、(8)は起動する種別の選択スイッチ、(7
)はスイッチ状態読み取り用のエンコーダである。
[Prior Art] FIG. 3 is a block diagram of a part related to activation of a conventional control device. (1) is a microcomputer, and (2) is a ROM (IPL) in which startup microcode is written.
), (3) is the ROM or RA in which the data is written.
M, (4) is RAM (work memory), (
5) is a transmission/reception buffer with the upper system, (6) is the upper system, (8) is a selection switch for the type to be activated, (7
) is an encoder for reading switch status.

次に動作について説明する。起動用のマイクロコード(
工PL)が記述されたROM(2)により起動された本
装置は、スイッチ(8)の設定状態を、エンコーダ(η
を経由して読み取る事により、ROM/RA M (3
)がROMかRAMかを判別し、ROM/RA M (
3)がROMの場合は、データを読み出して起動し、R
AMの場合は、送受信バッファ(5)を経由して、上位
システム(6)にデータを要求し、転送されたデータを
ROM/RA M(3)ノRA MVC記憶した後、こ
のデータを読み出して起動するかを選択する。
Next, the operation will be explained. The startup microcode (
This device is activated by the ROM (2) in which the engineering PL) is written, and changes the setting state of the switch (8) to the encoder (η
ROM/RAM (3
) is ROM or RAM, and ROM/RAM (
If 3) is a ROM, read the data, start up, and
In the case of AM, data is requested from the host system (6) via the transmission/reception buffer (5), the transferred data is stored in the ROM/RAM (3), and then read out. Select whether to start.

〔発f3JIが解決しようとする問題点〕従来の制御装
@け、以上のように構成されているので、スイッチの設
定状態を読み出さなければならず、又、スイッチ回路が
必要であるなどの問題点があった。
[Problems that f3JI is trying to solve] Conventional control devices are configured as described above, so problems such as the need to read out the setting status of the switch and the need for a switch circuit. There was a point.

この発明け、上記のような問題点を解消するためになさ
れたもので、スイッチ回路を省略できるとともVこ、ス
イッチの設定を不要にし、ROM、RAMの実装状態を
自動的に判別して起動できる装置を得ることを目的とす
る。
This invention was made to solve the above-mentioned problems, and it is possible to omit the switch circuit, eliminate the need for switch settings, and automatically determine the mounting status of ROM and RAM. The purpose is to obtain a device that can be activated.

〔問題点を解決するための手段」 この発明に係る起動プログラムの選択装置は、判別対象
のROM/RAMの所定アドレスに任意のデータを書込
み、かつその同一アドレスのデータを読出す手段と、こ
の読出しデータと書込みデータを比較する比較手段を設
け、この比較結果に応じて起動すべきプログラムがRO
M、RAMのいずれに存在するかを判別するようにした
ものである。
[Means for Solving the Problems] A startup program selection device according to the present invention includes means for writing arbitrary data to a predetermined address of a ROM/RAM to be determined and reading data at the same address; A comparison means for comparing read data and write data is provided, and the program to be started according to the comparison result is RO.
It is determined whether it exists in M or RAM.

〔作用〕[Effect]

この発明における起動プログラムの選択装置はROM/
RAMの書込みデータと読出しデータが不一致の場合は
ROMと判断してROMに記憶された起動プログラムを
読出して起動し、一致の場合//′iRAMと判断して
上位システムに起動プログラムデータを転送要求してR
AMに記憶させ、それを読出して起動する。
The startup program selection device in this invention is a ROM/
If the write data and read data of RAM do not match, it is determined that it is ROM, and the startup program stored in ROM is read and started, and if they match, it is determined that it is iRAM, and a request is made to transfer the startup program data to the host system. Do R
Store it in AM, read it out and start it up.

c発明の実施例〕 以下、この発明の一実施例を図について説明する。第1
図において、(わけマイクロコンピュータ、(2)は起
動用のマイクロコードが記述されたROM (x p 
L) 、 (3)はデータの記述されたROM又#″i
RA M 、(4)はRAM(ワークメモリ) 、(5
)汀上位システムとの送受信パン7ア、(6)は上位シ
ステムである。
c. Embodiment of the invention] An embodiment of the invention will be described below with reference to the drawings. 1st
In the figure, (2) is a microcomputer, and (2) is a ROM (x p
L), (3) is the ROM or #″i in which data is written.
RAM, (4) is RAM (work memory), (5
) Transmission/reception pan 7a with the upper system (6) is the upper system.

次に、この第1図の動作を第2図に示したフローチャー
トを用いて説明する。
Next, the operation shown in FIG. 1 will be explained using the flowchart shown in FIG.

まず、ステップのにおいて、工PLが記述されたROM
(2)により装置を起動し、ステップの、■で、 RO
M/RA M(3)を判別するアドレスに対し、任意の
データを書き込む。
First, in the step, the ROM in which the engineering PL is written is
Start the device according to (2), and in step ■, RO
Write arbitrary data to the address that determines M/RAM M(3).

セしてので、ROM/RAM(3)の同じアドレスのデ
ータを読み出し、ステップので、その両データの比較を
行う。そしてデータが異なる場合は、ROM、l!−判
別し、ROMのデータを読出して起動する。
After setting, the data at the same address in the ROM/RAM (3) is read out, and in the next step, both data are compared. And if the data is different, ROM, l! -Identifies, reads data from ROM and starts.

データが一致する場合は、ステップΦで、書き込むデー
タを変更した後、再度ステップ@、■、■を行う。再度
データが一致する場合は、RAMとや」別し、ステップ
@で上位システム(6)にデータ転送要求を行い、ステ
ップので転送されたデータをRAM(3)に記憶し念後
、このRA M (3)のデータを起動する。
If the data match, the data to be written is changed in step Φ, and then steps @, ■, and ■ are performed again. If the data match again, send a data transfer request to the higher-level system (6) in step @, store the transferred data in RAM (3), and then transfer the data to RAM (3). Activate the data in (3).

なお、上記実施例では、起動プログラムは、ROM又は
、上位システムからの転送データの2種類のものを示し
たが、2種類以上のものでもよい。
In the above embodiments, two types of startup programs are shown: the ROM and the data transferred from the host system, but two or more types of startup programs may be used.

〔発明の効果J 以上のように、この発明によれば、起動プログラムの選
択スイッチおよびその設定操作を不要とすることができ
るだけでなく、装置が安価にでき、また精度の高いもの
が得られる効果がある。
[Effects of the Invention J As described above, according to the present invention, not only can the selection switch of the startup program and its setting operation be made unnecessary, but also the device can be made inexpensive and highly accurate. There is.

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

第1図は、この発明の一実施例による制御装置の起動に
関する部分を示すブロック図、第2図は第1図の動作を
説明するための70−チャート図、第3図は、従来の装
置構成を示すブロック図である。 図において、 (1)はマイクロコンピュータ(CPU
 ) 、 (3)はROM / RA M 、 (6ン
は上位システムである。 なお、図中、同一符号は同−又は相当部分を示す。
FIG. 1 is a block diagram showing a part related to activation of a control device according to an embodiment of the present invention, FIG. 2 is a 70-chart diagram for explaining the operation of FIG. 1, and FIG. 3 is a block diagram of a conventional device. FIG. 2 is a block diagram showing the configuration. In the figure, (1) is a microcomputer (CPU)
), (3) is ROM/RAM, (6 is the upper system. In the figure, the same reference numerals indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】[Claims] 上位システムに接続され、マイクロコンピュータおよび
その起動プログラム(システムプログラム又はシステム
データ)を記憶するROM/RAMを有する制御装置に
おいて、その起動時、上記ROM/RAMの所定のアド
レスに任意のデータを書込み、かつその同一アドレスの
データを読出す手段、この読出しデータと書込みデータ
を比較する比較手段を備え、上記両データが不一致の場
合け上記ROMに記憶された起動プログラムを読出して
起動し、一致する場合は上記上位システムに起動プログ
ラムデータを転送要求して上記RAMに記憶させ、それ
を読出して起動することを特徴とする起動プログラムの
選択装置。
In a control device that is connected to a host system and has a ROM/RAM that stores a microcomputer and its startup program (system program or system data), when the device is started, arbitrary data is written to a predetermined address of the ROM/RAM, and means for reading the data at the same address, and comparison means for comparing the read data and the written data, and if the two data do not match, the starting program stored in the ROM is read and started, and if they match, the starting program is started. The boot program selection device is characterized in that the boot program data is requested to be transferred to the host system, stored in the RAM, and read and booted.
JP643687A 1987-01-14 1987-01-14 Selector for start program Pending JPS63174150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP643687A JPS63174150A (en) 1987-01-14 1987-01-14 Selector for start program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP643687A JPS63174150A (en) 1987-01-14 1987-01-14 Selector for start program

Publications (1)

Publication Number Publication Date
JPS63174150A true JPS63174150A (en) 1988-07-18

Family

ID=11638347

Family Applications (1)

Application Number Title Priority Date Filing Date
JP643687A Pending JPS63174150A (en) 1987-01-14 1987-01-14 Selector for start program

Country Status (1)

Country Link
JP (1) JPS63174150A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011044278A (en) * 2009-08-20 2011-03-03 Fuji Electric Fa Components & Systems Co Ltd Electromagnetic contactor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011044278A (en) * 2009-08-20 2011-03-03 Fuji Electric Fa Components & Systems Co Ltd Electromagnetic contactor
US8289111B2 (en) 2009-08-20 2012-10-16 Fuji Electric Fa Components & Systems Co., Ltd. Electromagnetic contactor

Similar Documents

Publication Publication Date Title
JP2930257B2 (en) Portable electronic devices
JPH02235156A (en) Information processor
JPH02267634A (en) Interrupt system
JPS63174150A (en) Selector for start program
KR19980054349A (en) Optional automatic setting circuit
JP2930258B2 (en) Portable electronic devices
JPH11149376A (en) Boot loader circuit
JPS59226958A (en) Memory device
US20010052068A1 (en) Method of transferring program to internal memory from external memory and microcomputer using the same
JP4793798B2 (en) Microcomputer
JP2642082B2 (en) Starting the communication program
JPH10283329A (en) Memory exclusive control method
JP2522412B2 (en) Communication method between programmable controller and input / output device
JPH021014A (en) Portable computer
JPH04324566A (en) Method for controlling memory map switching of multiprocessor system
JP2002319292A (en) Memory device and read-out method for the memory device
JPS63187368A (en) System for accessing to cad component library
JPH03225551A (en) Input and output device access control system
JPH03113503A (en) Industrial computer
JP2684663B2 (en) Micro program control circuit
JPS58114218A (en) Program loading system
JPH09319608A (en) Software development supporting device
JPH0520253A (en) Data processor
JPH1145182A (en) Firmware
JPH04195454A (en) Microcomputer device