JPH01169505A - Processing method for input/output data for programmable controller - Google Patents

Processing method for input/output data for programmable controller

Info

Publication number
JPH01169505A
JPH01169505A JP32529887A JP32529887A JPH01169505A JP H01169505 A JPH01169505 A JP H01169505A JP 32529887 A JP32529887 A JP 32529887A JP 32529887 A JP32529887 A JP 32529887A JP H01169505 A JPH01169505 A JP H01169505A
Authority
JP
Japan
Prior art keywords
input
output data
data
identifier
direct access
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
JP32529887A
Other languages
Japanese (ja)
Other versions
JPH06105403B2 (en
Inventor
Keiichi Ito
啓一 伊藤
Hiroyuki Takahashi
裕幸 高橋
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 JP62325298A priority Critical patent/JPH06105403B2/en
Publication of JPH01169505A publication Critical patent/JPH01169505A/en
Publication of JPH06105403B2 publication Critical patent/JPH06105403B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • Y02T10/7241

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To shorten the processing time of a program by applying an exclusive identifier to direct access data. CONSTITUTION:Data inputted from an input apparatus 3 through an I/O module is operated by a program operation processor 4 and the operated result is outputted to an output apparatus 5 again through the I/O module. The processor 4 adds input data identified by identifiers 6, 7 to each other and the added result is outputted as output data identified by an identifier 8. An identifier 10 indicates that W24.0 is data in a direct access area and data corresponding to the identifier W24.0 are outputted from respective input apparatuses and stored in a direct access area. Thus, the direct access data are directly used by a program and the program processing time can be shortened.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はプログラマブルコントローラの入出力データ処
理方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an input/output data processing method for a programmable controller.

[従来の技術] 従来、プログラマブルコントローラ(以下、PCと称す
)の入出力データ処理方法としては、入出力装置のダイ
レクトアクセス領域に格納されたデータをダイレクトア
クセスしようとする場合、これらデータを一度メモリに
格納して各々のデータに対応した識別子を割り付け、そ
の後この識別子によって演算を行ない、その結果を再び
メモリを介して入出力装置のダイレクトアクセス領域に
格納するものが知られている。
[Prior Art] Conventionally, as a method for processing input/output data of a programmable controller (hereinafter referred to as a PC), when attempting to directly access data stored in a direct access area of an input/output device, these data are once stored in a memory. It is known that data is stored in a memory, an identifier corresponding to each piece of data is assigned, an operation is then performed using the identifier, and the result is stored again in the direct access area of the input/output device via memory.

[発明が解決しようとする問題点] ところがこのようなデータ処理方法は、−度識別子に割
り付けるという処理、すなわちメモリを介した処理を行
なわなければならないため、プログラミング上ユーザー
が煩わしさを感じ、さらに入出力処理に時間を要すると
いう問題点があつた。
[Problems to be Solved by the Invention] However, in this data processing method, the process of assigning the data to a -degree identifier, that is, the process must be performed via memory, makes programming a hassle for the user, and furthermore, There was a problem that input/output processing took time.

そこで本発明の目的は、上述した従来の問題点を解消し
、プログラミング上ユーザーがダイレクトアクセスデー
タな容易に使用でき、さらに入出力データ処理時間を短
縮したプログラマブルコントローラの入出力データ処理
方法を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide an input/output data processing method for a programmable controller that solves the above-mentioned conventional problems, allows users to easily use direct access data for programming, and shortens input/output data processing time. There is a particular thing.

[問題点を解決するための手段] そのために、本発明ではダイレクトアクセス領域に係る
命令に対して入出力データ領域の識別子が付加されるプ
ログラマブルコントローラの入出力データ処理方法であ
って、プログラムの処理命令が含む識別子によって、識
別子の示す入出力データ領域を判断し、当該入出力デー
タ領域がダイレクトアクセス領域であると判断されたと
き、識別子の示す入出力データ領域に人/出力データを
格納し、人/出力データに基づいてプログラムの処理命
令を実行し、当該処理の結果を識別子が指定している入
出力データ領域に格納することを特徴とする。
[Means for Solving the Problems] To this end, the present invention provides an input/output data processing method for a programmable controller in which an identifier of an input/output data area is added to an instruction related to a direct access area, which Determine the input/output data area indicated by the identifier based on the identifier included in the instruction, and when it is determined that the input/output data area is a direct access area, store the person/output data in the input/output data area indicated by the identifier, It is characterized by executing program processing instructions based on human/output data and storing the results of the processing in the input/output data area designated by the identifier.

[作 用] 以上の構成によれば、ダイレクトアクセスデータに専用
の識別子を与えることによって、入出力データ処理の内
、識別子を割り付けるという処理が省かれる。
[Operation] According to the above configuration, by giving a dedicated identifier to direct access data, the process of assigning an identifier in input/output data processing can be omitted.

[実施例] 以下、図面を参照して本発明の実施例を詳細に説明する
[Example] Hereinafter, an example of the present invention will be described in detail with reference to the drawings.

第1図は本発明の一実施例を示すプログラマブルコント
ローラの外観斜視図である。図において、1は入出力装
置としての入出カモジュールを示しており、本例の場合
8個の入出カモジュールによって構成され、これら各々
の入出カモジュールはCPuや入出力データメモリを有
して、ディジタル人/出力信号およびアナログ入/出力
信号の処理やパルスの計数等を行なう。2はプロセッサ
ユニットであり、プログラムに従って人出カモジュール
における入力データを読み出して演算し、その結果を出
力データとして入出力士ジュールに書き込む処理を行な
う。この結果、人出カモジュールに接続された各種被制
御機器か適切に制御される。また、人出カモジュール1
にはプログラミング装習を接続してプログラミングする
ことが可能である。
FIG. 1 is an external perspective view of a programmable controller showing an embodiment of the present invention. In the figure, 1 indicates an input/output module as an input/output device, and in this example, it is composed of eight input/output modules, and each of these input/output modules has a CPU and an input/output data memory. Processes digital input/output signals and analog input/output signals, counts pulses, etc. Reference numeral 2 denotes a processor unit, which reads input data in the turnout module according to a program, performs calculations, and writes the results to the input/output module as output data. As a result, various controlled devices connected to the attendance module are appropriately controlled. In addition, the number of people module 1
It is possible to connect and program a programming exercise.

第2図は第1図に示した人出カモジュール1内に展開さ
れる入出力データメモリの内、入出力データのダイレク
トアクセス領域を示すものであり、本発明に係る識別子
W 24.0〜W24.127が割り付けられた128
ワードの領域を形成する。入出力データのダイレクトア
クセス領域は、プログラムのスキャン時間に対応して入
出力データ変換の応答を短くする必要がある場合、高速
カウンタを用いた位置決めや流量制御等において、入出
力データ変換の応答遅れを最小にする場合、あるいは外
部入力割り込みを実行する場合などに用いられるもので
あり、通常の入出力データ領域とは別に設けられる。
FIG. 2 shows a direct access area for input/output data in the input/output data memory expanded in the people output module 1 shown in FIG. 128 assigned W24.127
Form a word region. The input/output data direct access area is used to reduce the response delay of input/output data conversion when it is necessary to shorten the response of input/output data conversion according to the scan time of the program, or when positioning using a high-speed counter or flow rate control. This area is used when minimizing the number of inputs, or when executing an external input interrupt, and is provided separately from the normal input/output data area.

第3図は本発明の一実施例に係るPCのシステム構成を
示すブロック図であり、人力機器3から入出カモジュー
ル1を介して取り込まれたデータをプログラム演算処理
4にて演算し、再び人出カモジュール1を介して出力機
器5に出力するシステム構成を示している。
FIG. 3 is a block diagram showing the system configuration of a PC according to an embodiment of the present invention, in which the data taken in from the human-powered device 3 via the input/output module 1 is calculated by the program calculation processing 4, and then A system configuration for outputting to an output device 5 via an output module 1 is shown.

プログラム演算処理4は、例えば同図に示すように、識
別子6および7で示される人力データの加算を行ない、
その結果を識別子8で示される出力データとする処理を
示す。この結果、識別子8に格納されたデータが出力機
器5に出力される。
For example, as shown in the figure, the program calculation process 4 adds the human data indicated by the identifiers 6 and 7,
The process of converting the result into output data indicated by identifier 8 is shown. As a result, the data stored in the identifier 8 is output to the output device 5.

第4図は本発明に係り、第3図に示す識別子がダイレク
トアクセス領域のデータであることを示す場合のプログ
ラムのブロック図であり、第5図は第4図に示したプロ
グラム処理を示すフローチャートである。
FIG. 4 is a block diagram of a program according to the present invention when the identifier shown in FIG. 3 indicates data in a direct access area, and FIG. 5 is a flowchart showing the program processing shown in FIG. 4. It is.

第4図を参照して、ダイレクトアクセス領域の入/出力
データを用いた場合の処理について説明する。
With reference to FIG. 4, processing when input/output data in the direct access area is used will be described.

第5図に示すステップS51において、プログラムにお
ける識別子lOおよび11がダイレクトアクセス領域を
示すものか否かを判断する。肯定判断の場合、すなわち
第4図に示すようにW24.0はダイレクトアクセス領
域のデータであることを示す識別子であるから、ステッ
プS52へ進み、識別子W 24.0に相当するデータ
を各々の識別子に対応する入力機器から第2図に示すダ
イレクトアクセス領域に格納する。次に、ステップS5
3で全ての入力データを格納したか否かの判断を行なう
。否定判断の場合、すなわち第4図に示すように識別子
W24.1で示される入力データの格納が終了していな
い場合は、ステップ551およびS52を繰り返し、全
ての人力データをダイレクトアクセス領域へ格納してス
テップS54へ進む。
In step S51 shown in FIG. 5, it is determined whether the identifiers 10 and 11 in the program indicate direct access areas. In the case of an affirmative determination, that is, as shown in FIG. 4, since W24.0 is an identifier indicating that the data is in the direct access area, the process advances to step S52, and the data corresponding to the identifier W24.0 is assigned to each identifier. is stored in the direct access area shown in FIG. 2 from the corresponding input device. Next, step S5
In step 3, it is determined whether all input data has been stored. If the determination is negative, that is, if the storage of the input data indicated by the identifier W24.1 is not completed as shown in FIG. The process then proceeds to step S54.

ステップS54では所定の演算あるいは処理を行ない、
例えば第4図で示す場合は加算を行ない、ステップS5
5でその結果を識別子W24.2で示されるダイレクト
アクセス領域へ格納する。
In step S54, a predetermined calculation or process is performed,
For example, in the case shown in FIG. 4, addition is performed and step S5
In step 5, the result is stored in the direct access area indicated by the identifier W24.2.

ステップ551で否定判断の場合はステップS57へ進
み、通常の入出力データアクセスに係る演算処理を行な
う。ステップS55あるいはS57を終了するとステッ
プ556へ進み、識別子W24.2の内容、あるいはス
テップ557の結果を出力機器へ出力する。
If the determination in step 551 is negative, the process advances to step S57, where arithmetic processing related to normal input/output data access is performed. When step S55 or S57 is completed, the process proceeds to step 556, and the content of the identifier W24.2 or the result of step 557 is output to the output device.

[発明の効果] 以上の説明から明らかなように、ダイレクトアクセスデ
ータに専用の識別子を与えることによって、入出力デー
タ処理の内、識別子を割り付けるという処理が省かれる
[Effects of the Invention] As is clear from the above description, by providing a dedicated identifier to direct access data, the process of assigning an identifier in input/output data processing can be omitted.

この結果、ダイレクトアクセス用のデータをプログラム
で直接用いることができ、プログラムの処理時間が短縮
されるという効果が得られた。
As a result, the data for direct access can be used directly in a program, and the processing time of the program can be reduced.

また、他の識別子を用いたのと同様の方法でダイレクト
アクセスに係るプログラミングを行なうことができ、ユ
ーザーにとってプログラミング上の煩わしさが減少する
という効果も得られた。
Furthermore, programming related to direct access can be performed in the same manner as using other identifiers, and the user has the effect of reducing the troublesomeness of programming.

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

第1図は本発明の一実施例に係るpcの外観斜視図、 第2図は実施例におけるダイレクトアクセスの識別子と
データ領域の対応を示す概念図、第3図は実施例におけ
るPCのシステム構成を示すブロック図、 第4図は本発明の一実施例を示すプログラムのブロック
図、 第5図は本発明の一実施例を示すプログラムのフローチ
ャートである。 1・・・人出カモジュール、 2・・・プロセッサユニット、 3・・・人力機器、 4・・・プログラム演算処理、 5・・・出力機器、 6.7,8.to、11.12・・・識別子、9・・・
PC内部。 塀
Fig. 1 is an external perspective view of a PC according to an embodiment of the present invention, Fig. 2 is a conceptual diagram showing the correspondence between direct access identifiers and data areas in the embodiment, and Fig. 3 is a system configuration of the PC in the embodiment. FIG. 4 is a block diagram of a program showing an embodiment of the present invention. FIG. 5 is a flow chart of a program showing an embodiment of the present invention. DESCRIPTION OF SYMBOLS 1...Person output module, 2...Processor unit, 3...Manpower equipment, 4...Program calculation processing, 5...Output device, 6.7,8. to, 11.12... identifier, 9...
Inside the PC. wall

Claims (1)

【特許請求の範囲】 ダイレクトアクセス領域に係る命令に対して入出力デー
タ領域の識別子が付加されるプログラマブルコントロー
ラの入出力データ処理方法であって、 プログラムの処理命令が含む識別子によって、該識別子
の示す入出力データ領域を判断し、当該入出力データ領
域がダイレクトアクセス領域であると判断されたとき、
前記識別子の示す入出力データ領域に入/出力データを
格納し、該入/出力データに基づいて前記プログラムの
処理命令を実行し、 当該処理の結果を前記識別子が指定している入出力デー
タ領域に格納する ことを特徴とするプログラマブルコントローラの入出力
データ処理方法。
[Scope of Claim] An input/output data processing method for a programmable controller in which an identifier of an input/output data area is added to an instruction related to a direct access area, the method comprising: When determining the input/output data area and determining that the input/output data area is a direct access area,
Store input/output data in the input/output data area indicated by the identifier, execute processing instructions of the program based on the input/output data, and output the results of the processing to the input/output data area specified by the identifier. A programmable controller input/output data processing method characterized by storing input/output data in a programmable controller.
JP62325298A 1987-12-24 1987-12-24 Input / output data processing method of programmable controller Expired - Fee Related JPH06105403B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62325298A JPH06105403B2 (en) 1987-12-24 1987-12-24 Input / output data processing method of programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62325298A JPH06105403B2 (en) 1987-12-24 1987-12-24 Input / output data processing method of programmable controller

Publications (2)

Publication Number Publication Date
JPH01169505A true JPH01169505A (en) 1989-07-04
JPH06105403B2 JPH06105403B2 (en) 1994-12-21

Family

ID=18175255

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62325298A Expired - Fee Related JPH06105403B2 (en) 1987-12-24 1987-12-24 Input / output data processing method of programmable controller

Country Status (1)

Country Link
JP (1) JPH06105403B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57164303A (en) * 1981-04-01 1982-10-08 Toshiba Corp Programmable controller
JPS61161507A (en) * 1985-01-11 1986-07-22 Toshiba Mach Co Ltd Direct input/output system of programmable controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57164303A (en) * 1981-04-01 1982-10-08 Toshiba Corp Programmable controller
JPS61161507A (en) * 1985-01-11 1986-07-22 Toshiba Mach Co Ltd Direct input/output system of programmable controller

Also Published As

Publication number Publication date
JPH06105403B2 (en) 1994-12-21

Similar Documents

Publication Publication Date Title
JPH01169505A (en) Processing method for input/output data for programmable controller
JPS60217448A (en) Data input system
JPS60237503A (en) High-speed processing system of sequence controller
JP2532072Y2 (en) Pattern generator
JPS6148009A (en) Programmable controller
JPS63116210A (en) Input/output control system for sequence controller
JPH0242507A (en) Program control device
JPH05224713A (en) Display method for programmable controller
JPH06259116A (en) Programmable controller
JPH06110693A (en) Fuzzy controlling device
JPS62166430A (en) Data processing system
JPS58169240A (en) Voice output processing system
JPH03255535A (en) Central processing unit
JPS60101609A (en) Robot controller
JPH05118886A (en) Measurement system
JPS59106044A (en) Programming device of programmable controller
JPH06348241A (en) Information processor
JPH01193963A (en) Command acquisition controller
JPH0844905A (en) Device and method for element conversion
JPH047739A (en) Controlling system for instruction executing time
JPS59100307U (en) programmable controller
JPH03246602A (en) Programmable controller
JPH01217658A (en) Access system for channel control data
JPH01222328A (en) Data processing system
JPS6224325A (en) Arithmetic processor

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

LAPS Cancellation because of no payment of annual fees