JP2011123630A - Comment information download device for programmable controller - Google Patents
Comment information download device for programmable controller Download PDFInfo
- Publication number
- JP2011123630A JP2011123630A JP2009280042A JP2009280042A JP2011123630A JP 2011123630 A JP2011123630 A JP 2011123630A JP 2009280042 A JP2009280042 A JP 2009280042A JP 2009280042 A JP2009280042 A JP 2009280042A JP 2011123630 A JP2011123630 A JP 2011123630A
- Authority
- JP
- Japan
- Prior art keywords
- comment information
- programmable controller
- download
- ladder
- 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
Links
Images
Abstract
Description
本発明は、プログラミング装置のエデットモードによるラダープログラムの大幅変更時、分割ダウンロードを行い、分割されたラダープログラム数分のコメント情報は1つに圧縮され、プログラマブルコントローラの記憶手段に格納されるが、コメント情報のダウンロードが不要の時はダウンロードしない様にし、時間の節約を行うことを目的とする、プログラマブルコントローラのコメント情報ダウンロード装置に関する。 In the present invention, when the ladder program is largely changed by the edit mode of the programming device, divided download is performed, and the comment information for the number of divided ladder programs is compressed into one and stored in the storage means of the programmable controller. The present invention relates to a comment information download apparatus for a programmable controller, which is intended to save time by not downloading comment information when it is unnecessary.
プログラマブルコントローラには、制御内容を記述するラダープログラムがある。ラダープログラムには、A接点、B接点、コイルなどがあり、制御内容によっていろいろな組み合わせがある。そのラダープログラムの内容を理解しやすくするために、ラダープログラムに付加するコメント情報がある。コメント情報は、ラダープログラムと同時に編集、表示され、ユーザにより作成される。ラダープログラムとコメント情報を含めてアプリケーションプログラムと称する。 The programmable controller includes a ladder program that describes control contents. Ladder programs include A contact, B contact, and coil, and there are various combinations depending on the control contents. In order to make the contents of the ladder program easy to understand, there is comment information added to the ladder program. The comment information is edited and displayed at the same time as the ladder program, and is created by the user. The ladder program and the comment information are referred to as an application program.
アプリケーションプログラムは、プログラミング装置によって、ユーザによる作成後、通信手段によってプログラマブルコントローラにダウンロードされる。そしてアプリケーションプログラムは、プログラマブルコントローラのラダープログラム記憶手段とコメント情報記憶手段に格納される。 The application program is created by the user by the programming device and then downloaded to the programmable controller by the communication means. The application program is stored in the ladder program storage means and comment information storage means of the programmable controller.
プログラマブルコントローラの通信手段より、アプリケーションプログラムのアップロードを行うと、ラダープログラムとコメント情報は、表示され、ユーザによる編集が可能となる。その時アプリケーションプログラムは、ダウンロード時に使用したプログラミング装置以外でも編集が可能である。それはアプリケーションプログラムのすべての情報が、プログラマブルコントローラの記憶手段に格納されているためである。 When the application program is uploaded from the communication means of the programmable controller, the ladder program and comment information are displayed and can be edited by the user. At that time, the application program can be edited by other than the programming device used at the time of downloading. This is because all information of the application program is stored in the storage means of the programmable controller.
アプリケーションプログラムは、ダウンロード時に使用したプログラミング装置以外でも編集が可能であるため、情報量は比較的多い。さらに近年、プログラマブルコントローラの制御内容は、複雑かつ増加する傾向にあり、通信手段によってダウンロードされるアプリケーションプログラムのサイズは大きくなる。よって、ラダープログラムを変更する際、すべてのラダープログラムを通信手段によってダウンロードする時は時間がかかる。 Since the application program can be edited by other than the programming device used at the time of downloading, the amount of information is relatively large. Further, in recent years, the control contents of the programmable controller tend to be complicated and increase, and the size of the application program downloaded by the communication means increases. Therefore, when changing the ladder program, it takes time to download all the ladder programs by the communication means.
そこで、プログラマブルコントローラのラダープログラムの記憶手段は、分割して管理できる様にしている。そして、ラダープログラムはユーザにより任意の単位毎に分割して、分割ダウンロードされる。しかし、コメント情報については、プログラマブルコントローラの記憶手段を節約するため、1つの領域にしている。分割されたラダープログラム数分のコメント情報は1つに圧縮され、プログラマブルコントローラの記憶手段に格納される。 Thus, the ladder program storage means of the programmable controller can be divided and managed. The ladder program is divided and downloaded by the user for each arbitrary unit. However, the comment information is made into one area in order to save the storage means of the programmable controller. The comment information for the number of divided ladder programs is compressed into one and stored in the storage means of the programmable controller.
アプリケーションプログラムの検証作業時、そこで、何らかしらの修正作業が行われる。ラダープログラムが修正されたら、再度、プログラマブルコントローラにダウンロードされる必要がある。 When the application program is verified, some correction work is performed there. Once the ladder program is modified, it needs to be downloaded to the programmable controller again.
プログラマブルコントローラのラダープログラム検証時は、接点情報などの追加や変更を頻繁に行う。その都度、変更されたラダープログラムの分割ダウンロードを行い、すべてのラダープログラムのダウンロードをせずに、プログラマブルコントローラの制御内容を修正できる。これはプログラミング装置のデバッグモードといい、この時、ラダープログラムの行単位の追加や、ラダープログラムのコメント情報は変更できない。 When verifying a ladder program of a programmable controller, contact information is frequently added or changed. Each time, the changed ladder program is divided and downloaded, and the control contents of the programmable controller can be corrected without downloading all the ladder programs. This is called a debugging mode of the programming device. At this time, addition of a line unit of the ladder program and comment information of the ladder program cannot be changed.
上記に対し、ラダープログラムの行単位の追加や、コメント情報なども変更するときは、プログラミング装置のエデットモードという。プログラマブルコントローラの制御内容が複雑になってくると、ラダープログラム検証時でも、エデットモードを使う変更の要求があり、分割ダウンロードが必要となっている。 On the other hand, when adding a ladder program line unit or changing comment information, it is called an editing mode of the programming device. When the control contents of the programmable controller become complicated, there is a request for a change to use the edit mode even when the ladder program is verified, and divisional download is necessary.
本発明は、プログラミング装置をエデットモードにし、ラダープログラムを大幅変更する際に、該当のラダープログラムを分割ダウンロードし、分割されたラダープログラム数分のコメント情報は1つに圧縮して、プログラマブルコントローラの記憶手段に格納されるが、ラダープログラムのように分割してダウンロードできないため、コメント情報のダウンロードに時間を要していた。 In the present invention, when the programming device is set to the edit mode and the ladder program is largely changed, the corresponding ladder program is divided and downloaded, the comment information corresponding to the number of divided ladder programs is compressed into one, and the programmable controller Although stored in the storage means, it cannot be divided and downloaded like a ladder program, so it takes time to download comment information.
請求項1の発明によれば、プログラミング装置をエデットモードにし、ラダープログラムを大幅変更する際に、当該ラダープログラムを分割ダウンロードし、分割されたラダープログラム数分のコメント情報は1つに圧縮して、プログラマブルコントローラの記憶手段に格納するコメント情報ダウンロード装置であって、コメント情報のダウンロードが不要の時はダウンロードしない構成であることを特徴とするプログラマブルコントローラのコメント情報ダウンロード装置。 According to the first aspect of the present invention, when the programming device is set to the edit mode and the ladder program is largely changed, the ladder program is divided and downloaded, and the comment information corresponding to the number of divided ladder programs is compressed into one. An apparatus for downloading comment information stored in a storage unit of a programmable controller, wherein the comment information is downloaded when comment information is not required to be downloaded.
アプリケーションプログラムには、実際の制御の内容が記述されたラダープログラムと、そのラダープログラムの内容を理解しやすくするためのコメント情報がある。それらは、プログラマブルコントローラのユーザによって作成され、プログラミング装置により、プログラマブルコントローラにダウンロードされる。 The application program includes a ladder program in which the actual control content is described, and comment information for facilitating understanding of the content of the ladder program. They are created by the user of the programmable controller and downloaded to the programmable controller by the programming device.
プログラミング装置は、プログラマブルコントローラにアプリケーションプログラムをダウンロードする際、分割されたラダープログラム数分のコメント情報を、圧縮し1つのブロックにする。それはプログラマブルコントローラのコメント情報の記憶手段は、1つの領域としているためである。そして、プログラミング装置は、そのすべてのコメント情報に対するチェックコードを生成する。そのチェックコードはコメント情報を数値化し、その数値の加算値を1つのデータとしたものである。チェックコードは、コメント情報が1文字違っただけでも違うコードとなる。その数値化されたチェックコードは、4バイトのサイズを持ち、コメント情報が違う時の、チェックコードが同じ値になってしまう確率は、十分低い確率である。 When downloading the application program to the programmable controller, the programming device compresses the comment information for the number of divided ladder programs into one block. This is because the comment information storage means of the programmable controller is one area. Then, the programming device generates check codes for all the comment information. The check code digitizes the comment information, and the added value of the numerical values is used as one data. The check code is different even if the comment information is different by one character. The digitized check code has a size of 4 bytes, and the probability that the check code becomes the same value when the comment information is different is sufficiently low.
上記チェックコードは、圧縮され1つにブロックにされたコメント情報の一部に含ませる。そして、プログラミング装置により、ラダープログラムと同時に、プログラマブルコントローラにダウンロードされる。 The check code is included in a part of the comment information that is compressed into one block. Then, the program is downloaded to the programmable controller simultaneously with the ladder program.
プログラミング装置は、デバッグモードによるラダープログラム変更では、コメント情報の変更を許していないので、変更されたラダープログラムの分割ダウンロードを行い、プログラマブルコントローラの記憶手段に格納されているコメント情報は更新しない。 Since the programming device does not allow the comment information to be changed when the ladder program is changed in the debug mode, the changed ladder program is downloaded separately, and the comment information stored in the storage unit of the programmable controller is not updated.
プログラミング装置の、エデットモードによって変更されたラダープログラムのダウンロードは、2種類ある。1つは全ダウンロードで、分割されたラダープログラムのすべてと、分割されたラダープログラム数分のコメント情報を、圧縮し1つのブロックにする。そして、プログラミング装置は、そのすべてのコメント情報に対するチェックコードを生成する。上記チェックコードは、圧縮され1つのブロックにされたコメント情報の一部に含ませる。そして、プログラミング装置により、ラダープログラムと同時に、プログラマブルコントローラにダウンロードされる。 There are two types of downloading of the ladder program changed by the editing mode of the programming device. One is full download, compressing all the divided ladder programs and the comment information for the number of divided ladder programs into one block. Then, the programming device generates check codes for all the comment information. The check code is included in a part of the comment information compressed into one block. Then, the program is downloaded to the programmable controller simultaneously with the ladder program.
もう1つは分割ダウンロードで、ユーザによりダウンロードを指定されたラダープログラムのみダウンロードする。コメント情報に関しては、変更される前の圧縮されたコメント情報ブロックに対して、指定されたラダープログラムのコメント情報をコメント情報ブロックに追加する。そのコメント情報ブロックに対してのチェックコードを生成する。プログラマブルコントローラの記憶手段に格納されているコメント情報のチェックコードを読み出し、チェックコードが同じならば、コメント情報ブロックはダウンロードせず、チェックコードが違った場合のみ、コメント情報ブロックのダウンロードを行う。 The other is divided download, in which only ladder programs designated for download by the user are downloaded. Regarding the comment information, the comment information of the designated ladder program is added to the comment information block with respect to the compressed comment information block before being changed. A check code for the comment information block is generated. The comment information check code stored in the storage means of the programmable controller is read. If the check code is the same, the comment information block is not downloaded, and the comment information block is downloaded only when the check code is different.
本発明によれば、プログラミング装置のエデットモードによるラダープログラムの大幅変更時、分割ダウンロードを行い、分割されたラダープログラム数分のコメント情報は、1つに圧縮され、プログラマブルコントローラの記憶手段に格納されている。プログラマブルコントローラの記憶手段に格納されているコメント情報に対するチェックコードと、プログラミング装置がダウンロードを行う際生成したコメント情報に対するチェックコードと比較することにより、プログラミング装置はチェックコードが同じならばコメント情報を改変されていないと判断する。その時、コメント情報のダウンロードを行わない事により、時間の節約を行うことができる。 According to the present invention, when the ladder program is largely changed by the edit mode of the programming device, the divided download is performed, and the comment information for the number of divided ladder programs is compressed into one and stored in the storage means of the programmable controller. ing. By comparing the check code for the comment information stored in the storage means of the programmable controller with the check code for the comment information generated when the programming device downloads, the programming device modifies the comment information if the check code is the same Judge that it is not. At that time, it is possible to save time by not downloading comment information.
以下に図面を参照して、本発明の好適な実施の形態を詳細に説明する。 DESCRIPTION OF EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings.
図1はアプリケーションプログラムの例であり、A接点1、B接点2、コイル3、ラダープログラム1行例6はラダープログラム、コメント情報(1)4、コメント情報(2)5、コメント情報(3)7、コメント情報(4)8はコメント情報で、図1の如く、両者は混在して表現される。 FIG. 1 shows an example of an application program. A contact 1, B contact 2, coil 3, ladder program 1 line example 6 is a ladder program, comment information (1) 4, comment information (2) 5, comment information (3). 7 and comment information (4) 8 are comment information, both of which are expressed together as shown in FIG.
図2は、プログラミング装置10とプログラミングコントローラ12であり、通信手段11により接続され、ラダープログラム格納手段13は分割されており、コメント情報14は1つのエリアである。通信手段11は、プログラミング装置10からプログラミングコントローラ12に転送される場合はダウンロード16、プログラミングコントローラ12からプログラミング装置10に転送される場合はアップロード15となる。
FIG. 2 shows the
図3はプログラミング装置21内のコメント情報22と、プログラミングコントローラ23内のコメント情報24であり、プログラミングコントローラ23内のコメント情報24にはチェックコード25が存在する。プログラミング装置21内のコメント情報22から、プログラミングコントローラ23内のコメント情報24にダウンロード28されるときは、チェックコード25が付加される。分割ダウンロード時は、通信手段26により、プログラミング装置21は、アップロード28を行い、チェックコード25を読み出す。その時、プログラミング装置21内のコメント情報22よりチェックコードを生成し、チェックコード25と比較し、プログラミング装置21内のコメント情報22のダウンロード27の要不要を判断する。
FIG. 3 shows
以上説明したように本発明によれば、エデットモードによるラダープログラムの大幅変更時、分割ダウンロードを行い、分割されたラダープログラム数分のコメント情報は、1つに圧縮され、プログラマブルコントローラの記憶手段に格納されている。プログラマブルコントローラの記憶手段に格納されているコメント情報に対するチェックコードと、プログラミング装置がダウンロードを行う際生成したコメント情報に対するチェックコードと比較することにより、プログラミング装置はチェックコードが同じならばコメント情報を改変されていないと判断する。その時、コメント情報のダウンロードを行わない事により、時間の節約を行うことができる、プログラミング装置を提供できる。 As described above, according to the present invention, when the ladder program is significantly changed by the edit mode, the divided download is performed, and the comment information corresponding to the number of divided ladder programs is compressed into one and stored in the storage unit of the programmable controller. Stored. By comparing the check code for the comment information stored in the storage means of the programmable controller with the check code for the comment information generated when the programming device downloads, the programming device modifies the comment information if the check code is the same Judge that it is not. At this time, it is possible to provide a programming device that can save time by not downloading comment information.
1 A接点
2 B接点
3 コイル
4 コメント情報(1)
5 コメント情報(2)
6 ラダープログラム1行例
7 コメント情報(3)
8 コメント情報(4)
10 プログラミング装置
11 通信手段
12 プログラミングコントローラ
13 ラダープログラム格納手段
14 コメント情報
15 アップロード
16 ダウンロード
21 プログラミング装置
22 プログラミング装置21内のコメント情報
23 プログラミングコントローラ
24 プログラミングコントローラ23内のコメント情報
25 チェックコード
26 通信手段
27 ダウンロード
28 アップロード
1 A contact 2 B contact 3 Coil 4 Comment information (1)
5. Comment information (2)
6 Line example of
8 Comment information (4)
DESCRIPTION OF
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009280042A JP5574688B2 (en) | 2009-12-10 | 2009-12-10 | Comment information download device for programmable controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009280042A JP5574688B2 (en) | 2009-12-10 | 2009-12-10 | Comment information download device for programmable controller |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011123630A true JP2011123630A (en) | 2011-06-23 |
JP5574688B2 JP5574688B2 (en) | 2014-08-20 |
Family
ID=44287471
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009280042A Expired - Fee Related JP5574688B2 (en) | 2009-12-10 | 2009-12-10 | Comment information download device for programmable controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5574688B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115657585A (en) * | 2022-10-24 | 2023-01-31 | 歌尔股份有限公司 | Control program editing method, device, equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07210217A (en) * | 1994-01-11 | 1995-08-11 | Mitsubishi Electric Corp | Programmable controller and program capacity changing method for same |
-
2009
- 2009-12-10 JP JP2009280042A patent/JP5574688B2/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07210217A (en) * | 1994-01-11 | 1995-08-11 | Mitsubishi Electric Corp | Programmable controller and program capacity changing method for same |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115657585A (en) * | 2022-10-24 | 2023-01-31 | 歌尔股份有限公司 | Control program editing method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
JP5574688B2 (en) | 2014-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105893094B (en) | The implementation method and device of application plug | |
JP6508192B2 (en) | Control device and control system | |
JP2014195708A5 (en) | ||
CN103823698A (en) | Method and device for programming and starting FPGA target program and DSP target program | |
CN105468395B (en) | Update method, apparatus and system | |
US20120265838A1 (en) | Programmable logic controller | |
US9192795B2 (en) | System and method of calibration in a powered air purifying respirator | |
JP6443190B2 (en) | Programmable logic controller, control method of programmable logic controller, and control program | |
JP2009050323A5 (en) | ||
CN105224419A (en) | User data mirror image loading method, device and terminal in a kind of Android system | |
CN107784230B (en) | The restorative procedure and device of page loophole | |
JP5574688B2 (en) | Comment information download device for programmable controller | |
JP6813381B2 (en) | Programmable logic controller | |
CN106911738A (en) | A kind of method and server for generating application installation kit | |
JP2008059421A (en) | Sequence program editing support device | |
JP2004206716A (en) | Deciding method of code downloaded for run time constitution | |
CN104570903A (en) | PLD editor and method for editing PLD code | |
CN105607569B (en) | A kind of method and device that IL language is converted to ladder diagram | |
CN106155709B (en) | Plug-in loading method, device and equipment | |
JP2006268485A (en) | Programmable controller, program preparation support device for programmable controller and program preparation support method | |
JP2010020494A (en) | Protection controller | |
JP2010020416A (en) | Data transfer method and data transfer unit | |
JP5734139B2 (en) | Peripheral device, peripheral device control method, and firmware download system | |
JP2007188366A (en) | Compiler | |
CN110780881A (en) | Software package manufacturing method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20121107 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20131018 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20131105 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20131225 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140121 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140311 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20140701 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140701 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5574688 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |