JPH08202415A - Program update detecting method for programming device - Google Patents

Program update detecting method for programming device

Info

Publication number
JPH08202415A
JPH08202415A JP7027610A JP2761095A JPH08202415A JP H08202415 A JPH08202415 A JP H08202415A JP 7027610 A JP7027610 A JP 7027610A JP 2761095 A JP2761095 A JP 2761095A JP H08202415 A JPH08202415 A JP H08202415A
Authority
JP
Japan
Prior art keywords
program
update
programmable controller
update counter
programming device
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.)
Granted
Application number
JP7027610A
Other languages
Japanese (ja)
Other versions
JP3404730B2 (en
Inventor
Jitsuo Nakayama
実雄 中山
Rumiko Nonaka
ルミ子 野中
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 JP02761095A priority Critical patent/JP3404730B2/en
Publication of JPH08202415A publication Critical patent/JPH08202415A/en
Application granted granted Critical
Publication of JP3404730B2 publication Critical patent/JP3404730B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE: To provide a method, which detects the update of a program by the specific programming device and makes current value data in plural programming devices correctly correspond to the program at all times, in a system which has the programming devices connected to one programmable controller. CONSTITUTION: The programmable controller(PC) 1 is equipped with a 1st update counter 5 which counts up each time a program is written from a programming device(PP) 6, 7, or 8, and the respective PPs are equipped with 2nd update counters 10-12 which store the count value of the update counter part 5 of the PC, transfers the count value of the 1st counter to the respective PPs together with the current value data of the PC each time a scan is made, and updates the count values of the 2nd update counters while reading the program out of the PC unless the count value of the 1st update counter matches the count values of the 2nd update counters.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】1台のプログラマブルコントロー
ラ(以下PCと略)に複数のプログラミング装置(以下
PPと略)を接続して、プログラマブルコントローラの
アプリケーションプログラム(以下単にプログラムとい
う)をメンテナンスするために必要となるプログラム更
新の検出方法で、特に、PPにおいてスキャン周期毎に
プログラムの更新状態を検出して、スキャン周期毎に更
新されるプログラムの各種データ、すなわち接点のON
・OFFデータ、カウンターの計数データ、PIDコン
トローラの演算データ等の現在値(以下現在値データと
いう)に対応する正しいプログラムを、PPに常駐させ
るようにするためのプログラム更新状態の検出方法に関
する。
[Field of Industrial Application] To connect a plurality of programming devices (hereinafter abbreviated as PP) to one programmable controller (hereinafter abbreviated as PC) and maintain an application program (hereinafter simply referred to as program) of the programmable controller With the necessary program update detection method, in particular, the program update state is detected in each scan cycle in the PP, and various data of the program updated every scan cycle, that is, contact ON.
The present invention relates to a method for detecting a program update state for making a correct program corresponding to a current value (hereinafter referred to as current value data) such as OFF data, counter count data, PID controller calculation data, etc. resident in a PP.

【0002】[0002]

【従来の技術】従来技術では、PPに読み出されたプロ
グラムと現在値データが、PC本体のそれらと常時一致
していることが望ましいが、PCのスキャンサイクルの
高速化が犠牲になるため、PCのプログラムの読み出し
要求があった時のみPCのプログラムをPPに読み出
し、通常は現在値データのみをスキャンサイクルの周期
毎にPPに出力していた。
2. Description of the Related Art In the prior art, it is desirable that the program read out to the PP and the current value data always match those of the PC main body, but the speedup of the scan cycle of the PC is sacrificed. The PC program is read out to the PP only when there is a request to read out the PC program, and normally only the current value data is output to the PP every scan cycle.

【0003】[0003]

【本発明が解決しようとする課題】ところが、従来技術
では、複数のPPが1台のPCに接続される場合、編
集、変更したプログラムをあるPPからPCへ書き込ん
だ時、書き込みが行われたPPとPCの間ではプログラ
ムの内容は一致し、また現在値データも変更後のプログ
ラムに対応しているので現在値データとプログラムは正
しく対応する。しかし、他のPPでは、現在値データは
スキャンサイクル周期毎にPCからPPへ読み出されて
更新されるが、PP上のプログラムは更新されていない
ので、プログラムと現在値データが正しい対応をしない
という問題があった。そこで本発明は、プログラムの更
新を検出し、常に複数のPP内の現在値データとプログ
ラムとが一致する方法を提供する。
However, in the prior art, when a plurality of PPs are connected to one PC, writing is performed when the edited and changed program is written from a certain PP to the PC. The contents of the program match between PP and PC, and the current value data also corresponds to the changed program, so the current value data and the program correspond correctly. However, in other PPs, the current value data is read from the PC to the PP and updated at every scan cycle cycle, but the program on the PP is not updated, so the program and the current value data do not correspond correctly. There was a problem. Therefore, the present invention provides a method of detecting a program update and always matching the current value data in a plurality of PPs with the program.

【0004】[0004]

【課題を解決するための手段】上記問題を解決するた
め、本発明は、1台のプログラマブルコントローラと複
数のプログラミング装置とを伝送ラインで結合し、スキ
ャン周期毎に前記プログラマブルコントローラの現在値
データを前記各プログラミング装置に転送して、前記各
プログラミング装置に記憶された前記現在値データを更
新するようにしたプログラマブルコントローラシステム
におけるプログラミング装置のプログラム更新検出方法
において、前記プログラマブルコントローラには、前記
プログラミング装置から前記プログラマブルコントロー
ラにプログラムを書き込む度にカウントアップする第1
の更新カウンタを備え、前記各プログラミング装置には
前記プログラマブルコントローラの前記更新カウンタ部
の計数値を記憶する第2の更新カウンタを備え、前記ス
キャン毎に前記プログラマブルコントローラの前記現在
値データと一緒に前記第1の更新カウンタの計数値を前
記各プログラミング装置に転送して、前記各プログラミ
ング装置の前記第2の更新カウンタの計数値と不一致で
ある場合は、前記プログラマブルコントローラからプロ
グラムを読み出すと同時に、前記第2の更新カウンタの
計数値も更新するものである。
In order to solve the above problems, the present invention connects one programmable controller and a plurality of programming devices by a transmission line, and outputs the current value data of the programmable controller for each scan cycle. In a program update detection method of a programming device in a programmable controller system, which is transferred to each of the programming devices and updates the current value data stored in each of the programming devices, the programmable controller includes: First to count up each time a program is written in the programmable controller
A second update counter for storing the count value of the update counter unit of the programmable controller in each of the programming devices, and each of the programming devices includes the current value data of the programmable controller for each scan. The count value of the first update counter is transferred to each of the programming devices, and if the count value of the second update counter of each of the programming devices does not match, the program is read from the programmable controller and at the same time, The count value of the second update counter is also updated.

【0005】[0005]

【作用】上記手段により、特定のPPが変更したプログ
ラムをPCに書き込んだ場合でも、他のPPでは書き込
み直後のスキャンサイクルで、現在値データの他に最新
のプログラムと第2の更新カウンタの計数値が更新され
るので、PPに読み出されているプログラムはPPの画
面で表示される現在値データと正しく対応することにな
る。
According to the above means, even when a program changed by a specific PP is written to the PC, the other PPs have the latest program in addition to the current value data and the second update counter in the scan cycle immediately after writing. Since the numerical value is updated, the program read by the PP correctly corresponds to the current value data displayed on the PP screen.

【0006】[0006]

【実施例】以下、本発明の実施例を図に基づいて説明す
る。図1は1台のPCと複数のPPを伝送ラインで接続
したシステム構成例である。1はPC、2はCPU、3
はCPUによって実行処理されるプログラム(例えばラ
ダープログラム)、4は入出力インターフェイス、5は
プログラムの変更版数のデータを記憶する第1の更新カ
ウンタ、6〜8はプログラムを編集表示するためのP
P、9は伝送ライン、10〜12は前記第1の更新カウ
ンタから読み出された計数値を記憶する第2の更新カウ
ンタである。図2は、本発明の動作を説明する図であ
る。ここで、PP6〜8はPC1に接続されており、プ
ログラム3の更新カウンタ5の内容と、PP6〜8の更
新カウンタ10〜12が等しいものとする。更新カウン
タの内容が等しい時プログラム3の内容とPP10〜1
2に読み出されているプログラムの内容は同じものであ
る。ここで、PP6からプログラム3の内容が書き変え
られた時、プログラム3の更新カウンタ5の内容と、P
P6の更新カウンタ10の内容はn−1からnにカウン
トアップされる。他方、PP7、8のプログラムは更新
されないため、その版数を表す更新カウンタの内容はn
−1のままである。この時、PP7、8が現在値データ
の採取をおこなうと、PP7、8の更新カウンタ11、
12の内容(n−1)とPP7、8内のプログラム3の
更新カウンタ5の内容(n)が違うため、PP7、8内
のプログラムは読み出された最新の現在値データには対
応しないことが検出される。PP7、8は、通常はスキ
ャンサイクル周期毎には読み出さないプログラム(この
時点でn版となっている)を、この不一致が検出される
ときだけPP7、8へ読み出される。その結果、PP
7、8の現在値データは正しいプログラムと対応するよ
うになる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is an example of a system configuration in which one PC and a plurality of PPs are connected by a transmission line. 1 is a PC, 2 is a CPU, 3
Is a program to be executed by the CPU (eg a ladder program), 4 is an input / output interface, 5 is a first update counter for storing the data of the modified version of the program, and 6 to 8 are P for editing and displaying the program.
P and 9 are transmission lines, and 10 to 12 are second update counters for storing the count value read from the first update counter. FIG. 2 is a diagram for explaining the operation of the present invention. Here, PP6-8 are connected to PC1, and the contents of the update counter 5 of the program 3 and the update counters 10-12 of PP6-8 are equal. When the contents of the update counter are the same, the contents of program 3 and PP10-1
The contents of the program read in 2 are the same. Here, when the contents of the program 3 are rewritten from PP 6, the contents of the update counter 5 of the program 3 and P
The content of the update counter 10 of P6 is counted up from n-1 to n. On the other hand, since the PP7 and 8 programs are not updated, the content of the update counter indicating the version number is n.
It remains -1. At this time, when the PP 7 and 8 collect the current value data, the update counter 11 of the PP 7 and 8
Since the content (n-1) of 12 and the content (n) of the update counter 5 of the program 3 in PP7, 8 are different, the program in PP7, 8 does not correspond to the latest read current value data. Is detected. The PP 7 and 8 read a program that is not normally read in each scan cycle period (which is the n version at this point) to the PP 7 and 8 only when this mismatch is detected. As a result, PP
The current value data of 7 and 8 correspond to the correct program.

【0007】[0007]

【発明の効果】以上述べたように、本発明によれば、1
台のプログラマブルコントローラとそれに複数のプログ
マミング装置を接続したシステムにおいて、プログラマ
ブルコントローラには第1の更新カウンタデータを、ま
た各プログマミング装置には第2の更新カウンタデータ
をそれぞれ追加するだけで、複数PCプログラミング装
置に読み出されているプログラムと、スキャン周期毎に
更新されるプログラムの各種データ、すなわち接点のO
N・OFFデータ、カウンターの計数データ、PIDコ
ントローラの演算データ等の現在値(現在値データ)と
を正しく対応させることができる。
As described above, according to the present invention, 1
In a system in which one programmable controller and a plurality of programming devices are connected to the programmable controller, the first update counter data is added to the programmable controller, and the second update counter data is added to each programming device. Various data of the program read by the device and the program updated every scan cycle, that is, the contact O
The present value (present value data) such as N / OFF data, counter counting data, and PID controller calculation data can be correctly associated.

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

【図1】 PCと複数のプログラミング装置によるシス
テム構成例
FIG. 1 System configuration example using a PC and multiple programming devices

【図2】 本発明の動作説明図FIG. 2 is an operation explanatory diagram of the present invention.

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

1 プログラマブルコントローラ 2 プログラムを実行するCPU 3 プログラム 4 入出力インターフェイス 5 第1の更新カウンタ 6〜8 プログラミング装置 9 伝送システム 10〜12 第2の更新カウンタ 1 Programmable Controller 2 CPU Executing Program 3 Program 4 Input / Output Interface 5 First Update Counter 6-8 Programming Device 9 Transmission System 10-12 Second Update Counter

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】1台のプログラマブルコントローラと複数
のプログラミング装置とを伝送ラインで結合し、スキャ
ン周期毎に前記プログラマブルコントローラの現在値デ
ータを前記各プログラミング装置に転送して、前記各プ
ログラミング装置に記憶された前記現在値データを更新
するようにしたプログラマブルコントローラシステムに
おけるプログラミング装置のプログラム更新検出方法に
おいて、 前記プログラマブルコントローラには、前記プログラミ
ング装置から前記プログラマブルコントローラにプログ
ラムを書き込む度にカウントアップする第1の更新カウ
ンタを備え、前記各プログラミング装置には前記プログ
ラマブルコントローラの前記更新カウンタ部の計数値を
記憶する第2の更新カウンタを備え、 前記スキャン毎に前記プログラマブルコントローラの前
記現在値データと一緒に前記第1の更新カウンタの計数
値を前記各プログラミング装置に転送して、前記各プロ
グラミング装置の前記第2の更新カウンタの計数値と不
一致である場合は、前記プログラマブルコントローラか
らプログラムを読み出すと同時に、前記第2の更新カウ
ンタの計数値も更新することを特徴とするプログラミン
グ装置のプログラム更新検出方法。
1. A programmable controller and a plurality of programming devices are coupled by a transmission line, and current value data of the programmable controller is transferred to each of the programming devices for each scan cycle and stored in each of the programming devices. A program update detection method for a programming device in a programmable controller system adapted to update the present value data, wherein the programmable controller counts up every time a program is written from the programming device to the programmable controller. An update counter is provided, and each programming device is provided with a second update counter that stores a count value of the update counter unit of the programmable controller. When the count value of the first update counter is transferred to each of the programming devices together with the current value data of the programmable controller and the count value of the second update counter of each programming device does not match, A program update detection method for a programming device, wherein the count value of the second update counter is updated at the same time when the program is read from the programmable controller.
JP02761095A 1995-01-23 1995-01-23 Program update detection method for programming device Expired - Fee Related JP3404730B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02761095A JP3404730B2 (en) 1995-01-23 1995-01-23 Program update detection method for programming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02761095A JP3404730B2 (en) 1995-01-23 1995-01-23 Program update detection method for programming device

Publications (2)

Publication Number Publication Date
JPH08202415A true JPH08202415A (en) 1996-08-09
JP3404730B2 JP3404730B2 (en) 2003-05-12

Family

ID=12225707

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02761095A Expired - Fee Related JP3404730B2 (en) 1995-01-23 1995-01-23 Program update detection method for programming device

Country Status (1)

Country Link
JP (1) JP3404730B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011134038A (en) * 2009-12-24 2011-07-07 Honda Motor Co Ltd Apparatus and method for updating control program
WO2013018219A1 (en) * 2011-08-03 2013-02-07 三菱電機株式会社 Program creation device and programmable logic controller

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3742242B1 (en) * 2019-05-23 2023-10-04 CODESYS Holding GmbH Distributing source code in an industrial control environment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59116805A (en) * 1982-12-24 1984-07-05 Hitachi Ltd Sequence controller
JPH0619512A (en) * 1992-06-29 1994-01-28 Yaskawa Electric Corp Method for exclusive control among pc programming devices
JPH0651961A (en) * 1992-07-28 1994-02-25 Chubu Nippon Denki Software Kk Version managing system in program collection/delivery system
JPH06309117A (en) * 1993-04-22 1994-11-04 Hitachi Ltd Uninterruptible maintenance method for disk controller and disk controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59116805A (en) * 1982-12-24 1984-07-05 Hitachi Ltd Sequence controller
JPH0619512A (en) * 1992-06-29 1994-01-28 Yaskawa Electric Corp Method for exclusive control among pc programming devices
JPH0651961A (en) * 1992-07-28 1994-02-25 Chubu Nippon Denki Software Kk Version managing system in program collection/delivery system
JPH06309117A (en) * 1993-04-22 1994-11-04 Hitachi Ltd Uninterruptible maintenance method for disk controller and disk controller

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011134038A (en) * 2009-12-24 2011-07-07 Honda Motor Co Ltd Apparatus and method for updating control program
WO2013018219A1 (en) * 2011-08-03 2013-02-07 三菱電機株式会社 Program creation device and programmable logic controller
DE112011105475B4 (en) * 2011-08-03 2016-09-22 Mitsubishi Electric Corporation Programmable logic controller
US9557727B2 (en) 2011-08-03 2017-01-31 Mitsubishi Electric Corporation Program creation device and programmable logic controller

Also Published As

Publication number Publication date
JP3404730B2 (en) 2003-05-12

Similar Documents

Publication Publication Date Title
US4683549A (en) Sequence control method and apparatus
US5619734A (en) Programmable controller and method of operation thereof
JPH08202415A (en) Program update detecting method for programming device
JP3412667B2 (en) Scheduling method of fieldbus system
CN104106014B (en) Programable display, program
JP2731047B2 (en) Program operand check method
JP2003122410A (en) Method for causing controller to perform computation
JP2719676B2 (en) Parallel processing unit
JPH03290741A (en) Error logging method
GB2175112A (en) Sequence control method and apparatus
JPH01244502A (en) Pc program display system
JPH0435955Y2 (en)
JPH0385648A (en) Operation history information recording system for program
KR20030042240A (en) Method of processing alarm at the interactive program in a mmi system
JPH02162420A (en) Fetching process system for option program
JP2503032Y2 (en) Programmable controller programming device
JPH04336631A (en) Error message output system
US20020082722A1 (en) Addon mechanism for a control system based on an extension data field
JPS61255422A (en) Timer controlling circuit
JPH05100913A (en) Error factor searching system
JP2000305808A (en) Method and device for detecting event in system including microcomputer
JPH11110177A (en) Display processing system for monitoring control system
JPH03161883A (en) Microprocessor
JPH0210441A (en) Trace circuit
JPH0497444A (en) Maintenance diagnostic device for information processor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090307

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090307

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100307

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110307

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120307

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees