JP2012053676A - Program conversion processing apparatus, method and program, and recording medium - Google Patents
Program conversion processing apparatus, method and program, and recording medium Download PDFInfo
- Publication number
- JP2012053676A JP2012053676A JP2010195902A JP2010195902A JP2012053676A JP 2012053676 A JP2012053676 A JP 2012053676A JP 2010195902 A JP2010195902 A JP 2010195902A JP 2010195902 A JP2010195902 A JP 2010195902A JP 2012053676 A JP2012053676 A JP 2012053676A
- Authority
- JP
- Japan
- Prior art keywords
- program
- language
- ladder
- command
- recording medium
- 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
Links
Images
Landscapes
- Devices For Executing Special Programs (AREA)
- Stored Programmes (AREA)
- Programmable Controllers (AREA)
Abstract
Description
本発明は、ラダープログラムをC言語プログラムに変換するプログラム変換処理装置、方法及びプログラム、並びにそのプログラムを記録した記録媒体に関する。 The present invention relates to a program conversion processing apparatus, method and program for converting a ladder program into a C language program, and a recording medium on which the program is recorded.
ラダープログラムは、プロセス制御やファクトリーオートメーションのシーケンス制御などにおいて、PLC(プログラマブル・ロジック・コントローラ)などの動作コマンドを記述するのに使用されている。このラダープログラムは、リレーを使用した回路と実質的に等価であり、技術者にとって理解、利用しやすい点で優れている。しかし、一般的なCPU基板(ボードコンピュータ)を制御するプラグラムとして直接的に利用することはできず、利用範囲は限定されている。 The ladder program is used to describe operation commands such as a PLC (programmable logic controller) in process control and sequence control of factory automation. This ladder program is substantially equivalent to a circuit using a relay, and is excellent in that it can be easily understood and used by engineers. However, it cannot be directly used as a program for controlling a general CPU board (board computer), and the range of use is limited.
一方、C言語を用いたC言語プログラムは、パーソナルコンピュータは勿論のこと、組み込み用マイコンや大型コンピュータまで広範囲で利用され、プログラマ人口も多い。このため、ラダープログラムをC言語プログラムに変換できれば、ラダープログラムが対応していない各種CPU基板上で動作するプログラムを簡単に作製できることになるが、現状ではラダープログラムをC言語プログラムに変換するコンバータは提案されていない。 On the other hand, C language programs using C language are widely used not only for personal computers but also for embedded microcomputers and large computers, and have a large programmer population. For this reason, if the ladder program can be converted into a C language program, it is possible to easily create a program that operates on various CPU boards not supported by the ladder program. However, at present, a converter that converts a ladder program into a C language program is available. Not proposed.
本発明は、上記の点に鑑み、ラダープログラムをC言語プログラムに変換可能で、C言語プログラムの知識が無くともCPU基板上で動作するプログラムを簡単に作製可能で、また既存のプログラム資産の有効活用が可能なプログラム変換処理装置、方法及びプログラム、並びにそのプログラムを記録した記録媒体を提供することを目的とする。 In view of the above points, the present invention can convert a ladder program into a C language program, can easily create a program that operates on a CPU board without knowledge of the C language program, and can effectively use existing program resources. It is an object of the present invention to provide a program conversion processing apparatus, method and program that can be utilized, and a recording medium on which the program is recorded.
上記目的を達成するために、本発明の第1の態様は、プログラム変換処理装置であり、ラダーコマンドに対応するC言語コマンドを記録したプログラム変換テーブルを格納した記憶手段と、
入力されたラダープログラムのコマンドを前記プログラム変換テーブルを用いてC言語コマンドに変換して、前記ラダープログラムからC言語プログラムを作成する情報処理手段とを備えることを特徴とする。
To achieve the above object, according to a first aspect of the present invention, there is provided a program conversion processing device, a storage unit storing a program conversion table in which C language commands corresponding to ladder commands are stored;
And an information processing means for converting an input ladder program command into a C language command using the program conversion table and creating a C language program from the ladder program.
本発明の第2の態様は、プログラム変換処理方法であり、ラダーコマンドに対応するC言語コマンドを記録したプログラム変換テーブルを用い、
入力されたラダープログラムのコマンドを、情報処理部によって前記プログラム変換テーブルを用いてC言語コマンドに変換して、前記ラダープログラムからC言語プログラムを作成することを特徴とする。
A second aspect of the present invention is a program conversion processing method using a program conversion table in which C language commands corresponding to ladder commands are recorded.
An input ladder program command is converted into a C language command by the information processing unit using the program conversion table, and a C language program is created from the ladder program.
本発明の第3の態様は、プログラムであり、前記第1の態様のプログラム変換処理装置の各手段としてコンピュータを動作させるものであることを特徴としている。 A third aspect of the present invention is a program, and is characterized in that a computer is operated as each means of the program conversion processing device of the first aspect.
本発明の第4の態様は、記録媒体であり、前記第3の態様のプログラムを記録したコンピュータ読み取り可能ものであることを特徴としている。 According to a fourth aspect of the present invention, there is provided a recording medium that is readable by a computer recording the program according to the third aspect.
なお、以上の構成要素の任意の組合せもまた、本発明の態様として有効である。 It should be noted that any combination of the above components is also effective as an aspect of the present invention.
本発明によれば、ラダープログラムをC言語プログラムに変換可能で、C言語プログラムの知識が無くともCPU基板上で動作するプログラムを簡単に作製可能である。また、既存のプログラム資産の有効活用が可能である。 According to the present invention, a ladder program can be converted into a C language program, and a program that operates on a CPU board can be easily created without knowledge of the C language program. In addition, existing program assets can be used effectively.
以下、図面を参照しながら本発明の好適な実施の形態を詳述する。なお、各図面に示される同一または同等の構成要素、部材、処理等には同一の符号を付し、適宜重複した説明は省略する。また、実施の形態は発明を限定するものではなく例示であり、実施の形態に記述されるすべての特徴やその組み合わせは必ずしも発明の本質的なものであるとは限らない。 Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. In addition, the same code | symbol is attached | subjected to the same or equivalent component, member, process, etc. which are shown by each drawing, and the overlapping description is abbreviate | omitted suitably. In addition, the embodiments do not limit the invention but are exemplifications, and all features and combinations thereof described in the embodiments are not necessarily essential to the invention.
図1において、プログラム変換処理装置は、情報処理手段(CPU)10、記憶手段20及び入出力インターフェース(I/O)30を有するもので、DOS/Vパーソナルコンピュータをハードウエアとして利用できる構成である。 In FIG. 1, the program conversion processing apparatus includes an information processing means (CPU) 10, a storage means 20, and an input / output interface (I / O) 30, and is configured so that a DOS / V personal computer can be used as hardware. .
情報処理手段10及び記憶手段20をプログラム変換処理装置として動作させるためのラダープログラム−C言語プログラム変換ソフトウエアを格納したCD−ROM等の記録媒体40を用意し、この記録媒体40に格納されたラダープログラム−C言語プログラム変換ソフトウエアを入出力インターフェース30を介して情報処理手段10で読み込み処理を行い、ラダーコマンドに対応するC言語コマンドを記録したプログラム変換テーブル50を記憶手段20内に格納する。また、これとと共に情報処理手段10の動作を規定するプログラム部分も記憶手段20内に格納する。プログラム変換テーブル50には、例えば、以下のラダーコマンドに対応するC言語コマンドが用意されている。
A recording medium 40 such as a CD-ROM storing ladder program-C language program conversion software for operating the information processing means 10 and the storage means 20 as a program conversion processing device is prepared, and stored in this recording medium 40 The ladder program-C language program conversion software is read by the information processing means 10 via the input /
ラダーコマンドの例:タイマ、カウンタ、データ比較、データ転送、シフト、インクリメント、デクリメント、四則演算、データ変換、論理演算、サブルーチン、特殊命令等のワード、ダブルワード等 Examples of ladder commands: Timer, counter, data comparison, data transfer, shift, increment, decrement, four arithmetic operations, data conversion, logical operation, subroutine, special instruction word, double word, etc.
次に、変換対象のラダープログラムが記録されたCD−R、USBフラッシュメモリー、FD、ハードディスク等の記録媒体60を用意し、この記録媒体60に格納されたラダープログラムを入出力インターフェース30を介して情報処理手段10で読み込み、プログラム変換テーブル50を用いて、入力されたラダープログラムのコマンドをC言語コマンドに変換して、ラダープログラム{図2(A)}からC言語プログラム{図2(B)}を作成する。変換は個々のラダーコマンド毎又はコマンド群毎に行って変換結果を記憶手段20内の変換データ記憶領域70に順次格納する。入力されたラダープログラムの全ての変換が終わった時点で変換データ記憶領域70にC言語プログラムが得られる。
Next, a recording medium 60 such as a CD-R, USB flash memory, FD, hard disk or the like on which a ladder program to be converted is recorded is prepared, and the ladder program stored in the recording medium 60 is input via the input /
この変換後のC言語プログラムは所定の記録媒体に出力して記録保持することが可能であり、記録媒体に出力されたC言語プログラムを用いてCPU基板(ボードコンピュータ)のROM等に書き込むことで、元のラダープログラムと同等の動作をCPU基板に行わせることが可能になる。 The converted C language program can be output and recorded on a predetermined recording medium, and written into a ROM or the like of a CPU board (board computer) using the C language program output to the recording medium. It becomes possible to cause the CPU board to perform the same operation as the original ladder program.
本実施の形態によれば、下記の効果を奏することができる。 According to the present embodiment, the following effects can be achieved.
(1) ラダープログラムをC言語プログラムに変換可能で、C言語プログラムの知識が無くともCPU基板上で動作するプログラムを簡単に作製可能である。 (1) A ladder program can be converted into a C language program, and a program that operates on a CPU board can be easily created without knowledge of the C language program.
(2) 既存のラダープログラムとして記述されたプログラム資産の有効活用が可能であり、プログラムのブラックボックス化も可能である(CPU基板に書込後はプログラムの具体的な記述を読み取ることは困難である)。 (2) Program resources described as existing ladder programs can be used effectively, and the program can be made into a black box (it is difficult to read the specific description of the program after it is written on the CPU board). is there).
(3) ハードウエアとしてパーソナルコンピュータを用いることができ、パーソナルコンピュータをプログラム変換処理装置として機能させるアプリケーションプログラム(更にはアプリケーションプログラムを記録した記録媒体)として提供可能である。勿論、ラダーコマンドに対応するC言語コマンドを記録したプログラム変換テーブルを予め内蔵した専用ハードウエアとして構成することも可能である。 (3) A personal computer can be used as hardware, and it can be provided as an application program (and a recording medium on which the application program is recorded) that causes the personal computer to function as a program conversion processing device. Of course, it is also possible to configure as dedicated hardware with a built-in program conversion table in which C language commands corresponding to ladder commands are recorded.
以上、実施の形態を例に本発明を説明したが、実施の形態の各構成要素や各処理プロセスには請求項に記載の範囲で種々の変形が可能であることは当業者に理解されるところである。 The present invention has been described above by taking the embodiment as an example. However, it is understood by those skilled in the art that various modifications can be made to each component and each processing process of the embodiment within the scope of the claims. By the way.
10 情報処理手段
20 記憶手段
30 入出力インターフェース
40,60 記録媒体
50 プログラム変換テーブル
70 変換データ記憶領域
DESCRIPTION OF
Claims (4)
入力されたラダープログラムのコマンドを前記プログラム変換テーブルを用いてC言語コマンドに変換して、前記ラダープログラムからC言語プログラムを作成する情報処理手段とを備えることを特徴とするプログラム変換処理装置。 Storage means for storing a program conversion table in which C language commands corresponding to ladder commands are recorded;
A program conversion processing apparatus comprising: information processing means for converting an input ladder program command into a C language command using the program conversion table and creating a C language program from the ladder program.
入力されたラダープログラムのコマンドを、情報処理部によって前記プログラム変換テーブルを用いてC言語コマンドに変換して、前記ラダープログラムからC言語プログラムを作成することを特徴とするプログラム変換処理方法。 Using a program conversion table that records C language commands corresponding to ladder commands,
A program conversion processing method, wherein an input ladder program command is converted into a C language command by the information processing unit using the program conversion table, and a C language program is created from the ladder program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010195902A JP2012053676A (en) | 2010-09-01 | 2010-09-01 | Program conversion processing apparatus, method and program, and recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010195902A JP2012053676A (en) | 2010-09-01 | 2010-09-01 | Program conversion processing apparatus, method and program, and recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2012053676A true JP2012053676A (en) | 2012-03-15 |
Family
ID=45906918
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010195902A Pending JP2012053676A (en) | 2010-09-01 | 2010-09-01 | Program conversion processing apparatus, method and program, and recording medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2012053676A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6188339A (en) * | 1984-10-08 | 1986-05-06 | Fuji Electric Co Ltd | Instruction converter of programmable controller |
JPH03164834A (en) * | 1989-11-22 | 1991-07-16 | Hitachi Ltd | System for mutual conversion between programming languages |
JPH04286029A (en) * | 1991-03-15 | 1992-10-12 | Hitachi Ltd | Source program converter |
JPH05274011A (en) * | 1992-01-23 | 1993-10-22 | Mitsubishi Electric Corp | Programmable controller and its control method |
JPH07295612A (en) * | 1994-04-21 | 1995-11-10 | Japan Steel Works Ltd:The | High-level language sequence instruction program generation part and general sequencer |
JP2002099312A (en) * | 2000-09-22 | 2002-04-05 | Mitsubishi Electric Corp | Programmable controller and control program development supporting device |
JP2002099498A (en) * | 2000-09-25 | 2002-04-05 | Mitsubishi Electric Corp | Program performance device and program development support device |
JP2009086898A (en) * | 2007-09-28 | 2009-04-23 | Delta Electronics Inc | Method for compiling machine code program for programmable logic controller |
JP2010134593A (en) * | 2008-12-03 | 2010-06-17 | Koyo Electronics Ind Co Ltd | Programmable controller |
-
2010
- 2010-09-01 JP JP2010195902A patent/JP2012053676A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6188339A (en) * | 1984-10-08 | 1986-05-06 | Fuji Electric Co Ltd | Instruction converter of programmable controller |
JPH03164834A (en) * | 1989-11-22 | 1991-07-16 | Hitachi Ltd | System for mutual conversion between programming languages |
JPH04286029A (en) * | 1991-03-15 | 1992-10-12 | Hitachi Ltd | Source program converter |
JPH05274011A (en) * | 1992-01-23 | 1993-10-22 | Mitsubishi Electric Corp | Programmable controller and its control method |
JPH07295612A (en) * | 1994-04-21 | 1995-11-10 | Japan Steel Works Ltd:The | High-level language sequence instruction program generation part and general sequencer |
JP2002099312A (en) * | 2000-09-22 | 2002-04-05 | Mitsubishi Electric Corp | Programmable controller and control program development supporting device |
JP2002099498A (en) * | 2000-09-25 | 2002-04-05 | Mitsubishi Electric Corp | Program performance device and program development support device |
JP2009086898A (en) * | 2007-09-28 | 2009-04-23 | Delta Electronics Inc | Method for compiling machine code program for programmable logic controller |
JP2010134593A (en) * | 2008-12-03 | 2010-06-17 | Koyo Electronics Ind Co Ltd | Programmable controller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9898388B2 (en) | Non-intrusive software verification | |
JP3938580B2 (en) | Information processing apparatus, information processing method, semiconductor device, and computer program | |
US11188498B2 (en) | Method and system for processing engineering objects in an industrial automation environment | |
JP5119902B2 (en) | Dynamic reconfiguration support program, dynamic reconfiguration support method, dynamic reconfiguration circuit, dynamic reconfiguration support device, and dynamic reconfiguration system | |
JP2009176186A (en) | Program test device and program | |
JP5233355B2 (en) | Property generation system and property verification system | |
WO2021140176A1 (en) | Method and system for managing engineering workflow in a cloud computing environment | |
JP2012053676A (en) | Program conversion processing apparatus, method and program, and recording medium | |
JP4528284B2 (en) | Programmable controller | |
JP5086296B2 (en) | Programmable controller control program creation method and programmable controller control program creation system | |
JP5353063B2 (en) | Coping knowledge generation program, coping knowledge generation device, and coping knowledge generation method | |
TW201715384A (en) | Setting a build indicator to enable or disable a feature | |
JP2010134593A (en) | Programmable controller | |
CN113031854B (en) | One-time programmable memory device and fault tolerance method thereof | |
US20160274992A1 (en) | Method and multi-core processing system for tracing program execution state | |
JP2011180632A (en) | Device, method and program for verification | |
JP2016042326A (en) | Information processing device, simulation method, and control program | |
JP5354463B2 (en) | Programmable controller | |
WO2015163219A1 (en) | Control apparatus | |
JP5726106B2 (en) | Embedded system controller | |
JP2011165051A (en) | Development support device, method and program | |
EP4328681A1 (en) | Method and system for managing technical installation during occurrence of error state in a controller | |
JP2009230667A (en) | Property generation system and property verification system | |
RU2010102731A (en) | ELECTRONIC BOARD COMPLETED WITH THE POSSIBILITY OF EXECUTING A TEAM ORIGINING FROM THE MODELING SYSTEM, AND A TEAM ORIGINING FROM THE DIAGNOSTIC MODULE, AND THE RELATED MODEL METHOD | |
JP2010026968A (en) | Circuit generation support program and circuit generation support method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130717 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140120 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140219 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20140618 |