JPS63221401A - Function setting system for program controller - Google Patents

Function setting system for program controller

Info

Publication number
JPS63221401A
JPS63221401A JP5567587A JP5567587A JPS63221401A JP S63221401 A JPS63221401 A JP S63221401A JP 5567587 A JP5567587 A JP 5567587A JP 5567587 A JP5567587 A JP 5567587A JP S63221401 A JPS63221401 A JP S63221401A
Authority
JP
Japan
Prior art keywords
memories
domain
variable
independent
information
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
JP5567587A
Other languages
Japanese (ja)
Inventor
Daiji Uni
宇丹 大二
Yasuharu Kudo
工藤 保晴
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 JP5567587A priority Critical patent/JPS63221401A/en
Publication of JPS63221401A publication Critical patent/JPS63221401A/en
Pending legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

PURPOSE:To prevent the deterioration of resolution despite the extension of domain by providing the prescribed number of memories for coordinate information and allocating these memories successively to the domains of independent variables or subordinate variables. CONSTITUTION:For the broken line information 3a, 16 memories 301-316 are provided so that the X direction information and the Y direction information serving as the subordinate variable information can be stored in ten areas respectively. Each of these memories can define independently the broken line functions #1-#16. The independent variable (x) and the subordinate variable (y) show the time (minute) and the temperature ( deg.C) respectively. A single broken line is defined every three of memories 301-316 for arithmetic processing. This means that three memories are allocated to the domain of (x). Thus the information can be set in shorter time intervals with more number of memories allocated to the (x) domain. Thus it is possible to perform the fine control despite the extension of domain and with no deterioration of resolution.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、独立変数および従属変数に関する複数の座
標データを記憶させ、これらの座標データを連続する関
数上の点と見做し、一方の変数を指定してこれに対応す
る他方の値を算出してプログラム制御に利用するプログ
ラムコントローラの関数設定方式に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] This invention stores a plurality of coordinate data regarding independent variables and dependent variables, regards these coordinate data as points on a continuous function, and The present invention relates to a function setting method for a program controller that specifies a variable and calculates another value corresponding to the variable to be used for program control.

[従来の技術] 第5図はこの種の従来のプログラムコントローラの概略
構成図であり、図中(1)はCPUユニット、(2)は
演算処理部、(3)は折線関数の座標データを格納する
折線データ格納用メモリ、(4)はユーザーが作成した
プログラムを格納するユーザープログラムメモリ、(5
)はユーザーがプログラムを作成したり、座標データを
人力したりする周辺装置である。
[Prior Art] Fig. 5 is a schematic configuration diagram of this type of conventional program controller. (4) is a user program memory for storing programs created by the user; (5) is a memory for storing broken line data;
) is a peripheral device for users to create programs and enter coordinate data manually.

以下、動作について説明する。周辺装置(5)を介して
作成したプログラムはユーザープログラムメモリ(4)
に格納され、独立変数X、および従属変数yに関する座
標データはデータメモリ(3)に格納される。そして、
演算処理部(2)がユーザープログラムメモリ(4)の
ユーザープログラムに従って演算処理を実行する過程で
折線データが必要になったとき、折線データ可能用メモ
リ(3)のデータを読み出゛して直線補間法等による演
算処理を実行し、さらに、得られたデータを用いてプロ
グラム制御を行う。
The operation will be explained below. Programs created via the peripheral device (5) are stored in the user program memory (4)
The coordinate data regarding the independent variable X and the dependent variable y is stored in the data memory (3). and,
When the arithmetic processing unit (2) needs polygonal line data in the process of executing arithmetic processing according to the user program stored in the user program memory (4), it reads the data from the polygonal data storage memory (3) and generates a straight line. It executes arithmetic processing using interpolation and the like, and further performs program control using the obtained data.

第6図はかかる演算処理に用いる折線関数を示したもの
で、独立変数Xが時間(分)を、従属変数yが温度(1
)をそれぞれ表わしており、その設定手順としては、3
47図に示すように、先ず、ステップ(101)にて周
辺装置(5)により接点の座標(0,0) 、 (10
,20) 、・・・(80,30) 、 (90,0)
を設定すると、次のステップ(102)にて演算処理部
(2)がこれらのデータを折線データ格納用メモリ(3
)に転送して設定操作を終了する。
Figure 6 shows a polygonal line function used in such arithmetic processing, where the independent variable X represents time (minutes), and the dependent variable y represents temperature (1
), and the setting procedure is 3.
As shown in FIG.
,20) ,...(80,30) ,(90,0)
Once set, in the next step (102), the arithmetic processing unit (2) stores these data in the memory for storing line data (3).
) to complete the setting operation.

この設定を終了し、ユーザープログラムを実行する段階
で設定した独立変数Xに対応する従属変数yが必要にな
れば、設定値をそのまま読み出すが、設定した以外の、
例えば、45分に対応する温度が必要になった場合には
45分を挟む両側の座標から直線補間法で75℃を求め
る。
After completing this setting and executing the user program, if the dependent variable y corresponding to the set independent variable
For example, if a temperature corresponding to 45 minutes is required, 75° C. is determined by linear interpolation from the coordinates on both sides of 45 minutes.

すなわち、演算処理部(2)は複数の座標データを連続
する関数上の点と見做して独立変数Xを指定してこれに
対応する従属変数yの値を演算してプログラム制御に用
いている。
That is, the arithmetic processing unit (2) regards the plurality of coordinate data as points on a continuous function, specifies the independent variable X, calculates the value of the corresponding dependent variable y, and uses it for program control. There is.

[発明が解決しようとする問題点] 上述した従来のプログラムコントローラにおいては、従
属変数Xとして僅かに1o点または20点しか定義でき
ず、関数の変域が拡がった場合に分解能が低下してしま
うという問題点があった。
[Problems to be solved by the invention] In the conventional program controller described above, only 10 points or 20 points can be defined as the dependent variable X, and the resolution decreases when the range of the function expands. There was a problem.

この発明は上記の問題点を解決するためになされたもの
で、関数の変域が拡がった場合でも分解能の低下を防ぐ
ことのできるプログラムコントローラの関数設定方式を
得ることを目的とする。
The present invention has been made to solve the above-mentioned problems, and it is an object of the present invention to provide a function setting method for a program controller that can prevent a decrease in resolution even when the range of a function is expanded.

[問題点を解決するための手段] この発明は、所定数の座標データを記憶させることので
きる複数のメモリを設け、これらのメモリを独立変数お
よび従属変数のうちのいずれか一方の変域に順次割当て
て使用するようにしたことを特徴としている。
[Means for Solving the Problems] This invention provides a plurality of memories capable of storing a predetermined number of coordinate data, and stores these memories in the domain of either an independent variable or a dependent variable. It is characterized by being allocated and used sequentially.

[作用] この発明においては、それぞれ所定数の座標データを設
定して折線関数を定義することのできる複数のメモリを
独立変数および従属変数のいずれか一方の変域に順次割
当てているので、変域が拡がっても分解能の低下を防ぐ
ことができる。
[Operation] In this invention, since a plurality of memories each capable of setting a predetermined number of coordinate data and defining a line function are sequentially allocated to the domain of either the independent variable or the dependent variable, Even if the area expands, it is possible to prevent a decrease in resolution.

[実施例] 第1図はこの発明を実施するための折線データ格納用メ
モリ(3a)の構成例であり、独立変数データとしての
X方向データを10箇所に格納でき、従属変数データと
−てのX方向データもまた10箇所に格納できる16個
のメモリ(301)〜(316)を備えている。これら
のメモリ(301)〜(316)はそれぞれ独立に折線
間数#1〜#16を定義し得るもので、説明の簡単化の
ために、3個のメモリ(3011〜(303)に1つの
折線関数を定義した例を第2図に示す。これは、独立変
数Xの変域に3個のメモリを割当てたもので、第6図に
示した従来の方式では変域を180分としたとき20分
毎のデータしか設定できなかフたが、ここでは10分毎
にデータを設定することが可能になっている。
[Example] Fig. 1 shows an example of the configuration of a memory for storing line data (3a) for carrying out the present invention, in which X-direction data as independent variable data can be stored in 10 locations and It is also provided with 16 memories (301) to (316) that can store X-direction data in 10 locations. These memories (301) to (316) can independently define the number of line intervals #1 to #16, and for simplicity of explanation, one memory is used for three memories (3011 to (303)). An example of defining a broken line function is shown in Figure 2. In this example, three memories are allocated to the domain of the independent variable X. In the conventional method shown in Figure 6, the domain is set to 180 minutes. At the time, you could only set data every 20 minutes, but now you can set data every 10 minutes.

このことは、独立変数Xの変域により多くのメモリを割
当てたとすれば、従来方式で20分ないし30分刻みで
しかデータ設定できなかったものを、2分ないし3分刻
みでデータ設定できることになり、この結果、変域が拡
がった場合に分解能を低下させずに、細かな制御をする
ことができる。
This means that if more memory is allocated to the domain of the independent variable As a result, when the range is expanded, fine control can be performed without reducing the resolution.

第3図は第2図に示した折線関数の設定手順を示したも
ので、ステップ(111)にて折線関数#1の座標デー
タを、ステップ(112)にて折線関数#2の座標デー
タを、さらに、ステップ(113)にて折線関数#3を
それぞれ設定すると、ステップ(114)で演算処理部
(2)がメモリ(301) 、 (302) 。
Figure 3 shows the procedure for setting the line function shown in Figure 2. In step (111), the coordinate data of line function #1 is set, and in step (112), the coordinate data of line function #2 is set. , Further, when the broken line function #3 is set respectively in step (113), the arithmetic processing unit (2) stores the memory (301) and (302) in step (114).

(303) にこれらの座標データを転送する。(303) Transfer these coordinate data to.

次に、第4図はメモリ(301) 、 (302) 、
 (303)にそれぞれ設定された座標データを出力す
る場合の演算処理部(2)の処理手順を示したもので、
演算処環部(2)は折線関数実行用命令、すなわち、独
立変数Xを指定したとき対応する従属変数yの値を出力
する命令を有しており、ユーザープログラムによってこ
の命令が実行されると、先ず、ステップ(121)にて
指定されたXがメモリ(301)の折線間数#1の領域
か否かを判定し、折線関数#1の領域であればステップ
(122)にて折線関数#1を選択してステップ(12
3)にて折線関数の実行を命令する。一方、ステップ(
121)の判定により指定されたXがメモリ(301)
の折線間数#1の領域外であるときステップ(124)
で折線関数#2の領域か否かを判定し、その領域であれ
ばステップ(125)にて折線関数#2を選択して折線
関数の実行を命令し、折線間数#2の領域外であればス
テップ(12B)にて折曲関数#3を選択して折線関数
の実行を命令する。
Next, FIG. 4 shows the memories (301), (302),
(303) shows the processing procedure of the arithmetic processing unit (2) when outputting the coordinate data set respectively.
The arithmetic processing unit (2) has a linear function execution instruction, that is, an instruction to output the value of the corresponding dependent variable y when an independent variable X is specified, and when this instruction is executed by the user program, , First, in step (121), it is determined whether or not the specified X is in the area with the number of broken lines #1 in the memory (301), and if it is the area with the broken line function #1, in step (122) Select #1 and step (12
3) commands execution of the polygonal line function. On the other hand, step (
121), the specified X is the memory (301)
Step (124) when it is outside the area of the number of broken lines #1
It is determined whether or not the area is in the area of the number of broken line functions #2, and if it is in the area, the line function #2 is selected in step (125) and the execution of the broken line function is commanded. If so, in step (12B), bending function #3 is selected and the execution of the bending function is commanded.

かくして、この実施例によれば複数メモリを独立変数の
変域に割当てているので従来方式では不可能であった高
い分解能にて細かな制御ができる。
Thus, according to this embodiment, since multiple memories are allocated to the domain of the independent variable, fine control with high resolution, which was impossible with the conventional method, is possible.

なお上記実施例では複数メモリを独立変数の変域に割当
てたが、場合によっては従属変数の変域に割当てるよう
にしてもよい。
In the above embodiment, a plurality of memories are allocated to the domain of the independent variable, but in some cases, the memory may be allocated to the domain of the dependent variable.

[発明の効果] 以上の説明によって明らかなように、この発明によれば
、所定数の座標データを設定することのできる複数メモ
リを設け、これらのメモリを独立変数および従属変数の
いずれか一方の変域に順次割当てて折線関数を設定して
いるので、変域が拡がった場合でも分解能の低下を防い
で細かな制御を行なうことができる。
[Effects of the Invention] As is clear from the above description, according to the present invention, a plurality of memories capable of setting a predetermined number of coordinate data are provided, and these memories are used to store either the independent variable or the dependent variable. Since the polygonal line function is set by sequentially allocating to the domain, even if the domain expands, it is possible to prevent the resolution from deteriorating and perform fine control.

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

第1図はこの発明を実施するためのメモリの構成図、第
2図はこのメモリに対する折線関数の設定例を示す線図
、第3図はこのメモリに対するデータ設定手順を示すフ
ローチャート、第4図はこのメモリからのデータ読出し
手順を示すフローチャート、第5図は従来のプログラム
コントローラの概略構成図、第6図は同装置のメモリに
対する折線関数の設定例を示す線図、第7図はこのメそ
りに対するデータ設定手順を示すフローチャートである
。 図において、 (1)はCPUユニット、 (2)は演算処理部、(3
a)は折線データ格納用メモリ、 (4)はユーザープログラムメモリ、 (5)は周辺装置。 なお、各図中同一符号は同−又は相当部分を示す。 代  理  人      大  岩  増  雄慧1
図 第2図 第3図
FIG. 1 is a configuration diagram of a memory for carrying out the present invention, FIG. 2 is a line diagram showing an example of setting a broken line function for this memory, FIG. 3 is a flowchart showing a data setting procedure for this memory, and FIG. 4 is a flowchart showing the procedure for reading data from this memory, FIG. 5 is a schematic configuration diagram of a conventional program controller, FIG. 6 is a line diagram showing an example of setting a polygonal function for the memory of the same device, and FIG. 7 is a diagram showing this method. 3 is a flowchart showing a data setting procedure for warping. In the figure, (1) is the CPU unit, (2) is the arithmetic processing unit, and (3) is the CPU unit.
a) is a memory for storing line data, (4) is a user program memory, and (5) is a peripheral device. Note that the same reference numerals in each figure indicate the same or corresponding parts. Agent Yukei Masu Oiwa 1
Figure 2 Figure 3

Claims (2)

【特許請求の範囲】[Claims] (1)独立変数および従属変換に関する複数の座標デー
タを記憶させ、これらの座標データを連続する関数上の
点と見做して、前記独立変数および従属変数のいずれか
一方を指定してこれに対応する他方の値を演算してプロ
グラム制御に利用するプログラムコントローラにおいて
、所定数の前記座標データを記憶させることのできる複
数のメモリを設け、こらのメモリを前記独立変数および
従属変数のうちのいずれか一方の変域に順次割当てて使
用することを特徴とするプログラムコントローラの関数
設定方式。
(1) Store a plurality of coordinate data regarding independent variables and dependent transformations, consider these coordinate data as points on a continuous function, and specify either the independent variable or dependent variable to this point. A program controller that calculates the corresponding other value and uses it for program control is provided with a plurality of memories capable of storing a predetermined number of the coordinate data, and these memories are used to calculate one of the independent variables and dependent variables. A function setting method for a program controller characterized in that functions are sequentially assigned to one of the domains and used.
(2)前記メモリとして10個の独立変数と10個の従
属変数とによりそれぞれ独立した折線関数を設定できる
ものを16個設けたことを特徴とする特許請求の範囲第
1項記載のプログラムコントローラの関数設定方式。
(2) The program controller according to claim 1, characterized in that 16 memories are provided in which independent polygonal functions can be set using 10 independent variables and 10 dependent variables. Function setting method.
JP5567587A 1987-03-11 1987-03-11 Function setting system for program controller Pending JPS63221401A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5567587A JPS63221401A (en) 1987-03-11 1987-03-11 Function setting system for program controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5567587A JPS63221401A (en) 1987-03-11 1987-03-11 Function setting system for program controller

Publications (1)

Publication Number Publication Date
JPS63221401A true JPS63221401A (en) 1988-09-14

Family

ID=13005456

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5567587A Pending JPS63221401A (en) 1987-03-11 1987-03-11 Function setting system for program controller

Country Status (1)

Country Link
JP (1) JPS63221401A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59100905A (en) * 1982-12-01 1984-06-11 Omron Tateisi Electronics Co Program control device
JPS60258603A (en) * 1984-06-06 1985-12-20 Chino Works Ltd Program signal producer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59100905A (en) * 1982-12-01 1984-06-11 Omron Tateisi Electronics Co Program control device
JPS60258603A (en) * 1984-06-06 1985-12-20 Chino Works Ltd Program signal producer

Similar Documents

Publication Publication Date Title
WO1986001012A1 (en) System for controlling a programmable controller
JPH1115960A (en) Data processor
JPS63221401A (en) Function setting system for program controller
US6408366B1 (en) Interface device, method and monitoring system for monitoring the status of a hardware device
JPS62117001A (en) Input and output processing method for programmable sequence controller
JP3007923B2 (en) Data transfer method and system
JPH07271412A (en) Control system for programmable controller
JPH03288906A (en) Instruction executing system for pc
JPH04138582A (en) Single instruction type parallel computer
JPS626358A (en) Common graphic library system
JP3254402B2 (en) Data merge transfer device
JPH03131949A (en) Input/output pass selection control system
JPH0378035A (en) Task execution controller
JPH0317707A (en) Correction system for program command value in numerical controller
JPH0751610Y2 (en) Programmable controller with override function
JPH05224711A (en) Control method for programmable controller
JPH01169607A (en) Programmable controller
JPH0830466A (en) Multitask switching control method
JPH0337719A (en) System for expanding master file on main storage device
JPS63170703A (en) Loader command processing device
JPS6318401A (en) Programming device for programmable controller
JPH04181324A (en) Access system for repetitive data structure
JPH02181831A (en) Program control method
JPH0328905A (en) Input/output transfer method for programmable controller
JPH04245538A (en) Information processor