JP2880330B2 - Programming device for programmable controller - Google Patents

Programming device for programmable controller

Info

Publication number
JP2880330B2
JP2880330B2 JP3241085A JP24108591A JP2880330B2 JP 2880330 B2 JP2880330 B2 JP 2880330B2 JP 3241085 A JP3241085 A JP 3241085A JP 24108591 A JP24108591 A JP 24108591A JP 2880330 B2 JP2880330 B2 JP 2880330B2
Authority
JP
Japan
Prior art keywords
memory
programming device
mode
programmable controller
editing
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.)
Expired - Fee Related
Application number
JP3241085A
Other languages
Japanese (ja)
Other versions
JPH0580813A (en
Inventor
孝幸 押賀
富和 加藤
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.)
Hitachi Ltd
Hitachi Keiyo Engineering Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Keiyo Engineering 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 Hitachi Ltd, Hitachi Keiyo Engineering Co Ltd filed Critical Hitachi Ltd
Priority to JP3241085A priority Critical patent/JP2880330B2/en
Publication of JPH0580813A publication Critical patent/JPH0580813A/en
Application granted granted Critical
Publication of JP2880330B2 publication Critical patent/JP2880330B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/13Plc programming
    • G05B2219/13153Modification, change of program in real time

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、プログラマブルコント
ローラのユーザプログラムメモリに記憶するシーケンス
プログラムの作成、あるいはこれの編集を表示画面との
対応で行うプログラマブルコントローラのプログラミン
グ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller programming apparatus for creating or editing a sequence program stored in a user program memory of a programmable controller in correspondence with a display screen.

【0002】[0002]

【従来の技術】一般的にプログラマブルコントローラ
は、シーケンスプログラムであるユーザプログラムを記
憶するユーザプログラムメモリを備えている。そして、
一般的に、ユーザプログラムメモリに記憶するシーケン
スプログラムは、プログラミング装置によって作成、編
集され記憶される。このため、プログラミング装置は、
シーケンスコントローラ内に設けたユーザプログラムメ
モリと同様構成のプログラムメモリを備えている。
2. Description of the Related Art Generally, a programmable controller is provided with a user program memory for storing a user program which is a sequence program. And
Generally, a sequence program stored in a user program memory is created, edited, and stored by a programming device. For this reason, the programming device
A program memory having the same configuration as the user program memory provided in the sequence controller is provided.

【0003】このプログラミング装置にてプログラマブ
ルコントローラのユーザプログラムを作成、または編集
するに際しては、まずプログラマブルコントローラのユ
ーザプログラムメモリの内容をプログラミング装置内の
プログラムメモリに転送する。そして、プログラミング
装置でこのプログラムメモリの内容の編集等の作業終了
後に、その編集後の内容を一括して再びプログラマプル
コントローラのユーザプログラムメモリに転送する方法
を取っている。
When creating or editing a user program of a programmable controller with this programming device, first, the contents of the user program memory of the programmable controller are transferred to the program memory in the programming device. Then, after the work of editing the contents of the program memory is completed by the programming device, the edited contents are collectively transferred to the user program memory of the program controller again.

【0004】一方、プログラミング装置は、前記のよう
に内蔵しているプログラムメモリの内容を指定してその
編集を実行できることは勿論、プログラマブルコントロ
ーラのユーザメモリを指定してその編集を実行できるよ
う構成されている。一般的に、前者をオフラインモー
ド、あるいはオフラインプログラミングと称し、後者を
オンラインモード、あるいはオンラインプログラミング
と称している。
On the other hand, the programming device is designed to be able to execute the editing by designating the contents of the built-in program memory as described above, as well as to execute the editing by designating the user memory of the programmable controller. ing. Generally, the former is called offline mode or offline programming, and the latter is called online mode or online programming.

【0005】この種の技術の参考となるものには、特開
昭56−11502号を挙げることができる。
Japanese Patent Application Laid-Open No. 56-11502 can be mentioned as a reference for this kind of technology.

【0006】[0006]

【発明が解決しようとする課題】上記した従来のもの
は、プログラマブルコントローラのユーザプログラムメ
モリの内容と、プログラミング装置のプログラムメモリ
の内容とを同時編集するという点についての配慮がされ
ておらず、両者のメモリを同一内容にするには、プログ
ラマブルコントローラのユーザプログラムメモリの内容
をプログラミング装置のプログラムメモリへ転送し、そ
の編集後、再び元のユーザプログラムメモリへ転送する
という2度の転送が必要であった。
The above-mentioned prior art does not take into consideration the simultaneous editing of the contents of the user program memory of the programmable controller and the contents of the program memory of the programming device. In order to make the same memory, it is necessary to transfer the contents of the user program memory of the programmable controller to the program memory of the programming device, edit the contents, and then transfer the contents again to the original user program memory. Was.

【0007】このため、特にシ−ケンスプログラムのデ
バックを操作者が実施する場合、プログラムを変更する
毎に、上記転送作業をしなければならず、余分な操作と
転送処理の時間待ちを強いられていた。
For this reason, especially when the operator executes the debugging of the sequence program, the above-mentioned transfer operation must be performed every time the program is changed, so that extra operations and the waiting time for the transfer processing are forced. I was

【0008】さらに、オンラインモードによるプログラ
ミングでは、プログラマブルコントローラ側のユーザプ
ログラムメモリの内容が編集される為、その編集後にプ
ログラマブルコントローラのユーザプログラムメモリの
内容をプログラミング装置へ転送することを忘れると、
両者のメモリ内容が一致しなくなるという問題が生じて
いた。
Further, in the programming in the online mode, since the contents of the user program memory of the programmable controller are edited, if the contents of the user program memory of the programmable controller are forgotten to be transferred to the programming device after the editing,
There has been a problem that the memory contents of the two do not match.

【0009】本発明の目的は、編集作業終了後に一括し
てメモリ転送しなくても、両者のメモリを常に同一にす
ることが可能なプログラマブルコントローラのプログラ
ミング装置を得ることにある。そして、オンラインプロ
グラミング終了後に生ずるメモリ不一致を無くすことに
ある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a programming device for a programmable controller which can always make the two memories the same without having to collectively transfer the memories after the editing operation. Another object of the present invention is to eliminate memory inconsistency that occurs after the completion of online programming.

【0010】本発明の他の目的は、プログラマブルコン
トローラのシ−ケンスプログラムのデバック作業を操作
者が実施する場合に、メモリ内容の転送処理に要する時
間を短縮可能なプログラムコントローラのプログラミン
グ装置を得ることにある。
Another object of the present invention is to provide a programming device for a program controller capable of reducing a time required for a memory content transfer process when an operator performs a debugging operation of a sequence program of a programmable controller. It is in.

【0011】[0011]

【課題を解決するための手段】上記の目的を達成するた
に本発明は、プログラマブルコントローラ内のユーザ
プログラムメモリにシーケンスプログラムを作成または
編集するオンラインモードと、プログラミング装置本体
のプログラムメモリにプログラムメモリにシーケンスプ
ログラムを作成または編集するオフラインモードを有す
るプログラマブルコントローラのプログラミング装置に
おいて、オフラインモード、オンラインモード、及び両
メモリを並列して編集するオンライン並列編集モードの
各モードを選択可能に構成し、起動時に選択されたモー
ドは、そのモードが終了するまでの当該モードの機能を
続行することを特徴とするものである
SUMMARY OF THE INVENTION In order to achieve the above object , the present invention provides a method for controlling a user in a programmable controller.
Create a sequence program in the program memory or
Online mode for editing and programming device
Sequence memory in program memory
Has offline mode to create or edit programs
Programmable controller programming device
In offline mode, online mode, and both
Online parallel editing mode for editing memory in parallel
Each mode is configured to be selectable, and the mode selected at startup is selected.
Mode will continue to function in that mode until the mode ends.
It is characterized by continuing .

【0012】好ましい実施態様においては、プログラミ
ング装置の起動時において、オンライン並列モードの選
択に応答し、プログラマブルコントローラ内のメモリの
シーケンスプログラムと、プログラミング装置本体のメ
モリのシーケンスプログラムの比較照合を実行し、両者
が一致していればオンライン並列編集モードを実行し、
一致していなければ、操作者に対して警告表示、または
一致操作を促す表示を行う記憶内容比較手段を具備して
なることを特徴とするものである
In a preferred embodiment, the program
Select the online parallel mode when starting the
Responds to the selection of the memory in the programmable controller.
The sequence program and the programming device
Executes comparison and comparison of the sequence program of Mori
If matches, execute online parallel editing mode,
If they do not match, a warning is displayed to the operator, or
A storage content comparing means for performing a display prompting a matching operation is provided.
It is characterized by becoming .

【0013】[0013]

【0014】[0014]

【作用】上記のようにすれば、編集した内容が、直ちに
プログラマブルコントローラ内のユーザプログラムメモ
リとプログラミング装置内のプログラムメモリに反映さ
れる為、両者のメモリ不一致によるトラブルの発生を未
然に防止することができる。
According to the above, the edited contents are immediately reflected in the user program memory in the programmable controller and the program memory in the programming device, thereby preventing the occurrence of trouble due to a mismatch between the memories. Can be.

【0015】また、編集前のプログラマブルコントロ−
ラ内のメモリのシ−ケンスプログラムと、プログラミン
グ装置本体のメモリのシ−ケンスプログラムを一致させ
る作業が初期処理において完了しているので、編集中
は、変更した部分のメモリの内容だけを転送すればよ
く、転送処理に要する時間を短縮できる。
Also, a programmable control before editing
Since the operation of matching the sequence program of the memory in the memory with the sequence program of the memory of the main body of the programming device has been completed in the initial processing, during editing, only the changed contents of the memory are transferred. The time required for the transfer process can be shortened.

【0016】[0016]

【実施例】図1は本実施例におけるプログラミング装置
の初期画面の状態を示す図である。プログラミング装置
でプログラミングソフトを立ち上げると、モード機能を
選択する図1(a)の初期画面を表示する。ここにおい
て、選択番号「1」はオフラインモード、すなわちプロ
グラミング装置に内蔵したプログラムメモリの内容を指
定してその編集を実行するモードである。選択番号
「2」はオンラインモード、すなわちプログラマブルコ
ントローラのユーザプリグラムメモリを指定してその編
集を実行するモードである。選択番号「3」は本実施例
によって新たに追加したモードであり、プログラマブル
コントロ−ラ内のユーザプログラムメモリとプログラミ
ング装置のプログラムメモリとを指定して、これら両メ
モリを並列して編集を実行するモードであり、表示画面
上においては新オンラインモードと称してある。プログ
ラミング装置は、図1に示す初期画面の中で、新オンラ
インモ−ド「3」が選択されると、プログラマブルコン
トロ−ラ内のユーザプログラムメモリに記憶されたシ−
ケンスプログラムと、プログラミング装置本体のプログ
ラムメモリのシ−ケンスプログラムが一致しているか否
かを確認し、一致していれば図1(c)の画面を表示し
て新オンラインモ−ドによるプログラミング処理を開始
する。もし、一致していなければ図1(b)の画面を表
示して操作者に対して、上記一致のためのメモリ転送方
向を問い合わせる。
FIG. 1 is a diagram showing a state of an initial screen of a programming device in this embodiment. When the programming software is started by the programming device, an initial screen of FIG. 1A for selecting a mode function is displayed. Here, the selection number "1" is an off-line mode, that is, a mode in which the contents of a program memory incorporated in the programming device are designated and editing is performed. The selection number “2” is an online mode, that is, a mode in which a user program memory of the programmable controller is designated and editing is performed. The selection number "3" is a mode newly added according to the present embodiment. The user program memory in the programmable controller and the program memory of the programming device are designated, and the two memories are edited in parallel. This mode is called a new online mode on the display screen. When the new online mode "3" is selected on the initial screen shown in FIG. 1, the programming device stores the program stored in the user program memory in the programmable controller.
It is checked whether the sequence program matches the sequence program in the program memory of the programming device main body, and if they match, the screen shown in FIG. 1C is displayed, and the programming processing in the new online mode is performed. To start. If they do not match, the screen shown in FIG. 1B is displayed and the operator is inquired of the memory transfer direction for the above-mentioned match.

【0017】図1(b)において、選択番号「1」が選
択されると、プログラマブルコントロ−ラ内のユーザプ
ログラムがプログラミング装置へ転送され、プログラマ
ブルコントローラ内のユーザプログラムメモリの記憶内
容と、プログラミング装置内のプログラムメモリの記憶
内容との記憶内容が一致し、その後、図1(c)の画面
表示となる。また、図1(b)において、選択番号
「2」が選択されると、プログラミング装置内のプログ
ラムメモリの内容、すなわちシ−ケンスプログラムがプ
ログラマブルコントロ−ラへ転送され、両者の内容が一
致し、その後、図1(c)の画面表示となる。
In FIG. 1B, when the selection number "1" is selected, the user program in the programmable controller is transferred to the programming device, and the storage contents of the user program memory in the programmable controller and the programming device The stored contents match the stored contents of the program memory inside the program memory, and then the screen display of FIG. In FIG. 1B, when the selection number "2" is selected, the contents of the program memory in the programming device, that is, the sequence program, are transferred to the programmable controller, and the contents of the two are matched. Thereafter, the screen is displayed as shown in FIG.

【0018】図2は本発明の一実施例を示す装置の全体
の構成図である。この図において、PGMはプログラミ
ング装置を示し、PCはプログラマブルコントローラの
構成を示す。プログラミング装置PGMはプログラミン
グのための制御プログラムを記憶するシステムメモリ、
シーケンスプログラムおよびデータ等を記憶する内部記
憶装置としてのメインメモリMM、入力装置としてのキ
ーボードKB、表示装置CRT、外部記憶装置としての
外部記憶メモリEM、作成したシーケンスプログラムを
送信、あるいは受信するシリアルインタフェースIF
2、およびプログラミング装置PGM全体の制御を行う
中央処理部CPU2を備えている。プログラマブルコン
トローラPCは、プログラミング装置PGMから送信さ
れたシーケンスプログラムを受信、あるいはプログラミ
ング装置PGMへシーケンスプログラムを送信するイン
タフェースIF1、この受信したシーケンスプログラム
を格納するユーザプログラムメモリ2、シーケンス制御
のための制御プログラムを記憶するシステムメモリSM
1、このシステムメモリSM1の内容に基づきユーザプ
ログラムメモリ2に格納されたユーザプログラムを実行
する中央処理部CPU1、および制御対象との間でデー
タを授受する入出力部IOを備えている。
FIG. 2 is an overall configuration diagram of an apparatus showing an embodiment of the present invention. In this figure, PGM indicates a programming device, and PC indicates a configuration of a programmable controller. A programming device PGM is a system memory for storing a control program for programming;
A main memory MM as an internal storage device for storing sequence programs and data, a keyboard KB as an input device, a display device CRT, an external storage memory EM as an external storage device, a serial interface for transmitting or receiving a created sequence program IF
And a central processing unit CPU2 for controlling the entire programming device PGM. The programmable controller PC receives the sequence program transmitted from the programming device PGM or transmits the sequence program to the programming device PGM, an interface IF1, a user program memory 2 for storing the received sequence program, a control program for sequence control. Memory SM for storing
1, a central processing unit CPU1 for executing a user program stored in a user program memory 2 based on the contents of the system memory SM1, and an input / output unit IO for exchanging data with a control target.

【0019】プログラミング装置PGM内のメインメモ
リMMには、ユーザプログラムを構成するためユーザプ
ログラムメモリ2と対応したプログラムメモリを割り当
てる。また、ユーザプログラムの編集等のため編集用の
エリアを割り当てる。
A program memory corresponding to the user program memory 2 for configuring a user program is allocated to the main memory MM in the programming device PGM. Further, an editing area is allocated for editing a user program.

【0020】図1において、新オンラインプログラミン
グを選択すると、プログラマブルコントローラPC内に
あるユーザプログラムメモリ2からインタフェースIF
2を介してプログラミング装置PGM内のプログラムメ
モリ1にその内容が転送される。
In FIG. 1, when the new online programming is selected, the interface IF is stored in the user program memory 2 in the programmable controller PC.
The contents are transferred to the program memory 1 in the programming device PGM via the program memory 2.

【0021】次に、オンライン処理の起動を開始し、ユ
ーザプログラムメモリ2における編集回路をメインメモ
リMMのプログラムメモリ1以外の編集用メモリエリア
に転送し、回路変更作業を実行する。この回路変更作業
で変更されたステップの内容をユーザプログラムメモリ
2に転送する。そして、同じ転送内容をプログラムメモ
リ1についても実行し、1回路内のステップ変更作業が
終了する。同回路内において他のステップを変更するの
であれば、この一連の作業を繰り返すことになる。
Next, the start of online processing is started, the editing circuit in the user program memory 2 is transferred to an editing memory area other than the program memory 1 of the main memory MM, and a circuit changing operation is performed. The contents of the steps changed by the circuit changing operation are transferred to the user program memory 2. Then, the same transfer contents are executed for the program memory 1, and the step change operation in one circuit is completed. If another step is changed in the same circuit, this series of operations is repeated.

