JP2001255912A - Method for executing motion program - Google Patents

Method for executing motion program

Info

Publication number
JP2001255912A
JP2001255912A JP2000069704A JP2000069704A JP2001255912A JP 2001255912 A JP2001255912 A JP 2001255912A JP 2000069704 A JP2000069704 A JP 2000069704A JP 2000069704 A JP2000069704 A JP 2000069704A JP 2001255912 A JP2001255912 A JP 2001255912A
Authority
JP
Japan
Prior art keywords
motion program
motion
execution
program
task
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
JP2000069704A
Other languages
Japanese (ja)
Inventor
Yasuhiro Fujita
康宏 藤田
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa 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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP2000069704A priority Critical patent/JP2001255912A/en
Publication of JP2001255912A publication Critical patent/JP2001255912A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)
  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve the problem that it is difficult to quicken processing, due to large amounts of data conversion processing, while it is necessary to quicken processing for ensuring performance since a motion program execution analyzing part 11 operates at the time of executing a motion program. SOLUTION: A motion controller 1 is provided with a motion program compile processing part 4 for compiling a motion program in a text format into a motion program in a format practicable on a multi-task OS. Then, a task control instruction is issued from a control signal processing part 6 to a multi- task OS 7, so that the execution of a motion program can be controlled as one task on the multi-task OS 7.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、モーションコント
ローラのモーションプログラム実行方法に関する。
The present invention relates to a motion program execution method for a motion controller.

【0002】[0002]

【従来の技術】モーションプログラムの実行方法として
は、図3に示すようにメモリ4上に記憶されたテキスト
形式のモーションプログラム2をモーションプログラム
実行解析部11で制御信号処理部6’からの実行制御指
令S5に従って実行制御する方法がある。この時モーシ
ョンプログラム実行解析部11では、解析処理部12が
メモリ8から読み出したテキスト形式のモーションプロ
グラム2をバイナリ形式のモーションコマンドS4に変
換して実行制御部13へ伝える。さらに、実行制御部1
3は実行制御指令S5に従ってモーションコマンドS2
をモーション制御処理部10へ指令する。
2. Description of the Related Art As a method for executing a motion program, as shown in FIG. 3, a motion program 2 in a text format stored in a memory 4 is controlled by a motion program execution analyzer 11 from a control signal processor 6 '. There is a method of performing execution control according to the command S5. At this time, in the motion program execution analysis unit 11, the analysis processing unit 12 converts the text-format motion program 2 read from the memory 8 into a binary-format motion command S4, and transmits it to the execution control unit 13. Further, the execution control unit 1
3 is a motion command S2 according to the execution control command S5.
To the motion control processing unit 10.

【0003】[0003]

【発明が解決しようとする課題】従来の技術において、
モーションプログラム実行解析部11はモーションプロ
グラム実行時に動作するので性能確保のために高速に処
理する必要があるが、大量のデータ変換処理を行うため
高速化が難しいという問題がある。また、複数のモーシ
ョンプログラムを同時もしくは非同期に実行させる場合
には、モーシヨンプログラム実行解析部11を複数用意
するか、モーションプログラム実行解析部11が複数モ
ーシヨンプログラムの実行に対応する必要があるので、
処理内容が複雑となり容易に実現できないという問題が
ある。そこで本発明は、モーションプログラム実行解析
部の高速化を容易に実現し、かつ複数モーションプログ
ラムの実行を容易に実現するモーションプログラム実行
方法を提供することを目的とする。
SUMMARY OF THE INVENTION In the prior art,
The motion program execution analysis unit 11 operates at the time of executing a motion program, so it is necessary to perform high-speed processing to ensure performance. However, there is a problem that high-speed processing is difficult because a large amount of data conversion processing is performed. Further, when a plurality of motion programs are to be executed simultaneously or asynchronously, it is necessary to prepare a plurality of motion program execution analysis units 11 or to cope with the execution of the plurality of motion programs by the motion program execution analysis unit 11. ,
There is a problem that the processing content is complicated and cannot be easily realized. Therefore, an object of the present invention is to provide a motion program execution method that easily realizes high speed of a motion program execution analysis unit and easily executes a plurality of motion programs.

【0004】[0004]

【課題を解決するための手段】上記課題を解決するため
に、本発明はモーションコントローラにテキスト形式の
モーションプログラムをマルチタスクOS上で実行可能
な形式のモーションプログラムにコンパイルするモーシ
ョンプログラムコンパイル処理部を備え、かつ、制御信
号処理部からマルチタスクOSへタスク制御命令を命令
することによりモーションプログラムをマルチタスクO
S上で1タスクとして実行制御するモーションプログラ
ムの実行方法である。
In order to solve the above-mentioned problems, the present invention provides a motion controller for compiling a motion program in a text format into a motion program in a format executable on a multitask OS in a motion controller. The motion program is provided by instructing the multitask OS by providing a task control command from the control signal processing unit to the multitask OS.
This is a method of executing a motion program that is executed and controlled as one task on S.

【0005】[0005]

【発明の実施の形態】以下に、図面を参照して、本発明
の実施の形態を説明する。図1は本発明の実施例にかか
る処理を示したブロック図である。モーションコントロ
ーラ1はテキスト形式のモーションプログラム2が入力
される入力処理部3と、テキスト形式のモーションプロ
グラム2を実行形式のモーションプログラム9に変換し
メモリ8上に記憶するモーションプログラムコンパイル
処理部4と、制御信号入力5に従ってマルチタスクOS
7へ実行形式のモーションプログラム9の起動、停止等
の指令S1を行う制御信号処理部6と、マルチタスクO
S7を備える。図2は本発明の実施例におけるモーショ
ンプログラム実行処理を示すフローチャートである。こ
の処理は次のステップを実行する。 1)テキスト形式のモーションプログラム2は入出力処
理部3を通してモーションプログラムコンパイル処理部
4へ伝える。(ステップ1) 2)モーションプログラムコンパイル処理部4はテキス
ト形式のモーションプログラム2を実行形式のモーショ
ンプログラム9に変換する。(ステップ2) 3)実行形式のモーションプログラム9はメモリ8へ記
憶される。(ステップ3) 4)制御信号処理部6はモーション制御信号入力5に従
って、マルチタスクOS7へ実行形式のモーションプロ
グラム9の実行要求を指令する。(ステップ4) 5)マルチタスクOSは実行形式のモーションプログラ
ム9をタスク起動(S3)する。(ステップ5) 以上の手順でモーションプログラムが実行されるが、ス
テップ2でテキスト形式のモーションプログラムを実行
形式のデータへ変換しておくので、モーションプログラ
ム実行時にデータ変換が不要となり高速化が容易に行え
る。また、ステップ5でモーションプログラムはマルチ
タスクOS上の1タスクとして実行制御されるので、モ
ーションプログラムの実行制御処理を開発する必要がな
くなる。また、マルチタスクOSのマルチタスク実行機
能により複数モーションプログラムの同時もしくは非同
期の実行が容易に可能となる。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a process according to the embodiment of the present invention. The motion controller 1 includes an input processing unit 3 into which a text-format motion program 2 is input, a motion program compilation processing unit 4 that converts the text-format motion program 2 into an executable motion program 9, and stores the motion program 9 in a memory 8. Multitask OS according to control signal input 5
7, a control signal processing unit 6 for issuing a command S1 for starting and stopping the motion program 9 in an executable form,
S7 is provided. FIG. 2 is a flowchart showing a motion program execution process in the embodiment of the present invention. This process performs the following steps. 1) The text-format motion program 2 is transmitted to the motion program compilation processing unit 4 through the input / output processing unit 3. (Step 1) 2) The motion program compilation processing unit 4 converts the motion program 2 in the text format into the motion program 9 in the execution format. (Step 2) 3) The motion program 9 in the execution format is stored in the memory 8. (Step 3) 4) The control signal processing unit 6 instructs the multitask OS 7 to execute the execution program of the motion program 9 in accordance with the motion control signal input 5. (Step 4) 5) The multitask OS activates the executable motion program 9 as a task (S3). (Step 5) The motion program is executed in the above procedure. However, since the text-format motion program is converted into the executable format data in Step 2, the data conversion is not required at the time of executing the motion program, and the speed can be easily increased. I can do it. Further, since the execution of the motion program is controlled as one task on the multitask OS in step 5, it is not necessary to develop the execution control processing of the motion program. In addition, the multitask execution function of the multitask OS facilitates simultaneous or asynchronous execution of a plurality of motion programs.

【0006】[0006]

【発明の効果】以上記述したように、本発明によれば、
以下の(1)〜(3)の効果がある。 (1)予めテキスト形式のモーションプログラムを実行
形式のデータへ変換しておくので、モーションプログラ
ム実行時にデータ変換が不要となり高速化が容易に行え
る。 (2)モーションプログラムはマルチタスクOS上でタ
スクとして実行制御されるので、モーションプログラム
の実行制御処理を開発する必要がなくなる。 (3)マルチタスクOSのマルチタスク実行機能により
複数モーションプログラムの同時もしくは非同期の実行
が容易に可能となる。
As described above, according to the present invention,
There are the following effects (1) to (3). (1) Since a motion program in a text format is converted into data in an executable format in advance, data conversion is not required at the time of executing the motion program, and the speed can be easily increased. (2) Since the execution of the motion program is controlled as a task on the multitask OS, there is no need to develop the execution control processing of the motion program. (3) Simultaneous or asynchronous execution of a plurality of motion programs can be easily performed by the multitask execution function of the multitask OS.

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

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

【図2】本発明の実施例におけるモーションプログラム
実行処理を示すフローチヤート
FIG. 2 is a flowchart showing a motion program execution process according to an embodiment of the present invention.

【図3】従来技術の実施例を示すブロック図FIG. 3 is a block diagram showing an embodiment of the prior art.

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

1 モーションコントローラ 2 テキスト形式のモーションプログラム 3 入出力処理部 4 モーションプログラムコンパイル処理部 5 制御信号入力 6 制御信号処理部 7 マルチタスクOS 8 メモリ 9 実行形式のモーションプログラム 10 モーション制御処理部 11 モーションプログラム実行解析部 12 解析処理部 13 実行制御部 S1 実行形式のモーションプログラムの起動、停止等
の指令 S2 モーションコマンド S3 タスク起動 S4 バイナリ形式のモーションコマンド S5 実行制御指令
DESCRIPTION OF SYMBOLS 1 Motion controller 2 Text format motion program 3 I / O processing part 4 Motion program compilation processing part 5 Control signal input 6 Control signal processing part 7 Multitask OS 8 Memory 9 Executable form motion program 10 Motion control processing part 11 Motion program execution Analysis unit 12 Analysis processing unit 13 Execution control unit S1 Command for starting and stopping motion program in execution format S2 Motion command S3 Task start S4 Motion command in binary format S5 Execution control command

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 テキスト形式のモーションプログラムを
実行形式のプログラムに変換するモーションプログラム
コンパイル処理部を備えたモーションコントローラにお
いて、 実行形式のモーションプログラムを、制御信号処理部か
らマルチタスクOSへのタスク制御命令により、マルチ
タスクOS上の1タスクとして実行制御することを特徴
とするモーションコントローラにおけるモーションプロ
グラムの実行方法。
1. A motion controller comprising a motion program compiling processor for converting a text-format motion program into an executable program, wherein the executable motion program is transmitted from a control signal processor to a multitask OS by a task control command. A method of executing a motion program in a motion controller, wherein the execution is controlled as one task on a multitask OS.
JP2000069704A 2000-03-14 2000-03-14 Method for executing motion program Pending JP2001255912A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000069704A JP2001255912A (en) 2000-03-14 2000-03-14 Method for executing motion program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000069704A JP2001255912A (en) 2000-03-14 2000-03-14 Method for executing motion program

Publications (1)

Publication Number Publication Date
JP2001255912A true JP2001255912A (en) 2001-09-21

Family

ID=18588534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000069704A Pending JP2001255912A (en) 2000-03-14 2000-03-14 Method for executing motion program

Country Status (1)

Country Link
JP (1) JP2001255912A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011135960A1 (en) * 2010-04-29 2011-11-03 富士機械製造株式会社 Manufacturing-work machine
WO2011135938A1 (en) * 2010-04-29 2011-11-03 富士機械製造株式会社 Manufacturing-work machine and manufacturing-work system
JP2011245598A (en) * 2010-05-28 2011-12-08 Fuji Mach Mfg Co Ltd Manufacturing-work machine
CN107515543A (en) * 2016-06-17 2017-12-26 青海汉拉信息科技股份有限公司 The Chinese language text method that adaptively live clustered control is performed entirely automatically system
CN109454641A (en) * 2018-12-25 2019-03-12 哈工大机器人(合肥)国际创新研究院 A kind of motion controller multitask division of labor and data interactive method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011135960A1 (en) * 2010-04-29 2011-11-03 富士機械製造株式会社 Manufacturing-work machine
WO2011135938A1 (en) * 2010-04-29 2011-11-03 富士機械製造株式会社 Manufacturing-work machine and manufacturing-work system
JP2011233796A (en) * 2010-04-29 2011-11-17 Fuji Mach Mfg Co Ltd Manufacturing operation machine
CN102860150A (en) * 2010-04-29 2013-01-02 富士机械制造株式会社 Manufacturing-work machine
US9363936B2 (en) 2010-04-29 2016-06-07 Fuji Machine Mfg. Co., Ltd. Manufacture work machine and manufacture work system
US9374935B2 (en) 2010-04-29 2016-06-21 Fuji Machine Mfg. Co., Ltd. Manufacture work machine
US9485895B2 (en) 2010-04-29 2016-11-01 Fuji Machine Mfg. Co., Ltd. Central control device and centralized control method
US10098269B2 (en) 2010-04-29 2018-10-09 Fuji Machine Mfg. Co., Ltd. Manufacture work machine for controlling a plurality of work-element performing apparatuses by central control device
JP2011245598A (en) * 2010-05-28 2011-12-08 Fuji Mach Mfg Co Ltd Manufacturing-work machine
CN107515543A (en) * 2016-06-17 2017-12-26 青海汉拉信息科技股份有限公司 The Chinese language text method that adaptively live clustered control is performed entirely automatically system
CN109454641A (en) * 2018-12-25 2019-03-12 哈工大机器人(合肥)国际创新研究院 A kind of motion controller multitask division of labor and data interactive method
CN109454641B (en) * 2018-12-25 2022-01-04 哈工大机器人(合肥)国际创新研究院 Multi-task division and data interaction method for motion controller

Similar Documents

Publication Publication Date Title
JPH0895821A (en) Method and device for multitask program debugging
JP2001255912A (en) Method for executing motion program
JP2000020114A (en) Method for generating and executing program for motion controller
JPH04268928A (en) Emulation device and semiconductor device
JPH0210429A (en) Program structure processing system
JPH0272407A (en) Ladder program converter
JPS5829051A (en) Operation processing device
JPH0659933A (en) Code converter
JPS59212907A (en) Programmable controller
JPS63313235A (en) Operation system
JPH10283193A (en) Fast interpreter system
JPS6020275A (en) Simple programming system of multiprocessor
JPH09231088A (en) Device and method for program conversion execution
JP2682206B2 (en) Optimization method of target program
JPH0488438A (en) One-instruction execution system of debugger for source program in high-level language
JPH04178734A (en) Program language processor
JPH04343140A (en) Parallelized processing system
JPH01292536A (en) Emulator for dealing with plural operation systems
JPH02165339A (en) Compile device
JPH03172958A (en) Synchronous processing method, system and method for parallel processing, and parallel program generator
JPH06282440A (en) Program editing method, program editing and executing method, and computer system
JPS61161514A (en) Numerical control system
JPS63186333A (en) Scheduling processing system for instruction to local branching instruction
JPS6232557A (en) Communication protocol converter
JP2001344124A (en) Machine controller