JP2914538B2 - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JP2914538B2
JP2914538B2 JP30193991A JP30193991A JP2914538B2 JP 2914538 B2 JP2914538 B2 JP 2914538B2 JP 30193991 A JP30193991 A JP 30193991A JP 30193991 A JP30193991 A JP 30193991A JP 2914538 B2 JP2914538 B2 JP 2914538B2
Authority
JP
Japan
Prior art keywords
data
bit
word
memory
word data
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 - Lifetime
Application number
JP30193991A
Other languages
Japanese (ja)
Other versions
JPH05143119A (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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP30193991A priority Critical patent/JP2914538B2/en
Publication of JPH05143119A publication Critical patent/JPH05143119A/en
Application granted granted Critical
Publication of JP2914538B2 publication Critical patent/JP2914538B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

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 capable of handling word data.

【0002】[0002]

【従来の技術】プログラマブルコントローラは電子機器
の動作制御を行う際に、電子機器から動作状態信号を入
力し、この動作状態信号に基づいてシーケンス演算を行
って電子機器に対する動作指示信号を作成し、電子機器
に出力する。
2. Description of the Related Art When controlling the operation of an electronic device, a programmable controller inputs an operation state signal from the electronic device, performs a sequence operation based on the operation state signal, and generates an operation instruction signal for the electronic device. Output to electronic equipment.

【0003】従来、制御対象の電子機器はリレーで構成
されているため、この動作状態信号や動作指示信号はオ
ン/オフの1ビットのデータ(ビットデータと称する)
で表わされていた。
Conventionally, since an electronic device to be controlled is constituted by a relay, the operation state signal and the operation instruction signal are 1-bit data of on / off (referred to as bit data).
Was represented by

【0004】最近は、たとえばモータの速度制御等で設
定速度を指示することができるように複数ビット(たと
えば16ビット)で数値を表わすワードデータをも上記
ビットデータと共にプログラマブルコントローラで取扱
うことができるようになってきた。
Recently, word data representing a numerical value with a plurality of bits (for example, 16 bits) can be handled by a programmable controller together with the above-mentioned bit data so that a set speed can be indicated by, for example, motor speed control. It has become

【0005】このために、プログラマブルコントローラ
内のメモリはビットデータ用の記憶領域とワードデータ
用の記憶領域に分割されている。
For this purpose, the memory in the programmable controller is divided into a storage area for bit data and a storage area for word data.

【0006】ビットデータ用記憶領域は1アドレスに対
して16個のビットデータを格納するのに対して、ワー
ドデータ用記憶領域は1アドレスに対して1個のワード
データを格納する。
While the bit data storage area stores 16 bit data for one address, the word data storage area stores one word data for one address.

【0007】また、データに対して割当てる識別名の先
頭記号をビットデータとワードデータとで異ならせるこ
とで、データの種類の識別を行っている。
Further, the type of data is identified by making the leading symbol of the identifier assigned to data different between bit data and word data.

【0008】このようなワードデータは上述のように1
データに対して16ビット(個)のビット値で構成され
るが、16個のビット値全体に対して1つの識別名が与
えられているので、16個の中の特定のビット値のみを
取り出すようには行っていない。
Such word data is 1 as described above.
The data is composed of 16 bit values, but since one identifier is given to all 16 bit values, only specific bit values out of 16 are extracted. Did not go like that.

【0009】[0009]

【発明が解決しようとする課題】上述のように、メモリ
のデータ記憶領域はワードデータ用とビットデータ用と
に固定的に分割されているので、ユーザが作成するシー
ケンスプログラム上でビットデータの取扱い量が多いと
ビットデータ用の記憶領域が不足する。このため、ユー
ザは、シーケンスプログラム上で使用できるビットデー
タの個数、換言すると、入出力接点(デバイス)の個数
が制御されるという不具合が従来装置にはあった。
As described above, since the data storage area of the memory is fixedly divided for word data and bit data, handling of bit data in a sequence program created by a user is performed. If the amount is large, a storage area for bit data runs short. For this reason, the conventional apparatus has a problem that the user controls the number of bit data that can be used on the sequence program, in other words, the number of input / output contacts (devices).

【0010】そこで、本発明の目的は上述の点に鑑み
て、ビットデータの記憶領域を増加させることなく、ビ
ットデータの取扱い量を増加させることの可能なプログ
ラマブルコントローラを提供することにある。
In view of the above, an object of the present invention is to provide a programmable controller capable of increasing the amount of bit data handled without increasing the bit data storage area.

【0011】[0011]

【課題を解決するための手段】このような目的を達成す
るために、本発明は、内蔵のメモリに格納されたワード
データを、該ワードデータに対して割当てられた識別名
によりアクセス可能なプログラマブルコントローラにお
いて、前記ワードデータの中の特定ビット位置を指示す
るパラメータのフォーマットを予め定めておき、前記識
別名に前記パラメータが付加されているか否かを判定
し、肯定判定の場合には、アクセス対象のデータが前記
ワードデータの中の特定のビットデータであると識別
し、否定判定の場合はアクセス対象のデータがワードデ
ータ全体であると識別するデータ種類識別手段と、該デ
ータ種類識別手段によりビットデータであるとの識別結
果が得られた場合には、前記パラメータの示すビット位
置の前記メモリ上のビットデータに対してアクセスを行
うアクセス手段とを具えたことを特徴とする。
SUMMARY OF THE INVENTION In order to achieve the above object, the present invention relates to a programmable memory which can access word data stored in a built-in memory by using an identifier assigned to the word data. In the controller, a format of a parameter indicating a specific bit position in the word data is determined in advance, and it is determined whether the parameter is added to the identification name. Is identified as specific bit data in the word data, and in the case of a negative determination, data type identification means for identifying that the data to be accessed is the entire word data; If an identification result of the data is obtained, the bit position indicated by the parameter is stored in the memory on the memory. Characterized in that comprises an access means for performing access to Todeta.

【0012】[0012]

【作用】本発明では、ビットデータの使用数に比べワー
ドデータの使用数が少なく、ワードデータ記憶領域に未
使用領域が生じやすいことに着目し、ワードデータの特
定ビットを1つのビットデータとして扱うことによりビ
ットデータをワードデータ記憶領域に格納する。また、
このような機能を実現するために、ワードデータの識別
名にパラメータを付加し、このパラメータの存在の有無
により処理対象のデータがワードデータ全体の複数のビ
ットデータか、特定位置のビットデータかについてデー
タ内容を識別する。また、上記パラメータによりアクセ
ス手段のアクセスすべきメモリ上のワードデータのビッ
ト位置が判る。
In the present invention, attention is paid to the fact that the number of word data used is smaller than the number of bit data used, and an unused area is likely to be generated in the word data storage area, and a specific bit of the word data is treated as one bit data Thus, the bit data is stored in the word data storage area. Also,
In order to realize such a function, a parameter is added to the identification name of the word data, and depending on the presence or absence of this parameter, whether the data to be processed is a plurality of bit data of the entire word data or a bit data at a specific position is determined. Identify the data content. Also, the bit position of the word data on the memory to be accessed by the access means can be determined from the above parameters.

【0013】[0013]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0014】図1は本発明実施例の基本構成を示す。FIG. 1 shows a basic configuration of an embodiment of the present invention.

【0015】本実施例のプログラマブルコントローラ
は、内蔵のメモリ500に格納されたワードデータを、
該ワードデータに対して割当てられた識別名によりアク
セス可能なプログラマブルコントローラである。
The programmable controller of this embodiment converts word data stored in a built-in memory 500 into
This is a programmable controller that can be accessed by an identification name assigned to the word data.

【0016】このプログラマブルコントローラでは、前
記ワードデータの中の特定ビット位置を指示するパラメ
ータのフォーマットを予め定めている。1000は前記
識別名に前記パラメータが付加されているか否かを判定
し、肯定判定の場合には、アクセス対象のデータが前記
ワードデータの中の特定のビットデータであると識別
し、否定判定の場合はアクセス対象のデータがワードデ
ータ全体であると識別するデータ種類識別手段である。
In this programmable controller, a format of a parameter indicating a specific bit position in the word data is predetermined. 1000 determines whether or not the parameter is added to the identifier, and in the case of an affirmative determination, identifies that the data to be accessed is specific bit data in the word data, In this case, the data type identification means identifies that the data to be accessed is the entire word data.

【0017】2000は該データ種類識別手段によりビ
ットデータであるとの識別結果が得られた場合には、前
記パラメータの示すビット位置の前記メモリ上のビット
データに対してアクセスを行うアクセス手段である。
Reference numeral 2000 denotes access means for accessing the bit data on the memory at the bit position indicated by the parameter when the data type identification means obtains the identification result as bit data. .

【0018】図2は本発明実施例の具体的な回路構成の
一例を示す。
FIG. 2 shows an example of a specific circuit configuration of the embodiment of the present invention.

【0019】プログラマブルコントローラはプログラマ
ブルコントローラ本体(CPUユニットと別称される)
200およびプログラミング装置100から主に構成さ
れている。
The programmable controller is a main body of the programmable controller (also referred to as a CPU unit).
It is mainly composed of 200 and a programming device 100.

【0020】プログラミング装置100はプログラマブ
ルコントローラ本体200で実行するシーケンスプログ
ラムを作成する他、このプログラマブルコントローラ本
体に格納されている接点情報をモニタすることができ
る。
The programming device 100 can create a sequence program to be executed by the programmable controller main body 200, and can monitor contact information stored in the programmable controller main body.

【0021】プログラミング装置100は、中央演算処
理装置(CPU)110,ユーザプログラムメモリ12
0,表示装置130,インタフェース140,キーボー
ド(不図示)から主に構成されている。
The programming device 100 includes a central processing unit (CPU) 110 and a user program memory 12.
0, a display device 130, an interface 140, and a keyboard (not shown).

【0022】CPU110はキーボードから入力された
プログラム命令をユーザプログラムメモリ120に展開
記憶することによりシーケンスプログラムを作成する。
このシーケンスプログラムは操作者の指示で、CPU1
10の通信制御の下、インタフェース140を介してプ
ログラマブルコントローラ本体200に通信される。
The CPU 110 creates a sequence program by expanding and storing a program command input from the keyboard in the user program memory 120.
This sequence program is instructed by the operator, and is executed by the CPU 1
Under the communication control of 10, communication is performed with the programmable controller main body 200 via the interface 140.

【0023】一方、モニタモードが操作者から指示され
た場合は、CPU110はプログラマブルコントローラ
本体200から、シーケンスプログラムに対応させた接
点情報をインタフェース140を介して受信し、表示器
130に表示する。
On the other hand, when the monitor mode is instructed by the operator, the CPU 110 receives the contact information corresponding to the sequence program from the programmable controller main body 200 via the interface 140 and displays it on the display 130.

【0024】プログラマブルコントローラ本体200は
主に、CPU210,ビット演算プロセッサ(BPと略
記)220,ユーザプログラムメモリ230,データメ
モリ240,入出力ユニット250,インタフェース2
60から構成される。
The main body of the programmable controller 200 mainly includes a CPU 210, a bit operation processor (abbreviated as BP) 220, a user program memory 230, a data memory 240, an input / output unit 250, an interface 2
60.

【0025】CPU210は装置全体に関わる制御、た
とえば、プログラミング装置100との間の通信の制
御,制御対象の電子機器との間の通信の制御等の他、B
P220と共にユーザプログラムメモリ230のシーケ
ンスプログラムを実行する。
The CPU 210 controls the entire device, for example, controls communication with the programming device 100, controls communication with the electronic device to be controlled, and controls B
The sequence program of the user program memory 230 is executed together with P220.

【0026】BP220はシーケンスプログラムの中の
ビット演算を担当する。データメモリ240は制御対象
機器に対して入出力する情報信号が格納される。このメ
モリの領域はビットデータ記憶領域とワードデータ記憶
領域とに分割されている。
The BP 220 is in charge of a bit operation in the sequence program. The data memory 240 stores information signals input to and output from the control target device. This memory area is divided into a bit data storage area and a word data storage area.

【0027】入出力ユニット250は制御対象機器に対
して入出力の情報信号を所定の信号形態に相互変換す
る。
The input / output unit 250 mutually converts input / output information signals into a predetermined signal format with respect to the control target device.

【0028】このような回路における本発明に関わるワ
ードデータについてのビット処理を説明する。
The bit processing for the word data according to the present invention in such a circuit will be described.

【0029】本例では、ワードデータの中の特定ビット
を接点情報として用いてシーケンスプログラムで規定
し、システム運転時この接点情報をモニタする場合につ
いて説明する。
In this embodiment, a case will be described in which a specific bit in word data is specified as a contact information in a sequence program and the contact information is monitored during system operation.

【0030】(a)シーケンスプログラムの作成 ワードデータの特定ビットを指定するためのデータフォ
ーマットを図3に示す。図3に示すようにワードデータ
を指定する識別名の先頭はたとえば“D”というワード
データのみに用いる識別記号を用い、次に任意の3桁の
データ識別用番号を与える。
(A) Creation of Sequence Program FIG. 3 shows a data format for designating a specific bit of word data. As shown in FIG. 3, the head of the identification name for specifying the word data is, for example, an identification symbol "D" used only for the word data, followed by an arbitrary three-digit data identification number.

【0031】最後尾に本発明に関わるビット指定パラメ
ータを与える。ビット指定パラメータは“0”〜“F”
(16進数)までの値を使用可能であり、図3のように
“3”を付加すると、このパラメータを持つ識別名は
“D000”という識別名を持つ16ビットのワードデ
ータを指定し、このワードデータの先頭から第4番目の
位置のビットデータを選択することを意味する。
At the end, a bit designation parameter relating to the present invention is given. Bit designation parameters are "0" to "F"
Values up to (hexadecimal) can be used. When "3" is added as shown in FIG. 3, the identifier having this parameter specifies 16-bit word data having an identifier of "D000". This means that the bit data at the fourth position from the head of the word data is selected.

【0032】このようなワードデータをシーケンスプロ
グラムに使用した例を図4の上部に示す。このプログラ
ム命令は、“D0003”というデータ識別名を持つビ
ットデータ(オン/オフのデータ)が入力用接点の接点
情報として割当てられ、この接点情報を“Y20”とい
う識別名を持つ出力用コイル(出力接点)に出力するこ
とを示している。
An example in which such word data is used in a sequence program is shown in the upper part of FIG. In this program command, bit data (on / off data) having a data identification name of “D0003” is assigned as contact information of an input contact, and this contact information is assigned to an output coil (ID) having an identification name of “Y20”. Output contact).

【0033】操作者はこのようなシーケンス命令を含む
プログラムをプログラミング装置100により作成し、
システム運転に先立ってプログラマブルコントローラ本
体200に転送する。このシーケンスプログラムは図2
のCPU210によりユーザプログラムメモリ230に
格納される。
The operator creates a program including such a sequence command by using the programming device 100,
The data is transferred to the programmable controller main body 200 prior to the system operation. This sequence program is shown in FIG.
Is stored in the user program memory 230 by the CPU 210.

【0034】(b)シーケンス演算処理 シーケンスプログラムの実行にあたり、図2のCPU2
10は図5の制御手順によりシーケンスプログラム上に
記載されたデータ識別名について、データの種類識別を
行ってデータについてのアクセス(読み/書き処理)を
行う。
(B) Sequence calculation processing In executing the sequence program, the CPU 2 shown in FIG.
Numeral 10 identifies the data type of the data identification name described on the sequence program by the control procedure of FIG. 5 and accesses the data (read / write processing).

【0035】図4に示すシーケンス命令すなわち、接点
“D0003”の接点の読出し命令を実行する場合、C
PU210は、シーケンス命令の中に含まれるデータ識
別名の先頭文字“D”によりデータがワードであること
を検出する(S10)。
When executing the sequence command shown in FIG. 4, that is, the command to read the contact of the contact "D0003", C
The PU 210 detects that the data is a word based on the first character "D" of the data identifier included in the sequence instruction (S10).

【0036】次にシーケンス命令が接点読出し命令であ
ることからデータの読出しが指示されていることを確認
し、次にこのワードデータの読出しを行う。より具体的
にはデータ識別名の中の第1桁目〜第4桁目までの識別
情報(図3参照)“D000”を取り出し、この“D0
00”に対応させたデータメモリ240への読出しアド
レスを設定する。次に、CPU210から読出しアドレ
スおよび読出し指示信号をデータメモリ240に対して
送信する。データメモリ240は読出しアドレスにより
指定された記憶領域(D000に対応)から16ビット
分のデータを読出し、CPU210内の16個のビット
レジスタにビット毎に格納する(S20→S80)。
Next, since the sequence command is a contact read command, it is confirmed that data reading is instructed, and then the word data is read. More specifically, the identification information (D000) of the first to fourth digits of the data identification name (see FIG. 3) is extracted, and this “D0”
A read address to data memory 240 corresponding to "00" is set. Next, a read address and a read instruction signal are transmitted from CPU 210 to data memory 240. Data memory 240 has a storage area designated by the read address. Data corresponding to 16 bits is read from (corresponding to D000), and stored for each bit in 16 bit registers in the CPU 210 (S20 → S80).

【0037】次に、データ識別名の最後尾に、“0”〜
“F”のいずれかのパラメータ記号があることを確認す
ると、CPU210は図6の制御手順によりデータ識別
名の中のパラメータ記号の示すデータ位置を識別する。
すなわち、CPU210はパラメータ記号(本例の場合
“3”)と“0”から順に一致比較を行って行く(S1
00〜S120)。“3”についての比較処理で一致処
理が見られたときに、このパラメータ“3”の示すビッ
ト位置が“4”番目であることが識別され、第4番目の
ビットレジスタの値がシーケンス命令の演算対象の値と
して選択される。
Next, at the end of the data identifier, "0"-
After confirming that any of the parameter symbols “F” is present, the CPU 210 identifies the data position indicated by the parameter symbol in the data identification name by the control procedure of FIG.
That is, the CPU 210 performs a comparison in order from the parameter symbol ("3" in this example) and "0" (S1).
00 to S120). When a match process is found in the comparison process for “3”, it is identified that the bit position indicated by the parameter “3” is “4”, and the value of the fourth bit register is set to the value of the sequence instruction. It is selected as the value to be calculated.

【0038】図4のシーケンス命令では次にコイル命令
が読出される。この読出されたシーケンス命令の扱うデ
ータが図5の制御手順のS10において、ビットデータ
であることがデータ識別名“Y20”から判別される。
CPU210は、上述の処理で読出したワードデータの
中の指定ビット位置のビットデータをBP220に引き
渡す。BP220は、読出しのシーケンス命令に基づき
識別名“Y20”に対応するデータメモリ240のビッ
トデータ記憶領域に、上記ワードデータの中から選択さ
れたビットデータを書き込む(S10→S15)。
In the sequence command shown in FIG. 4, a coil command is read next. In S10 of the control procedure of FIG. 5, it is determined from the data identification name “Y20” that the data handled by the read sequence instruction is bit data.
The CPU 210 transfers the bit data at the designated bit position in the word data read in the above processing to the BP 220. The BP 220 writes the bit data selected from the word data into the bit data storage area of the data memory 240 corresponding to the identification name “Y20” based on the read sequence command (S10 → S15).

【0039】以上の処理はワードデータの中の特定ビッ
トを読出す例であるが、コイル命令の出力先にたとえば
上記データ識別名“D0003”を割当てた場合はCP
U210において次の処理が実行される。
The above processing is an example in which a specific bit in word data is read. If, for example, the data identification name "D0003" is assigned to the output destination of the coil command, CP
The following processing is executed in U210.

【0040】すなわち、シーケンス命令中のデータ識別
名により、取り扱いデータがワードデータであること、
シーケンス命令がデータメモリ240への書き込み処理
を行う必要がある命令があることがS10→S20→S
30の順で確認される。
That is, the data to be handled is word data according to the data identifier in the sequence instruction.
S10 → S20 → S indicates that there is an instruction that requires a write operation to the data memory 240 as a sequence instruction.
Confirmed in the order of 30.

【0041】次に、データ識別名中のビット位置指定パ
ラメータの存在を検出すると、CPU210は、この識
別名(D000)に対応するデータメモリ240から1
6ビットのワードデータを読出し、内部レジスタに格納
する(S50)。
Next, upon detecting the presence of the bit position designation parameter in the data identification name, the CPU 210 stores one bit from the data memory 240 corresponding to the identification name (D000).
The 6-bit word data is read and stored in the internal register (S50).

【0042】次に、図6の制御手順により処理対象のビ
ットデータの位置を識別し、第4番目のビットデータ
を、コイル命令の前のシーケンス命令で規定されている
ビットデータと置き換える(S60)。
Next, the position of the bit data to be processed is identified according to the control procedure of FIG. 6, and the fourth bit data is replaced with the bit data specified by the sequence command before the coil command (S60). .