【0022】図3は本実施例により新たに追加した処理
を示すフローチャートであり、これは図1(a)におい
て項目番号3が選択されてことによって起動される。こ
のフローチャートにおいて、ステップ3a,3b,3
c,3dは記憶内容比較手段を構成し、ステップ3e,
3f,…,3kは記憶内容更新手段を構成する。この処
理は起動されることによって、まず、ステップ3aで
は、プログラムコントローラPCのユーザプログラムメ
モリ2の記憶内容と、プログラミング装置PGM内のプ
ログラムメモリ1との一致状況を検知する。ここで、仮
に両者のメモリ内容が一致していなければ、ステップ3
bで、表示画面上に両メモリが不一致である旨の表示を
行う。そして、ユーザに対し、両メモリを一致させるた
めのデータの転送方向を選択させる画面を表示、すなわ
ち図1(b)に示した画面を表示する。ここで、ユーザ
が「1」を選択したとすると、ステップ3cでプログラ
マブルコントローラPCのユーザプログラムメモリ2か
らプログラミング装置PGMのプログラムメモリ1へそ
の記憶内容を転送記憶する。これにより、プログラミン
グ装置PGMのプログラムメモリ1の記憶内容は、プロ
グラマブルコントローラPCのユーザプログラムメモリ
2の内容と一致することとなる。また、ステップ3dで
ユーザが「2」を選択したとすると、ステップ3dでプ
ログラミング装置PGMのプログラムメモリ1からプロ
グラマブルコントローラPCのユーザプログラムメモリ
2へその記憶内容を転送記憶する。これにより、プログ
ラミング装置PGMのプログラムメモリ1の記憶内容
は、プログラマブルコントローラPCのユーザプログラ
ムメモリ2の内容と一致することとなる。ステップ3
c、あるいはステップ3dの実行後、処理をステップ3
eへ移す。ステップ3aにおいて両メモリ1、2の内容
が一致していれば、ステップ3b、3c、3dを実行す
ることなく、処理をステップ3eへ移す。
FIG. 3 is a flowchart showing a process newly added according to the present embodiment, which is started when item number 3 is selected in FIG. In this flowchart, steps 3a, 3b, 3
Steps c and 3d constitute storage content comparison means.
.., 3k constitute storage content updating means. When this processing is started, first, in step 3a, a matching state between the storage content of the user program memory 2 of the program controller PC and the program memory 1 in the programming device PGM is detected. Here, if both memory contents do not match, step 3
In step b, a message is displayed on the display screen indicating that the two memories do not match. Then, a screen for prompting the user to select a data transfer direction for matching the two memories is displayed, that is, the screen shown in FIG. 1B is displayed. Here, if the user selects "1", the stored contents are transferred from the user program memory 2 of the programmable controller PC to the program memory 1 of the programming device PGM in step 3c. Thereby, the contents stored in the program memory 1 of the programming device PGM match the contents of the user program memory 2 of the programmable controller PC. If the user selects "2" in step 3d, the stored contents are transferred from the program memory 1 of the programming device PGM to the user program memory 2 of the programmable controller PC in step 3d. Thereby, the contents stored in the program memory 1 of the programming device PGM match the contents of the user program memory 2 of the programmable controller PC. Step 3
After execution of step c or step 3d, the processing is performed in step 3
e. If the contents of both memories 1 and 2 match in step 3a, the process proceeds to step 3e without executing steps 3b, 3c and 3d.

【0023】ステップ3eにおいては、本実施例による
オンラインモードの開始処理を実行する。周知のよう
に、シーケンスプログラムは一般的には1回路単位でそ
の編集作業を実行する。この実施例も1回路単位で編集
する場合について示してある。ステップ3fでは、編集
対象となる回路番号等の入力をユーザに要求し、プログ
ラミング装置PGMからのユーザ入力に応答して、対象
となる1回路をプログラミング装置PGMのメインメモ
リ4に予め割り付けた記憶エリア内に記憶格納する。続
く、ステップ3gにおいては、この記憶エリア内の回路
をユーザの編集操作に基づいて回路中の1ステップ分の
記憶内容を編集する。これが終了すると、ステップ3h
で、この編集内容をプログラマブルコントローラPCの
ユーザプログラムメモリ2に転送し、続いてステップ3
iでは同一の編集内容をプログラミング装置PGMのプ
ログラムメモリ1へ転送する。ステップ3jでは、当該
回路の編集作業が終了したか否かを判定し、終了してい
なければ処理をステップ3gへ移し、上記の処理を繰り
返す。終了するのであればステップ3kへ処理を移し、
編集作業を終了するか否かを判定し、終了していなけれ
ば処理をステップ3fへ移し、上記の処理を繰り返す。
そして、終了するのであれば、以上の編集作業は終了す
る。
In step 3e, a process for starting the online mode according to the present embodiment is executed. As is well known, a sequence program generally performs its editing operation in units of one circuit. This embodiment also shows a case where editing is performed in units of one circuit. In step 3f, the user is requested to input a circuit number to be edited or the like, and in response to a user input from the programming device PGM, one target circuit is pre-allocated to the main memory 4 of the programming device PGM. To store. In the following step 3g, the contents of the circuit in this storage area are edited for one step in the circuit based on the editing operation of the user. When this is completed, step 3h
Then, the edited contents are transferred to the user program memory 2 of the programmable controller PC.
In i, the same edited content is transferred to the program memory 1 of the programming device PGM. In step 3j, it is determined whether or not the editing work of the circuit has been completed, and if not, the process proceeds to step 3g and the above process is repeated. If so, the process proceeds to step 3k.
It is determined whether or not the editing work is to be ended. If not, the process proceeds to step 3f, and the above process is repeated.
Then, if it is to be ended, the above editing work is ended.

【0024】以上の実施例におけるオンラインプログラ
ミングの内部処理の詳細を図4〜図6に摸式図で示す。
図4は回路編集後のステップ数が増加した場合の処理を
示したものであり、図4(a)は、編集後のデータ処理
前の状態を示し、プログラマブルコントローラPC内の
ユーザプログラムメモリ10から1回路分のデータがプ
ログラミング装置PGM内のメモリ9に転送され、変更
された1回路分のステップがステップ数7であり、それ
がプログラミング装置9の中にあることを示す。斜線で
示した部分が編集後に増加したステップ数11である。
Details of the internal processing of online programming in the above embodiment are shown in schematic diagrams in FIGS.
FIG. 4 shows a process when the number of steps after the circuit editing is increased, and FIG. 4A shows a state before the data processing after the editing, which is performed by the user program memory 10 in the programmable controller PC. The data of one circuit is transferred to the memory 9 in the programming device PGM, and the changed step of one circuit is the number of steps 7, which indicates that it is in the programming device 9. The hatched portion is the number of steps 11 that has increased after editing.

【0025】図4(b)は、増加分のステップ転送処理
を示し、増加したステップ部分だけをユーザプログラム
メモリ10とプログラミング装置PGM内のメモリ8に
転送する処理を示す。この場合、転送する前にあらかじ
め増加分のステップ数だけずらして転送処理を行う。一
般のオンラインプログラミングに対し、転送処理15が
追加されている。
FIG. 4 (b) shows the step transfer process of the increment, and shows the process of transferring only the increased step portion to the user program memory 10 and the memory 8 in the programming device PGM. In this case, before the transfer, the transfer process is performed by shifting the number of steps by the increment in advance. A transfer process 15 is added to general online programming.

【0026】図4(c)は、1回路の残りステップの転
送処理を示したものでる。1回路の残されたステップ1
2をユーザプログラムメモリ10とプログラミング装置
PGM内のメモリ8へ転送する。一般のオンラインプロ
グラミングに対し、転送処理15が追加されている。図
4の処理の流れは、図4(a)、図4(b)、図4
(c)の順に行われる。
FIG. 4C shows the transfer process in the remaining steps of one circuit. Step 1 left of one circuit
2 is transferred to the user program memory 10 and the memory 8 in the programming device PGM. A transfer process 15 is added to general online programming. 4A, 4B, 4A, and 4B.
It is performed in the order of (c).

