[go: up one dir, main page]

JPH01118902A - Control system for pc data transfer - Google Patents

Control system for pc data transfer

Info

Publication number
JPH01118902A
JPH01118902A JP27487487A JP27487487A JPH01118902A JP H01118902 A JPH01118902 A JP H01118902A JP 27487487 A JP27487487 A JP 27487487A JP 27487487 A JP27487487 A JP 27487487A JP H01118902 A JPH01118902 A JP H01118902A
Authority
JP
Japan
Prior art keywords
data transfer
data
instruction
ladder program
transferred
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
JP27487487A
Other languages
Japanese (ja)
Inventor
Kunio Tanaka
久仁夫 田中
Yasuyuki Ino
泰行 伊野
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP27487487A priority Critical patent/JPH01118902A/en
Publication of JPH01118902A publication Critical patent/JPH01118902A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To facilitate generation of a ladder program by interlocking the data transfer instructions with each other. CONSTITUTION:A data transfer instruction EPCA 7 is set and the external tool correction data is never transferred to a shared RAM as long as a display data transfer instruction 2 is kept under execution. While a data transfer inhibition flag EPCB 3 is set and the instruction 2 is not executed when the transfer of the external tool correction data is started. Thus data are transferred after other data transfer instructions are through. Therefore no special interlock is required with a ladder program. Thus the generation of the ladder program is facilitated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はPCのデータ転送制御方式に関し、特に異なる
データを同一アドレスを経由して容易に転送できるよう
にしたPCのデータ転送制御方式〔従来の技術〕 PC(プログラマブル・コントローラ)では、異なるデ
ータを同一のアドレスを経由して、時間をずらして転送
する場合がある。例えば、数値制御装置(CNC)と結
合されたpcでは、数値制御装置(CNC)が要求する
データを同一のアドレスを経由して、時間をずらして転
送する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a data transfer control system for a PC, and particularly to a data transfer control system for a PC that allows different data to be easily transferred via the same address. Technology] In a PC (programmable controller), different data may be transferred via the same address at different times. For example, in a PC coupled to a numerical control device (CNC), data requested by the numerical control device (CNC) is transferred via the same address at different times.

このために、一方のデータを転送中に他のデータの転送
が行われないように、互いにインターロックをとって、
データが誤って転送されたり、データが破壊されないよ
うにしていた。
For this purpose, we interlock each other so that one data is not transferred while the other data is being transferred.
This was to prevent data from being accidentally transferred or corrupted.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかし、これらのインターロックは一般にラダ−プログ
ラムと称するユーザプログラムで行われていた。このた
めに、プログラムが不正確であると、データの転送がう
まく行かず、他のデータを破壊したりする問題があった
。特にラダープログラムでは、異なるプログラムを各種
の優先度の異なるレベルに分けて実行しているので、こ
れらの優先度を考慮してラダープログラムを作成するこ
とは困難であった。
However, these interlocks were generally performed by a user program called a ladder program. For this reason, if the program is inaccurate, data transfer may not be successful and other data may be destroyed. Particularly in ladder programs, different programs are divided and executed at different levels of priority, so it has been difficult to create a ladder program that takes these priorities into consideration.

本発明の目的は上記問題点を解決し、異なるデータを同
一アドレスを経由して容易に転送できるようにしたPC
のデータ転送制御方式を提供することにある。
The purpose of the present invention is to solve the above problems and to provide a PC that can easily transfer different data via the same address.
The purpose of this invention is to provide a data transfer control method.

〔問題点を解決するための手段〕[Means for solving problems]

本発明では上記の問題点を解決するために、PC(プロ
グラマブル・コントローラ)で異なるデータを同一アド
レスを経由して転送するPCのデータ転送制御方式にお
いて、 第2のデータ転送命令開始でセットされるデータ転送禁
止フラグを有する第1のデータ転送命令と、 前記第1の転送命令の実行開始でセットされるデータ転
送禁止フラグを有する前記第2のデータ転送命令と、 を有することを特徴とするPCのデータ転送制御方式が
、 提供される。
In order to solve the above problems, the present invention provides a data transfer control method for a PC (programmable controller) in which different data is transferred via the same address. A PC comprising: a first data transfer instruction having a data transfer prohibition flag; and a second data transfer instruction having a data transfer prohibition flag that is set upon the start of execution of the first transfer instruction. A data transfer control method is provided.

〔作用〕[Effect]

2個のデータ転送命令は互いに他のデータ転送命令の開
始でデータ転送命令禁止フラグがセットされるで、同時
にデータ転送命令が実行されず、他のデータ転送命令が
終了後にデータ転送命令が実行される。
For two data transfer instructions, the data transfer instruction prohibition flag is set at the start of the other data transfer instruction, so the data transfer instructions are not executed at the same time, and the data transfer instruction is executed after the other data transfer instruction is completed. Ru.

〔実施例〕〔Example〕

以下、本発明の実施例を図面に基づいて説明する。 Embodiments of the present invention will be described below based on the drawings.

第1図に本発明の実施例のPCのデータ転送制御方式の
ハードウェアの構成図を示す。図において、30はPM
C(プログラマブル・マシンコントローラ)でCPU3
1、ROM32、RAM33、外部とのインターフェイ
ス(INT)34を有する。ROM32にはPMCを制
御する管理プログラム、機械を制御するラダープログラ
ム等が記憶されている。33はRAMであり、各種のデ
ータが記憶される。後述する外部工具補正データもこの
RAM33に一時記憶される。インターフェイス34は
機械側との入力(DI)、出力(DO)の授受を行う。
FIG. 1 shows a hardware configuration diagram of a data transfer control system for a PC according to an embodiment of the present invention. In the figure, 30 is PM
CPU3 with C (programmable machine controller)
1. It has a ROM 32, a RAM 33, and an interface (INT) 34 with the outside. The ROM 32 stores a management program for controlling the PMC, a ladder program for controlling the machine, and the like. 33 is a RAM in which various data are stored. External tool correction data, which will be described later, is also temporarily stored in this RAM 33. The interface 34 exchanges input (DI) and output (DO) with the machine side.

CPU31、ROM32及びRAM33、インターフェ
イス34は互いにバスで結合されている。
The CPU 31, ROM 32 and RAM 33, and interface 34 are connected to each other via a bus.

40はCNC(数値制御装置)であり、図においてはC
PU41.共有RAM42及び表示装置43のみが示し
てあり、他の構成要素は省略しである。PMC30、!
=CNC40は共有RAM42を介して互いにデータを
交換できる。
40 is a CNC (numerical control device), and in the figure CNC
PU41. Only the shared RAM 42 and display device 43 are shown, and other components are omitted. PMC30!
=The CNCs 40 can exchange data with each other via the shared RAM 42.

ここで、転送データとして、外部工具補正データとPM
C側の表示データを例に説明する。外部工具補正データ
は外部で設定された工具補正データをPMC30がイン
ターフェイス34から読み、−時RAM33に格納して
、共をRA’M42が他のデータ転送に使用されていな
いときに、共有RAM42を経由してCNC40側へ転
送して、CNC40側で補正動作を行うデータである。
Here, external tool correction data and PM
The display data on the C side will be explained as an example. The external tool compensation data is read by the PMC 30 from the interface 34 and stored in the RAM 33, and then transferred to the shared RAM 42 when the RAM'M 42 is not used for other data transfer. This is data that is transferred to the CNC 40 side via the CNC 40 side, and a correction operation is performed on the CNC 40 side.

また、ここで表示データとは、PMC30のラダープロ
グラムにプログラムされている表示用のデータであり、
機械側のアラーム状態等をCNC40の表示装置43に
表示されるためのデータである。
In addition, the display data here refers to display data programmed in the ladder program of the PMC30,
This is data for displaying the alarm status etc. on the machine side on the display device 43 of the CNC 40.

この外部工具補正データと表示データは共有RAM42
の同一アドレスを経由してCNC40へ転送される。従
って、互いにインターロックをとらないで、同時に転送
が行われると、相手側のデータと混同し、あるいはデー
タが破壊される危険性がある。
This external tool correction data and display data are stored in the shared RAM42.
is transferred to the CNC 40 via the same address. Therefore, if data are transferred simultaneously without interlocking each other, there is a risk that the data will be confused with the data of the other party or the data will be destroyed.

次にデータ転送制御方式の実行方式について述べる。第
2図にデータ転送制御方式のラダープログラムの例を示
す。図において、■は表示データ転送命令を開始するた
めの接点である。2は表示データを転送するための機能
命令である表示データ転送命令であり、3はデータ転送
禁止フラグ(EPCB)であり、後述の外部工具補正デ
ータの転送の開始でセットされる。4は表示データ転送
開始でセットされ転送期間中’IJになるコイルである
Next, the execution method of the data transfer control method will be described. FIG. 2 shows an example of a ladder program using the data transfer control method. In the figure, ■ is a contact point for starting a display data transfer command. 2 is a display data transfer command which is a functional command for transferring display data, and 3 is a data transfer prohibition flag (EPCB), which is set at the start of transfer of external tool correction data, which will be described later. 4 is a coil that is set at the start of display data transfer and becomes 'IJ' during the transfer period.

5は外部からの工具補正データをインターフェイス34
を経由して、RAM33に読み込むための命令の集まり
である。6はインターロック命令であり、実際は外部工
具補正データ転送とこれを禁止するデータ転送禁止フラ
グ(EPCA)7からなる。データ転送禁止フラグ(E
PCA)7は表示データ転送命令2の開始でセットされ
る。
5 is an interface 34 for transmitting tool correction data from outside.
This is a collection of instructions to be read into the RAM 33 via the . 6 is an interlock command, which actually consists of external tool correction data transfer and a data transfer prohibition flag (EPCA) 7 that prohibits this. Data transfer prohibition flag (E
PCA)7 is set at the start of display data transfer command 2.

従って、表示データ転送命令2が実行中にはデータ転送
命令(EPCA)7がセットされ、外部工具補正データ
は共有RA M 4’2には転送されない。逆に外部工
具補正データ転送開始でデータ転送禁止フラグ(EPC
B)3がセットされ、表示データ転送命令は実行されな
い。他のデータ転送命令が終了後にデータ転送が行われ
る。
Therefore, while the display data transfer instruction 2 is being executed, the data transfer instruction (EPCA) 7 is set, and the external tool correction data is not transferred to the shared RAM 4'2. Conversely, when external tool correction data transfer starts, the data transfer prohibition flag (EPC
B) 3 is set and the display data transfer instruction is not executed. Data transfer is performed after other data transfer instructions are completed.

この結果、ラダープログラム上で特別のインターロック
をとる必要がなく、簡単にラダープログラムの作成が可
能になる。
As a result, there is no need to create a special interlock on the ladder program, making it possible to easily create a ladder program.

上記の説明ではPMCで説明したが、通常のPC(プロ
グラマブル・コントローラ)で同様に適用可能である。
Although the above explanation is based on a PMC, it is equally applicable to a normal PC (programmable controller).

また、表示データ転送命令と外部工具補正データ転送命
令で説明したが、他の転送命令でも同様にプログラムす
ることができる。
Furthermore, although the display data transfer command and the external tool correction data transfer command have been described, other transfer commands can be programmed in the same way.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明では、データ転送命令を互い
にインターロックするように構成したので、ラダープロ
グラム上でインターロックをとる必要がなく、ラダープ
ログラムの作成が容易になり、同一アドレスを経由する
データで、データが混同したり、相手側のデータを破壊
する等の不具合を防止できる。
As explained above, in the present invention, the data transfer instructions are configured to be interlocked with each other, so there is no need to establish an interlock on the ladder program, making it easy to create a ladder program, and data transfer instructions passing through the same address This can prevent problems such as data confusion or destruction of the other party's data.

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

第1図は本発明の実施例のPCのデータ転送制御方式の
ハードウェアの構成図、 第2図は本発明の一実施例のデータ転送制御方式のラダ
ープログラムの例を示す図である。 2−−−一−・・−表示データ転送命令3−・−一一−
−−−−−データ転送禁止フラグ(EPCB)6−・−
・−・インターロック命令 7−−−−−−〜−・−データ転送禁止フラグ(EPC
A)30−−−−−一・−・PMC(プログラマブル・
マシンコントローラ) 31−−−−−一・−・−プロセッサ 33−−−m−・−・−RAM 40−−一−−・・・−CNC(数値制御装置)41・
−−−−−−−−一・ブロモ・ンサ42−・−・・〜 
共有R/’i M 出願人   ファナック株式会社 代理人   弁理士  服部毅巖 Dlo D/I 第1図
FIG. 1 is a hardware configuration diagram of a data transfer control method of a PC according to an embodiment of the present invention, and FIG. 2 is a diagram showing an example of a ladder program of a data transfer control method according to an embodiment of the present invention. 2---1--Display data transfer instruction 3---11-
-----Data transfer prohibition flag (EPCB) 6--
・−・Interlock instruction 7−−−−−−−−・−Data transfer prohibition flag (EPC
A) 30-----1...PMC (programmable)
Machine controller) 31------1--Processor 33--m---RAM 40--1--...-CNC (numerical control device) 41.
−−−−−−−−1 Bromo Nsa 42−・−・・~
Shared R/'i M Applicant Fanuc Co., Ltd. Agent Patent Attorney Takeshi Hattori Dlo D/I Figure 1

Claims (1)

【特許請求の範囲】[Claims] (1)PC(プログラマブル・コントローラ)で異なる
データを同一アドレスを経由して転送するPCのデータ
転送制御方式において、 第2のデータ転送命令開始でセットされるデータ転送禁
止フラグを有する第1のデータ転送命令と、 前記第1の転送命令の実行開始でセットされるデータ転
送禁止フラグを有する前記第2のデータ転送命令と、 を有することを特徴とするPCのデータ転送制御方式。
(1) In a PC data transfer control method in which a PC (programmable controller) transfers different data via the same address, the first data has a data transfer prohibition flag that is set at the start of the second data transfer command. A data transfer control method for a PC, comprising: a transfer instruction; and the second data transfer instruction having a data transfer prohibition flag that is set upon the start of execution of the first transfer instruction.
JP27487487A 1987-10-30 1987-10-30 Control system for pc data transfer Pending JPH01118902A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27487487A JPH01118902A (en) 1987-10-30 1987-10-30 Control system for pc data transfer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27487487A JPH01118902A (en) 1987-10-30 1987-10-30 Control system for pc data transfer

Publications (1)

Publication Number Publication Date
JPH01118902A true JPH01118902A (en) 1989-05-11

Family

ID=17547759

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27487487A Pending JPH01118902A (en) 1987-10-30 1987-10-30 Control system for pc data transfer

Country Status (1)

Country Link
JP (1) JPH01118902A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0444535A3 (en) * 1990-02-27 1994-06-29 Mitsubishi Electric Corp Programmable controller having automatic control of interlock process

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0444535A3 (en) * 1990-02-27 1994-06-29 Mitsubishi Electric Corp Programmable controller having automatic control of interlock process
US5437048A (en) * 1990-02-27 1995-07-25 Mitsubishi Denki Kabushiki Kaisha Programmable controller acting as a master station and having automatic control of interlock process by using an operation complete address flag

Similar Documents

Publication Publication Date Title
JPH09128255A (en) Programable logic controller
JPS6134605A (en) Controlling system of programmable controller
JPH01118902A (en) Control system for pc data transfer
JP2710151B2 (en) How the automation device works
JPH086614A (en) Programmable controller
US20030225812A1 (en) Controller for machine
JPH01246602A (en) Special function unit for programmable controller
JP3207333B2 (en) Programmable controller
JPS62249259A (en) Computer system
JP3350699B2 (en) Programmable controller
JPS63317834A (en) Ladder program processing system
JPS6217803A (en) Control system for programmable controller
JPS6020771B2 (en) Micro diagnosis method
JP3452708B2 (en) Programmable controller
JPH01206402A (en) Operation terminating device for numerically controlled machine tool system
JPH1195825A (en) Method for executing numerical control program
JPH04152435A (en) Maintenance diagnosis method
JPH03288205A (en) Programmable controller system
JPS62197819A (en) Data transfer control system
JPH02148355A (en) Overlaying system for distributed processing system
JPS61123963A (en) Input instruction control system
JPH02171802A (en) programmable controller
JPH0317717A (en) Data processing system
JPH01152562A (en) Complex system rising time shortening system in automatic operating program
JPS6371761A (en) System for defining system condition of online system