JPH03105504A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH03105504A
JPH03105504A JP24406189A JP24406189A JPH03105504A JP H03105504 A JPH03105504 A JP H03105504A JP 24406189 A JP24406189 A JP 24406189A JP 24406189 A JP24406189 A JP 24406189A JP H03105504 A JPH03105504 A JP H03105504A
Authority
JP
Japan
Prior art keywords
contact
specified
data
designating part
designated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP24406189A
Other languages
Japanese (ja)
Inventor
Chika Matsuo
松尾 知香
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP24406189A priority Critical patent/JPH03105504A/en
Publication of JPH03105504A publication Critical patent/JPH03105504A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To program a pair of reciprocal actions with a single instruction by carrying out alternatively the primary and secondary actions. CONSTITUTION:A dual instruction storage means contains a contact designating part, a data designating part, a two-dimensional process contents designating part, and an output goal designating part and stores the instructions. The dual instruction executing means decides whether the designated contacts are kept ON or OFF and output the designated data to the designated output goals based on the result of said decision and the primary process contents designated by the dual process contents designating part or carry out the secondary processes designated by the dual process contents designating part. Then the primary of secondary process contents are corresponding to the ON state of the contact with the other contents corresponding to the OFF state respectively. Thus the corresponding process is carried out in accordance with the ON or OFF state of the contact. Thus it is possible to obtain a programmable controller which can program two reciprocating actions with a single instruction.

Description

【発明の詳細な説明】 [産業上の利用分野コ この発明は、プログラマブルコントローラに関し、さら
に詳しくは、相反的な2つの動作を1つの命令でプログ
ラムできるようにしたプログラマブルコントローラに関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a programmable controller, and more particularly to a programmable controller that allows two contradictory operations to be programmed with one command.

[従来の技術] プログラマブルコントローラにおいて、例えばディスプ
レイに数値を表示する動作と,表示をクリアする動作と
は、互いに相反的な動作である。
[Prior Art] In a programmable controller, for example, the operation of displaying a numerical value on a display and the operation of clearing the display are mutually contradictory operations.

このような相反的な動作は、接点がオンのとき一方の動
作を行い,オフのとき他方の動作を行うと言うように、
ペアでプログラムされることが多い。
Such reciprocal operations mean that when a contact is on, it performs one operation, and when it is off, it performs the other operation.
Often programmed in pairs.

すなわち、これは従来のプログラマブルコントローラの
一例では、第9図に示すようにプログラムされる。
That is, in an example of a conventional programmable controller, this is programmed as shown in FIG.

第9図の1番目の命令は、第10図に示す動作を表わし
ており、指定された接点(X n )がオンのときソー
ス(S)で指定されたデバイスのデータをディスティネ
ーション(D)で指定されたデバイスに転送する。接点
(X n )がオフのときは何も行わない。また、第9
図の2番目の命令は、第11図に示す動作を表わしてい
る。すなわち、指定された接点(Xn)がオンのとき、
定数(K)をディスティネーション(D)で指定された
デバイスへ転送する。接点(Xn)がオフのときは何も
行わない。
The first command in FIG. 9 represents the operation shown in FIG. 10, and when the specified contact (X n ) is on, the data of the device specified by the source (S) is transferred to the destination (D). Transfer to the specified device. Nothing is done when the contact (X n ) is off. Also, the 9th
The second instruction in the figure represents the operation shown in FIG. That is, when the specified contact (Xn) is on,
Transfer constant (K) to the device specified by destination (D). Nothing is done when the contact (Xn) is off.

ここで、表示すべきデータを格納しているデータメモリ
をソース(S)で指定し,ディスプレイをディスティネ
ーション(D)で指定し,定数(K)一〇としておけば
、接点(X n )がオンのときはデータがディスプレ
イに表示され、接点(X n )がオフのときは表示が
クリアされることになる。
Here, if we specify the data memory that stores the data to be displayed as the source (S), specify the display as the destination (D), and set the constant (K) to 10, the contact point (X n ) will be When the contact (X n ) is on, data will be displayed on the display, and when the contact (X n ) is off, the display will be cleared.

[発明が解決しようとする課題] 上記のように、従来のプログラマブルコントローラでは
、相反的な2つの動作を2つの命令でプログラムしてい
る。
[Problems to be Solved by the Invention] As described above, in the conventional programmable controller, two contradictory operations are programmed using two instructions.

しかし、相反的な2つの動作はベアで使用する頻度が高
いため、その都度2つの命令でプログラムするのは労力
の重複であり、操作が徒に煩雑となる問題点がある。
However, since two contradictory operations are frequently used bare, programming with two instructions each time requires duplication of effort, and there is a problem that the operation becomes unnecessarily complicated.

そこで、この発明の目的は、相反的な2つの動作をlつ
の命令でプログラムすることが可能なプログラマブルコ
ントローラを提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a programmable controller that allows two contradictory operations to be programmed with one instruction.

[課題を解決するための手段] この発明のプログラマブルコントローラは、接点指定部
とデータ指定部と2元的処理内容指定部と出力先指定部
とを有する命令を記憶する2元的命令記憶手段と、前記
接点指定部で指定された接点がオン状態かオフ状態かを
判定してその判定結果に応じて前記データ指定部で指定
されたデータを前記2元的処理内容指定部で指定された
主たる処理内容にしたがって前記出力先指定部で指定さ
れた出力先に出力するか又は前記2元的処理内容指定部
で指定された補たる処理を行う2元的命令実行手段を具
備したことを構或上の特徴とするものである。
[Means for Solving the Problems] A programmable controller of the present invention includes a binary instruction storage means for storing an instruction having a contact specifying section, a data specifying section, a binary processing content specifying section, and an output destination specifying section. , determine whether the contact specified by the contact specifying section is on or off, and depending on the judgment result, transmit the data specified by the data specifying section to the main data specified by the binary processing content specifying section. The method may further include dual command execution means for outputting to the output destination specified by the output destination designation section or performing supplementary processing specified by the binary processing content designation section according to the processing content. It has the above characteristics.

[作用] この発明のプログラマブルコントローラでは、主たる処
理内容と補たる処理内容の2つの動作を2元的命令とし
て指定することが出来る。
[Operation] In the programmable controller of the present invention, two operations, the main processing content and the supplementary processing content, can be specified as dual commands.

そして、主たる処理内容と補たる処理内容のいずれか一
方が接点のオン状態に対応し、他方がオフ状態に対応し
、接点のオン状態またはオフ状態に応じて対応する処理
が実行される。
Then, one of the main processing content and the supplementary processing content corresponds to the on state of the contact, and the other corresponds to the off state, and the corresponding processing is executed depending on the on state or the off state of the contact.

このように、主と補の2つの動作が二者択一的に実行可
能であるため、相反的な2つの動作のペアを1つの命令
でプログラムできることとなり、従来の煩雑さを回避で
きるようになる。
In this way, since the two main and complementary actions can be executed alternatively, a pair of two reciprocal actions can be programmed with a single instruction, making it possible to avoid the conventional complexity. Become.

[実施例] 以下、図に示す実施例に基づいてこの発明をさらに詳し
く説明する。なお、これによりこの発明が限定されるも
のではない。
[Example] Hereinafter, the present invention will be described in more detail based on the example shown in the drawings. Note that this invention is not limited to this.

第3図はこの発明の一実施例のプログラマブルコントロ
ーラ(1)の外観を示すものである。
FIG. 3 shows the appearance of a programmable controller (1) according to an embodiment of the present invention.

前面には多数のキー(10)とディスプレイ(20)と
を配置したパネルが設置され、両側には外部機器を接続
するための端子(30)が設けられている。
A panel on which many keys (10) and a display (20) are arranged is installed on the front, and terminals (30) for connecting external devices are provided on both sides.

パネルのキー(10)には、第4図に示す如きこの発明
にかかる2元的命令人カキー(11)が含まれている。
The panel keys (10) include a dual command key (11) according to the invention as shown in FIG.

第5図はプログラマブルコントローラ(1)のシステム
構戊を示すブロック図で、(40)はC P U,(4
1)は多数の接点の各々がオン状態であるかオフ状態で
あるかを記憶するデバイスメモリ、(42)は数値デー
タを記憶するデータメモリ、(43)はユーザの人力し
たプログラムを記憶するユーザプログラムメモリ、(4
4)はプログラマブルコントローラ(1)の基本的作動
を制御するためのシステムプログラムを記憶するシステ
ムプログラムメモリ、(45)は外部機器との接続を行
うための人出力インターフエイスである。
FIG. 5 is a block diagram showing the system configuration of the programmable controller (1), where (40) is the CPU, (40)
1) is a device memory that stores whether each of a large number of contacts is in an on state or an off state, (42) is a data memory that stores numerical data, and (43) is a user memory that stores a program manually written by the user. Program memory, (4
4) is a system program memory that stores a system program for controlling the basic operations of the programmable controller (1), and (45) is a human output interface for connecting with external equipment.

さて、第4図に示すキー(11)を操作することによっ
て、第2図に示す如き命令をユーザプログラムメモリ(
43)に記憶させることが出来る。
Now, by operating the key (11) shown in FIG. 4, the commands shown in FIG.
43).

この第2図に示す命令は、接点(Xn)を指定し、その
接点(Xn)がオン状態であればソース(S)で指定さ
れるデータをディスティネーション(D)で指定される
デバイスに転送するという主たる動作と,接点(Xn)
がオフ状態であれば定数Oをディスティネーション(D
)で指定されるデバイスに転送するという補たる動作の
2つの相反的な動作を指定する2元的命令である。
The command shown in Figure 2 specifies a contact (Xn), and if the contact (Xn) is on, transfers the data specified by the source (S) to the device specified by the destination (D). The main action of
is off, set the constant O to the destination (D
) is a binary instruction that specifies two complementary operations: transfer to the device specified by .

すなわち、CPU(40)は、システムプログラムメモ
リ(44)のシステムプログラムに従ってユーザプログ
ラムメモリ(43)に記憶した命令を取り出し、その命
令が第2図に示される命令であると、第1図に示すよう
に作動する。
That is, the CPU (40) retrieves the instructions stored in the user program memory (43) according to the system program in the system program memory (44), and if the instructions are the instructions shown in FIG. 2, the CPU (40) reads the instructions shown in FIG. It works like this.

まず、指定された接点(X n )がオン状態かオフ状
態かを判定し(PL)、判定結果がオンであればソース
(S)で指定されたデータメモリ(42)のデータを取
り出し、ディスティネーション(D)で指定されたデバ
イスに転送する(P2)。他方、判定結果がオフ状態で
あれば、定数Oをディスティネーション(D)で指定さ
れたデバイスに転送する(P3)。
First, it is determined whether the specified contact (X n ) is on or off (PL), and if the judgment result is on, the data in the data memory (42) specified by the source (S) is retrieved and the destination Transfer to the device specified by the nation (D) (P2). On the other hand, if the determination result is an OFF state, the constant O is transferred to the device specified by the destination (D) (P3).

そこで、表示すべき数値データをデータメモリ(42)
に記憶させ、その数値データをソース(S)で指定し、
ディスティネーション(D)でディスプレイ(20)を
指定すると、接点(Xn)がオン状態のときに数値デー
タがディスプレイ(20)に表示され、接点(Xn)が
オフ状態のときは表示がクリアされるようになる。
Therefore, the numerical data to be displayed is stored in the data memory (42).
, specify the numerical data as source (S),
When the display (20) is specified as the destination (D), numerical data will be displayed on the display (20) when the contact (Xn) is on, and the display will be cleared when the contact (Xn) is off. It becomes like this.

以上の説明から理解されるように、このプログラマブル
コントローラ(1)では、第2図に示す如き1つの命令
で、例えばディスプレイに数値を表示する動作と,表示
をクリアする動作とをプログラムできるようになる。
As can be understood from the above explanation, this programmable controller (1) allows, for example, the operation of displaying numerical values on the display and the operation of clearing the display to be programmed with one command as shown in Fig. 2. Become.

他の実施例としては、第6図〜第8図に示す命令を有す
るものが挙げられる。
Other embodiments include those having the instructions shown in FIGS. 6-8.

まず第6図の命令は、主たる動作が、ソース(S)で指
定されたパイナリデー夕をBCDデータに変換してディ
スティネーション(D)で指定されたデバイスにセット
する内容であり、補たる動作が所定の定数Oをディステ
ィネーション(D)で指定されたデバイスに転送する内
容のものである。この命令は、BCDコード・ゼロサプ
レス方式のディスプレイに対して、データメモリ(42
)の所定番地に格納している数値データをBCDコード
で送り表示させる動作と,表示をクリアさせる動作とを
プログラムするのに有用である。
First, the main operation of the command in Figure 6 is to convert the binary data specified by the source (S) into BCD data and set it in the device specified by the destination (D). The content is to transfer a predetermined constant O to a device specified by a destination (D). This command applies to data memory (42
) is useful for programming the operation of sending and displaying numerical data stored in a predetermined location using a BCD code, and the operation of clearing the display.

次に第7図の命令は、主たる動作が、ソース(S)で指
定されたBCDデータをパイナリデー夕に変換してディ
スティネーション(D)で指定されたデバイスにセット
する内容であり、補たる動作が所定の定数Oをディステ
イネーション(D)で指定されたデバイスに転送する内
容のものである。この命令は、デジタルスイッチ(図示
省略)のBCDコードを読み取ってパイナリデータでデ
ータメモIJ(42)の所定番地に格納する動作と,そ
の所定番地をクリアする動作とをプログラムするのに有
用である。
Next, the command in Figure 7 has the main operation of converting the BCD data specified by the source (S) into binary data and setting it in the device specified by the destination (D). is the content of transferring a predetermined constant O to the device specified by the destination (D). This command is useful for programming the operation of reading the BCD code of a digital switch (not shown) and storing it as pinary data in a predetermined location of the data memo IJ (42), and the operation of clearing the predetermined location. be.

次に第8図の命令は、主たる動作が、英数字Lをアスキ
ーコードに変換してディステイネーション(D)で指定
されたデバイスにセットする内容であり、補たる動作が
“スペース”のアスキーコードをディスティネーション
(D)で指定されたデバイスに転送する内容のものであ
る。この命令は、アスキーコード・スペースサブレス方
式のディスプレイに対して、データメモリ(42)の所
定番地に格納している数値データをアスキーコードで送
り表示させる動作と,表示をクリアさせる動作とをプロ
グラムするのに有用である。
Next, in the command shown in Figure 8, the main operation is to convert alphanumeric characters L into ASCII code and set it in the device specified by the destination (D), and the supplementary operation is to convert the alphanumeric character L into ASCII code and set it in the device specified by the destination (D), and the supplementary operation is to convert the alphanumeric character L into ASCII code and set it in the device specified by the destination (D). The content is to transfer the code to the device specified by the destination (D). This command programs an operation to send and display the numerical data stored in a predetermined location in the data memory (42) using an ASCII code, and an operation to clear the display for an ASCII code/space subless type display. It is useful for

[発明の効果コ この発明によれば、主たる処理と,補たる処理の2つの
動作を1つ命令でプログラムできるようになる。このた
め、相反的な2つの動作が繰り返し出現するプログラム
を非常に容易に書けるようになる。
[Effects of the Invention] According to the present invention, two operations, main processing and supplementary processing, can be programmed with one instruction. Therefore, it becomes very easy to write a program in which two contradictory actions repeatedly occur.

また、2つの処理が二者択一的に実行されるから相互イ
ンターロックを確実にとることが出来るようにもなる。
Furthermore, since the two processes are executed alternatively, mutual interlock can be ensured.

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

第1図はこの発明の一実施例のプログラマブルコントロ
ーラの作動の要部フローチャート、第2図は第1図に示
す作動を表わすラダー図、第3図はこの発明の一実施例
のプログラマブルコントローラの外H図、第4図はこの
発明にかかる2元的命令人力キーの外観図、第5図は第
3図に示すプログラマブルコントローラのシステム構戊
を示すブロック図、第6図〜第8図はこの発明にかかる
命令をそれぞれ示すラダー図、第9図は第2図に示すラ
ダー図に対応する従来例のラダー図、第10図および第
1工図は転送命令の作動を示すフローチャートである。 図において、(1)はプログラマブルコントローラ、(
10)はパネルキー、(11)は2元的命令入力キー、
(20)はディスプレイである。 なお、各図中同一符号は同一又は相当部分を示す。
FIG. 1 is a flowchart of essential parts of the operation of a programmable controller according to an embodiment of the present invention, FIG. 2 is a ladder diagram showing the operation shown in FIG. 1, and FIG. FIG. FIG. 9 is a ladder diagram showing the instructions according to the invention, FIG. 9 is a conventional ladder diagram corresponding to the ladder diagram shown in FIG. 2, and FIGS. 10 and 1 are flowcharts showing the operation of the transfer command. In the figure, (1) is a programmable controller, (
10) is a panel key, (11) is a binary command input key,
(20) is a display. Note that the same reference numerals in each figure indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 1、接点指定部とデータ指定部と2元的処理内容指定部
と出力先指定部とを有する命令を記憶する2元的命令記
憶手段と、前記接点指定部で指定された接点がオン状態
かオフ状態かを判定してその判定結果に応じて前記デー
タ指定部で指定されたデータを前記2元的処理内容指定
部で指定された主たる処理内容にしたがって前記出力先
指定部で指定された出力先に出力するか又は前記2元的
処理内容指定部で指定された補たる処理を行う2元的命
令実行手段を具備したことを特徴とするプログラマブル
コントローラ。
1. A binary instruction storage means for storing an instruction having a contact specifying section, a data specifying section, a binary processing content specifying section, and an output destination specifying section, and whether the contact specified by the contact specifying section is in an on state. Determine whether it is in the off state, and according to the determination result, output the data specified by the data specification section according to the main processing content specified by the binary processing content specification section, specified by the output destination specification section. A programmable controller characterized by comprising binary instruction execution means that outputs first or performs complementary processing specified by the binary processing content designation section.
JP24406189A 1989-09-20 1989-09-20 Programmable controller Pending JPH03105504A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24406189A JPH03105504A (en) 1989-09-20 1989-09-20 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24406189A JPH03105504A (en) 1989-09-20 1989-09-20 Programmable controller

Publications (1)

Publication Number Publication Date
JPH03105504A true JPH03105504A (en) 1991-05-02

Family

ID=17113152

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24406189A Pending JPH03105504A (en) 1989-09-20 1989-09-20 Programmable controller

Country Status (1)

Country Link
JP (1) JPH03105504A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014099014A (en) * 2012-11-14 2014-05-29 Hitachi Industrial Equipment Systems Co Ltd Programmable controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014099014A (en) * 2012-11-14 2014-05-29 Hitachi Industrial Equipment Systems Co Ltd Programmable controller

Similar Documents

Publication Publication Date Title
JPH10283020A (en) Programmable display device
JPH03105504A (en) Programmable controller
JPH01177609A (en) Simulation system for pc
JPH0321923B2 (en)
JPS58178408A (en) Programmable controller having simulating function
JPS6041102A (en) Sequence control device
JPS5949609A (en) Programmable controller equipped with simulation performing function
JPH051888B2 (en)
JP2700013B2 (en) Compiler for user program for programmable controller
JPS59148905A (en) Forming and correcting device of program
JPS62271139A (en) Terminal equipment
JPH02151902A (en) Programmable controller
JPH10105226A (en) Programmable display device
JPS6290720A (en) Menu displaying device
JPH0119167B2 (en)
JPH05210403A (en) Data processor
JPS6129950A (en) Displaying method of water's going-out and coming-in
JPH0628014A (en) Sfc programming device
JPH04350736A (en) Programmable controller
JPH01113806A (en) Sequence controller
JPH02125377A (en) Crt display device with arithmetic processing function
JPH01128120A (en) Character data input system
JPS63284620A (en) Input system for terminal equipment
JPH0566735U (en) Keyboard simulator
JPH01154190A (en) Terminal control system of fa controller