【0027】図5は、回路編集後のステップ数が同一の
場合の処理を示したものであり、図5(a)は、編集後
のデータ処理前の状態を示したものである。編集したス
テップ13が実質転送ステップになる。図5(b)は、
転送ステップ先頭アドレスの検出処理を示しており、プ
ログラマブルコントローラPGM内の変更前回路メモリ
14とメモリ7とを照合し、照合不一致アドレスをAD
R’とする。ここが転送開始アドレスになる。図5
(c)は、転送ステップ最終アドレスの検出処理を示し
ており、回路の最終ステップから一致しているステップ
数16を求める。実質転送ステップ13は、7−16−
(ADR’−ADR)になる。図5(d)は、ステップ
転送処理を示しており、オンラインプログラミングでは
なかった13を8に転送する処理に16を追加したもの
である。図5の処理の流れは、図5(a)、図5
(b)、図5(c)、図5(d)の順に行われる。
FIG. 5 shows the processing when the number of steps after circuit editing is the same, and FIG. 5A shows the state before data processing after editing. The edited step 13 becomes a substantial transfer step. FIG. 5 (b)
This figure shows the process of detecting the start address of the transfer step, and compares the before-change circuit memory 14 in the programmable controller PGM with the memory 7 and compares the mismatched address with AD.
R ′. This is the transfer start address. FIG.
(C) shows the process of detecting the final address of the transfer step, and finds the number of matching steps 16 from the last step of the circuit. Substantial transfer step 13 includes 7-16-
(ADR'-ADR). FIG. 5D shows the step transfer process, which is obtained by adding 16 to the process of transferring 13 which is not the online programming to 8. The flow of the processing in FIG.
(B), FIG. 5 (c), and FIG. 5 (d).

【0028】図6は、回路変更後のステップ数が減少し
たの場合の処理を示したものであり、図6(a)は、編
集後のデータ処理前の状態を示したものである。15が
減少したステップ数になる。図6(b)は、減少ステッ
プ数分のプログラムの削除を示したもので、オンライン
プログラムになかった15を削除処理を追加した処理に
なっている。図6(c)は、変更回路の転送を示したも
のであり、図6(b)によって減少された10と8のメ
モリに変更回路16を転送する。オンラインプログラミ
ングにはなかった15を追加した処理である。図6の処
理の流れは、図6(a)、図6(b)、図6(c)の順
に行われる。
FIG. 6 shows the processing when the number of steps after the circuit change is reduced, and FIG. 6 (a) shows the state before the data processing after editing. 15 is the reduced step number. FIG. 6B shows deletion of a program corresponding to the number of reduced steps, which is a processing in which deletion processing of 15 which is not included in the online program is added. FIG. 6C shows the transfer of the change circuit, and transfers the change circuit 16 to the memories 10 and 8 reduced by FIG. 6B. This is a process in which 15 which was not in online programming is added. 6 is performed in the order of FIG. 6A, FIG. 6B, and FIG. 6C.

【0029】以上、実施例のようにすれば、編集した内
容が、自動的に直ちにプログラマブルコントローラPC
内のユーザプログラムメモリ2とプログラミング装置P
GM内のプログラムメモリ1に反映される為、両者のメ
モリ不一致によるトラブルの発生を未然に防止すること
ができる。
As described above, according to the embodiment, the edited contents are automatically and immediately transmitted to the programmable controller PC.
Program memory 2 and programming device P
Since the data is reflected in the program memory 1 in the GM, it is possible to prevent a trouble due to a mismatch between the two memories.

【0030】また、編集前のプログラマブルコントロ−
ラPC内のメモリのシ−ケンスプログラムと、プログラ
ミング装置PGM本体のメモリのシ−ケンスプログラム
を一致させる作業が初期処理において完了しているの
で、編集中は、変更した部分のメモリの内容だけを転送
すればよく、転送処理に要する時間を短縮できる。
Also, a programmable control before editing
Since the operation of matching the sequence program of the memory in the PC with the sequence program of the memory of the main body of the programming device PGM has been completed in the initial processing, during editing, only the contents of the changed portion of the memory are stored. Transfer may be performed, and the time required for the transfer process may be reduced.

【0031】[0031]

【発明の効果】以上の説明から明らかなように、本発明
によれば、オンラインとオフラインの機能を兼ね備えた
機能により、メモリ転送の操作を省くことができ、プロ
グラムのデバッグに要する時間を短縮できる。
As is apparent from the above description, according to the present invention, a function having both on-line and off-line functions can eliminate a memory transfer operation and reduce the time required for program debugging. .

【0032】また、メモリ不一致によるトラブルを防ぐ
ことができる。
Further, it is possible to prevent trouble due to memory mismatch.

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

【図1】本発明の一実施例におけるプログラミング装置
の表示画面の表示例を示す図である。。
FIG. 1 is a diagram illustrating a display example of a display screen of a programming device according to an embodiment of the present invention. .

【図2】本発明の一実施例を示すプログラミング装置と
プログラマブルコントローラの構成図を示すブロック図
である。。
FIG. 2 is a block diagram showing a configuration diagram of a programming device and a programmable controller according to an embodiment of the present invention. .

【図3】本発明の一実施例を示す処理のフローチャート
である。
FIG. 3 is a flowchart of a process according to an embodiment of the present invention.

【図4】回路変更後のステップ数が増加した場合の処理
を示した模式図である。
FIG. 4 is a schematic diagram showing processing when the number of steps after a circuit change is increased.

【図5】回路変更後のステップ数が同一の場合の処理を
示した模式図である。
FIG. 5 is a schematic diagram showing processing when the number of steps after circuit change is the same.

【図6】回路変更後のステップ数が減少した場合の処理
を示した模式図である。
FIG. 6 is a schematic diagram showing processing when the number of steps after a circuit change is reduced.

【符号の説明】 1:プログラマブルコントロ−ラ内のユ−ザプログラム
メモリ、2:プログラミング装置内のプログラムメモ
リ、IF1,IF2:インタフェ−ス、MM:プログラ
マブルコントロ−ラ内のメインメモリ、7:1回路分の
ステップ数、8:プログラミング装置内の編集前のユ−
ザプログラムメモリ、9:プログラミング装置内のユ−
ザプログラムメモリ、10:プログラマブルコントロ−
ラ内の編集前のユ−ザプログラムメモリ、11:編集後
に増加したステップ数、12:増加分以外の編集後の回
路、13:編集後のステップ、14:プログラマブルコ
ントロ−ラ内の編集前のユ−ザプログラムメモリ、1
5:転送処理、16:編集後のプログラム、3a,3
b,3c,3d:記憶内容比較手段、3e,3f,…,
3k:記憶内容更新手段
[Description of References] 1: User program memory in programmable controller, 2: Program memory in programming device, IF1, IF2: Interface, MM: Main memory in programmable controller, 7: 1 Number of steps for circuit, 8: User before editing in programming device
The program memory 9: User in the programming device
The program memory, 10: Programmable control
User program memory before editing in the program, 11: number of steps increased after editing, 12: circuit after editing other than the increment, 13: step after editing, 14: before editing in programmable controller User program memory, 1
5: transfer processing, 16: edited program, 3a, 3
b, 3c, 3d: storage contents comparing means, 3e, 3f,.
3k: storage content updating means

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 実開 昭63−76906(JP,U) (58)調査した分野(Int.Cl.6,DB名) G05B 19/04 - 19/05 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References Japanese Utility Model Sho 63-76906 (JP, U) (58) Fields surveyed (Int. Cl. 6 , DB name) G05B 19/04-19/05

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】プログラマブルコントローラ内のユーザプ
ログラムメモリにシーケンスプログラムを作成または編
集するオンラインモードと、プログラミング装置本体の
プログラムメモリにプログラムメモリにシーケンスプロ
グラムを作成または編集するオフラインモードを有する
ものにおいて、前記オフラインモード、前記オンライン
モード、及び前記両メモリを並列して編集するオンライ
ン並列編集モードの各モードを選択可能に構成し、起動
時に選択されたモードは、そのモードが終了するまでの
当該モードの機能を続行することを特徴とするプログラ
マブルコントローラのプログラミング装置。
An online mode for creating or editing a sequence program in a user program memory in a programmable controller and an offline mode for creating or editing a sequence program in a program memory in a program memory of a main body of a programming device. Mode, the online mode, and the online parallel editing mode for editing both memories in parallel, so that each mode can be selected, and the mode selected at the time of startup has the function of the mode until the mode ends. A programming device for a programmable controller, characterized by continuing.
【請求項2】プログラミング装置の起動時において、オ
ンライン並列モードの選択に応答し、プログラマブルコ
ントローラ内のメモリのシーケンスプログラムと、プロ
グラミング装置本体のメモリのシーケンスプログラムの
比較照合を実行し、両者が一致していれば前記オンライ
並列編集モードを実行し、一致していなければ、操作
者に対して警告表示、または一致操作を促す表示を行う
記憶内容比較手段を具備してなることを特徴とする請求
記載のプログラマブルコントローラのプログラミン
グ装置。
2. When the programming device is activated, the sequence program in the memory in the programmable controller is compared with the sequence program in the memory in the main body of the programming device in response to the selection of the online parallel mode. If there is a match, the online parallel edit mode is executed, and if there is no match, there is provided a storage content comparing means for displaying a warning or prompting the operator to perform a match operation. A programming device for a programmable controller according to claim 1 .
JP3241085A 1991-09-20 1991-09-20 Programming device for programmable controller Expired - Fee Related JP2880330B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3241085A JP2880330B2 (en) 1991-09-20 1991-09-20 Programming device for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3241085A JP2880330B2 (en) 1991-09-20 1991-09-20 Programming device for programmable controller

Publications (2)

Publication Number Publication Date
JPH0580813A JPH0580813A (en) 1993-04-02
JP2880330B2 true JP2880330B2 (en) 1999-04-05

Family

ID=17069069

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3241085A Expired - Fee Related JP2880330B2 (en) 1991-09-20 1991-09-20 Programming device for programmable controller

Country Status (1)

Country Link
JP (1) JP2880330B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3594035B2 (en) * 2003-03-13 2004-11-24 オムロン株式会社 Control device, CPU unit, user program editing method of programmable controller, and processing method of programmable controller when online editing is performed
JP2007079651A (en) * 2005-09-12 2007-03-29 Fuji Electric Fa Components & Systems Co Ltd Programming device for programmable controller
GB2608281B (en) * 2017-09-13 2023-05-10 Fisher Rosemount Systems Inc Assistant application for a modular control system

Also Published As

Publication number Publication date
JPH0580813A (en) 1993-04-02

Similar Documents

Publication Publication Date Title
US6290403B1 (en) Sequence program execution control system
EP0845721A1 (en) Numerical controller
JP2880330B2 (en) Programming device for programmable controller
JP3308386B2 (en) Control system
JPH11512205A (en) Method for generating and storing a user program consisting of instructions for a program storage controller and a method for operating a program storage controller
JP3781112B2 (en) Programmable controller system
US20040034443A1 (en) Numerical controller
JP2728256B2 (en) Numerical control method
JPH07210232A (en) Numerical controller
JPH10124119A (en) Sequence program editing method
JP2746331B2 (en) Plant monitoring system
JPH10161724A (en) Numerical controller
JPH04330532A (en) Programmable controller
JPS63170703A (en) Loader command processing device
JPS6348698A (en) Memory storage control device
JP3384141B2 (en) Programmable controller and programmable controller maintenance device
JPS61168010A (en) Numerical control device
JP2669143B2 (en) Programmable controller programming device
JPH0869311A (en) Positioning system
JP2850568B2 (en) Positioning operation method
JPH0546220A (en) Numerical controller
WO1991007706A1 (en) Set data retaining method
JPH04232506A (en) Robot controller
JPH07110651A (en) Method for storing comment in programmable controller, and programmable controller
JPH08166805A (en) Editing system for sequence program

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees