JPH03201009A - Development system for mechanism control program - Google Patents

Development system for mechanism control program

Info

Publication number
JPH03201009A
JPH03201009A JP33832189A JP33832189A JPH03201009A JP H03201009 A JPH03201009 A JP H03201009A JP 33832189 A JP33832189 A JP 33832189A JP 33832189 A JP33832189 A JP 33832189A JP H03201009 A JPH03201009 A JP H03201009A
Authority
JP
Japan
Prior art keywords
interpreter
mechanical control
program
code string
control 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
JP33832189A
Other languages
Japanese (ja)
Inventor
Junichi Otsuki
大槻 純一
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP33832189A priority Critical patent/JPH03201009A/en
Publication of JPH03201009A publication Critical patent/JPH03201009A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control By Computers (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To facilitate the development of a mechanical control program by residing an interpreter which decodes a basic instruction group for control of the operation of a mechanism part in a mechanism control microprocessor. CONSTITUTION:An interpreter 7 contained in a mechanical control microprocessor 3 of a device 1 to be developed has a basic function in the form of an instruction set in order to actuate each device of a mechanism part 4. A mechanical control program developing device 15 generates an instruction code string that can be decoded by the interpreter 7 and transfers it to the microprocessor 3. Thus the interpreter 7 decodes the received code string and executes it. Thus it is required to generate only a program that is proper to the mechanism of the device 1. As a result, the generation of a mechanical control program is facilitated.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、プログラムを生成するプログラム開発システ
ムに関し、特にモータやマグネット等により駆動される
機構部(以下メカという)を制御するための所謂機構制
御用プログラムを生成するプログラム開発システムに関
する。
[Detailed Description of the Invention] (Industrial Application Field) The present invention relates to a program development system that generates a program, and in particular, a so-called mechanism for controlling a mechanical part (hereinafter referred to as a mechanism) driven by a motor, magnet, etc. This invention relates to a program development system that generates control programs.

(従来の技術) 近年、モータやマグネット等で駆動されるメカとそれを
制御するためのエレクトロニクスから成る系をメカトロ
ニクスと呼ぶようになった。最近では、これにマイクロ
コンピュータが組込まれ、メカは、マイクロコンピュー
タ上で実行されるプログラムで制御されることが一般的
になってきた。
(Prior Art) In recent years, a system consisting of mechanisms driven by motors, magnets, etc. and electronics for controlling them has come to be called mechatronics. Recently, microcomputers have been incorporated into these devices, and it has become common for mechanisms to be controlled by programs executed on the microcomputers.

従来、こうしたメカを制御するためのプログラムを開発
する装置としては、たとえばインサーキットエミュレー
タと呼ばれる装置が使われている。
Conventionally, a device called an in-circuit emulator, for example, has been used to develop programs for controlling such mechanisms.

インサーキットエミュレータは、開発対象装置の上位マ
イクロコンピュータの代シに、メカ制御用マイクロコン
ピュータに接続され、インサーキットエミュレータに存
在するプログラムを恰も開発対象装置のメカ制御用マイ
クロコンピュータ上で実行しているかのように実行する
ことにより、リアルタイムで開発対象装置のメカ制御用
マイクロコンピュータのエミュレーションを行うもので
ある。また1通常インサーキットエミュレータには、キ
ーボードやデイスプレィが接続されるとともに、外部記
憶装置やプログラムを記述するエディタ、ソースプログ
ラムからオブジェクトプログラムを生成するコンパイラ
やアセンブラを備えてかり、インサーキットエミュレー
タ上でのターゲットプログラムの開発を可能としている
The in-circuit emulator is connected to the mechanical control microcomputer in place of the host microcomputer of the device to be developed, and the program existing in the in-circuit emulator is executed on the mechanical control microcomputer of the device to be developed. By executing the following, the microcomputer for mechanical control of the device under development is emulated in real time. In addition, an in-circuit emulator is usually connected to a keyboard and display, and is also equipped with an external storage device, an editor for writing programs, and a compiler and assembler for generating object programs from source programs. It enables the development of targeted programs.

(発明が解決しようとする課題) しかしながら以上述べたインサーキットエミュレータに
は、以下に述べる問題点があった。
(Problems to be Solved by the Invention) However, the in-circuit emulator described above has the following problems.

(1)  ソースプログラムはプログラミング言語で記
述されるが、プログラミング言語は一般の汎用言語(P
L/I 、 C言語等)またはアセンブラ言語であり、
特にメカ制御用に特定したものではないので、メカ制御
用プログラムとしての意味解釈が困難である。またプロ
グラミング言語それ自体の意味解釈が困難であるので、
ソースプログラムを見ても直観的にプログラムの流れや
実行条件を把握しにくい。
(1) Source programs are written in programming languages, which are general-purpose languages (P
L/I, C language, etc.) or assembler language,
Since it is not specifically designed for mechanical control, it is difficult to interpret its meaning as a mechanical control program. Also, since it is difficult to interpret the meaning of the programming language itself,
Even when looking at the source program, it is difficult to intuitively understand the program flow and execution conditions.

(2)モータの駆動、マグネットの駆動、センサによる
位置認識等のメカ制御のための基本的命令と、制御対象
とするメカの固有の特性に依存した命令とが同一のプロ
グラムとして同一レベルの言語で記述されるので、異な
るメカにプログラムを流用する場合、メカの固有の特性
に依存した命令を特定しにくいので、変更箇所を特定し
にくい。
(2) The basic commands for mechanical control such as motor drive, magnet drive, and position recognition using sensors and the commands that depend on the unique characteristics of the mechanism to be controlled are the same program and are in the same level language. Therefore, when reusing a program for a different mechanism, it is difficult to identify instructions that depend on the unique characteristics of the mechanism, making it difficult to identify changes.

本発明は上記問題点に鑑みてなされたもので。The present invention has been made in view of the above problems.

その目的は、開発対象とするメカを制御するための命令
群を基本的なものとそのメカ固有のものとに分け、メカ
固有の命令を流れ図を作成してプログラムとして生成す
ることにより、上記問題点を解決し、メカ制御用プログ
ラムを容易に開発可能とするプログラム開発システムを
提供することである。
The purpose is to solve the above problems by dividing the commands for controlling the mechanism to be developed into basic ones and those specific to that mechanism, and by creating a flowchart of instructions specific to the mechanism and generating them as a program. It is an object of the present invention to provide a program development system that solves the problems and makes it possible to easily develop mechanical control programs.

(課題を解決するための手段) 上記課題を解決するために本発明は、機構部の動作を制
御する機構制御用マイクロプロセッサで実行するプログ
ラムを生成する機構制御用プログラム開発システムに訃
いて5機構部の動作を制御する基本的命令群を解読する
インタプリタを前記機構制御用マイクロプロセッサに常
駐させ、該機構制御用マイクロプロセッサと断接可能な
機構制御用プログラム開発装置を設けたものであう1機
構制御用プログラム開発装置は、操作部と、前記操作部
の操作により機構部の動作を制御する固有の命令群を流
れ図で記述するとともに該流れ図に関する情報を出力す
る記述手段と、前記流れ図を記憶する記憶手段と、前記
流れ図に関する情報に基いて、前記インタプリタが解読
可能な命令コード列を生成する生成手段と、前記生成手
段により生成した命令コード列を機構制御用マイクロプ
ロセッサへ転送する転送手段と、転送された命令コード
列を前記インタプリタが解読実行すべく指示する指示手
段を具備している。
(Means for Solving the Problems) In order to solve the above problems, the present invention provides a mechanism control program development system that generates a program to be executed by a mechanism control microprocessor that controls the operation of a mechanism section. 1 mechanism control, wherein an interpreter for decoding a group of basic instructions for controlling the operation of the mechanism is resident in the mechanism control microprocessor, and a mechanism control program development device that can be connected to and disconnected from the mechanism control microprocessor is provided. The program development apparatus includes: an operation section, a description means for describing in a flowchart a unique command group for controlling the operation of a mechanism section by operation of the operation section and outputting information regarding the flowchart, and a memory for storing the flowchart. generating means for generating an instruction code string that can be decoded by the interpreter based on information regarding the flowchart; transfer means for transferring the instruction code string generated by the generating means to a mechanism control microprocessor; The interpreter is provided with instruction means for instructing the interpreter to decode and execute the instruction code string.

(作用) 次に上記構成に基〈作用を説明する。(effect) Next, the operation will be explained based on the above configuration.

駆動部を動かす基本的命令群をインタプリタに持たせ、
該インタプリタを機構制御用マイクロプロセッサに常駐
させるようにしたので、機構制御用プログラムの生成に
おいては前記機構部に固有のプログラムのみを生成すれ
ばよい。
The interpreter has the basic commands that move the drive unit,
Since the interpreter is made to reside in the mechanism control microprocessor, it is only necessary to generate a program specific to the mechanism section when generating a mechanism control program.

この固有のプログラムは機構制御用プログラム開発装置
に釦いて生成される。壕ず流れ図記述手段により該プロ
グラムを流れ図で表現する。該記述手段は同時に流れ図
に関する情報を出力し、この情報に基いて生成手段は命
令コード列を生成する。この命令コード列は転送手段に
よジ機構制御用マイクロプロセッサへ転送される。転送
された命令コード列は、指示手段の指示により1機構制
列用マイクロプロセッサ内のインタプリタにより解読実
行される。
This unique program is generated by pressing a button on the mechanism control program development device. The program is expressed as a flowchart using a flowchart description means. The description means simultaneously outputs information regarding the flowchart, and the generation means generates an instruction code string based on this information. This instruction code string is transferred by the transfer means to the microprocessor for controlling the mechanism. The transferred instruction code string is decoded and executed by the interpreter in the one mechanism control microprocessor according to instructions from the instruction means.

(実施例) 以下本発明に係る実施例を図面にしたがって説明する。(Example) Embodiments of the present invention will be described below with reference to the drawings.

なお各図面に共通する要素には同一の符号を付す。Note that elements common to each drawing are given the same reference numerals.

第1図は本発明の実施例を示すブロック図である。同図
において、開発対象装置1は、上位マイクロプロセッサ
2.メカ制御用マイクロプロセッサ3釦よび機構部4を
有している。メカ制御用マイクロプロセッサ3には、演
算処理を行う中央処理装置(CPU ) 5 、メモリ
6、メカ制御用インタプリタ7それにI10ポート8,
9がそれぞれバス10により接続されて内蔵されている
。I10ポート9は機構部4のモータ11、マグネット
12釦よびセンサ13に接続され、メカ制御用マイクロ
プロセッサ3が機構部4を制御できるようになっている
。インタプリタ7は機構部4の各デバイスを動作させる
ための基本的機能を命令セットのかたちで有している。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, a development target device 1 includes a host microprocessor 2. It has a mechanical control microprocessor 3 buttons and a mechanism section 4. The mechanical control microprocessor 3 includes a central processing unit (CPU) 5 that performs arithmetic processing, a memory 6, a mechanical control interpreter 7, and an I10 port 8.
9 are internally connected to each other by a bus 10. The I10 port 9 is connected to the motor 11, magnet 12 button, and sensor 13 of the mechanism section 4, so that the mechanical control microprocessor 3 can control the mechanism section 4. The interpreter 7 has basic functions for operating each device of the mechanism section 4 in the form of an instruction set.

命令セットはたとえば下記の第1表に行すようになって
いる。
The instruction set is, for example, as shown in Table 1 below.

第 表 上位プロセッサ2は開発対象装置1全体にかかわるアプ
リケーションプログラムを実行する役目を担っており、
メカ制御用マイクロプロセッサ3ばこの上位プロセッサ
2の指示によりメカ制御を実行する。
The upper processor 2 in the table has the role of executing application programs related to the entire development target device 1,
The mechanical control microprocessor 3 executes mechanical control according to instructions from the host processor 2.

メカ制御用プログラム開発装置15は、オイレータが操
作する操作部としてのキーボード16−J、、−よびデ
イスプレィ17を有して訃す、キー♂−ド16と接続さ
れてチャートエディタ18を有する。
The mechanical control program development device 15 has a chart editor 18, which is connected to a keyboard 16 having keyboards 16-J, .

チャートエディタ18は開発対象装置1の機構部4を制
御するための固有の命令を表現する流れ図を記述する。
The chart editor 18 describes a flowchart expressing unique commands for controlling the mechanism section 4 of the device 1 to be developed.

またメカ制御用プログラム開発装置15には、外部記憶
装置19、チャートコンノJ?イラ20およびデパッが
21が設けられている。外部記憶装置19は、たとえば
磁気ディスク装置であう、ここには後述するチャートコ
ンパイル規則が予め格納されている。チャートコンノセ
イラ20はチャートエディタ18と接続されておシ、チ
ャートエディタ18からの情報に基いて命令コード列を
生成する。デバッが21はチャートコンノソイラ20で
生成した命令コード列をデバッグするもので、内部にデ
バッグ済の命令コード列を開発対象装置1のメカ制御用
マイクロプロセッサ3に転送する転送手段22と、メカ
制御用マイクロプロセッサ3内のインタプリタ7に対し
て命令コード列の解読実行を指示する指示手段23を有
している。なおメカ制御用プログラム開発装置15内の
各装置は図示せぬ中央処理装置により制御される。
The mechanical control program development device 15 also includes an external storage device 19 and a chart controller J? 20 and a depatch 21 are provided. The external storage device 19 is, for example, a magnetic disk device, and stores therein chart compilation rules, which will be described later. The chart controller 20 is connected to the chart editor 18 and generates an instruction code string based on information from the chart editor 18. The debugger 21 debugs the instruction code string generated by the chart controller soiler 20, and includes transfer means 22 for transferring the debugged instruction code string to the mechanical control microprocessor 3 of the development target device 1, and It has instruction means 23 for instructing the interpreter 7 in the control microprocessor 3 to decode and execute the instruction code string. Note that each device in the mechanical control program development device 15 is controlled by a central processing unit (not shown).

プログラム開発装置15は切換スイッチ14によりンカ
制御用マイクロプロセッサ3と断接可能であシ、切換ス
イッチ14は上位プロセッサ2とメカ制御用マイクロプ
ロセッサ3とも断接可能にしている。
The program development device 15 can be connected to and disconnected from the linker control microprocessor 3 by a changeover switch 14, and the changeover switch 14 can also be connected to and disconnected from the host processor 2 and the mechanical control microprocessor 3.

ここで本実施例における゛メカ”とは、動力源として、 モータ(ステッピングモータIDcサーボモータ)マグ
ネット を持ち、 位置検出デバイスとしてのセンサを持ち、駆動対象物と
しては、 印字ヘッド 印字媒体 磁気ヘッド 読取りセンサ 読取り媒体 各種カード 紙幣 等があり1 情報処理装置の入出力装置または端末装置に組込1れる
ものである。
Here, the "mechanism" in this embodiment includes a motor (stepping motor, IDc servo motor) and magnet as a power source, a sensor as a position detection device, and a drive target as a print head, a print medium, and a magnetic head reader. The sensor reading medium includes various cards, banknotes, etc. 1 It is installed in an input/output device or a terminal device of an information processing device.

開発対象装置のメカの例を第2図に示す。第2図は開発
対象装置のメカの例として印字媒体搬送機構を示す機構
図である。
Figure 2 shows an example of the mechanism of the device to be developed. FIG. 2 is a mechanical diagram showing a printing medium transport mechanism as an example of the mechanism of the device to be developed.

左側手前にインサータ25があり、中央部に印字ヘッド
26がある。インサータ25と印字ヘッド26をつなぐ
搬送路27には、上下のローラの組ローラ28.ローラ
29.ローラ3oがそれぞれ複数あシ、ローラにより印
字媒体31をクランプしく挾み込み)、各ローラの回転
にょう印字媒体が搬送される。ローラ29の位置には、
スキュー(曲b)検出用のセンサ32があハ印字媒体搬
送中ニ、このセンサ32のオンオフによハ印字媒体31
のスキューをチエツクできる。全てのローラ28,29
.30は、ひとつのステッピングモータ33にシャフト
およびベルトで接続され、用マグネッ)34.35.3
6から動力を受け、このオンオフにより、印字媒体クラ
ンプのオンオフができる。
There is an inserter 25 in the left front, and a print head 26 in the center. The conveyance path 27 connecting the inserter 25 and the print head 26 includes a set of rollers 28. Roller 29. Each of the rollers 3o has a plurality of legs, and the printing medium 31 is clamped between the rollers), and the printing medium is conveyed by the rotation of each roller. At the position of the roller 29,
The sensor 32 for detecting skew (track B) is turned on and off while the print medium is being conveyed, and the print medium 31 is turned on and off.
skew can be checked. All rollers 28, 29
.. 30 is connected to one stepping motor 33 by a shaft and a belt,
Power is received from 6, and the printing medium clamp can be turned on and off by this on/off.

本実施例に係るメカ制御用プログラム開発装置15では
、上述したような各種のメカの動作を統一的に記述する
ために、メカの駆動系を、レール上を動くトレーンとし
てモデル化する。ル−ルにひとつの1次元座標を対応さ
せ、レール上の基準位置、方向・単位を任意に定義する
。トレーンとは前述した駆動対象物のことである。たと
えば、第2図に示す印字媒体搬送機構においては、印字
媒体搬送路27をル−ルに、印字媒体31を1トレーン
に対応させる。第2図に示す印字媒体搬送機構を本実施
例にしたがってモデル化した例を第3図に示す。
In the mechanical control program development device 15 according to the present embodiment, in order to uniformly describe the operations of the various mechanisms as described above, the mechanical drive system is modeled as a train that moves on rails. One one-dimensional coordinate is associated with a rule, and the reference position, direction, and unit on the rail are arbitrarily defined. The train is the object to be driven as described above. For example, in the print medium conveyance mechanism shown in FIG. 2, the print medium conveyance path 27 corresponds to a rule, and the print medium 31 corresponds to one train. FIG. 3 shows an example in which the printing medium transport mechanism shown in FIG. 2 is modeled according to this embodiment.

第3図において、印字媒体搬送路にレール(1)を割当
て、印字媒体にトレーン(1)を割当てる。曾たレー#
(1)上の位置を次のように定義する。即ち、左側イン
サータ位置二〇 印字ヘッド26行位置=1000 ステッピングモータの1ステツプで印字媒体が動く移動
量を単位とし゛、インサータから印字ヘッド26へ向う
方向、つ′1シ矢印A方向を正方向とする。
In FIG. 3, a rail (1) is assigned to the print medium transport path, and a train (1) is assigned to the print medium. Sotare #
(1) Define the upper position as follows. That is, left inserter position 20 print head 26 line position = 1000 The unit is the amount of movement of the print medium in one step of the stepping motor, and the direction from the inserter to the print head 26, and the direction of arrow A is the positive direction. do.

これらの定義は装置の立上す時に、前述のメカ制御用イ
ンタプリタ7の’ 5CALE”命令(第1表参照)に
より実行される。
These definitions are executed by the '5CALE' command (see Table 1) of the mechanical control interpreter 7 mentioned above when the apparatus is started up.

なお、第3図において、PM、MGI 、MGIおよび
MOSはそれぞれ第2図におけるステッピングモータ3
3、マグネット34.マグネット35およびマグネット
36を示す。
In addition, in FIG. 3, PM, MGI, MGI, and MOS each represent the stepping motor 3 in FIG.
3. Magnet 34. Magnet 35 and magnet 36 are shown.

次に本発明に係る実施例の動作を特にメカ制御用プログ
ラム開発装置15の動作を中心に説明する。第4図はメ
カ制御プログラムの開発プロセスを示す説明図である。
Next, the operation of the embodiment according to the present invention will be explained, particularly focusing on the operation of the mechanical control program development device 15. FIG. 4 is an explanatory diagram showing the development process of a mechanical control program.

第4図において、オペレータはデイスプレィ17を見な
がらキーボード16を操作し、チャートエディタ18を
起動する。チャートエディタ18が起動されると、チャ
ート(流れ図)を記述するための描画要素がデイスプレ
ィ17に表示される。描画要素とはたとえば○2ロ、→
、◎、1等の記号であり、これらの描画要素釦よび描画
要素の組合せの定義は第7図に示す通うである。
In FIG. 4, the operator operates the keyboard 16 while looking at the display 17 to start up the chart editor 18. When the chart editor 18 is activated, drawing elements for describing a chart (flow diagram) are displayed on the display 17. Drawing elements are, for example, ○2ro, →
, ◎, 1, etc., and the definitions of these drawing element buttons and combinations of drawing elements are shown in FIG.

本実施例ではひとつの描画要素を1フレーム”と呼んで
いる。チャートエディタ18は、オペレータの指示によ
り描画要素を決め、メカ制御用プログラムを生成するた
めのチャートを描く。描かれたチャートの例を第5図(
a)7)至(dlに示す。
In this embodiment, one drawing element is called "one frame".The chart editor 18 determines the drawing element according to the operator's instructions and draws a chart for generating a mechanical control program.Example of the drawn chart Figure 5 (
a) to 7) (shown in dl).

第5図(alは、印字媒体をインサータ位置から印字行
位置筐で搬送するメカ制御プログラムを示すマイクロチ
ャートとしての”SAMPLE”であシ、第5図(b)
乃至(d)はその子チャートとして’ STARTMO
T”(モータ起動)“ROLLER”(口゛←゛う制御
) ”CHECK” (異常検出) の各チャートを示す。
Figure 5 (al is "SAMPLE" as a microchart showing the mechanical control program for transporting the print medium from the inserter position to the print line position housing, Figure 5 (b)
to (d) are 'STARTMO' as child charts.
Charts for "T" (motor start), "ROLLER" (mouth control), and "CHECK" (abnormality detection) are shown below.

さて、SAMPLEは、入力パラメータとして。Now, SAMPLE is used as an input parameter.

PARAI  =  移動目標位置 PARA2  =  ローラ2位置 PARA3  =  ローラ3位置 を受取り、各ローラの回転により、印字媒体先端位置P
 F = PARAI tで印字媒体を搬送する。
PARAI = Move target position PARA2 = Roller 2 position PARA3 = Receive the roller 3 position, and by rotation of each roller, print medium leading edge position P
Convey the print medium at F = PARAI t.

以下、チャートに沿って処理の流れを説明する。The flow of processing will be explained below along with the chart.

(1)  SAMPLEは、筐ず、モータ起動処理ST
ARTMOTを呼ぶ。
(1) SAMPLE is the motor start processing ST
Call ARTMOT.

(2)  STARTMOT  は%RAIL ON命
令により1駆動対象レールをRAIL 1とし、モータ
RMIの割す付け。
(2) STARTMOT sets the rail to be driven as RAIL 1 using the %RAIL ON command, and assigns the motor RMI.

搬送速度等の定義を行ない、5TART命令により。Define the transport speed, etc., and use the 5TART command.

先端目標位置P F = PARAIとして、モータを
起動する。
The motor is started with the tip target position P F =PARAI.

(3)  SAMPLEは、次に、ローラ制御処理” 
ROLLER”を呼ぶ。
(3) SAMPLE then performs roller control processing.
ROLLER”.

(4)  ROLLERは、トレーン(この場合印字媒
体)先端位置PFがローラ2位置PARA 2に達した
場合。
(4) ROLLER is when the train (print medium in this case) leading edge position PF reaches the roller 2 position PARA 2.

MG2をオンし、ローラ2をクランプする。ローラ3に
ついても、同様に制御する。
Turn on MG2 and clamp roller 2. The roller 3 is also controlled in the same way.

(5)  SAMPLEは、次に、異常検出処理CHE
CKを呼ぶ。
(5) SAMPLE then performs abnormality detection processing CHE
Call CK.

(6)  CHECKは、トレーン先端位置PFがPA
RA2とPARA3の間にあった場合、センサPDIを
チエツクし、“1”(媒体アシ)ならば正常、′O″(
媒体無し)ならば異常へ抜ける。
(6) CHECK indicates that the train tip position PF is PA
If it is between RA2 and PARA3, check the sensor PDI, and if it is “1” (medium recess), it is normal;
If there is no medium), the error will occur.

(7)  SAMPLEは、チエツク結果が正常ならば
、モータが停止(MOTOR= 0 )する筐でローラ
制御から繰返す(RMCは、トレーン位置が目標位置に
達すれば自動的にモータを停止する)。モータが停止し
たならば、終了コード=正常を返し終了する。
(7) If the check result is normal, SAMPLE repeats from roller control in the case where the motor stops (MOTOR=0) (RMC automatically stops the motor when the train position reaches the target position). When the motor stops, the process returns a normal completion code and ends the process.

チエツク結果が異常ならば、強制的にモータを停止し、
終了コード−異常を返し終了する。
If the check result is abnormal, the motor will be forcibly stopped.
Termination code: Returns an error and terminates.

チャートエディタ18は、チャートを描くと同時に、描
画のための情報やフレーム間のつながb状態を示すチャ
ート情報を第1図に示す外部記憶装置19へ出力する。
At the same time as drawing the chart, the chart editor 18 outputs information for drawing and chart information indicating the state of connection b between frames to the external storage device 19 shown in FIG.

チャート情報は次のようなリスト構造になっている。The chart information has the following list structure.

第1図に示す外部記憶装置19には前述したように予め
チャートコンパイル規則が格納されてふ・b、このチャ
ートコン・ゼイル規則は次のようなリスト構造になって
いる。
The external storage device 19 shown in FIG. 1 stores chart compilation rules in advance as described above, and these chart compilation rules have the following list structure.

チャートコンパイラ20は外部記憶装置19力りらチャ
ート情報とチャートコンパイル規貝1jを読出して両者
のマツチングを行い、第1図に示すインタプリタ7が解
読可能な命令コード列を生成する。
The chart compiler 20 reads out the chart information from the external storage device 19 and the chart compiler 1j, matches them, and generates an instruction code string that can be decoded by the interpreter 7 shown in FIG.

チャートコンパイラ20は、先ス先頭フレームについて
、チャートコンパイル規則のIF部の条件に合致する規
則を捜す。合致する規則力;見つ力りると、THEN部
のBODY部の指示により、該フレーム情報をプログラ
ム命令コードに変換する。次に、同じ< THEN部の
NEXT部の指示により、次に処理すべきフレームを選
択する。
The chart compiler 20 searches for a rule matching the condition of the IF part of the chart compilation rule for the first frame of the previous frame. Matching rule: When found, the frame information is converted into a program instruction code according to the instructions from the BODY section of the THEN section. Next, the next frame to be processed is selected according to the instruction from the NEXT section of the same < THEN section.

これを、NEXT部が空のチャームコンノセイル規側と
合致する1で再帰的に繰返し、メカ制御プログラム命令
コードを生成する。
This is repeated recursively with the NEXT section set to 1, which matches the empty charm connoisseur standard side, to generate a mechanical control program command code.

上記のチャートエディタ18釦よびチャートコンパイラ
20の動作を繰返し、一連のメカ制御用プログラムの命
令コード列を生成する。生成した命令コード列の例を第
6図に示す。命令コード列はデバッガ21に送られる。
The operations of the chart editor 18 button and the chart compiler 20 described above are repeated to generate a series of instruction code strings for a mechanical control program. FIG. 6 shows an example of the generated instruction code string. The instruction code string is sent to the debugger 21.

次にオペレータはデバッガ21を起動する。デバッガ2
1が起動されると、BASIC風の専用会話型言語を解
読実行するモードとなる。デバッが21はチャートコン
パイラ20から送られてきた命令コード列を解読実行し
、エラーがあるか否かチエツクする。エラーが検出され
た場合は、オペレータは再度チャートエディタ18を起
動し、チャート作成からやb直す。エラーがない状態に
なると第1図に示す転送手段22により命令コード列を
メカ制御用マイクロプロセッサ3のメモリ6へ転送し、
メモリ6に格納する。
Next, the operator starts the debugger 21. Debugger 2
1 is activated, it enters a mode for decoding and executing a BASIC-like dedicated conversational language. The debugger 21 decodes and executes the instruction code string sent from the chart compiler 20, and checks whether there are any errors. If an error is detected, the operator starts up the chart editor 18 again and restarts from chart creation. When there is no error, the instruction code string is transferred to the memory 6 of the mechanical control microprocessor 3 by the transfer means 22 shown in FIG.
Store in memory 6.

次に第1図に示すデバッガ21内の指示手段23により
メカ制御用マイクロプロセッサ3のインタシリタフを起
動し、インタプリタ7に、転送した命令コード列を解読
実行させる。これにより実際に機構部4を動かし、命令
コード列にエラーがないかチエツクする。この結果エラ
ーがない場合は、切換スイッチ14を上位プロセッサ2
側に接続し、メカ制御用マイクロプロセッサ3とプログ
ラム開発装置15を切離す。以上によりメカ制御用プロ
グラム開発プロセスを終了する。
Next, the instructing means 23 in the debugger 21 shown in FIG. 1 activates the intersiliency of the mechanical control microprocessor 3, and causes the interpreter 7 to decode and execute the transferred instruction code string. As a result, the mechanism section 4 is actually operated and the instruction code string is checked for errors. If there is no error as a result of this, move the changeover switch 14 to the host processor 2.
The microprocessor 3 for mechanical control and the program development device 15 are separated from each other. With the above steps, the mechanical control program development process is completed.

(発明の効果) 以上詳細に説明したように本発明によれば、モータの駆
動やマグネットの駆動等のメカを動かすための基本的命
令をメカ制御用インタプリタに持たせ、該インタプリタ
をメカ制御用マイクロプロセッサ上に常駐させるように
したので、メカ制御用プログラムの生成において、開発
対象装置のメカに固有のプログラムのみを生成すればよ
い。したがってメカ制御用プログラムの生成が容易にな
る効果を奏する。
(Effects of the Invention) As described above in detail, according to the present invention, a mechanical control interpreter is provided with basic commands for operating a mechanism such as driving a motor and a magnet, and the interpreter is used for mechanical control. Since it is made to reside on the microprocessor, when generating a mechanical control program, it is only necessary to generate a program specific to the mechanism of the device to be developed. Therefore, it is possible to easily generate a mechanical control program.

筐た、開発対象装置のメカに固有のプログラムを生成す
る場合に、流れ図記述手段により該プログラムを流れ図
で表現できるようにしたので、実行条件等のプログラム
の意味を直観的に理解できるようになる。
Furthermore, when generating a program unique to the mechanism of the device to be developed, the flowchart description means allows the program to be expressed in a flowchart, making it possible to intuitively understand the meaning of the program such as execution conditions. .

さらに、プログラムの意味を把握しやすいことから、他
のメカ用のプログラム開発に流用したい場合に、変更箇
所を特定しやすいという効果がある。
Furthermore, since it is easy to understand the meaning of a program, it is easy to identify changes when you want to use it for developing programs for other machines.

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

第1図は本発明に係る実施例を示すブロック図、第2図
はメカの例を示す機構図、第3図は印字媒体搬送機構の
メカモデルを示す説明図、第4図はメカ制御用プログラ
ム開発プロセスを示す説明図、第5図(a)はメカ制御
用プログラムを示すマイクロチャート、第5図(b)乃
至(d)はメカ制御用プログラムを示す子チャート、第
6図は命令コード列を示す説明図、第7図は描画要素の
定義を示す説明図である。 3・・・メカ制御用マイクロプロセッサ、4・・・機構
部、7・・・インタプリタ、15・・・メカ制御用プロ
グラム開発装置、16・・・キーボード、17・・・ア
イスプレイ、18・・・チャートエディタ、19・・・
外部記憶装置、20・・・チャートコンノ’l?イラ、
21・・・デバッガ、22・・・転送手段、23・・・
指示手段。
Fig. 1 is a block diagram showing an embodiment of the present invention, Fig. 2 is a mechanical diagram showing an example of a mechanism, Fig. 3 is an explanatory diagram showing a mechanical model of the print medium transport mechanism, and Fig. 4 is a mechanical control program. An explanatory diagram showing the development process, FIG. 5(a) is a microchart showing a mechanical control program, FIGS. 5(b) to (d) are child charts showing a mechanical control program, and FIG. 6 is an instruction code string. FIG. 7 is an explanatory diagram showing the definition of drawing elements. 3... Microprocessor for mechanical control, 4... Mechanical unit, 7... Interpreter, 15... Program development device for mechanical control, 16... Keyboard, 17... Ice play, 18...・Chart editor, 19...
External storage device, 20...Chart Conno'l? Ira,
21...Debugger, 22...Transfer means, 23...
means of instruction.

Claims (1)

【特許請求の範囲】 機構部の動作を制御する機構制御用マイクロプロセッサ
で実行するプログラムを生成する機構制御用プログラム
開発システムにおいて、 機構部の動作を制御する基本的命令群を解読するインタ
プリタを前記機構制御用マイクロプロセッサに常駐させ
、 操作部と、 前記操作部の操作により機構部の動作を制御する固有の
命令群を流れ図で記述するとともに該流れ図に関する情
報を出力する記述手段と、 前記流れ図を記憶する記憶手段と、 前記流れ図に関する情報に基いて、前記インタプリタが
解読可能な命令コード列を生成する生成手段と、 前記生成手段により生成した命令コード列を機構制御用
マイクロプロセッサへ転送する転送手段と、 転送された命令コード列を前記インタプリタが解読実行
すべく指示する指示手段とを具備し、前記機構制御用マ
イクロプロセッサと断接可能なプログラム開発装置を設
けたことを特徴とする機構制御用プログラム開発システ
ム。
[Scope of Claim] In a mechanism control program development system that generates a program to be executed by a mechanism control microprocessor that controls the operation of a mechanism section, an interpreter that decodes a basic instruction group that controls the operation of the mechanism section is provided. a description means resident in a mechanism control microprocessor, an operation section, and a description means for describing in a flowchart a unique command group for controlling the operation of the mechanism section by operating the operation section, and outputting information regarding the flowchart; storage means for storing; generation means for generating an instruction code string that can be decoded by the interpreter based on information regarding the flowchart; and transfer means for transferring the instruction code string generated by the generation means to a mechanism control microprocessor. and instruction means for instructing the interpreter to decode and execute the transferred instruction code string, and a program development device that can be connected to and disconnected from the mechanism control microprocessor. Program development system.
JP33832189A 1989-12-28 1989-12-28 Development system for mechanism control program Pending JPH03201009A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33832189A JPH03201009A (en) 1989-12-28 1989-12-28 Development system for mechanism control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33832189A JPH03201009A (en) 1989-12-28 1989-12-28 Development system for mechanism control program

Publications (1)

Publication Number Publication Date
JPH03201009A true JPH03201009A (en) 1991-09-02

Family

ID=18317041

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33832189A Pending JPH03201009A (en) 1989-12-28 1989-12-28 Development system for mechanism control program

Country Status (1)

Country Link
JP (1) JPH03201009A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6020275A (en) * 1983-07-15 1985-02-01 Hitachi Ltd Simple programming system of multiprocessor
JPS60150102A (en) * 1984-01-13 1985-08-07 Hitachi Ltd Controller
JPS62103710A (en) * 1985-10-30 1987-05-14 Yaskawa Electric Mfg Co Ltd Robot controller
JPS62282301A (en) * 1985-07-12 1987-12-08 Nippon Electric Ind Co Ltd Program generating device
JPH01128102A (en) * 1987-11-12 1989-05-19 Daikin Ind Ltd Locus control method for robot

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6020275A (en) * 1983-07-15 1985-02-01 Hitachi Ltd Simple programming system of multiprocessor
JPS60150102A (en) * 1984-01-13 1985-08-07 Hitachi Ltd Controller
JPS62282301A (en) * 1985-07-12 1987-12-08 Nippon Electric Ind Co Ltd Program generating device
JPS62103710A (en) * 1985-10-30 1987-05-14 Yaskawa Electric Mfg Co Ltd Robot controller
JPH01128102A (en) * 1987-11-12 1989-05-19 Daikin Ind Ltd Locus control method for robot

Similar Documents

Publication Publication Date Title
CN105608370B (en) A kind of ECU programs write with a brush dipped in Chinese ink and detection method
CN109726135B (en) Multi-core debugging method and device and computer readable storage medium
JPS6017539A (en) Emulation system
CN104407878B (en) C6000 digital signal processor online upgrading methods
JPH03201009A (en) Development system for mechanism control program
CN111954854A (en) Supporting Devices and Supporting Programs
JPH06309193A (en) Method and apparatus for verifying operation of machine language program
JP2008065712A (en) Design support method, design support apparatus, design support program, storage medium
CN112166409A (en) Control system, control method for control system, and program for control system
WO2020235095A1 (en) Programmable logic controller, computer, method, and program
CN114253527A (en) Data processing method based on physical programming and physical programming equipment
JPS63155236A (en) Detecting method for runaway of software
JPH05250221A (en) Simulator execution system
KR890002304Y1 (en) Korean alphabet verification device for line printer
CN120012755A (en) Page text verification method, device, electronic device, medium and product
CN117149246A (en) Method and device for upgrading application program of embedded system, excavator and storage medium
JPH01233522A (en) Simulation device for data flow type information processing equipment
JP2686801B2 (en) Microcomputer program development tool
JPH1083311A (en) Simulator
CN116627509A (en) Quick starting method of MIPS architecture system based on PMON firmware
JPS6232540A (en) Information processor
JPH02244341A (en) Execution subroutine debugging information output trace system
JPH03196204A (en) Programmable controller
JPH0510677B2 (en)
JPH0239332A (en) Software break system