【0043】次に、更新されたビットデータを含む、内
部レジスタのワードデータを再びデータメモリ240に
書き込むことによりコイル命令におけるデータメモリ2
40上へのデータの書き込み処理を終了する(S7
0)。
Next, the word data of the internal register including the updated bit data is written into the data memory 240 again, so that the data memory 2 in the coil instruction is written.
The process of writing data to the memory 40 ends (S7).
0).

【0044】以上、説明したように、本実施例ではデー
タメモリに対してワードデータの読み/書きを行う際
に、このワードデータの識別名にビット位置を指定する
パラメータの存在の有無を調べる(図5のS40,S9
0)ことによって、ワードデータ全体のビット値を演算
処理の対象とするか、ワードデータの中の特定ビット値
を演算処理の対象とするかを判別する。この判別処理を
行うときのCPU210が本発明のデータ種類識別手段
として動作する。
As described above, in this embodiment, when reading / writing word data from / to the data memory, the presence / absence of a parameter for designating a bit position in the identification name of this word data is checked ( S40 and S9 in FIG.
0), it is determined whether the bit value of the entire word data is to be processed or a specific bit value in the word data is to be processed. The CPU 210 at the time of performing this determination process operates as the data type identification unit of the present invention.

【0045】また、ビット指定パラメータの存在を確認
したときは、図5のS100,S50〜S70において
ビット指定パラメータの示すビットメモリ240上のビ
ットデータに対してアクセスする。このアクセスを行う
ときのCPU210が本発明のアクセス手段として動作
する。
When the existence of the bit designation parameter is confirmed, the bit data on the bit memory 240 indicated by the bit designation parameter is accessed in S100 and S50 to S70 of FIG. The CPU 210 at the time of performing this access operates as access means of the present invention.

【0046】以上、説明したように、本実施例では、本
来入出力接点に対してビットデータ用の識別名を与えな
ければならない場合でもワードデータ用の識別名を用い
ることができる。また、この識別名を持つデータはデー
タメモリ240上のワードデータ記憶領域に格納される
ので、ビットデータ記憶領域の容量を何等変更させる必
要がない。
As described above, in the present embodiment, the identification name for the word data can be used even when the identification name for the bit data should originally be given to the input / output contact. Further, since the data having this identification name is stored in the word data storage area on the data memory 240, there is no need to change the capacity of the bit data storage area at all.

【0047】また、ワードデータの中の特定ビットを読
み/書きする機能を用いると、次のような利用形態も考
えられる。たとえばシーケンスプログラム上で数値のし
きい値比較を行う場合、従来では大小比較を行うための
シーケンス命令を記載しなければならない。しかしなが
ら、ワードデータのたとえば特定ビットを取り出すこと
で、比較用のシーケンス命令無しに数値のしきい値比較
が容易に行える。
When the function of reading / writing a specific bit in word data is used, the following use forms are also conceivable. For example, when comparing a threshold value of a numerical value on a sequence program, conventionally, a sequence instruction for performing a magnitude comparison must be described. However, by extracting, for example, a specific bit of the word data, it is possible to easily compare the threshold values of numerical values without a sequence command for comparison.

【0048】たとえばワードデータが2ビットで構成さ
れているものとすると2ビットのデータの最上位ビット
が“1”の場合はワードデータは“2”か“3”(共に
10進数)となる。したがってこの最上位ビットの値を
用いることによって、ワードデータが“2”以上か否か
の比較判定処理ができる。
For example, assuming that the word data is composed of two bits, if the most significant bit of the two-bit data is "1", the word data is "2" or "3" (both are decimal numbers). Therefore, by using the value of the most significant bit, it is possible to perform a comparison determination process as to whether the word data is “2” or more.

【0049】このように本実施例の機能を用いることに
よって比較処理も比較用のシーケンス命令無しに実行で
きるので、シーケンスプログラムの処理ステップを短縮
させることも可能となる。
As described above, by using the function of the present embodiment, the comparison process can be executed without the sequence command for comparison, so that the processing steps of the sequence program can be shortened.

【0050】本実施例の他、次の例を実現できる。In addition to the present embodiment, the following example can be realized.

【0051】1)本実施例ではシーケンス演算のために
ワードデータの中の特定ビットをデータメモリ240に
対して読み/書き(アクセス)する例を示した。その
他、データメモリ240のデータを入出力ユニット25
0を介して入出力する際にもデータメモリ240に対し
てアクセスを行うので、このアクセスに際して、本発明
を適用することは言うまでもない。
1) In this embodiment, an example has been shown in which a specific bit in word data is read / written (accessed) to / from the data memory 240 for a sequence operation. In addition, the data in the data memory 240 is
Since the data memory 240 is also accessed when inputting / outputting data via 0, it goes without saying that the present invention is applied to this access.

【0052】2)データメモリ240に対してアクセス
する他の場合として、モニタ処理を実行する場合があ
る。この場合もCPU210はデータメモリ240から
ワードデータの中の特定ビットを読出し、プログラミン
グ装置100側に送信する。なお、この際に従来からあ
るプログラミング装置100のコメント表示機能を用い
て図2のプログラミング装置100の表示器130にワ
ードデータから取り出した特定データについて特別のコ
メントを図17に示すように表示させることも可能であ
る。
2) As another case of accessing the data memory 240, a monitor process may be executed. Also in this case, the CPU 210 reads a specific bit in the word data from the data memory 240 and transmits it to the programming device 100 side. At this time, using the comment display function of the conventional programming device 100, a special comment on the specific data extracted from the word data is displayed on the display 130 of the programming device 100 of FIG. 2 as shown in FIG. Is also possible.

【0053】この場合は予め、上記特定データ用のコメ
ントを作成し、プログラミング装置100側でデータ識
別名に関連付けてメモリ(不図示)に保存記憶してお
く。プログラマブルコントローラ本体200側からモニ
タ用のデータを受信した際に、このデータの識別名につ
いて種類識別を行って、受信データがワードデータから
抽出したビットデータであることをプログラミング装置
100側のCPU110により識別した後、この識別名
に基づき、上記コメントをメモリから読出し表示器13
0に表示する。このような処理を行うことによりワード
データの中のビット毎のコメント表示も可能となる。
In this case, a comment for the specific data is created in advance and stored in a memory (not shown) in the programming device 100 in association with the data identification name. When the monitor data is received from the programmable controller main body 200, the type identification is performed on the identification name of the data, and the CPU 110 of the programming device 100 identifies that the received data is bit data extracted from the word data. After that, based on the identification name, the comment is read out from the memory and displayed on the display 13.
Display at 0. By performing such processing, a comment can be displayed for each bit in the word data.

【0054】3)本実施例ではビットデータとワードデ
ータの種類識別をデータの先頭に付加された記号により
行っているが、データを構成する文字の桁数を異ならせ
て、データ種類内容を異ならせているプログラマブルコ
ントローラにも本発明を適用することができる。
3) In this embodiment, the types of bit data and word data are identified by the symbols added to the head of the data. However, if the number of digits of the characters constituting the data is made different and the contents of the data type are different, The present invention can also be applied to a programmable controller that is configured to operate.

【0055】[0055]

【発明の効果】以上、説明したように、本発明によれ
ば、データ記憶用のメモリを有効的に利用することがで
きるだけでなく、従来ではできなかったシーケンスプロ
グラムのシーケンス演算処理が可能となるという効果も
得られる。
As described above, according to the present invention, not only can the data storage memory be effectively used, but also a sequence operation processing of a sequence program, which has not been possible in the past, becomes possible. The effect is also obtained.

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

【図1】本発明実施例の基本構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a basic configuration of an embodiment of the present invention.

【図2】本発明実施例の具体的な回路構成を示すブロッ
ク図である。
FIG. 2 is a block diagram showing a specific circuit configuration of the embodiment of the present invention.

【図3】本発明に関わるデータの識別名のフォーマット
を示す説明図である。
FIG. 3 is an explanatory diagram showing a format of a data identification name according to the present invention.

【図4】本発明に関わるシーケンスプログラム上のデー
タとメモリ上の格納位置との対応関係を示す説明図であ
る。
FIG. 4 is an explanatory diagram showing the correspondence between data on a sequence program and storage locations on a memory according to the present invention.

【図5】図2のCPU210の実行する処理手順を示す
フローチャートである。
FIG. 5 is a flowchart illustrating a processing procedure executed by a CPU 210 of FIG. 2;

【図6】図2のCPU210の実行する処理手順を示す
フローチャートである。
FIG. 6 is a flowchart illustrating a processing procedure executed by a CPU 210 of FIG. 2;

【図7】本発明の他の実施例のモニタ表示画面の一例を
示す説明図である。
FIG. 7 is an explanatory diagram showing an example of a monitor display screen according to another embodiment of the present invention.

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

100 プログラミング装置 110 CPU 130 表示器 200 プログラマブルコントローラ本体 210 CPU 220 BP 240 データメモリ REFERENCE SIGNS LIST 100 programming device 110 CPU 130 display 200 programmable controller main body 210 CPU 220 BP 240 data memory

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 内蔵のメモリに格納されたワードデータ
を、該ワードデータに対して割当てられた識別名により
アクセス可能なプログラマブルコントローラにおいて、 前記ワードデータの中の特定ビット位置を指示するパラ
メータのフォーマットを予め定めておき、 前記識別名に前記パラメータが付加されているか否かを
判定し、肯定判定の場合には、アクセス対象のデータが
前記ワードデータの中の特定のビットデータであると識
別し、否定判定の場合はアクセス対象のデータがワード
データ全体であると識別するデータ種類識別手段と、 該データ種類識別手段によりビットデータであるとの識
別結果が得られた場合には、前記パラメータの示すビッ
ト位置の前記メモリ上のビットデータに対してアクセス
を行うアクセス手段とを具えたことを特徴とするプログ
ラマブルコントローラ。
1. A programmable controller capable of accessing word data stored in a built-in memory by an identification name assigned to the word data, wherein a parameter format indicating a specific bit position in the word data is provided. It is determined in advance whether or not the parameter is added to the identifier, and in the case of an affirmative determination, it is determined that the data to be accessed is specific bit data in the word data. In the case of a negative determination, data type identification means for identifying that the data to be accessed is the entire word data, and when the identification result of bit data is obtained by the data type identification means, Access means for accessing the bit data in the memory at the bit position indicated by And a programmable controller.
JP30193991A 1991-11-18 1991-11-18 Programmable controller Expired - Lifetime JP2914538B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30193991A JP2914538B2 (en) 1991-11-18 1991-11-18 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30193991A JP2914538B2 (en) 1991-11-18 1991-11-18 Programmable controller

Publications (2)

Publication Number Publication Date
JPH05143119A JPH05143119A (en) 1993-06-11
JP2914538B2 true JP2914538B2 (en) 1999-07-05

Family

ID=17902932

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30193991A Expired - Lifetime JP2914538B2 (en) 1991-11-18 1991-11-18 Programmable controller

Country Status (1)

Country Link
JP (1) JP2914538B2 (en)

Also Published As

Publication number Publication date
JPH05143119A (en) 1993-06-11

Similar Documents

Publication Publication Date Title
JPH06289911A (en) Programmable controller and operating method thereof
JP2914538B2 (en) Programmable controller
US4447889A (en) Method for controlling display of output of a programmable device
JPH1145206A (en) Electronic device, memory starting method, and record medium recording memory starting program
JPS5998362A (en) Discriminating device of memory cassette
JP2776443B2 (en) Programmable controller
EP0545396A2 (en) Apparatus and method for information processing
JPS6142290B2 (en)
JP3168845B2 (en) Digital signal processor
JP3399709B2 (en) Data extraction method in programmable controller and programmable controller
JP3031732B2 (en) Image display control device
JP3416698B2 (en) Programmable controller
JP2900073B2 (en) Programmable controller system
JP2904488B2 (en) Character processor
JPH04215148A (en) Programmable controller
JPH07234707A (en) Address management method for programmable controller
JP2005190454A (en) Device for providing memory card content and method of content security
JPH05233319A (en) Register saving system
JPH02125303A (en) Programmable controller
JPS62162110A (en) Self diagnosing device for controller
JPH06110506A (en) Comment storage method for programmable controller
JPH04332003A (en) Programmable controller
JPS62221033A (en) Data processing system
JPS59142791A (en) Access control system of stack memory
JPH05233167A (en) Printer

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20080416

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

Free format text: PAYMENT UNTIL: 20090416

Year of fee payment: 10

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

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20100416

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

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20110416

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120416

Year of fee payment: 13