JPH1185225A - Program preparation device - Google Patents

Program preparation device

Info

Publication number
JPH1185225A
JPH1185225A JP23593197A JP23593197A JPH1185225A JP H1185225 A JPH1185225 A JP H1185225A JP 23593197 A JP23593197 A JP 23593197A JP 23593197 A JP23593197 A JP 23593197A JP H1185225 A JPH1185225 A JP H1185225A
Authority
JP
Japan
Prior art keywords
program
input
key
instruction
transition condition
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
JP23593197A
Other languages
Japanese (ja)
Inventor
Masahiro Matsushima
正弘 松島
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 JP23593197A priority Critical patent/JPH1185225A/en
Publication of JPH1185225A publication Critical patent/JPH1185225A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To attain efficiency of an input operation without having an operator to be conscious of order of input of a program and at the same time to prevent a mistake in a program generation. SOLUTION: A process shape instructed by an operation key 46 of a program preparation device 40A is operated by a micro processor 41 in accordance with a specified procedure and stored in a process form memory 44. Contents of the process form memory 44 are read out by a batch generation means of a command in the process form 2, a process driving command and a process operation start command corresponding to the process form are generated and, at the same time, are converted into a pseudo process stepping program and transferred to a sequence program memory 63 of a programmable controller 60A by generating a pseudo command for indicating an input position of a transfer condition command a pseudo command for indicating an input position of an output driving program.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、プログラマブル
コントローラ(以下PLCという)に対するプログラム
作成装置に関するものであって、特にSFC(Sequ
ential Function Chart)と呼ば
れる工程歩進形プログラム作成の容易化を図るものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for creating a program for a programmable controller (hereinafter referred to as PLC), and more particularly to an SFC (Sequence).
This is intended to facilitate the creation of a step-increment type program called an "entral Function Chart".

【0002】[0002]

【従来の技術】SFC方式のプログラムについては特開
平9−6419号公報に開示された「プログラム作成装
置」で詳しく説明されているが、基本的にはシングルフ
ローのプログラム、選択分岐・合流に対するプログラ
ム、並進分岐・合流に対するプログラムについて具体的
な方法が明示されなければならない。以下これらについ
て、従来のプログラム作成方法を説明する。
2. Description of the Related Art SFC type programs are described in detail in "Program Creation Apparatus" disclosed in Japanese Patent Application Laid-Open No. 9-6419. In addition, a specific method for the program for translational branching and merging must be specified. In the following, a conventional program creation method will be described.

【0003】(1・1)従来技術の構成の説明(選択分
岐・合流の場合) 図17は、一般に公知のSFC図において選択分岐・選
択合流と呼ばれるものを例示したものである。同図中、
1は工程番号をS0とした初期工程であり、PLCの電
源投入時に活性化される。2はPLCの入力X0がON
のときに導通する移行条件、3はPLCの入力X4がO
FFのときに導通する移行条件である。
(1.1) Description of the configuration of the prior art (in the case of selective branching / merging) FIG. 17 illustrates an example of what is generally called selective branching / selecting merging in a publicly known SFC diagram. In the figure,
Reference numeral 1 denotes an initial process in which the process number is set to S0, which is activated when the power of the PLC is turned on. 2 is PLC input X0 ON
3 is a transition condition for conducting when the input X4 of the PLC is O
This is a transition condition for conducting at the time of FF.

【0004】4は工程番号がS10の工程であり、初期
工程1が活性で、且つ、移行条件2及び移行条件3が共
に導通しているときに活性化されると共に、移行元の初
期工程1を不活性にする。5は工程4が活性であるとき
に動作するPLCの出力Y0に対する出力、6はPLC
の入力X1がONのときに導通する移行条件。
Reference numeral 4 denotes a process having a process number S10, which is activated when the initial process 1 is active, and both the transition condition 2 and the transition condition 3 are conducting, and the initial process 1 as the source of the transition. Inactive. 5 is an output for the output Y0 of the PLC operating when the step 4 is active, and 6 is an output for the PLC.
Transition condition for conducting when the input X1 is ON.

【0005】7は工程番号をS11とした工程であり、
工程4が活性で移行条件6が導通しているときに活性化
されると共に、移行元の工程4を不活性にする。8は工
程7が活性であるときに動作するPLCの出力Y1に対
する出力、9はPLCの入力X2がONのときに導通す
る移行条件。
[0005] Step 7 is a step having a step number of S11,
The step 4 is activated when the transition condition 6 is conducting while the transition condition 6 is conducting, and deactivates the transition source step 4. 8 is an output corresponding to the output Y1 of the PLC which operates when the step 7 is active, and 9 is a transition condition for conducting when the input X2 of the PLC is ON.

【0006】10は工程番号がS12の工程であり、工
程7が活性で移行条件9が導通しているときに活性化さ
れると共に、移行元の工程7を不活性にする。11は工
程10が活性であるときに動作するPLCの出力Y2に
対する出力、12はPLCの入力X3がONのときに導
通する移行条件である。
Reference numeral 10 denotes a process whose process number is S12, which is activated when the process 7 is active and the transfer condition 9 is conductive, and inactivates the process 7 as the transfer source. Reference numeral 11 denotes an output corresponding to the output Y2 of the PLC which operates when the step 10 is active, and reference numeral 12 denotes a transition condition for conducting when the input X3 of the PLC is ON.

【0007】また、13はPLCの入力X4がONのと
きに導通する移行条件、14はPLCの入力X0がOF
Fのときに導通する移行条件、15は工程番号がS20
の工程であり、初期工程1が活性で、移行条件13およ
び移行条件14が共に導通しているときに活性化される
と共に、移行元の初期工程1を不活性にする。16は工
程15が活性であるときに動作するPLCの出力Y3に
対する出力。17はPLCの入力X5がONのときに導
通する移行条件。
Further, 13 is a transition condition for conducting when the input X4 of the PLC is ON, and 14 is a transitional condition when the input X0 of the PLC is OFF.
The transition condition for conducting at the time of F, where the process number is S20
The activation is performed when the initial step 1 is active and the transition condition 13 and the transition condition 14 are both conducting, and deactivates the initial step 1 of the transition source. 16 is an output corresponding to the output Y3 of the PLC which operates when the step 15 is active. Reference numeral 17 denotes a transition condition for conducting when the input X5 of the PLC is ON.

【0008】18は工程番号がS21の工程であり、工
程15が活性で移行条件17が導通しているときに活性
化され、同時に工程15を不活性にする。19は工程1
8が活性であるときに動作するPLCの出力Y4に対す
る出力、20はPLCの入力X6がONのときに導通す
る移行条件、21はPLCの入力X7がONのときに導
通する移行条件。
Reference numeral 18 denotes a process whose process number is S21. The process 18 is activated when the process 15 is active and the transition condition 17 is conducting, and at the same time, the process 15 is made inactive. 19 is process 1
The output corresponding to the output Y4 of the PLC that operates when the signal 8 is active, the transition condition 20 that conducts when the input X6 of the PLC is ON, and the transition condition 21 that conducts when the input X7 of the PLC is ON.

【0009】22は工程番号がS30の工程であり、工
程10が活性で移行条件12が導通しているとき、また
は工程18が活性で移行条件20あるいは移行条件21
が導通しているときに活性化されると共に、移行元の工
程10または工程18を不活性にする。23はPLCの
入力X10がONのときに導通する駆動条件、24は工
程22が活性であるときに駆動条件23によって動作す
るPLCの出力Y5に対する出力、25はPLCの入力
X11がONのときに導通する移行条件であり、次段に
接続された工程への移行条件となる。
Reference numeral 22 denotes a step having a step number S30, when the step 10 is active and the transition condition 12 is conducting, or when the step 18 is active and the transition condition 20 or the transition condition 21 is active.
Is activated when is conducted, and deactivates the source step 10 or 18. 23 is a drive condition for conducting when the input X10 of the PLC is ON, 24 is an output for the output Y5 of the PLC operated according to the drive condition 23 when the process 22 is active, and 25 is a drive when the input X11 of the PLC is ON. This is a transition condition for conduction, and is a transition condition for a process connected to the next stage.

【0010】図18は、図17に示した選択分岐・選択
合流を行うSFC図のプログラムリストの一例を示した
ものである。このプログラムリストは従来のプログラム
作成装置におけるキー操作の手順に準拠したものであ
る。図18において、26は工程動作開始命令STLに
対応する操作キー、27は工程番号に対応するシンボル
Sに対する操作キー、28は工程番号を入力するための
数値キーであり、一般に0から9の10進数値に対応す
る数値キーが準備されている。29は操作キー26・2
7・28による一連のSTL_S0命令を有効にするた
めの実行キーである。
FIG. 18 shows an example of a program list of the SFC diagram for performing the selective branch / selection merge shown in FIG. This program list complies with the key operation procedure in the conventional program creation device. In FIG. 18, reference numeral 26 denotes an operation key corresponding to the step operation start command STL; 27, an operation key for the symbol S corresponding to the step number; 28, a numerical key for inputting the step number; Numeric keys corresponding to the hexadecimal values are prepared. 29 is an operation key 26.2
This is an execution key for validating a series of STL_S0 instructions according to 7.28.

【0011】以下同様に順次プログラムされるが、30
は移行条件開始の常開接点命令LD、31は移行条件の
直列常閉接点命令ANI、32は工程駆動命令SET、
33は出力命令OUT、34は移行条件の並列常開接点
命令OR、35はPLCの入力に対応するシンボルXに
対する操作キー、36はPLCの出力に対応するシンボ
ルYに対する操作キーである。
Hereinafter, the program is sequentially performed in the same manner.
Is a normally open contact command LD for starting a transition condition, 31 is a series normally closed contact command ANI for a transition condition, 32 is a process drive command SET,
Reference numeral 33 denotes an output command OUT, reference numeral 34 denotes a parallel normally open contact command OR for transition conditions, reference numeral 35 denotes an operation key for a symbol X corresponding to the input of the PLC, and reference numeral 36 denotes an operation key for a symbol Y corresponding to the output of the PLC.

【0012】500は図17に示す初期工程1に対応す
る工程動作開始命令の入力操作、501は図17に示す
工程4に対応する移行条件2、移行条件3および工程駆
動命令の入力操作、502は図17に示す工程15に対
する移行条件13、移行条件14および工程駆動命令の
入力操作、503は図17に示す工程4に対応する工程
動作開始命令、内部で駆動される出力5および移行条件
6の入力操作と次工程7に対応する工程動作開始命令の
入力操作、504は図17に示す工程15に対応する工
程動作開始命令、内部で駆動される出力16および移行
条件17の入力操作と次工程18に対応する工程駆動命
令の入力操作、505は図17に示す工程7に対応する
工程動作開始命令、内部で駆動される出力8および移行
条件9の入力操作と次工程10に対応する工程駆動命令
の入力操作、506は図17に示す工程18に対応する
工程動作開始命令と内部で駆動される出力19に対応す
る入力操作、507は図17に示す工程10に対応する
工程動作開始命令と内部で駆動される出力11の入力操
作、508は図17に示す工程22を構成する工程動作
開始命令と駆動条件23と出力24と次工程への移行条
件25の入力操作、509は図17に示す工程10に対
応する工程動作開始命令と移行条件12の入力操作と合
流工程22に対応する工程動作開始命令の入力操作、5
10は図17に示す工程18に対応する工程動作開始命
令と移行条件20と移行条件21の入力操作と合流工程
22に対応する工程駆動命令の入力操作である。
Numeral 500 denotes an input operation of a process operation start instruction corresponding to the initial process 1 shown in FIG. 17, 501 denotes an input operation of the shift condition 2, shift condition 3 and the process drive command corresponding to the process 4 shown in FIG. 17 is an input operation of the transition condition 13, the transition condition 14 and the step driving command for the step 15 shown in FIG. 17, 503 is a process operation start command corresponding to the step 4 shown in FIG. 17, an internally driven output 5 and a transition condition 6 504, a step operation start instruction corresponding to the next step 7; an operation 504 corresponding to the step 15 shown in FIG. 17; An input operation of a process drive command corresponding to the process 18, a process operation start command 505 corresponding to the process 7 shown in FIG. 17, and an input operation of the internally driven output 8 and the transition condition 9 The input operation corresponding to the process drive instruction corresponding to the next step 10, the input operation corresponding to the step operation start instruction corresponding to the step 18 shown in FIG. 508 is the input operation of the process operation start command, the drive condition 23, the output 24, and the transition condition 25 to the next process which constitute the process 22 shown in FIG. An input operation 509 is a process operation start command corresponding to the process 10 shown in FIG. 17, an input operation of the transition condition 12, and a process operation start command corresponding to the merging process 22.
Reference numeral 10 denotes a process operation start command corresponding to the process 18 shown in FIG. 17, a transition condition 20, a transition condition 21 input operation, and a process drive command corresponding to the merging process 22.

【0013】(2・1)従来技術の作用、動作の説明
(選択分岐・合流の場合) 図17の通り構成されたSFC図において、PLCの電
源投入時は工程1が活性であり移行条件2または、移行
条件13のどちらか一方が導通すると工程4または、工
程15が活性となり出力5または、出力16が動作する
と共に移行元の初期工程1が不活性となる。
(2.1) Description of the operation and operation of the prior art (in case of selective branching / merging) In the SFC diagram configured as shown in FIG. 17, when the PLC is powered on, step 1 is active and transition condition 2 Alternatively, when either one of the transition conditions 13 becomes conductive, the step 4 or the step 15 becomes active, the output 5 or the output 16 operates, and the initial step 1 of the transition source becomes inactive.

【0014】例えば移行条件2のみが導通し工程4が活
性であれば出力5が動作し、例えばこれが右行モータで
あれば右限リミットスイッチとしての入力X1を移行条
件6としておけば、右限に到達したときに工程7が活性
となり工程4は不活性となる。これにより例えば右行モ
ータは停止して次の工程7の出力8により右限位置での
作業が開始する。
For example, if only the transition condition 2 is conductive and the step 4 is active, the output 5 operates. For example, if this is a right-hand motor, the input X1 as a right limit switch is set as the transition condition 6 and the right limit is set. , Step 7 becomes active and Step 4 becomes inactive. Thereby, for example, the right-hand motor is stopped, and the operation at the right limit position is started by the output 8 of the next step 7.

【0015】例えば右限位置での作業完了信号としての
入力X2を移行条件9としておけば、右限位置で作業が
終了すると工程10が活性となり工程7は不活性とな
る。これにより工程10の出力11が例えば左行モータ
であれば左限リミットスイッチとしての入力X3を移行
条件12としておけば、左限に到達したときに工程22
が活性となり工程10は不活性となる。これにより例え
ば左行モータは停止する。
For example, if the input X2 as a work completion signal at the right limit position is set as the transition condition 9, when the work is completed at the right limit position, step 10 becomes active and step 7 becomes inactive. Accordingly, if the output 11 of the step 10 is, for example, a left-handed motor, the input X3 as the left limit switch is set as the transition condition 12, and when the left limit is reached, the step 22 is reached.
Becomes active and step 10 becomes inactive. Thus, for example, the left-hand motor stops.

【0016】例えば移行条件13のみが導通し工程15
が活性であれば出力16が動作し、例えばこれが上昇モ
ータであれば上限リミットスイッチとしての入力X5を
移行条件17としておけば、上限に到達したときに工程
18が活性となり工程15は不活性となる。これにより
例えば上昇モータは停止し次の工程18の出力19によ
り他の動作が開始する。
For example, only the transition condition 13 becomes conductive and the step 15
Is active, the output 16 operates. For example, if this is an ascending motor, if the input X5 as the upper limit switch is set as the transition condition 17, when the upper limit is reached, the step 18 becomes active and the step 15 becomes inactive. Become. Thereby, for example, the lifting motor is stopped, and another operation is started by the output 19 of the next step 18.

【0017】例えば出力19が下降モータであれば、原
点リミットスイッチとしての入力X6を移行条件20お
よび、手動停止スイッチとしての入力X7を移行条件2
1としておけば、原点に到達したとき、または手動停止
信号で工程22が活性となり工程18は不活性となる。
これにより例えば下降モータは停止する。
For example, if the output 19 is a descending motor, the input X6 as an origin limit switch is a transition condition 20, and the input X7 as a manual stop switch is a transition condition 2.
If it is set to 1, the step 22 becomes active and the step 18 becomes inactive when the origin is reached or by a manual stop signal.
Thereby, for example, the descending motor stops.

【0018】上記2種類の工程列の終端は、移行条件1
2、移行条件20または、移行条件21が導通すると合
流工程22が活性となり、それぞれの移行元工程は不活
性となる。これにより工程22の出力24が例えば搬送
モータであれば搬送開始スイッチとして入力X10を駆
動条件23とし、搬送位置リミットスイッチとしての入
力X11を移行条件25としておけば、搬送位置に到達
したときに工程22が不活性となり次工程へ移行する。
The end of the above two types of process sequences is determined by the transition condition 1
2. When the transition condition 20 or the transition condition 21 becomes conductive, the merging step 22 becomes active, and the respective transition source steps become inactive. Thus, if the output 24 of the step 22 is, for example, a transport motor, the input X10 as the transport start switch is set as the drive condition 23 and the input X11 as the transport position limit switch is set as the transition condition 25. 22 becomes inactive and moves to the next step.

【0019】図18に示したプログラムリストにおいて
接点命令LD・30,ANI・31,OR・34は工程
駆動命令SET・32の前にプログラムされ、工程開始
命令STL・26との組合せによって移行条件として機
能する。このプログラムリストでは、命令語を用いて選
択分岐工程を含むSFC図を表現するために一定の規則
・順序に従って工程動作開始命令STL・26と工程駆
動命令SET・32が入力されている。
In the program list shown in FIG. 18, the contact instructions LD-30, ANI-31, OR-34 are programmed before the process drive instruction SET-32, and are used as transition conditions in combination with the process start instruction STL-26. Function. In this program list, a process operation start command STL • 26 and a process drive command SET • 32 are input in accordance with a certain rule / order in order to represent an SFC diagram including a selective branch process using a command word.

【0020】入力操作500では初期工程1の開始を定
義し、入力操作501では初期工程1内における第1列
分岐工程に対する移行条件2、移行条件3と、これによ
り活性化する第1列分岐の先頭工程4の駆動を指示し、
入力操作502では初期工程1内における第2列分岐工
程に対する移行条件13、移行条件14と、これにより
活性化する第2列分岐の先頭工程15の駆動を指示す
る。
In an input operation 500, the start of the initial step 1 is defined. In an input operation 501, the transition condition 2 and the transition condition 3 for the first column branching step in the initial step 1, and the first column branch activated by the transition condition 3 are activated. Instruct the driving of the first step 4,
In the input operation 502, the transition condition 13 and the transition condition 14 for the second column branching step in the initial step 1 and the driving of the leading step 15 of the second column branch activated thereby are instructed.

【0021】PLC内のマイクロプロセッサはシステム
メモリ内のプログラムより、このSFC図が工程1を初
期工程とした選択分岐であり移行条件2、移行条件3お
よび移行条件13、移行条件14の入力の内容により工
程4または工程15のどちらか一方を実行するものであ
ることを判断する。
According to the microprocessor in the PLC, the SFC diagram is a selective branch with the process 1 as an initial process from the program in the system memory, and the contents of the input of the transition condition 2, the transition condition 3, the transition condition 13, and the transition condition 14 It is determined that either step 4 or step 15 is to be executed.

【0022】入力操作503、入力操作504および入
力操作505では、それぞれの工程を構成するための工
程動作開始命令、入力条件、駆動出力、次工程への移行
条件および次工程に対応する工程駆動命令を定義する。
In the input operation 503, the input operation 504, and the input operation 505, a process operation start command, an input condition, a drive output, a transition condition to the next process, and a process drive command corresponding to the next process are included. Is defined.

【0023】入力操作506では第2列分岐工程の最終
工程18における駆動出力19のみを定義し、入力操作
507では第1列分岐工程の最終工程10における駆動
出力11のみを定義し、入力操作508では合流工程2
2を構成するための工程動作開始命令、入力条件、駆動
出力、次工程への移行条件を定義し、入力操作509で
は第1列分岐工程の最終工程10内において合流工程2
2へ合流するための移行条件12とこれにより活性化す
る合流工程22の駆動を定義し、入力操作510では第
2列分岐工程の最終工程18内において合流工程22へ
合流するための移行条件20、移行条件21とこれによ
り活性化する合流工程22の駆動を定義する。
In the input operation 506, only the drive output 19 in the final step 18 of the second column branching step is defined. In the input operation 507, only the drive output 11 in the final step 10 of the first column branching step is defined. Then the merging process 2
2, a step operation start command, an input condition, a drive output, and a transition condition to the next process are defined. In the input operation 509, the merge process 2 is performed in the final process 10 of the first column branch process.
The transition condition 12 for merging to the second step and the drive of the merging step 22 activated by this are defined. In the input operation 510, the transition condition 20 for joining to the merging step 22 in the final step 18 of the second row branching step is defined. , The transition condition 21 and the driving of the merging step 22 activated by this are defined.

【0024】これによりPLC内のマイクロプロセッサ
はシステムメモリ内のプログラムより、このSFC図が
第1列分岐の工程10または第2列分岐の工程18内に
定義された移行条件12または移行条件20、移行条件
21の何れかの入力がONすることで合流工程22を活
性化する選択合流であることを判断する。
Thus, the microprocessor in the PLC uses the program in the system memory to change the SFC diagram in the first column branch process 10 or the second column branch process 18 to the transition condition 12 or the transition condition 20, When any one of the inputs of the transition condition 21 is turned on, it is determined that the selected merging is to activate the merging step 22.

【0025】以上のとおり、命令語を用いた選択分岐工
程の入力操作においては、初期工程からの分岐開始時は
各工程に対する移行処理を個別に行い、合流時は各分岐
毎に最終工程内の駆動処理を行った後、合流工程に対す
る移行処理を各分岐の最終工程毎に行うことがSFC式
のプログラム表現の規則となっている。
As described above, in the input operation of the selective branching step using the instruction word, when the branching from the initial step is started, the transition processing for each step is individually performed, and at the time of merging, the transition processing for each branch is performed in the final step. It is a rule of the SFC program expression that after the driving process, the transition process to the merging process is performed for each final process of each branch.

【0026】(1・2)従来技術の構成の説明(並進分
岐・合流の場合) 図19は、一般に公知のSFC図において並進分岐と呼
ばれるものを例示したものであり、並進分岐・並進合流
を行うSFC図の一例である。図19において、400
は工程番号をS1とした初期工程であり、PLCの電源
投入時に活性化される。401はPLCの入力X20が
ONのときに導通する移行条件。
(1.2) Description of the configuration of the prior art (in case of translational branching / merging) FIG. 19 shows an example of a generally known SFC diagram called a translational branching. It is an example of the SFC diagram performed. In FIG. 19, 400
Is an initial step in which the step number is set to S1, and is activated when the power of the PLC is turned on. 401 is a transition condition for conducting when the input X20 of the PLC is ON.

【0027】402は工程番号がS40の工程であり、
初期工程400が活性で移行条件401が導通している
ときに活性化されると共に、移行元の初期工程400を
不活性にする。403は工程402が活性であるときに
動作するPLCの出力Y10に対する出力、404はP
LCの入力X21がONのときに導通する移行条件。
Reference numeral 402 denotes a step having a step number of S40.
It is activated when the initial step 400 is active and the transition condition 401 is conductive, and deactivates the initial step 400 of the source. 403 is an output corresponding to the output Y10 of the PLC operating when the step 402 is active, and 404 is a P output.
Transition condition for conducting when the input X21 of the LC is ON.

【0028】405は工程番号がS41の工程であり、
工程402が活性で移行条件404が導通しているとき
に活性化されると共に、移行元の工程402を不活性に
する。406は工程405が活性であるときに動作する
PLCの出力Y11に対する出力、407はPLCの入
力X22がONのときに導通する移行条件。
Reference numeral 405 denotes a step having a step number of S41.
When the step 402 is active and the transition condition 404 is conductive, the step 402 is activated, and the step 402 of the transition source is deactivated. Reference numeral 406 denotes an output corresponding to the output Y11 of the PLC which operates when the step 405 is active, and 407 denotes a transition condition for conducting when the input X22 of the PLC is ON.

【0029】408は工程番号がS42の工程であり、
工程405が活性で移行条件407が導通しているとき
に活性化されると共に、移行元の工程405を不活性に
する。409は工程408が活性であるときに動作する
PLCの出力Y12に対する出力。
Reference numeral 408 denotes a process whose process number is S42,
When the step 405 is active and the transfer condition 407 is conducting, the step 405 is activated and the step 405 of the transfer source is inactivated. 409 is an output corresponding to the output Y12 of the PLC which operates when the step 408 is active.

【0030】410は工程番号がS50の工程であり、
初期工程400が活性で移行条件401が導通している
ときに工程402を同時に活性化される工程。 411
は工程410が活性であるときに動作するPLCの出力
Y13に対する出力、412はPLCの入力X23がO
Nのときに導通する移行条件。
Reference numeral 410 denotes a process whose process number is S50.
A step of simultaneously activating the step 402 when the initial step 400 is active and the transition condition 401 is conducting. 411
Is the output for the output Y13 of the PLC that operates when step 410 is active, and 412 is the output X23 of the PLC
Transition condition for conduction when N.

【0031】413は工程番号がS51の工程あり、工
程410が活性で移行条件412が導通しているときに
活性化されると共に、移行元の工程410を不活性にす
る。414は工程413が活性であるときに動作するP
LCの出力Y14に対する出力、415はPLCの入力
X24がONのときに導通する移行条件。
Reference numeral 413 denotes a step whose process number is S51. The step 413 is activated when the step 410 is active and the transition condition 412 is conductive, and deactivates the step 410 of the transition source. 414 is a P that operates when step 413 is active.
The output for the output Y14 of the LC is a transition condition for conducting when the input X24 of the PLC is ON.

【0032】416は工程番号がS60の工程であり、
工程408および工程413が共に活性で移行条件41
5が導通しているときに活性化されると共に、移行元の
工程408および工程413を共に不活性にする。41
7は工程416が活性であるときに動作するPLCの出
力Y16に対する出力、418はPLCの入力X25が
ONのときに導通する移行条件であり次段に接続された
工程への移行条件となる。
Reference numeral 416 is a step whose step number is S60.
Steps 408 and 413 are both active and the transition condition 41
5 is activated when conducting, and also deactivates both the source steps 408 and 413. 41
Reference numeral 7 denotes an output for the output Y16 of the PLC which operates when the step 416 is active, and reference numeral 418 denotes a transition condition for conducting when the input X25 of the PLC is ON, which is a transition condition for a step connected to the next stage.

【0033】図20は、図19に示した並進分岐・合流
を行うSFC図のプログラムリストの一例を示したもの
である。図20において、26は工程動作開始命令ST
Lに対応する操作キー、27は工程番号に対応するシン
ボルSに対する操作キー、28は工程番号を入力するた
めの数値キーであり一般に0から9の10進数値に対応
する数値キーが準備されている。29は操作キ−26・
27・28の操作による一連のSTL_S1命令を有効
にするための実行キーである。
FIG. 20 shows an example of the program list of the SFC diagram for performing the translational branching and merging shown in FIG. In FIG. 20, reference numeral 26 denotes a process operation start command ST.
An operation key corresponding to L, an operation key 27 for a symbol S corresponding to a process number, and a numeric key 28 for inputting a process number, generally provided with numeric keys corresponding to decimal values from 0 to 9. I have. 29 is an operation key.
An execution key for validating a series of STL_S1 instructions by the operations of 27 and 28.

【0034】以下同様に順次プログラムされるが、30
は移行条件開始の常開接点命令LD、32は工程駆動命
令SET、33は出力命令OUT、35はPLCの入力
に対応するシンボルXに対する操作キー、36はPLC
の出力に対応するシンボルYに対する操作キーである。
Hereinafter, the program is sequentially performed in the same manner.
Is a normally open contact command LD for starting a transition condition, 32 is a process driving command SET, 33 is an output command OUT, 35 is an operation key for the symbol X corresponding to the input of the PLC, and 36 is a PLC.
Are the operation keys for the symbol Y corresponding to the output of.

【0035】520は図19に示す初期工程400に対
応する工程動作開始命令の入力操作、521は図19に
示す初期工程内における移行条件401および工程40
2と工程410に対応する工程駆動命令の入力操作、5
22は図19に示す工程402に対応する工程動作開始
命令、内部で駆動される出力403および移行条件40
4の入力操作と次工程405に対応する工程駆動命令の
入力操作、523は図19に示す工程410に対応する
工程動作開始命令、内部で駆動される出力411および
移行条件412の入力操作と次工程413に対応する工
程駆動命令の入力操作、524は図19に示す工程40
5に対応する工程動作開始命令、内部で駆動される出力
406および移行条件407の入力操作と次工程408
に対応する工程駆動命令の入力操作、525は図19に
示す工程413に対応する工程動作開始命令と内部で駆
動される出力414に対応する入力操作、526は図1
9に示す工程408に対応する工程動作開始命令と内部
で駆動される出力409の入力操作、527は図19に
示す工程416を構成する工程動作開始命令と内部で駆
動される出力417と次工程への移行条件418の入力
操作、528は図19に示す工程408と工程413に
対応する工程動作開始命令と移行条件415の入力操作
と合流工程416に対応する工程駆動命令の入力操作で
ある。
520 is an input operation of a process operation start command corresponding to the initial process 400 shown in FIG. 19, and 521 is a transition condition 401 and a process 40 in the initial process shown in FIG.
Input operation of process drive command corresponding to 2 and process 410, 5
Reference numeral 22 denotes a process operation start command corresponding to the process 402 shown in FIG. 19, an internally driven output 403, and a transition condition 40.
The input operation of Step 4 and the input operation of the process drive command corresponding to the next step 405 are performed. The input operation 523 of the process operation start command corresponding to the step 410 shown in FIG. An input operation of a process driving command corresponding to the process 413, and 524 is a process 40 shown in FIG.
5, a step operation start instruction corresponding to the step 5, an input operation of the internally driven output 406 and the transition condition 407, and a next step 408
525 is a process operation start command corresponding to the process 413 shown in FIG. 19 and an input operation corresponding to the internally driven output 414, and 526 is a process operation input command corresponding to FIG.
The input operation of the process operation start command corresponding to the process 408 shown in FIG. 9 and the internally driven output 409 and the next process 527 are the process operation start command constituting the process 416 shown in FIG. The input operation 528 of the shift condition 418 to the step 408 is the input operation of the step operation start instruction corresponding to the step 408 and the step 413 shown in FIG. 19, the input operation of the shift condition 415, and the input operation of the step drive instruction corresponding to the merge step 416.

【0036】(2・2)従来技術の作用、動作の説明
(並進分岐・合流の場合) 図19の通り構成されたSFC図において、PLCの電
源投入時は工程400が活性であり移行条件401が導
通すると工程402および、工程410が同時に活性と
なり出力403および、出力411が共に動作するとと
もに移行元の初期工程400が不活性となる。
(2.2) Description of the operation and operation of the prior art (in case of translational branching / merging) In the SFC diagram configured as shown in FIG. 19, when the PLC is powered on, the process 400 is active and the transition condition 401 Are conducted, Steps 402 and 410 are simultaneously activated, the outputs 403 and 411 are operated together, and the initial step 400 of the transfer source is inactivated.

【0037】以降このSFC図では、工程405の活性
化は移行条件404、工程408の活性化は移行条件4
07、工程413の活性化は移行条件412によって順
次行われこれに伴って前工程は順次不活性となる。
In the following SFC diagram, the activation of the step 405 is the transition condition 404, and the activation of the step 408 is the transition condition 4
07, the activation of the step 413 is sequentially performed according to the transition condition 412, and accordingly, the preceding steps are sequentially deactivated.

【0038】移行条件415は並進する工程列を一つの
工程に合流させるための移行条件であり、工程408お
よび工程413の両方が活性化された状態で移行条件4
15がONすると次工程へ移行し工程416で合流す
る。
The transition condition 415 is a transition condition for merging the process sequence to be translated into one process, and the transition condition 4 when both the process 408 and the process 413 are activated.
When 15 is turned on, the process proceeds to the next step, and merges in step 416.

【0039】図20に示したプログラムリストにおいて
接点命令LD・30は工程駆動命令SET・32の前に
プログラムされ、工程開始命令STL・26との組合せ
によって移行条件として機能する。
In the program list shown in FIG. 20, the contact command LD 30 is programmed before the process drive command SET 32, and functions as a transition condition in combination with the process start command STL 26.

【0040】このプログラムリストでは、命令語を用い
て並進分岐工程を含むSFC図を表現するために一定の
規則・順序に従って工程動作開始命令STL・26と工
程駆動命令SET・32が入力されており、入力操作5
20では初期工程400の開始を定義し、入力操作52
1では初期工程400内における移行条件401と、こ
れにより活性化する第1列並進の先頭工程402の駆動
と第2列並進の先頭工程410の駆動を指示する。
In this program list, a process operation start command STL 26 and a process drive command SET 32 are input in accordance with a certain rule and order in order to represent an SFC diagram including a translational branch process using a command word. , Input operation 5
In step 20, the start of the initial process 400 is defined, and the input operation 52
In 1, a transition condition 401 in the initial process 400 and an instruction to drive the first step 402 of the first column translation and the driving of the first step 410 of the second column translation activated by this are instructed.

【0041】これによりPLC内のマイクロプロセッサ
はシステムメモリ内のプログラムにより、このSFC図
が工程400を初期工程とした並進分岐であり移行条件
401がONすることで工程402および工程410を
同時に実行するものであることを判断する。入力操作5
22、入力操作523および入力操作524では、それ
ぞれの工程を構成するための工程動作開始命令、入力条
件、駆動出力、次工程への移行条件および次工程に対応
する工程駆動命令を定義する。
As a result, the microprocessor in the PLC is translated by the program in the system memory, the SFC diagram is a translational branch with the process 400 as an initial process, and the transition condition 401 is turned on to execute the processes 402 and 410 simultaneously. Judge that it is. Input operation 5
22, an input operation 523 and an input operation 524 define a process operation start command, an input condition, a drive output, a transition condition to the next process, and a process drive command corresponding to the next process for configuring each process.

【0042】入力操作525では第2列並進工程の最終
工程413における駆動出力414のみを定義し、入力
操作526では第1列並進工程の最終工程408におけ
る駆動出力409のみを定義し、入力操作527では合
流工程416を構成するための工程動作開始命令、入力
条件、駆動出力、次工程への移行条件を定義し、入力操
作528では第1列並進工程の最終工程408および第
2列並進工程の最終工程413が共に活性状態のとき、
移行条件415より活性化する合流工程416の駆動を
定義する。
In the input operation 525, only the drive output 414 in the final step 413 of the second column translation step is defined. In the input operation 526, only the drive output 409 in the final step 408 of the first column translation step is defined. Defines a process operation start command, an input condition, a drive output, and a condition for shifting to the next process for configuring the merging process 416. An input operation 528 defines a final process 408 of the first row translation process and a second process of the second column translation process. When both the final steps 413 are active,
The drive of the merging step 416 activated by the transition condition 415 is defined.

【0043】これによりPLC内のマイクロプロセッサ
はシステムメモリのプログラムにより、SFC図が第1
列並進工程の最終工程408および第2列並進工程の最
終工程413が共に活性状態のとき移行条件415の入
力がONすることで合流工程416を活性化する並進合
流であることを判断する。
As a result, the microprocessor in the PLC changes the first SFC diagram according to the program in the system memory.
When the final step 408 of the column translation step and the final step 413 of the second column translation step are both in the active state, it is determined that the input of the transition condition 415 is ON to activate the merge step 416.

【0044】以上のとおり、命令語を用いた並進分岐工
程の入力操作においては、初期工程からの分岐開始時は
各ステートに対する移行処理を一括して行い、合流時は
各分岐毎に最終工程内の駆動処理を行った後、合流工程
に対する移行処理を一括して行うことがSFC式プログ
ラム表現の規則となっている。
As described above, in the input operation of the translational branching step using the instruction word, when the branching from the initial step is started, the transition processing for each state is performed at once, and at the time of merging, the transition processing is performed for each branch in the final step. It is a rule of the SFC-type program expression that the transfer processing for the merging step is performed collectively after performing the driving processing of (1).

【0045】(1・3)従来技術の構成の説明(シング
ルフローの場合) 図21は、一般に公知のSFC図においてシングルフロ
ーと呼ばれるものを例示したものである。同図中、60
0は工程番号をS2とした初期工程であり、PLCの電
源投入時に活性化される。601はPLCの入力X30
がONのときに導通する移行条件。
(1.3) Description of Configuration of Conventional Technique (Single Flow) FIG. 21 shows an example of what is called a single flow in a generally known SFC diagram. In the figure, 60
0 is an initial step in which the step number is set to S2, and is activated when the power of the PLC is turned on. 601 is a PLC input X30
Is a transition condition for conducting when is ON.

【0046】602は工程番号がS70の工程であり、
初期工程600が活性で移行条件601が導通している
ときに活性化されると共に、移行元の初期工程600を
不活性にする。603は工程602が活性であるときに
動作するPLCの出力Y20に対する出力、604はP
LCの入力X31がONのときに導通する移行条件。
Reference numeral 602 denotes a step having a step number of S70.
It is activated when the initial step 600 is active and the transition condition 601 is conducting, and deactivates the initial step 600 of the transfer source. 603 is an output corresponding to the output Y20 of the PLC operating when the step 602 is active, and 604 is P
Transition condition for conducting when the input X31 of the LC is ON.

【0047】605は工程番号がS75の工程であり、
工程602が活性で移行条件604が導通しているとき
に活性化されると共に、移行元の工程602が不活性と
なる工程、606は工程605が活性であるときに動作
するPLCの出力Y25に対する出力、607はPLC
の入力X32がONのときに導通する移行条件。
Reference numeral 605 denotes a process whose process number is S75.
Step 602 is activated when the transition condition 604 is active and the transition condition 604 is conducting, and the transition source step 602 is deactivated. Step 606 is for the output Y25 of the PLC operating when the step 605 is active. Output, 607 is PLC
Transition condition for conducting when the input X32 is ON.

【0048】608は工程番号がS77であって上記工
程605が活性で移行条件607が導通しているときに
活性化されると共に、移行元の工程605が不活性とな
る工程、609は工程608が活性であるときに動作す
るPLCの出力Y27に対する出力、610はPLCの
入力X33がONのときに導通する移行条件であり、次
段に接続された工程への移行条件となる。
Step 608 is a step number S77, which is activated when the above-mentioned step 605 is active and the transfer condition 607 is conductive, and in which the step 605 of the transfer source becomes inactive, and 609 is a step 608 Is an output corresponding to the output Y27 of the PLC which operates when the input is active, and 610 is a transition condition for conducting when the input X33 of the PLC is ON, which is a transition condition to a process connected to the next stage.

【0049】図22は、図21に示したシングルフロー
によるSFC図のプログラムリストの一例を示したもの
である。図22において、26は工程動作開始命令ST
Lに対応する操作キー、27は工程番号に対応するシン
ボルSに対する操作キー、28は工程番号を入力するた
めの数値キーであり一般に0から9の10進数値に対応
する数値キーが準備されている。29は操作キー26・
27・28の操作に対応した一連のSTL_S2命令を
有効にするための実行キーである。
FIG. 22 shows an example of the program list of the SFC diagram based on the single flow shown in FIG. In FIG. 22, reference numeral 26 denotes a process operation start command ST.
An operation key corresponding to L, an operation key 27 for a symbol S corresponding to a process number, and a numeric key 28 for inputting a process number, generally provided with numeric keys corresponding to decimal values from 0 to 9. I have. 29 is an operation key 26
This is an execution key for validating a series of STL_S2 instructions corresponding to operations 27 and 28.

【0050】以下同様に順次プログラムされるが、30
は移行条件開始の常開接点命令LD、32は工程駆動命
令SET、33は出力命令OUT、35はPLCの入力
に対応するシンボルXに対する操作キー、36はPLC
の出力に対応するシンボルYに対する操作キーである。
Hereinafter, the program is sequentially performed in the same manner.
Is a normally open contact command LD for starting a transition condition, 32 is a process driving command SET, 33 is an output command OUT, 35 is an operation key for the symbol X corresponding to the input of the PLC, and 36 is a PLC.
Are the operation keys for the symbol Y corresponding to the output of.

【0051】540は図21に示す初期工程600に対
応する工程動作開始命令、移行条件601の入力操作と
次工程602に対応する工程駆動命令の入力操作、54
1は図21に示す工程602に対応する工程動作開始命
令、内部で駆動される出力603および移行条件604
の入力操作と次工程605に対応する工程駆動命令の入
力操作、542は図21に示す工程605に対応する工
程動作開始命令、内部で駆動される出力606および移
行条件607の入力操作と次工程608に対応する工程
駆動命令の入力操作、543は図21に示す工程608
に対応する工程動作開始命令、内部で駆動される出力6
09および移行条件610の入力操作である。
Reference numeral 540 denotes a process operation start command corresponding to the initial process 600 shown in FIG. 21, an input operation of the transition condition 601 and a process drive command input operation corresponding to the next process 602, 54
Reference numeral 1 denotes a process operation start command corresponding to the process 602 shown in FIG. 21, an internally driven output 603, and a transition condition 604.
21 and the input operation of the process drive instruction corresponding to the next step 605, the input operation 542 of the process operation start instruction corresponding to the step 605 shown in FIG. 21, the input operation of the internally driven output 606 and the transition condition 607, and the next step An input operation of a process driving command corresponding to 608, 543 is a process 608 shown in FIG.
Process operation start command corresponding to, internally driven output 6
09 and the transition condition 610 are input.

【0052】(2・3)従来技術の作用、動作の説明
(シングルフローの場合) 図21の通り構成されたSFC図において、PLCの電
源投入時は工程600が活性であり移行条件601が導
通すると工程602が活性となり出力603が動作す
る。以降このSFC図では、工程605の活性化は移行
条件604、工程608の活性化は移行条件607によ
って順次行われ、これに伴って前工程は順次不活性とな
る。このSFC図はこれまでに示した従来例とは異な
り、工程番号が連続しておらず任意の飛び番号でプログ
ラムがなされている。
(2-3) Description of Function and Operation of Conventional Technique (Single Flow) In the SFC diagram configured as shown in FIG. 21, when the PLC is powered on, the process 600 is active and the transition condition 601 is conductive. Then, the step 602 becomes active and the output 603 operates. Thereafter, in this SFC diagram, the activation of the step 605 is sequentially performed according to the transition condition 604 and the activation of the step 608 is sequentially performed according to the transition condition 607, and accordingly, the previous step is sequentially deactivated. In this SFC diagram, unlike the conventional example shown so far, the process numbers are not continuous, and the program is performed with an arbitrary jump number.

【0053】図22に示したプログラムリストにおいて
接点命令LD・30は工程駆動命令SET・32の前に
プログラムされ、工程開始命令STL・26との組合せ
によって移行条件として機能する。入力操作540では
初期工程600の開始を定義し、この工程内における移
行条件601と、これにより活性化する次工程602の
駆動を指示する。
In the program list shown in FIG. 22, the contact command LD 30 is programmed before the process drive command SET 32, and functions as a transition condition in combination with the process start command STL 26. In the input operation 540, the start of the initial process 600 is defined, and the transition condition 601 in this process and the driving of the next process 602 activated by this are instructed.

【0054】入力操作541では工程602の開始を定
義し、この工程内における移行条件604と、これによ
り活性化する次工程605の駆動を指示する。入力操作
542では工程605の開始を定義し、この工程内にお
ける移行条件607と、これにより活性化する次工程6
08の駆動を指示する。入力操作543では工程608
の開始を定義し、この工程内における次工程への移行条
件610を指示する。
In the input operation 541, the start of the step 602 is defined, and the transition condition 604 in this step and the driving of the next step 605 activated by this are instructed. The input operation 542 defines the start of the step 605, the transition condition 607 in this step, and the next step 6 activated by this.
08 is instructed. In the input operation 543, the step 608 is executed.
Is defined, and a transition condition 610 to the next step in this step is specified.

【0055】このプログラムリストでは、移行条件と工
程駆動命令SET・32と工程動作開始命令STL・2
6の繰返しによってSFC図の基本形が命令語リストと
して入力されているが、図17および図19に示したS
FC図の一例とは異なり工程番号に連続性がなく飛び番
号を用いている。
In this program list, the transition condition, the process drive command SET · 32 and the process operation start command STL · 2
6, the basic form of the SFC diagram is input as a command list, but the SFC shown in FIG. 17 and FIG.
Unlike the example of the FC diagram, the process numbers have no continuity and the jump numbers are used.

【0056】[0056]

【発明が解決しようとする課題】[Problems to be solved by the invention]

(1)従来技術の課題の説明 従来のプログラム作成装置は以上の説明で明らかなとお
り、選択分岐の指定には初期工程から分岐開始時の各ス
テートに対する移行処理を個別に行い、合流時は各分岐
毎に最終工程内の駆動処理を行った後、合流工程に対す
る移行処理を各分岐の最終工程毎に行っている。
(1) Description of Problems of the Prior Art As is apparent from the above description, the conventional program creating apparatus individually performs a transition process for each state from the initial process to the start of the branch when designating a selective branch, and at the time of merging, After performing the driving process in the final process for each branch, a transition process to the merging process is performed for each final process of each branch.

【0057】また、並進分岐の指定には初期工程から分
岐開始時の各ステートに対する移行処理を一括して行
い、合流時は各分岐毎に最終工程内の駆動処理を行った
後、合流工程に対する移行処理を一括して行っている。
For the designation of the translational branch, the transition process for each state at the start of the branch from the initial process is performed collectively. At the time of the merge, the driving process in the final process is performed for each branch, and then the merge process is performed. The migration process is performed collectively.

【0058】このようにオペレータ自身が入力規則・順
序を考えながらプログラムを作成し、各工程や命令を入
力する従来のプログラムを作成手法であると、プログラ
ムの作成上重要な工程駆動命令と工程動作開始命令の入
力順やSFC形状に応じた分岐や合流の入力規則を間違
ったり、各命令の抜けなどによってSFC図が成立しな
い場合、シーケンス制御プログラムの実行が設計どうり
に行われないという問題点があった。
As described above, if the operator himself creates a program while considering the input rules and order, and then creates a conventional program for inputting each process and command, the process driving command and process operation which are important for program creation are important. If the input order of the start command and the input rules for branching and merging according to the SFC shape are wrong, or if the SFC diagram is not established due to the omission of each command, the sequence control program will not be executed as designed. was there.

【0059】また、SFC図の基本表現として上からの
移行条件によって工程を駆動するコイル命令的要素の工
程駆動命令SET・32と負荷を駆動している工程に対
する接点的要素である工程動作開始命令STL・26が
各工程毎に繰返し必要なため、本来のシーケンス制御プ
ログラム以外の入力負担が大きいという問題点があっ
た。
As a basic expression of the SFC diagram, a step driving command SET 32 of a coil command element for driving a process according to a transition condition from above and a process operation start command which is a contact element for a process of driving a load. Since the STL 26 is required repeatedly for each process, there is a problem that the input load other than the original sequence control program is large.

【0060】このような入力負担を軽減するために大形
画面上にSFC図を作画し、これをPLCが実行可能な
言語に自動変換することも行われているが、この場合に
は、多数の工程図を一つ一つ作画し、その接続を示すの
に手間がかかるという問題点があった。
In order to reduce such an input burden, an SFC diagram is drawn on a large screen and is automatically converted into a language executable by the PLC. However, there is a problem that it takes time and effort to draw each of the process diagrams and to show the connections.

【0061】(2)発明の目的の説明 本発明はオペレ−タに対してプログラムの処理順序を意
識させることなく容易にSFC方式のプログラムの作成
を可能にすることを目的とする。また命令ベースの小形
安価なプログラム作成装置においては、SFC図表現を
行う際にオペレータに対して求められる工程駆動命令と
工程動作開始命令の規則的な入力によりSFC図の構造
指定作業を行うことで、プログラム作成の間違いを防止
する共に入力作業の効率化を図ることができるプログラ
ム作成装置を得ることを目的とする。
(2) Description of the Object of the Invention An object of the present invention is to make it possible for an operator to easily create a program of the SFC system without being conscious of the processing order of the program. In addition, in an instruction-based small and inexpensive program creating device, the structure designation work of the SFC diagram is performed by regularly inputting a process drive command and a process operation start command required by the operator when expressing the SFC diagram. It is another object of the present invention to provide a program creating apparatus capable of preventing mistakes in creating a program and improving the efficiency of an input operation.

【0062】本発明の第2の目的は、選択分岐や並進分
岐で用いられる複雑な入力規則にも対応し、しかも工程
番号が連続番号であれば自動採番され、指定による飛び
番号であっても容易にプログラムを作成することができ
るプログラム作成装置を得ることを目的としている。
A second object of the present invention is to cope with complicated input rules used in selective branching and translational branching, and if the process numbers are consecutive numbers, they are automatically numbered, and are skipped numbers by designation. It is another object of the present invention to obtain a program creating apparatus that can easily create a program.

【0063】[0063]

【課題を解決するための手段】請求項1の発明に係るプ
ログラム作成装置は、プログラマブルコントローラに適
用される工程歩進形プログラムの構造を指示する際に、
初期工程を工程番号にて指示する初期工程指示手段と、
前記初期工程に対してプログラム処理順序で従属接続さ
れる各工程を工程番号にて指示する従属工程指示手段
と、従属する工程の数を指示する工程数指示手段と、前
記各指示手段によって指示された内容を工程形状として
記憶する工程形状メモリと、工程歩進形プログラムの形
成形状に合わせて工程動作開始命令あるいは工程移行に
伴って作用し現工程を不活性にすると共に次工程を活性
化する工程駆動命令に前記工程形状メモリより読み出し
た各工程番号を付加する付加手段とを備えたものであ
る。
According to a first aspect of the present invention, there is provided a program creating apparatus for designating a structure of a process step type program applied to a programmable controller.
Initial process instruction means for instructing the initial process by a process number,
Dependent step designating means for designating each step dependently connected to the initial process in the program processing order by a process number, step number designating means for designating the number of dependent steps, and designated by the respective designating means. A process shape memory for storing the contents of the process as a process shape, and a process operation start command or a process change in accordance with the shape of the process step type program to actuate the current process to deactivate and activate the next process. And an adding means for adding each process number read from the process shape memory to the process drive command.

【0064】請求項2の発明に係るプログラム作成装置
は、初期工程より分岐して接続される複数列の従属工程
の分岐条件を指示すると共に合流条件を指示する第1の
指示手段を備えたものである。
According to a second aspect of the present invention, there is provided a program creating apparatus comprising a first instruction means for instructing a branch condition of a plurality of subordinate processes which are branched and connected from an initial process and for indicating a joining condition. It is.

【0065】請求項3の発明に係るプログラム作成装置
は、初期工程より分岐して接続され並列実行される複数
列の従属工程を指示する第2の指示手段を備えたもので
ある。
According to a third aspect of the present invention, there is provided a program creating apparatus including second instruction means for instructing a plurality of subordinate steps to be connected in parallel and executed in parallel from the initial step.

【0066】請求項4の発明に係るプログラム作成装置
は、工程駆動命令を実行する移行条件命令を入力する位
置および工程内の出力駆動プログラムを入力する位置に
擬似命令を挿入する擬似命令挿入手段を備えたものであ
る。
According to a fourth aspect of the present invention, there is provided a program creating apparatus, comprising: a pseudo instruction inserting means for inserting a pseudo instruction at a position for inputting a transition condition instruction for executing a process driving instruction and at a position for inputting an output driving program in a process. It is provided.

【0067】請求項5の発明に係るプログラム作成装置
は、初期工程に接続される各従属工程の数を数値によっ
て指示した場合は、前記従属工程の先頭工程番号を基準
にして次に接続される工程番号はこれに順次1を加算し
た番号とすることで全体の工程構成を自動生成し、前記
各工程に対応する工程動作開始命令と工程駆動命令を一
括生成する第1の一括生成手段を備えたものである。
According to a fifth aspect of the present invention, when the number of each subordinate process connected to the initial process is indicated by a numerical value, the program creating device is connected next with reference to the leading process number of the subordinate process. A first batch generation means for automatically generating the entire process configuration by sequentially adding 1 to the process number and collectively generating a process operation start command and a process drive command corresponding to each process. It is a thing.

【0068】請求項6の発明に係るプログラム作成装置
は、初期工程に接続される各従属工程に任意の工程番号
を付加した場合、先頭に指示された工程番号に関係なく
付加された各々の工程番号によって全体工程が構成さ
れ、前記各工程に対応する工程動作開始命令と工程駆動
命令を一括生成する第2の一括生成手段を備えたもので
ある。
According to a sixth aspect of the present invention, when an arbitrary process number is added to each of the subordinate processes connected to the initial process, each of the added processes is independent of the process number specified at the head. The whole process is constituted by the numbers, and a second batch generation means for batch-generating a process operation start command and a process drive command corresponding to each process is provided.

【0069】[0069]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

実施の形態1. (1)実施の形態1の構成の詳細な説明 図1はPLCと該PLCに対する本発明の実施の形態1
によるプログラム作成装置の構成を示したブロック図で
ある。同図中、40Aは一つの筐体内に収納されたプロ
グラム作成装置である。このプログラム作成装置40A
は、システムメモリ42に記憶したプログラムで定めら
れた手順で動作する第1のマイクロプロセッサ41、操
作キー46によるプログラム作成作業で、あるいはプロ
グラマブルコントローラ60からケーブル70および通
信インタフェース50を介して転送されてきたシーケン
スプログラムが記憶されたシーケンスプログラムメモリ
43、本発明を実現する手段として工程形状を記憶する
工程形状メモリ44、命令の一括生成手段によって出力
された工程動作開始命令と、工程移行に伴って作用し現
工程を不活性にすると共に次工程を活性化する工程駆動
命令と、工程動作開始命令と工程駆動命令に付随する工
程番号を記憶するための工程プログラムメモリ45、キ
ーインタフェース47を介して第1のマイクロプロセッ
サ41にシーケンス命令語キーと数値キーなど入力する
操作キー46、画面コントローラ49を介して第1のマ
イクロプロセッサ41から表示データが送られてくる表
示器46、PL60Aとデータを授受する通信用インタ
フェース50より構成されている。尚、これら構成要素
は第1のマイクロプロセッサ41に対してバス接続され
ている。第1のマイクロプロセッサ41およびシステム
メモリ42は初期工程指示手段、従属工程指示手段、工
程数指示手段、第1、第2の指示手段、疑似命令挿入手
段、第1、第2の一括生成手段を構成する。
Embodiment 1 FIG. (1) Detailed Description of Configuration of First Embodiment FIG. 1 shows a PLC and a first embodiment of the present invention for the PLC.
1 is a block diagram showing a configuration of a program creating device according to the present invention. In the figure, reference numeral 40A denotes a program creation device housed in one housing. This program creation device 40A
Is transferred by the first microprocessor 41 operating according to the procedure defined by the program stored in the system memory 42 and the operation of the operation key 46, or from the programmable controller 60 via the cable 70 and the communication interface 50. A sequence program memory 43 in which the stored sequence program is stored, a process shape memory 44 for storing a process shape as a means for realizing the present invention, a process operation start command output by a command batch generation means, Then, a process drive command for inactivating the current process and activating the next process, a process program memory 45 for storing a process operation start command and a process number associated with the process drive command, and a key interface 47 are provided. Sequence to one microprocessor 41 It is composed of operation keys 46 for inputting command keys and numerical keys, etc., a display 46 to which display data is sent from the first microprocessor 41 via the screen controller 49, and a communication interface 50 for exchanging data with the PL 60A. ing. These components are connected to the first microprocessor 41 via a bus. The first microprocessor 41 and the system memory 42 are provided with initial process instruction means, subordinate process instruction means, number of steps instruction means, first and second instruction means, pseudo instruction insertion means, first and second batch generation means. Constitute.

【0070】60Aは一つの筐体内に収納されたPLC
である。このPLC60Aは、システムメモリ62に記
憶されたプログラムで定められた手順で動作する第2の
マイクロプロセッサ61、プログラム作成装置40Aに
よってシーケンス制御の内容が書込まれたシーケンスプ
ログラムメモリ63、PLC60Aの入出力のON/O
FF情報が格納されると共に、タイマ、カウンタ、デー
タレジスタなどを構成するデバイスメモリ64、第2の
マイクロプロセッサ61に多数の入力信号スイッチ65
を接続する入力インタフェース66、第2のマイクロプ
ロセッサ61に多数の出力負荷67を接続する出力イン
タフェース68、ケーブル70を介してプログラム作成
装置40Aの通信インタフェース50にシリアル接続さ
れた通信インタフェース69より構成されている。尚、
これら構成要素は第2のマイクロプロセッサ61に対し
てバス接続されている。
60A is a PLC housed in one housing
It is. The PLC 60A includes a second microprocessor 61 that operates according to a procedure defined by a program stored in the system memory 62, a sequence program memory 63 in which the contents of sequence control are written by the program creation device 40A, and an input / output of the PLC 60A. ON / O
The FF information is stored, a device memory 64 constituting a timer, a counter, a data register, and the like, and a large number of input signal switches 65 provided to the second microprocessor 61.
, An output interface 68 for connecting a large number of output loads 67 to the second microprocessor 61, and a communication interface 69 serially connected to the communication interface 50 of the program creation device 40A via a cable 70. ing. still,
These components are bus-connected to the second microprocessor 61.

【0071】図2は図1に示すプログラム作成装置40
Aの一例を示す外観図である。プログラム作成装置40
Aの表面パネルには、シーケンスプログラムを表示する
ための表示器48と、実行キー29、0〜9からなる数
値キー28、操作キー30〜36、80〜87が組込ま
れている。また、この装置は図1に示すプログラマブル
コントローラ60Aを接続するためのケーブル70を備
えている。
FIG. 2 shows the program creating device 40 shown in FIG.
It is an external view which shows an example of A. Program creation device 40
On the front panel of A, a display 48 for displaying a sequence program, numerical keys 28 including execution keys 29 and 0 to 9, and operation keys 30 to 36 and 80 to 87 are incorporated. This device also has a cable 70 for connecting the programmable controller 60A shown in FIG.

【0072】図3は図17で示した選択分岐・合流によ
るSFC図を形成するために、本実施の形態における工
程形状メモリ44(図1を参照)に各指示を入力する場
合のキー操作リストの一例である。
FIG. 3 shows a key operation list for inputting each instruction to the process shape memory 44 (see FIG. 1) in the present embodiment in order to form the SFC diagram by selective branching and merging shown in FIG. This is an example.

【0073】図3において、80は初期工程を指示する
ための操作手段の一例であるISキー、81は条件選択
を伴った工程分岐を指示するための操作手段の一例であ
るSFキー、82は複数の工程分岐によって縦列接続さ
れた工程列を条件一致によって任意の合流工程に合流指
示するための操作手段の一例であるSEキー、83は直
前に指示された工程番号を先頭とし縦列接続する縦続工
程数を指示するための操作手段の一例であるKキー、8
4は工程形状メモリ44に対する入力の終了を指示する
ための操作手段の一例であるENDキーである。
In FIG. 3, reference numeral 80 denotes an IS key as an example of an operation means for instructing an initial process, 81 denotes an SF key as an example of an operation means for instructing a process branch with condition selection, and 82 denotes an operation key. An SE key 83 is an example of an operating means for instructing a merging process to be joined to an arbitrary merging process by condition matching of a plurality of process branches connected in cascade by a plurality of process branches. K key, which is an example of an operation means for indicating the number of processes, 8
Reference numeral 4 denotes an END key which is an example of an operation means for instructing the end of the input to the process shape memory 44.

【0074】140はISキー80、Sキー27、数値
キー(0)28、実行キー29を用いた初期工程を指示
するためのキー入力操作の一例でIS_S0_ 実行で
ある。141はSFキー81、Sキー27、数値キー
(10)28、実行キー29を用いた第1列工程を指示
するためのキー入力操作の一例でSF_S10_ 実行
である。142はKキー83、数値キー(3)28、実
行キー29を用いた第1列工程に縦列接続する縦続工程
数を指示するためのキー入力操作の一例でK_3_ 実
行である。143はSFキー81、Sキー27、数値キ
ー(20)28、実行キー29を用いた第2列工程を指
示するためのキー入力操作の一例でSF_S20_ 実
行である。144はKキー83、数値キー(2)28、
実行キー29を用いた第2列工程に縦列接続する縦続工
程数を指示するためのキー入力操作の一例でK_2_
実行である。145はSEキー82、Sキー27、数値
キー(30)28、実行キー29を用いた選択合流を指
示するためのキー入力操作の一例でSE_S30_ 実
行である。
Reference numeral 140 denotes an example of a key input operation for instructing an initial process using the IS key 80, the S key 27, the numerical key (0) 28, and the execution key 29, which is IS_S0_Execution. 141 is an example of a key input operation for instructing the first row process using the SF key 81, the S key 27, the numerical key (10) 28, and the execution key 29, and is SF_S10_execution. Reference numeral 142 denotes an example of a key input operation for instructing the number of cascade processes to be cascade-connected to the first column process using the K key 83, the numerical key (3) 28, and the execution key 29, and is K_3_execute. Reference numeral 143 denotes an example of a key input operation for instructing the second row process using the SF key 81, the S key 27, the numerical key (20) 28, and the execution key 29, which is SF_S20_Execution. 144 is a K key 83, a numerical key (2) 28,
An example of a key input operation for instructing the number of cascade processes to be cascade-connected to the second row process using the execution key 29 is K_2_.
Execution. Reference numeral 145 denotes an example of a key input operation for instructing selection and merging using the SE key 82, the S key 27, the numerical key (30) 28, and the execution key 29, and is SE_S30_Execution.

【0075】図4は図19に示した並進分岐・合流によ
るSFC図を形成するために、本実施の形態における工
程形状メモリ44(図1を参照)に各指示を入力する場
合のキー操作リストの一例である。図4において、80
は初期工程を指示するための操作手段の一例であるIS
キー、87は条件選択を伴わない並進分岐を指示するた
めの操作手段の一例であるPFキー、86は複数の工程
分岐によって縦列接続された工程列を任意の合流工程に
合流指示するための操作手段の一例であるPEキー、8
3は直前に指示された工程番号を先頭とし縦列接続する
縦続工程数を指示するための操作手段の一例であるKキ
ー、84は工程形状メモリ44に対する入力の終了を指
示するための操作手段の一例であるENDキーである。
FIG. 4 is a key operation list for inputting each instruction to the process shape memory 44 (see FIG. 1) according to the present embodiment in order to form the SFC diagram by translational branching and merging shown in FIG. This is an example. In FIG.
Is an example of an operation means for instructing an initial process.
A key 87 is a PF key which is an example of an operation means for instructing a translational branch without condition selection, and an operation 86 is an operation for instructing a merging step of a process sequence cascaded by a plurality of process branches to an arbitrary merging process. PE key as an example of means, 8
Reference numeral 3 denotes a K key which is an example of operation means for instructing the number of cascade processes to be connected in cascade starting from the process number designated immediately before, and 84 denotes an operation means for instructing the end of the input to the process shape memory 44. This is an example of an END key.

【0076】150はISキー80、Sキー27、数値
キー(1)28、実行キー29を用いた初期工程を指示
するためのキー入力操作の一例でIS_S1_ 実行で
ある。151はPFキー87、Sキー27、数値キー
(40)28、実行キー29を用いた第1列工程を指示
するためのキー入力操作の一例でPF_S40_ 実行
である。152はKキー83、数値キー(3)28、実
行キー29を用いた第1列工程に縦列接続する縦続工程
数を指示するためのキー入力操作の一例でK_3_ 実
行である。153はPFキー87、Sキー27、数値キ
ー(50)28、実行キー29を用いた第2列工程を指
示するためのキー入力操作の一例でPF_S50_ 実
行である。154はKキー83、数値キー(2)28、
実行キー29を用いた第2列工程に縦列接続する縦続工
程数を指示するためのキー入力操作の一例でK_2_
実行である。155はPEキー86、Sキー27、数値
キー(60)28、実行キー29を用いた合流工程への
並進合流を指示するためのキー入力操作の一例でPE_
S60_ 実行である。
Reference numeral 150 denotes an example of a key input operation for instructing an initial step using the IS key 80, the S key 27, the numerical key (1) 28, and the execution key 29, which is IS_S1_Execution. Reference numeral 151 denotes an example of a key input operation for instructing the first row process using the PF key 87, the S key 27, the numerical key (40) 28, and the execution key 29, which is PF_S40_execution. Reference numeral 152 denotes an example of a key input operation for instructing the number of cascade processes to be cascade-connected to the first column process using the K key 83, the numeric key (3) 28, and the execution key 29, and is K_3_execute. Reference numeral 153 denotes an example of a key input operation for instructing the second row process using the PF key 87, the S key 27, the numerical key (50) 28, and the execution key 29, which is PF_S50_execution. 154 is a K key 83, a numerical key (2) 28,
An example of a key input operation for instructing the number of cascade processes to be cascade-connected to the second row process using the execution key 29 is K_2_.
Execution. Reference numeral 155 denotes an example of a key input operation for instructing a parallel merging to the merging step using the PE key 86, the S key 27, the numerical key (60) 28, and the execution key 29;
S60 — Execution.

【0077】図5は図21で示したシングルフローによ
るSFC図を形成するために工程形状メモリ44に各指
示を入力する場合のキー操作リストの一例である。図5
において、80は初期工程を指示するための操作手段の
一例であるISキー、85は分岐を伴わないフローの先
頭工程番号を指示するための操作手段の一例であるTS
キー、83は縦続工程数を指示するための操作手段の一
例であるKキー、84は工程形状メモリ44に対する入
力の終了を指示するための操作手段の一例であるEND
キーである。
FIG. 5 is an example of a key operation list when each instruction is input to the process shape memory 44 in order to form the SFC diagram according to the single flow shown in FIG. FIG.
In the figure, reference numeral 80 denotes an IS key as an example of an operation means for designating an initial step, and reference numeral 85 denotes a TS which is an example of an operation means for designating a head step number of a flow without branching.
A key 83 is an K means as an example of operating means for instructing the number of cascade processes, and an END 84 is an example of operating means for instructing the end of the input to the process shape memory 44.
Is the key.

【0078】160はISキー80、Sキー27、数値
キー(2)28、実行キー29を用いた初期工程を指示
するためのキー入力操作の一例でIS_S2_ 実行で
ある。161はTSキー85、Sキー27、数値キー
(70)28、実行キー29を用いた初期工程に縦続す
る第1列工程を指示するためのキー入力操作の一例でT
S_S70_ 実行である。162は直前に指示した工
程番号に対して縦続する工程を指示するため、Sキー2
7、数値キー(75)28、実行キー29を用いたキー
入力操作の一例でS75_ 実行である。163は直前
に指示した工程番号に対して縦続する工程を指示するた
め、Sキー27、数値キー(77)28、実行キー29
を用いたキー入力操作の一例でS77_ 実行である。
164はKキー83、数値キー(3)28、実行キー2
9を用いた縦続工程数を指示するためのキー入力操作の
一例でK_3_ 実行である。
Reference numeral 160 denotes an example of a key input operation for instructing an initial process using the IS key 80, the S key 27, the numerical key (2) 28, and the execution key 29, and is IS_S2_Execution. Reference numeral 161 denotes an example of a key input operation for instructing a first row process cascading to the initial process using the TS key 85, the S key 27, the numeric key (70) 28, and the execution key 29.
S_S70_ execution. 162 is an S key 2 for instructing a cascade process to the process number designated immediately before.
7. S75_Execution is an example of a key input operation using the numeric key (75) 28 and the execution key 29. Reference numeral 163 denotes an S key 27, a numerical key (77) 28, and an execution key 29 for instructing a cascade process with respect to the process number designated immediately before.
Is an example of a key input operation using S77_ executed.
164 is a K key 83, a numerical key (3) 28, and an execution key 2
9 is an example of a key input operation for instructing the number of cascading steps using K_3_9.

【0079】図6は図1に示す工程形状メモリ44の内
部構造の一例である。同図中、120は工程の開始と終
了に関する情報が格納されるパラメータデータ、121
は初期工程番号の直下に接続される工程列に関する情報
を格納する第1列工程データ、122は初期工程番号の
直下に接続された第1列工程に対して条件を伴う分岐あ
るいは条件を伴わない分岐列が指示された場合に第2列
目の工程列に関する情報を格納する第2列工程データ、
123は上記第2列工程列データ122に続き順次指示
された工程列の終端工程列に関する情報を格納する第8
列工程データであり、第1列工程データ121、第2列
工程データ122、〜第8列工程データ123は同じ内
部構造で構成される。
FIG. 6 shows an example of the internal structure of the process shape memory 44 shown in FIG. In the figure, reference numeral 120 denotes parameter data in which information relating to the start and end of the process is stored;
Is the first column process data storing information relating to the process column connected immediately below the initial process number, and 122 is the first column process connected immediately below the initial process number, with or without a conditional branch or condition Second column process data for storing information on a second process column when a branch sequence is designated;
An eighth reference numeral 123 stores information on the last process sequence of the sequentially designated process sequence following the second column process sequence data 122.
The first column process data 121, the second column process data 122, and the eighth to eighth column process data 123 have the same internal structure.

【0080】パラメータデータ120中、124は図3
に示したプログラムが図1に示すシーケンスプログラム
メモリ43上のどこに格納されるかを示したプログラム
挿入先頭アドレス、125は図3に示した命令140
(IS_S0_ 実行)によって指示された初期工程番
号S0が格納される初期工程番号、126は図3に示し
た命令145(SE_S30_ 実行)によって指示さ
れた合流工程が格納される合流工程番号、127は図3
に示した命令145(SE_S30_ 実行)によって
指示された前工程との接続方法が格納される合流形式で
ある。
In the parameter data 120, reference numeral 124 denotes FIG.
3 is a program insertion start address indicating where the program shown in FIG. 1 is stored in the sequence program memory 43 shown in FIG. 1, and 125 is an instruction 140 shown in FIG.
(IS_S0_execution) is an initial process number storing the initial process number S0, 126 is a merging process number storing the merging process specified by the instruction 145 (SE_S30_execute) shown in FIG. 3
Is a merged format in which the connection method with the previous process specified by the instruction 145 (SE_S30_execution) shown in FIG.

【0081】第1列工程データ121中、128は図3
に示した命令141(SF_S10_ 実行)によって
指示された第1列工程の先頭番号S10が格納される第
1列工程先頭番号、129は図3に示した命令141
(SF_S10_ 実行)によって指示された初期工程
との接続方法が格納される分岐形式、130は図3に示
した命令142(K_3_ 実行)によって指示された
直前の工程番号に縦列接続する工程数が格納される縦続
工程数、131、132は図1に示したシステムメモリ
42内の工程形状入力プログラムで定められた手順によ
り演算して求められた第1列工程先頭番号128に縦列
接続する工程番号が格納される縦続工程番号(1〜n)
である。
In the first column process data 121, 128 is the data shown in FIG.
The first column process head number 129 in which the first column process head number S10 specified by the instruction 141 (SF_S10_execution) shown in FIG.
The branch format in which the connection method with the initial process specified by (SF_S10_execution) is stored. Reference numeral 130 stores the number of processes connected in cascade to the immediately preceding process number specified by the instruction 142 (K_3_execution) shown in FIG. The number of cascaded processes 131 and 132 are the process numbers connected in cascade to the first column process head number 128 calculated by the procedure defined by the process shape input program in the system memory 42 shown in FIG. Cascaded process numbers (1 to n) to be stored
It is.

【0082】図7は、図3に示したキー操作の一例によ
って本発明を実現する手段としての工程形状メモリ44
に対して指示した内容を、システムメモリ42内の命令
の一括生成手段によってマイクロプロセッサ41が演算
し生成した擬似SFCプログラムリストを図17で示し
た選択分岐によるSFC図として表現したものである。
FIG. 7 shows a process shape memory 44 as a means for realizing the present invention by one example of the key operation shown in FIG.
The pseudo SFC program list calculated and generated by the microprocessor 41 by the batch generation means of the instructions in the system memory 42 is expressed as an SFC diagram by the selective branch shown in FIG.

【0083】図7において、1は工程番号S0の工程、
4は工程番号S10の工程、7は工程番号S11の工
程、10は工程番号S12の工程、15は工程番号S2
0の工程、18は工程番号S21の工程、22は工程番
号S30の工程で、図3に示した選択分岐のSFC図の
各工程と同様に構成されている。170は移行条件の入
力位置を擬似的に示す移行条件マーカ、171は工程内
で駆動される出力の命令入力位置を擬似的に示す駆動コ
イルマーカである。
In FIG. 7, reference numeral 1 denotes a process of process number S0;
4 is a step of step number S10, 7 is a step of step number S11, 10 is a step of step number S12, and 15 is a step number of S2.
Step 0, step 18 is step number S21, step 22 is step number S30, which are configured in the same manner as the steps in the SFC diagram of the selective branch shown in FIG. Reference numeral 170 denotes a transition condition marker that simulates the input position of the transition condition, and 171 denotes a drive coil marker that simulates the instruction input position of the output driven in the process.

【0084】図8は図19で示した並進分岐によるSF
C図を、図4に示したキー操作の一例によって、上記図
7と同様の手段で生成された擬似SFCプログラムリス
トをSFC図として表現したものである。
FIG. 8 shows SF by the translation branch shown in FIG.
The C diagram is a diagram in which the pseudo SFC program list generated by the same means as in FIG. 7 is represented as an SFC diagram by an example of the key operation shown in FIG.

【0085】図8において、400は工程番号S1の工
程、402は工程番号S40の工程、405は工程番号
S41の工程、408は工程番号S42の工程、410
は工程番号S50の工程、413は工程番号S51の工
程、416は工程番号S60の工程である。これらの工
程の構成は図19に示した並進分岐のSFC図の各工程
と同様に構成されている。170は移行条件の入力位置
を擬似的に示す移行条件マーカ、171は工程内で駆動
される出力の命令入力位置を擬似的に示す駆動コイルマ
ーカである。
In FIG. 8, reference numeral 400 denotes the step of step number S1, 402 denotes the step of step number S40, 405 denotes the step of step number S41, 408 denotes the step of step number S42, 410
Denotes a step of step number S50, 413 denotes a step of step number S51, and 416 denotes a step of step number S60. The configuration of these steps is the same as each step of the SFC diagram of the translational branch shown in FIG. Reference numeral 170 denotes a transition condition marker that simulates the input position of the transition condition, and 171 denotes a drive coil marker that simulates the instruction input position of the output driven in the process.

【0086】図9は図21で示したシングルフローによ
るSFC図を、図5に示したキー操作の一例により図7
と同様の手段で生成された擬似SFCプログラムリスト
をSFC図として表現したものである。
FIG. 9 shows the SFC diagram of the single flow shown in FIG. 21 by using an example of the key operation shown in FIG.
7 is a representation of a pseudo SFC program list generated by the same means as in FIG.

【0087】図9において、600は工程番号S2の工
程、602は工程番号S70の工程、605は工程番号
S75の工程、608は工程番号S77の工程であり、
これらの工程の構成は図21に示したシングルフローの
SFC図の各工程と同様に構成されている。170は移
行条件の入力位置を擬似的に示す移行条件マーカ、17
1は工程内で駆動される出力の命令入力位置を擬似的に
示す駆動コイルマーカである。
In FIG. 9, reference numeral 600 denotes a step of step number S2, 602 denotes a step of step number S70, 605 denotes a step of step number S75, and 608 denotes a step of step number S77.
The configuration of these steps is the same as each step of the single flow SFC diagram shown in FIG. Reference numeral 170 denotes a transition condition marker that simulates the input position of the transition condition.
Reference numeral 1 denotes a drive coil marker that artificially indicates a command input position of an output driven in the process.

【0088】図10は図17で示した選択分岐・合流に
よるSFC図を、図1に示すシステムメモリ42内の命
令の一括生成手段によってマイクロプロセッサ41が演
算し生成した擬似SFCプログラムリストであり、図7
に示したSFC図表現の基となるリストである。
FIG. 10 is a pseudo SFC program list generated by the microprocessor 41 calculating and generating the SFC diagram of the selective branch / merge shown in FIG. 17 by the instruction batch generation means in the system memory 42 shown in FIG. FIG.
Is a list that is the basis of the SFC diagram expression shown in FIG.

【0089】また、図10は生成されたプログラムリス
ト上に挿入された移行条件の入力位置を擬似的に示す移
行条件マーカと工程内で駆動される出力の命令入力位置
を擬似的に示す駆動コイルマーカに対して編集作業を行
い、目的とするSFC図(図17)を完成させる手段を
説明するための図である。
FIG. 10 shows a transition condition marker that simulates the input position of the transition condition inserted on the generated program list and a drive coil that simulates the instruction input position of the output driven in the process. FIG. 18 is a diagram for describing a means for performing an editing operation on a marker to complete a target SFC diagram (FIG. 17).

【0090】図10において、170は自動生成された
移行条件マーカ、171は自動生成された駆動コイルマ
ーカ、172は自動生成された工程駆動命令、173は
自動生成された工程動作開始命令である。
In FIG. 10, 170 is an automatically generated transition condition marker, 171 is an automatically generated drive coil marker, 172 is an automatically generated process drive command, and 173 is an automatically generated process operation start command.

【0091】330aは図17に示すSFC図を完成さ
せるために追加する移行条件命令、330bは図17に
示すSFC図を完成させるために追加する駆動出力命
令、330cは工程固有の追加命令である。
Reference numeral 330a denotes a transition condition instruction added to complete the SFC diagram shown in FIG. 17, 330b denotes a drive output instruction added to complete the SFC diagram shown in FIG. 17, and 330c denotes a process-specific additional instruction. .

【0092】図11は図19で示した並進分岐によるS
FC図を、図10と同様に生成した擬似SFCプログラ
ムリストであり、図8に示したSFC図表現の基となる
リストである。また、図11は図10と同様の編集作業
により図19に示すSFC図を完成させる手段を説明す
るための図である。
FIG. 11 shows S by the translational branch shown in FIG.
This is a pseudo SFC program list generated from the FC diagram in the same manner as in FIG. 10, and is a list on which the SFC diagram representation shown in FIG. 8 is based. FIG. 11 is a diagram for explaining means for completing the SFC diagram shown in FIG. 19 by the same editing work as in FIG.

【0093】図11において、170は自動生成された
移行条件マーカ、171は自動生成された駆動コイルマ
ーカ、172は自動生成された工程駆動命令、173は
自動生成された工程動作開始命令、331aは図5に示
すSFC図を完成させるために追加する移行条件命令、
331bは図5に示すSFC図を完成させるために追加
する駆動出力命令である。
In FIG. 11, 170 is an automatically generated transition condition marker, 171 is an automatically generated drive coil marker, 172 is an automatically generated process drive command, 173 is an automatically generated process operation start command, and 331a is a process operation start command. A transition condition command added to complete the SFC diagram shown in FIG. 5,
Reference numeral 331b denotes a drive output instruction added to complete the SFC diagram shown in FIG.

【0094】図12は図21で示したシングルフローに
よるSFC図を、上記図10と同様に生成した擬似SF
Cプログラムリストであり、図9に示したSFC図表現
の基となるリストである。また、図12は上記図10と
同様の編集作業により図21に示すSFC図を完成させ
る手段を説明するための図である。
FIG. 12 shows an SFC diagram based on the single flow shown in FIG. 21 and a pseudo SF generated in the same manner as in FIG.
9 is a C program list, which is a list on which the SFC diagram expression shown in FIG. 9 is based. FIG. 12 is a diagram for explaining means for completing the SFC diagram shown in FIG. 21 by the same editing work as in FIG.

【0095】図12において、170は自動生成された
移行条件マーカ、171は自動生成された駆動コイルマ
ーカ、172は自動生成された工程駆動命令、173は
自動生成された工程動作開始命令、332aは図19に
示すSFC図を完成させるために追加する移行条件命
令、332bは図19に示すSFC図を完成させるため
に追加する駆動出力命令である。
In FIG. 12, 170 is an automatically generated transition condition marker, 171 is an automatically generated drive coil marker, 172 is an automatically generated process drive command, 173 is an automatically generated process operation start command, and 332a is a process operation start command. A transition condition command 332b added to complete the SFC diagram shown in FIG. 19 is a drive output command added to complete the SFC diagram shown in FIG.

【0096】(2)実施の形態の作用、動作の詳細な説
明 図1において、多数の入力スイッチ65のON/OFF
情報は入力インタフェース66、第2のマイクロプロセ
ッサ61を介してデバイスメモリ64に格納される。ま
た、多数の外部負荷67はシーケンスプログラムメモリ
63の内容とデバイスメモリ64の内容に基づいて第2
のマイクロプロセッサ61によって制御され出力インタ
フェース68を介してON/OFF制御される。
(2) Detailed operation and operation of the embodiment: In FIG. 1, ON / OFF of a number of input switches 65
The information is stored in the device memory 64 via the input interface 66 and the second microprocessor 61. Further, a large number of external loads 67 are stored in the second based on the contents of the sequence program memory 63 and the contents of the device memory 64.
And ON / OFF control via the output interface 68.

【0097】一方、プログラム作成装置40Aの操作キ
ー46によって入力されたシーケンス命令はキーインタ
フェース47を介し第1のマイクロプロセッサ41に転
送され、そこでシステムメモリ42内のキー入力処理プ
ログラムで定められた手順で演算処理され画面コントロ
ーラ49を介して表示器48にSFC図によるプログラ
ムフローとして表示される。
On the other hand, the sequence command input by the operation keys 46 of the program creating device 40A is transferred to the first microprocessor 41 via the key interface 47, where the sequence determined by the key input processing program in the system memory 42. Is displayed on the display 48 via the screen controller 49 as a program flow based on the SFC diagram.

【0098】また、第1のマイクロプロセッサ41の演
算結果は、シーケンスプログラムメモリ43に書き込ま
れるかあるいは、通信インタフェース50に接続したケ
ーブル70によって、PLC60Aが有する通信インタ
フェース69を介し第2のマイクロプロセッサ61に転
送され、そこでシステムメモリ62内の通信プログラム
で定められた手順で演算処理されてシーケンスプログラ
ムメモリ63にシーケンスによるプログラムとして書き
込まれる。
The operation result of the first microprocessor 41 is written in the sequence program memory 43 or the second microprocessor 61 is connected to the second microprocessor 61 via the communication interface 69 of the PLC 60A by the cable 70 connected to the communication interface 50. Is then processed by a procedure determined by the communication program in the system memory 62 and written into the sequence program memory 63 as a sequence program.

【0099】工程形状メモリ44は本発明を実現する手
段として設けたメモリである。工程形状メモリ44は、
操作キー46よりキーインタフェース47を介して入力
された指示を、システムメモリ42内の工程形状入力プ
ログラムに定められた手順により工程形状情報として記
憶する。この情報はシステムメモリ42内の命令生成プ
ログラムに定められた手順によってマイクロプロセッサ
41で演算され、工程動作開始命令と工程駆動命令とこ
れに付随する工程番号を一括生成して本発明を実現する
手段として設けた工程プログラムメモリ45に書き込ま
れる。
The process shape memory 44 is a memory provided as a means for realizing the present invention. The process shape memory 44
Instructions input from the operation keys 46 via the key interface 47 are stored as process shape information according to a procedure defined in a process shape input program in the system memory 42. This information is calculated by the microprocessor 41 according to the procedure specified in the instruction generation program in the system memory 42, and means for realizing the present invention by collectively generating a process operation start command, a process drive command, and a process number associated therewith. Is written in the process program memory 45 provided as.

【0100】工程プログラムメモリ45の記憶内容は、
シーケンスプログラムメモリ43の所定のアドレスに書
き込まれるかあるいは、通信インタフェース50に接続
したケーブル70、通信インタフェース69を介して第
2のマイクロプロセッサ61に転送され、そこでシステ
ムメモリ62内の通信プログラムで定められた手順で演
算処理されてシーケンスプログラムメモリ63の所定の
アドレスに書き込まれる。
The contents stored in the process program memory 45 are as follows.
The data is written to a predetermined address of the sequence program memory 43 or transferred to the second microprocessor 61 via the cable 70 connected to the communication interface 50 and the communication interface 69, where it is determined by the communication program in the system memory 62. The arithmetic processing is performed according to the above procedure, and the result is written to a predetermined address of the sequence program memory 63.

【0101】図2に示すように構成されたプログラム作
成装置40Aにおけるプログラムの入力操作は、操作キ
ー46に準備されたキーをシーケンスプログラムリスト
に基づいて順次入力操作し最後に実行キー29でシーケ
ンスプログラムを確定する。
The program input operation in the program creating device 40A configured as shown in FIG. 2 is performed by sequentially inputting the keys prepared for the operation keys 46 based on the sequence program list, and finally executing the sequence program by the execution key 29. Confirm.

【0102】図3に示す選択分岐・合流によるSFC図
の工程形状指示手段は図2に示すプログラム作成装置4
0Aを用いて入力するものである。命令140(IS_
S0_ 実行)に用いるISキー80、命令141(S
F_S10_ 実行)に用いるSFキー81、命令14
2(K_3_ 実行)に用いるKキー83および命令1
45(SE_S30_ 実行)に用いるSEキー82
は、図2に示すプログラム作成装置40Aの操作キー4
6によるものである。
The process shape designating means of the SFC diagram by selective branch / merge shown in FIG.
This is input using 0A. Instruction 140 (IS_
IS key 80 used for S0_execution) and instruction 141 (S
SF key 81 used for F_S10_ execution), instruction 14
K key 83 and instruction 1 used for 2 (K_3_ execution)
SE key 82 used for 45 (SE_S30_ execution)
Is the operation key 4 of the program creation device 40A shown in FIG.
No. 6.

【0103】それぞれのキー入力操作は図17に示した
選択分岐によるSFC図に対して次の指定に用いられて
いる。命令140(IS_S0_ 実行)では図17に
示す初期工程1の指示を示し、命令141(SF_S1
0_ 実行)では図17に示す第1列の選択分岐接続と
先頭工程4を指示し、命令142(K_3_ 実行)で
は図17に示す第1列の選択分岐の先頭工程を含んで縦
続する工程数3個を指示し、命令143(SF_S20
_ 実行)では図17に示す第2列の選択分岐接続と先
頭工程15を指示し、命令144(K_2_ 実行)で
は図17に示す第2列の選択分岐の先頭工程を含んで縦
続する工程数2個を指示し、命令145(SE_S30
_ 実行)では第1列の選択分岐の最終工程と第2列の
選択分岐の最終工程が条件選択によって工程22に合流
することを指示している。
Each key input operation is used for the next designation in the SFC diagram by the selective branch shown in FIG. The instruction 140 (IS_S0_execution) indicates the instruction of the initial step 1 shown in FIG.
0_execution) indicates the first branch selection branch connection and the first step 4 shown in FIG. 17, and the instruction 142 (K_3_execution) indicates the number of steps cascaded including the first column selection branch first step shown in FIG. Three are specified, and the instruction 143 (SF_S20
_ Execution) indicates the second branch selection branch connection and the first step 15 shown in FIG. 17, and the instruction 144 (K_2_ execution) indicates the number of cascaded steps including the first step of the second column selection branch shown in FIG. Two are specified, and an instruction 145 (SE_S30
_Execution) indicates that the last step of the first column selection branch and the last step of the second column selection branch merge into the step 22 by condition selection.

【0104】図4に示す並進分岐によるSFC図の工程
形状指示手段は上記操作と同様に図2に示すプログラム
作成装置40Aを用いて入力するものであり、命令15
0(IS_S1_ 実行)に用いるISキー80、命令
151(PF_S40_ 実行)に用いるPFキー8
7、命令152(K_3_ 実行)に用いるKキー83
および命令145(PE_S30_ 実行)に用いるP
Eキー86は、図2に示すプログラム作成装置の操作キ
ー46によるものである。
The process shape designating means of the SFC diagram by the translational branch shown in FIG. 4 is inputted by using the program creating device 40A shown in FIG.
IS key 80 used for 0 (IS_S1_ execution), PF key 8 used for instruction 151 (PF_S40_ execution)
7. K key 83 used for instruction 152 (K_3_ execution)
And P used for instruction 145 (PE_S30_ execution)
The E key 86 is operated by the operation keys 46 of the program creating device shown in FIG.

【0105】それぞれのキー入力操作は図19に示した
並進分岐によるSFC図に対して次の指定に用いられて
いる。命令150(IS_S1_ 実行)では図19に
示す初期工程400の指示を示し、命令151(PF_
S40_ 実行)では図19に示す第1列の並進分岐接
続と先頭工程402を指示し、命令152(K_3_実
行)では図19に示す第1列の並進分岐の先頭工程を含
んで縦続する工程数3個を指示し、命令153(PF_
S50_ 実行)では図19に示す第2列の並進分岐接
続と先頭工程410を指示し、命令154(K_2_
実行)では図19に示す第2列の並進分岐の先頭工程を
含んで縦続する工程数2個を指示し、命令155(PE
_S60_ 実行)では第1列の並進分岐の最終工程と
第2列の並進分岐の最終工程の双方が活性化されている
状態で移行条件が入力されると工程416に合流するこ
とを指示している。
Each key input operation is used for the next designation in the SFC diagram by the translational branch shown in FIG. The instruction 150 (IS_S1_ execution) indicates the instruction of the initial step 400 shown in FIG.
In step S40_execution), the translation branch connection in the first column and the leading step 402 shown in FIG. 19 are instructed. In the instruction 152 (K_3_execution), the number of steps cascaded including the translation step in the first column shown in FIG. Instruct three, instruction 153 (PF_
In S50_execution), the translation branch connection in the second column and the leading step 410 shown in FIG. 19 are instructed, and the instruction 154 (K_2_
In execution), two cascaded steps including the first step of the translation branch in the second column shown in FIG. 19 are specified, and the instruction 155 (PE
In _S60_ execution), when the transition condition is input in a state where both the last step of the first row of the translational branch and the last row of the second row of the translational branch are activated, it is instructed to join the step 416. I have.

【0106】図5に示すシングルフローによるSFC図
の工程形状指示手段は上記操作と同様に図2に示すプロ
グラム作成装置40Aを用いて入力するものであり、命
令160(IS_S2_ 実行)に用いるISキー8
0、命令161(TS_S70_ 実行)に用いるTS
キー80、命令164(K_3_ 実行)に用いるKキ
ー83は、図2に示すプログラム作成装置の操作キー4
6によるものである。
The process shape designating means of the SFC diagram by the single flow shown in FIG. 5 is input by using the program creating device 40A shown in FIG. 2 similarly to the above operation, and the IS key used for the instruction 160 (IS_S2_execute) is used. 8
0, TS used for instruction 161 (TS_S70_ execution)
The key 80 and the K key 83 used for the command 164 (K_3_ execution) are the operation keys 4 of the program creating apparatus shown in FIG.
No. 6.

【0107】それぞれの入力操作は図21に示したシン
グルフローによるSFC図に対して次の指定に用いられ
ている。命令160(IS_S2_ 実行)では図21
に示す初期工程600の指示を示し、命令161(TS
_S70_ 実行)では図21に示す初期工程600に
対して分岐を伴わないフローとして工程602の指示を
示し、命令162(S75_実行)では図21に示す工
程605が直前の工程である工程602に対して飛び番
号で縦続接続する指示を示し、命令163(S77_実
行)では図21に示す工程608が直前の工程である工
程605に対して飛び番号で縦続接続する指示を示し、
命令152(K_3_ 実行)では第1列工程に縦列接
続する縦続工程数3個であることを指示している。
Each input operation is used for the next designation with respect to the single flow SFC diagram shown in FIG. In the instruction 160 (IS_S2_ execution), FIG.
The instruction of the initial step 600 shown in FIG.
_S70_execution) shows the instruction of step 602 as a flow without branching to the initial step 600 shown in FIG. 21. In the instruction 162 (S75_execution), the step 605 shown in FIG. In the instruction 163 (S77_execution), the instruction 163 (S77_execution) indicates that the step 608 shown in FIG. 21 is cascade-connected to the immediately preceding step 605 by the jump number.
The instruction 152 (K_3_ execution) indicates that the number of cascade processes to be cascade-connected to the first column process is three.

【0108】なお、たとえばS70−S75−K3とプ
ログラムすれば全工程数3の内2工程は工程番号が指定
されており、残りの工程はS75に続くS76となる。
同様にS70−K3であれば 工程番号はS70−S7
1−S72の連続番号が指定されたことになる。このよ
うな飛び番号指定や連続番号指定の方法は選択分岐や並
進分岐後のフローに対しても同様の扱いとなっている。
For example, if the program is programmed as S70-S75-K3, a step number is specified for two of the three steps, and the remaining steps are S76 following S75.
Similarly, if it is S70-K3, the process number is S70-S7.
This means that the serial number of 1-S72 has been designated. The method of specifying the jump number or the continuous number is the same for the flow after the selective branch or the translational branch.

【0109】図3、図4および図5に示した工程形状の
操作手段は図1に示すシステムメモリ42内の工程形状
入力プログラムに定められた手順によって、キーインタ
フェ−ス47を介し本発明を実現する手段として設けた
工程形状メモリ44に記憶されるものであるが、これが
どのように動作し工程形状メモリ44に記憶されるかを
図13、14に示すフローチャートで説明する。なお、
図13、14中( )で示した番号は図6に示した番号
に対応していて、このステップが作用する箇所を示して
いる。
The operation means of the process shape shown in FIGS. 3, 4 and 5 implements the present invention via the key interface 47 in accordance with the procedure defined in the process shape input program in the system memory 42 shown in FIG. It is stored in the process shape memory 44 provided as a means for realizing the process. How this operates and is stored in the process shape memory 44 will be described with reference to flowcharts shown in FIGS. In addition,
The numbers shown in parentheses in FIGS. 13 and 14 correspond to the numbers shown in FIG. 6, and indicate locations where this step operates.

【0110】図13において、ステップ200、ステッ
プ201,ステップ202,ステップ203は形状指示
操作の開始判断に基づいて生成プログラムの挿入位置と
初期工程番号を処理するステップであり、ステップ20
0ではIS_S×××で任意の初期工程番号が入力され
ると、ステップ201により図6に示す工程形状メモリ
44上のプログラム挿入アドレス124に対して図3、
図4または図5に示す操作手段の一例が開始されたシー
ケンスプログラムアドレスを書込む。
In FIG. 13, steps 200, 201, 202, and 203 are steps for processing the insertion position of the generation program and the initial process number based on the determination of the start of the shape instruction operation.
0, if an arbitrary initial process number is input by IS_Sxxx, in step 201, the program insertion address 124 on the process shape memory 44 shown in FIG.
An example of the operation means shown in FIG. 4 or 5 writes the started sequence program address.

【0111】ステップ202ではステップ200で入力
された工程番号S×××を初期工程番号として図6に示
す工程形状メモリ44上の初期工程番号125に書込
む。ステップ203では、初期工程に複数の分岐工程が
接続された場合に分岐数を計数するための分岐数カウン
タに0を書込み初期化する。
In step 202, the process number Sxxx input in step 200 is written as the initial process number in the initial process number 125 on the process shape memory 44 shown in FIG. In step 203, when a plurality of branching steps are connected to the initial step, 0 is written to a branch number counter for counting the number of branches and initialized.

【0112】ステップ204,ステップ220,ステッ
プ221,ステップ222は選択分岐操作の開始判断に
基づいて各工程列の先頭工程番号の書込みと初期工程に
対する接続方法の書込みを処理するステップであり、ス
テップ204ではSF_S×××で任意の工程番号が入
力されると選択分岐フローの開始と判定しステップ22
0により分岐数カウンタに1を加算した結果を図示しな
い分岐列レジスタAに転送する。
Steps 204, 220, 221 and 222 are steps for processing the writing of the head process number of each process sequence and the writing of the connection method for the initial process based on the judgment of the start of the selective branch operation. In step S22, when an arbitrary process number is input in SF_Sxxx, it is determined that the selective branch flow has started, and
The result of adding 1 to the branch number counter by 0 is transferred to a branch column register A (not shown).

【0113】ステップ221ではステップ204で入力
された工程番号S×××を分岐列レジスタAが示す工程
列の先頭番号として認識し、例えば工程番号にS10が
入力されたとき分岐列レジスタA=1であれば第1列工
程と判断し、図6に示す工程形状メモリ44上の第1列
工程先頭番号128に対して10を書込む。
In step 221, the process number Sxxx input in step 204 is recognized as the head number of the process sequence indicated by the branch sequence register A. For example, when S10 is input as the process number, the branch sequence register A = 1 If so, it is determined that the process is the first column process, and 10 is written to the first column process head number 128 in the process shape memory 44 shown in FIG.

【0114】ステップ222では、図6に示す工程形状
メモリ44上の初期工程番号125に対する第A列工程
の接続方法を選択分岐とし、例えばA=1であれば第1
列工程と判断し、図6に示す工程形状メモリ44上の分
岐形式129に対して選択分岐を意味する1を書込む。
At step 222, the connection method of the A-th row process to the initial process number 125 on the process shape memory 44 shown in FIG.
It is determined that the process is a column process, and 1 indicating a selective branch is written in the branch format 129 on the process shape memory 44 shown in FIG.

【0115】ステップ223,ステップ224,ステッ
プ271は先頭工程に縦続接続される工程番号が連続番
号なのか飛び番号なのかを判定するステップである。ス
テップ224,ステップ225,ステップ226,ステ
ップ227,ステップ228,ステップ229は縦続す
る工程番号を連続番号として生成し工程形状メモリ44
に書込むステップである。この処理においてステップ2
23では、第A列工程に縦列的に接続される縦続工程数
を計数するための縦続工程カウンタに0を書込み初期化
する。
Steps 223, 224, and 271 are steps for judging whether the process number cascade-connected to the first process is a continuous number or a skipped number. In step 224, step 225, step 226, step 227, step 228, and step 229, the cascaded process numbers are generated as serial numbers, and the process shape memory 44
Step. Step 2 in this process
At 23, 0 is written to a cascade process counter for counting the number of cascade processes connected in cascade to the Ath column process, and is initialized.

【0116】ステップ224ではK□□□で任意の数値
が入力されると、ステップ225によりK□□□を第A
列工程に縦列的に接続される縦続工程数と認識し、例え
ば縦続工程数にK3が入力されたとき分岐列レジスタA
=1であれば第1列工程と判断し、図6に示す工程形状
メモリ44上の縦続工程数130に対して3を書込む。
また、Kで指定された工程数分の連続工程番号を自動採
番するモードであると判断する。
In step 224, when an arbitrary numerical value is input in K □□□, K □□□ is changed to A-th in step 225.
It recognizes the number of cascade processes connected in cascade to the column process, and for example, when K3 is input as the number of cascade processes, the branch column register A
If = 1, it is determined that the process is the first column process, and 3 is written in the cascade process number 130 on the process shape memory 44 shown in FIG.
Further, it is determined that the mode is a mode in which the consecutive process numbers for the number of processes designated by K are automatically numbered.

【0117】ステップ226では縦続工程カウンタに1
を加算した結果を図示しない縦続数レジスタBに転送す
る。ステップ227ではステップ204で入力された工
程番号S×××に1を加算することで縦続工程の工程番
号を算出した後、図示しない縦続工程番号レジスタCに
転送するものであり、例えば工程番号にS10が入力さ
れると縦続工程番号レジスタC=11が演算結果とな
る。
In step 226, 1 is set in the cascade process counter.
Is transferred to a cascade number register B (not shown). In step 227, the process number of the cascade process is calculated by adding 1 to the process number Sxxx input in step 204, and then transferred to a cascade process number register C (not shown). When S10 is input, the cascade process number register C = 11 becomes the calculation result.

【0118】ステップ228では分岐数レジスタAが示
す工程列の縦続数レジスタBが示す縦続工程位置に対し
て縦続工程番号Cが書込まれるため、例えば分岐列レジ
スタA=1、縦続数レジスタB=1、縦続工程番号レジ
スタC=11であれば第1列工程の2つめ目の工程番号
が11であると判断し、図6に示す工程形状メモリ44
上の第1列工程データ121の縦続工程番号1:131
〜n:132中の縦続数レジスタBが示す縦続工程番号
1:131に対して工程番号である11が書込みされ
る。
In step 228, since the cascade process number C is written into the cascade process position indicated by the cascade number register B of the process sequence indicated by the branch number register A, for example, the branch sequence register A = 1, the cascade number register B = 1. If the cascade process number register C = 11, it is determined that the second process number of the first column process is 11, and the process shape memory 44 shown in FIG.
Cascade process number 1: 131 of the first column process data 121 above
11 is written to the cascading process number 1: 131 indicated by the cascading number register B in .about.n: 132.

【0119】ステップ229ではステップ224で入力
されたK□□□と現在の縦続工程番号の処理回数を比較
して終了の判定を行い、処理回数が条件に満たない場合
は次段に接続された縦続工程番号を処理するためにステ
ップ226を処理し、条件が一致した場合はステップ2
04を処理する。
In step 229, the end of the process is compared by comparing the K □□□ input in step 224 with the current process number of the cascade process number. If the process number does not satisfy the condition, the connection is made to the next stage. Step 226 is processed to process the cascade process number, and if the conditions are matched, step 2 is executed.
04 is processed.

【0120】ステップ224,ステップ271,ステッ
プ272,ステップ273,ステップ274,ステップ
275,ステップ276は縦続する工程番号を飛び番号
として生成し工程形状メモリ44に書込むステップであ
る。この処理において、ステップ224で判定条件K□
□□が不一致の場合はステップ271を実行しS×××
で任意の工程番号が入力されると、工程番号の飛び番入
力モードであると判断する。
Step 224, step 271, step 272, step 273, step 274, step 275, and step 276 are steps in which the cascaded process numbers are generated as skip numbers and written into the process shape memory 44. In this processing, in step 224, the judgment condition K □
If □□ does not match, execute step 271 to execute Sxxx.
When an arbitrary process number is input in step, it is determined that the process number is a skip number input mode.

【0121】ステップ272では縦続工程カウンタに1
を加算し処理対象を次の縦続工程へ移し、ステップ27
3ではステップ271で判定した工程番号をこの縦続工
程の工程番号として工程形状メモリ44に書込み、ステ
ップ274ではS×××で任意の工程番号が入力される
と次工程に接続される工程番号と判断しステップ272
を繰返し実行し、判定条件S×××が不一致の場合はス
テップ275で判定条件K□□□の比較を行い任意の数
値が入力されるとステップ276ではこの値を第A列工
程の縦続工程数として工程形状メモリ44に書込む。
In step 272, 1 is set in the cascade process counter.
Is added, and the processing target is shifted to the next cascade process.
In step 3, the process number determined in step 271 is written into the process shape memory 44 as the process number of the cascade process. In step 274, when an arbitrary process number is input as Sxxx, the process number connected to the next process is determined. Judge and step 272
Is repeatedly executed, and if the judgment conditions Sxxx do not match, the judgment condition K □□□ is compared in step 275 and an arbitrary numerical value is input. It is written into the process shape memory 44 as a number.

【0122】ステップ250,ステップ254,ステッ
プ255,ステップ256は並進分岐操作の開始判断に
基づいて各工程列の先頭工程番号の書込みと初期工程に
対する接続方法の書込みを処理するステップであり、ス
テップ250はステップ204の判定条件と入力条件が
不一致の場合に実行され、PF_S×××で任意の工程
番号が入力されると並進分岐フローの開始と判定しステ
ップ254により分岐数カウンタに1を加算した結果を
分岐数レジスタAに転送する。
Steps 250, 254, 255 and 256 are steps for processing the writing of the head process number of each process sequence and the writing of the connection method for the initial process based on the judgment of the start of the translational branch operation. Is executed when the determination condition in step 204 and the input condition do not match. When an arbitrary process number is input in PF_Sxxx, it is determined that the translational branch flow has started, and 1 is added to the branch number counter in step 254. The result is transferred to the branch number register A.

【0123】ステップ255ではステップ250で入力
された工程番号S×××を分岐数レジスタAが示す工程
列の先頭番号として認識し、例えば工程番号にS40が
入力されたとき分岐列レジスタA=1であれば第1列工
程と判断し、図6に示す工程形状メモリ44上の第1列
工程先頭番号128に対して40を書込む。
In step 255, the process number Sxxx input in step 250 is recognized as the head number of the process sequence indicated by the branch number register A. For example, when S40 is input as the process number, the branch sequence register A = 1 If so, it is determined that the process is the first column process, and 40 is written to the first column process head number 128 in the process shape memory 44 shown in FIG.

【0124】ステップ256では、図6に示す工程形状
メモリ44上の初期工程番号125に対する第A列工程
の接続方法を並進分岐とし、例えば分岐列レジスタA=
1であれば図6に示す工程形状メモリ44上の分岐形式
129に対して並進分岐を意味する2を書込み、以降は
前述の選択分岐と同様にステップ223を実行する。
In step 256, the connection method of the A-th column process to the initial process number 125 on the process shape memory 44 shown in FIG.
If it is 1, 2 indicating a translational branch is written into the branch form 129 on the process shape memory 44 shown in FIG. 6, and thereafter, step 223 is executed in the same manner as the above-mentioned selective branch.

【0125】ステップ270,ステップ277,ステッ
プ278,ステップ279はシングルフロー操作の開始
判断に基づいて工程列の先頭工程番号の書込みと初期工
程に対する接続方法の書込みを処理するステップであ
り、ステップ270はステップ250の判定条件と入力
条件が不一致の場合に実行され、TS_S×××で任意
の工程番号が入力されるとシングルフローの開始と判定
しステップ277により分岐数カウンタに1を加算した
結果を分岐数レジスタAに転送する。
Steps 270, 277, 278, and 279 are steps for processing the writing of the head process number of the process sequence and the writing of the connection method for the initial process based on the determination of the start of the single flow operation. The process is executed when the determination condition in step 250 and the input condition do not match. When an arbitrary process number is input in TS_Sxxx, it is determined that a single flow has started, and the result of adding 1 to the branch number counter in step 277 is determined. Transfer to the branch number register A.

【0126】ステップ278ではステップ270で入力
された工程番号S×××を第A列工程の先頭番号として
認識し、例えばS70であれば図6に示す工程形状メモ
リ44上の第1列工程先頭番号128に対して70を書
込む。ステップ279では、図6に示す工程形状メモリ
44上の初期工程番号125に対する第A列工程の接続
方法を分岐なしとし、図6に示す工程形状メモリ44上
の分岐形式129に対してシングルフロ−を意味する0
を書込み、以降は前述の選択分岐と同様にステップ22
3を実行する。
In step 278, the process number Sxxx input in step 270 is recognized as the head number of the A-th row process. For example, if S70, the head number of the first row in the process shape memory 44 shown in FIG. Write 70 for number 128. In step 279, the connection method of the A-th row process to the initial process number 125 on the process shape memory 44 shown in FIG. 6 is set to no branch, and the single flow is performed for the branch form 129 on the process shape memory 44 shown in FIG. 0 which means
Is written, and thereafter, as in the case of the above-described selection branch, step 22
Execute 3.

【0127】ステップ205,ステップ210,ステッ
プ211は選択分岐した工程列を合流させる操作の開始
判断に基づいて工程列の合流工程番号の書込みと合流工
程に対する接続方法の書込みを処理するステップであ
る。
Steps 205, 210, and 211 are steps for processing the writing of the joining process number of the process sequence and the writing of the connection method for the joining process based on the determination of the start of the operation of joining the selected and branched process sequences.

【0128】ステップ205はステップ270の判定条
件と入力条件が不一致の場合に実行され、SE_S××
×で任意の工程番号が入力されるとステップ210が実
行されステップ205で入力された工程番号S×××を
合流工程番号として図12に示す工程形状メモリ44上
の合流工程番号126に書込み、ステップ211では合
流工程と前工程の接続方法を選択合流とし工程形状メモ
リ44上の合流形式127に対して選択合流を意味する
1を書込む。
Step 205 is executed when the judgment condition of step 270 does not match the input condition, and SE_Sxx
When an arbitrary process number is input by ×, step 210 is executed, and the process number Sxxx input at step 205 is written as a merge process number in the merge process number 126 on the process shape memory 44 shown in FIG. In step 211, the method of connection between the merging step and the preceding step is set as a selective merging, and 1 indicating a selective merging is written in the merging form 127 in the process shape memory 44.

【0129】ステップ251,ステップ252,ステッ
プ253は並進分岐した工程列を合流させる操作の開始
判断に基づいて工程列の合流工程番号の書込みと合流工
程に対する接続方法の書込みを処理するステップであ
る。
Steps 251, 252, and 253 are steps for processing the writing of the merge step number of the process line and the writing of the connection method for the merge step based on the determination of the start of the operation for merging the translationally branched process lines.

【0130】ステップ251はステップ205の判定条
件と入力条件が不一致の場合に実行され、PE_S××
×で任意の工程番号が入力されるとステップ252が実
行されステップ251で入力された工程番号S×××を
合流工程番号として図6に示す工程形状メモリ44上の
合流工程番号126に書込み、ステップ253では合流
工程と前工程の接続方法を並進合流とし工程形状メモリ
44上の合流形式127に対して並進合流を意味する2
を書込む。
Step 251 is executed when the judgment condition of step 205 and the input condition do not match, and PE_Sxx
When an arbitrary process number is input with ×, step 252 is executed, and the process number Sxxx input in step 251 is written as the merge process number into the merge process number 126 on the process shape memory 44 shown in FIG. In step 253, the connection method between the merging step and the preceding step is defined as a translational merging, which means a translational merging with respect to the merging type 127 in the process shape memory 44.
Write.

【0131】ステップ206は形状指示操作の終了を判
定するステップである。ステップ206においては、ス
テップ205の判定条件と入力条件が不一致の場合に実
行されENDが入力されるまではステップ204以降を
繰返し実行し、ENDが入力されると工程形状メモリ4
4への指示を終了する。
Step 206 is a step for judging the end of the shape instruction operation. Step 206 is executed when the determination condition of step 205 and the input condition do not match. Step 204 and subsequent steps are repeatedly executed until END is input.
The instruction to 4 is ended.

【0132】以上のとおり、図3,図4および図5に示
した工程形状の操作手段によって指示された内容は、S
FCプログラムの生成に必要とされる工程形状に関する
情報に展開され図1に示す工程形状メモリ44に格納さ
れる。
As described above, the contents instructed by the operation means having the process shapes shown in FIGS.
It is developed into information on the process shape required for generating the FC program, and is stored in the process shape memory 44 shown in FIG.

【0133】上記の操作によって図1に示す工程形状メ
モリに展開されたSFC図の形状情報を基に、図1に示
すシステムプログラム42内の命令の一括生成手段によ
って例えば選択分岐によるSFCの場合、図10に示し
た擬似SFCプログラムリストとして、工程駆動命令1
73と工程動作開始命令172と移行条件マーカ170
と駆動コイルマーカ171が図1に示す工程プログラム
メモリ上に生成される。
Based on the shape information of the SFC diagram expanded in the process shape memory shown in FIG. 1 by the above-described operation, the batch generation means of the instructions in the system program 42 shown in FIG. As the pseudo SFC program list shown in FIG.
73, a process operation start instruction 172, and a transition condition marker 170
And a drive coil marker 171 are generated on the process program memory shown in FIG.

【0134】その後、生成された擬似SFCプログラム
リストは図1に示すシーケンスプログラムメモリ43上
あるいは、通信インタフェース50に接続したケーブル
70により通信インタフェース69を介して第2のマイ
クロプロセッサ61に転送され、そこでシステムメモリ
62内の通信プログラムで定められた手順で演算処理さ
れシーケンスプログラムメモリ63上に転送されるが、
この演算処理は図6に示した工程形状メモリ44上のプ
ログラムアドレス124の位置に対して実行される。
Thereafter, the generated pseudo SFC program list is transferred to the second microprocessor 61 via the communication interface 69 via the cable 70 connected to the sequence program memory 43 or the communication interface 50 shown in FIG. The arithmetic processing is performed according to the procedure defined by the communication program in the system memory 62, and the processing is transferred to the sequence program memory 63.
This arithmetic processing is executed for the position of the program address 124 on the process shape memory 44 shown in FIG.

【0135】シーケンスプログラムメモリ43またはシ
ーケンスプログラムメモリ63に転送されたプログラム
リストが選択分岐によるSFCの場合、図7に示したS
FC図のとおり選択分岐・合流に関する複雑な入力規則
に準拠した工程駆動命令と工程動作開始命令の配置によ
ってSFCの骨格が形成されている。例えば図17に示
した選択分岐によるSFC図を完成させるためには、図
10に示した擬似プログラムリストを小形安価なプログ
ラム作成装置で読出し、移行条件170のなかの移行条
件マーカLD_M999を目標として各工程毎に異なる
移行条件命令330aを入力する。また、工程内部で駆
動される駆動出力については出力171の中の駆動出力
マーカOUT_M999を目標として各工程個別の駆動
出力命令330bを書込むことで、擬似SFCプログラ
ムリストを雛型としたプログラムを行う。
When the program list transferred to the sequence program memory 43 or the sequence program memory 63 is an SFC by selective branch, the SFC shown in FIG.
As shown in the FC diagram, the skeleton of the SFC is formed by the arrangement of the process drive command and the process operation start command conforming to the complicated input rules regarding the selective branch / merge. For example, in order to complete the SFC diagram by the selective branch shown in FIG. 17, the pseudo program list shown in FIG. 10 is read by a small and inexpensive program creating apparatus, and each of the transition condition markers LD_M999 in the transition condition 170 is targeted. A different transition condition command 330a is input for each process. For the drive output driven inside the process, a drive output command 330b for each process is written with the drive output marker OUT_M999 in the output 171 as a target, so that a program based on the pseudo SFC program list is performed. .

【0136】以下同様に、並進分岐によるSFC図の場
合、図8に示したSFC図のとおり並進分岐・合流に関
する複雑な入力規則に準拠した工程駆動命令と工程動作
開始命令の配置によってSFCの骨格が形成されてい
る。例えば図19に示した並進によるSFC図を完成さ
せるためには、図11に示した擬似プログラムに対して
移行条件170の中の移行条件マーカLD_M999を
目標として各工程毎に異なる移行条件命令331aを入
力する。工程内部で駆動される駆動出力については出力
171の中の駆動出力マーカOUT_M999を目標と
して各工程個別の駆動出力命令331bを書込むことで
プログラムを行う。
Similarly, in the case of the SFC diagram based on translational branching, as shown in the SFC diagram in FIG. 8, the SFC skeleton is arranged by arranging a process driving instruction and a process operation start instruction in accordance with complicated input rules for translational branching and merging. Are formed. For example, in order to complete the SFC diagram by translation shown in FIG. 19, a different transition condition instruction 331a for each process is set for the transition condition marker LD_M999 in the transition condition 170 in the pseudo program shown in FIG. input. With respect to the drive output driven inside the process, a program is performed by writing a drive output command 331b for each process with the drive output marker OUT_M999 in the output 171 as a target.

【0137】例えばシングルフローによるSFC図であ
れば図9に示した擬似プログラムに対して移行条件17
0の中の移行条件マーカLD_M999を目標として各
工程毎に異なる移行条件命令332aを入力する。工程
内部で駆動される駆動出力については出力171の中の
駆動出力マーカOUT_M999を目標として各工程個
別の駆動出力命令332bを書込ことでプログラムを行
う。
For example, in the case of a single flow SFC diagram, the transition condition 17 is applied to the pseudo program shown in FIG.
A different transition condition command 332a is input for each process with the transition condition marker LD_M999 in 0 as a target. As for the drive output driven inside the process, a program is executed by writing the drive output command 332b for each process individually with the drive output marker OUT_M999 in the output 171 as a target.

【0138】以上のように、この発明によればSFC図
の骨格を構成する工程駆動命令と工程動作開始命令と各
工程ごとに扱いが異なる移行条件と駆動出力などの命令
入力位置を示す擬似命令を挿入した擬似SFCプログラ
ムを自動生成するため、これをSFCプログラムの雛型
として読出して擬似命令位置に移行条件や駆動出力など
各工程で必要となる固有の制御条件のみを追加すること
でSFC図の入力規則に従ったプログラム作成が行える
ようになっている。
As described above, according to the present invention, the process drive command and the process operation start command constituting the skeleton of the SFC diagram, the transition condition differently handled for each process, and the pseudo command indicating the command input position such as the drive output. In order to automatically generate a pseudo SFC program into which an SFC has been inserted, this is read out as a model of the SFC program, and only unique control conditions such as transition conditions and drive outputs required in each process, such as transition conditions and drive outputs, are added to the pseudo instruction position. Program can be created in accordance with the input rules of

【0139】この結果、SFC図の構造指定作業が手軽
にできることからプログラム作成の間違いを防止すると
ともに、入力作業の効率化を図ることができる。また、
選択分岐や並進分岐で用いられる複雑な入力規則にも対
応し、しかもその工程番号は連続番号であっても飛び番
号であっても扱える自由度を持っている。
As a result, the work of designating the structure of the SFC diagram can be performed easily, so that mistakes in program creation can be prevented, and the efficiency of input work can be improved. Also,
Compatible with complicated input rules used in selective branching and translational branching, and the process number has a degree of freedom to handle either a continuous number or a skipped number.

【0140】実施の形態2. (3・1)実施の形態2の説明 実施の形態1の図1に示す構成図においては、本発明を
実現する手段として工程形状を記憶する工程形状メモリ
44、命令の一括生成手段によって出力された、工程動
作開始命令と、工程移行に伴って作用し現工程を不活性
にすると共に次工程を活性化する工程駆動命令と、工程
動作開始命令と工程駆動命令とに付随する工程番号を記
憶するための工程プログラムメモリ45はプログラム作
成装置40の筐体内においてバス接続される構造であっ
た。
Embodiment 2 (3.1) Description of Second Embodiment In the configuration diagram shown in FIG. 1 of the first embodiment, as a means for realizing the present invention, a process shape memory 44 for storing a process shape, and a command output by a batch generation unit for instructions. In addition, a process operation start command, a process drive command that operates in accordance with the process shift, inactivates the current process and activates the next process, and a process number associated with the process operation start command and the process drive command are stored. The process program memory 45 is connected to the bus in the housing of the program creation device 40.

【0141】本実施の形態は、図15に示すとおり、工
程形状メモリ44および工程プログラムメモリ45がP
LC60Bの筐体内で第2のマイクロプロセッサ61に
バス接続された構造である。プログラム作成装置40B
の操作キー46の入力指示はキーインタフェース47を
介し第1のマイクロプロセッサ41に転送され、そこで
システムメモリ42内のキー入力処理プログラムで定め
られた手順で演算処理される。
According to the present embodiment, as shown in FIG.
This is a structure in which a bus is connected to the second microprocessor 61 in the housing of the LC 60B. Program creation device 40B
Are input to the first microprocessor 41 via the key interface 47, where they are processed according to a procedure defined by a key input processing program in the system memory 42.

【0142】演算処理結果は、通信インタフェース50
に接続したケーブル70によって、PLC60Bが有す
る通信インタフェース69を介し第2のマイクロプロセ
ッサ61に転送される。そして、第2のマイクロプロセ
ッサ61は転送されてきた演算処理結果を、システムメ
モリ62内の通信プログラムで定められた手順で演算処
理し、工程形状メモリ44に対して工程形状の記憶指示
を行なうとともにシステムメモリ62内の命令の一括生
成手段によって工程プログラムメモリ45に記憶する。
The result of the arithmetic processing is transmitted to the communication interface 50.
Is transferred to the second microprocessor 61 via the communication interface 69 of the PLC 60B. Then, the second microprocessor 61 performs an arithmetic processing on the transferred arithmetic processing result according to a procedure determined by a communication program in the system memory 62, and instructs the process shape memory 44 to store the process shape, and Instructions in the system memory 62 are stored in the process program memory 45 by batch generation means.

【0143】実施の形態3. (3・2)実施の形態3の説明 図16に示すデータ入力画面は、実施の形態1における
SFC図の工程形状指示操作を大形画面上で行う場合の
一例である。本実施の形態では、図1の構成図で示した
工程形状を記憶する工程形状メモリ44、命令の一括生
成手段によって出力された工程動作開始命令と工程移行
に伴って作用し現工程を不活性にすると共に次工程を活
性化する工程駆動命令及びこれに付随する工程番号を記
憶するための工程プログラムメモリ45が大形画面を備
えたプログラム作成装置の筐体内に接続されている。従
って、図3、図4および図5に示したSFC図の工程形
状指示操作を画面上で、また図7、図8、図9に示した
擬似プログラムリストのSFC図表現を画面上に表示し
て編集することが可能である。
Embodiment 3 (3.2) Description of Embodiment 3 The data input screen shown in FIG. 16 is an example of a case where the process shape instruction operation of the SFC diagram in Embodiment 1 is performed on a large screen. In the present embodiment, the process shape memory 44 for storing the process shape shown in the configuration diagram of FIG. 1, the process operation start command output by the command batch generation means and the process operation are activated to inactivate the current process. In addition, a process program memory 45 for storing a process drive command for activating the next process and a process number associated with the process drive command is connected to the inside of the housing of the program creating apparatus having a large screen. Therefore, the process shape instruction operation of the SFC diagram shown in FIGS. 3, 4 and 5 is displayed on the screen, and the SFC diagram representation of the pseudo program list shown in FIGS. 7, 8 and 9 is displayed on the screen. And edit it.

【0144】実施の形態4. (3・3)実施の形態4の説明 実施の形態1におけるSFC図の工程形状指示操作は、
選択分岐形状の指示、並進分岐形状の指示またはシング
ルフロー形状の指示のように1指示あたり1形状のみし
か指定しなかったが、これを複合してシングルフローの
途中から選択分岐を指示したり、選択分岐または並進分
岐した工程の途中から更に選択分岐や並進分岐する形状
指示操作を行うようにしてもよい。
Embodiment 4 (3.3) Description of Embodiment 4 The process shape instruction operation of the SFC diagram in Embodiment 1 is as follows.
Although only one shape was designated per instruction, such as an instruction of a selective branch shape, an instruction of a translational branch shape, or an instruction of a single flow shape, this is combined to instruct a selective branch from the middle of a single flow, It is also possible to perform a shape instruction operation for further performing selective branching or translational branching in the middle of the process of selective branching or translational branching.

【0145】[0145]

【発明の効果】請求項1の発明に係るプログラム作成装
置は、プログラマブルコントローラに適用される工程歩
進形プログラムの構造を指示する際に、初期工程を工程
番号にて指示する初期工程指示手段と、前記初期工程に
対してプログラム処理順序で従属接続される各工程を工
程番号にて指示する従属工程指示手段と、従属する工程
の数を指示する工程数指示手段と、前記各指示手段によ
って指示された内容を工程形状として記憶する工程形状
メモリと、工程歩進形プログラムの形成形状に合わせて
工程動作開始命令あるいは工程移行に伴って作用し現工
程を不活性にすると共に次工程を活性化する工程駆動命
令に前記工程形状メモリより読み出した各工程番号を付
加する付加手段とを備えたので、プログラムの入力順序
を意識させずに容易に工程歩進形プログラムを作成でき
るという効果がある。
According to the first aspect of the present invention, there is provided a program creating apparatus for providing an initial process instruction means for designating an initial process by a process number when designating a structure of a process step-type program applied to a programmable controller. Subordinate step instructing means for instructing each of the steps which are subordinately connected to the initial step in a program processing order by a step number, step number instructing means for instructing the number of dependent steps, and instructing by each of the instructing means. A process shape memory that stores the contents of the process as a process shape, and a process operation start command or a process shift is activated in accordance with the shape of the process step-by-step program to make the current process inactive and activate the next process. Means for adding each process number read from the process shape memory to the process drive command to be executed, so that the program input order can be easily determined without being aware of the input order. There is an effect that can create a process AyumiSusumukatachi program.

【0146】請求項2の発明に係るプログラム作成装置
は、初期工程より分岐して接続される複数列の従属工程
の分岐条件を指示すると共に合流条件を指示する第1の
指示手段を備えたので、複雑な入力規則を必要とする選
択分岐を含んだ工程歩進形プログラムを容易に作成でき
るという効果がある。
Since the program creating apparatus according to the second aspect of the present invention includes the first instruction means for instructing the branch condition of a plurality of subordinate steps which are branched and connected from the initial process and for indicating the joining condition, In addition, there is an effect that a process step-type program including a selection branch requiring a complicated input rule can be easily created.

【0147】請求項3の発明に係るプログラム作成装置
は、初期工程より分岐して接続され並列実行される複数
列の従属工程を指示する第2の1指示手段を備えたの
で、複雑な入力規則を必要とする並進分岐を含んだ工程
歩進形プログラムを容易に作成できるという効果があ
る。
Since the program creating apparatus according to the third aspect of the present invention includes the second one-instruction means for instructing a plurality of subordinate steps which are connected in a branch from the initial step and executed in parallel, complicated input rules are provided. There is an effect that a process step type program including a translational branch that requires the above can be easily created.

【0148】請求項4の発明に係るプログラム作成装置
は、工程駆動命令を実行する移行条件命令を入力する位
置および工程内の出力駆動プログラムを入力する位置に
擬似命令を挿入する擬似命令挿入手段を備えたので、工
程形状として指定できない命令要素がプログラム中にあ
ってもオペレータはプログラムを容易に編集することが
できるという効果がある。
According to a fourth aspect of the present invention, there is provided a program creating apparatus, comprising: a pseudo instruction inserting means for inserting a pseudo instruction at a position for inputting a transition condition instruction for executing a process driving instruction and at a position for inputting an output driving program in a process. With this arrangement, the operator can easily edit the program even if there is an instruction element that cannot be specified as a process shape in the program.

【0149】請求項5の発明に係るプログラム作成装置
は、初期工程に接続される各従属工程の数を数値によっ
て指示した場合は、前記従属工程の先頭工程番号を基準
にして次に接続される工程番号はこれに順次1を加算し
た番号とすることで全体の工程構成を自動生成し、前記
各工程に対応する工程動作開始命令と工程駆動命令を一
括生成する第1の一括生成手段を備えたので、プログラ
ムの大規模化に伴う工程番号の増大に拘わらず工程番号
の採番を容易に行うことができるという効果がある。
According to a fifth aspect of the present invention, when the number of each subordinate process connected to the initial process is indicated by a numerical value, the program creating device is connected next with reference to the leading process number of the subordinate process. A first batch generation means for automatically generating the entire process configuration by sequentially adding 1 to the process number and collectively generating a process operation start command and a process drive command corresponding to each process. Therefore, there is an effect that the numbering of the process numbers can be easily performed irrespective of the increase of the process numbers due to the enlargement of the program.

【0150】請求項6の発明に係るプログラム作成装置
は、初期工程に接続される各従属工程に任意の工程番号
を付加した場合、先頭に指示された工程番号に関係なく
付加された各々の工程番号によって全体工程が構成さ
れ、前記各工程に対応する工程動作開始命令と工程駆動
命令を一括生成する第2の一括生成手段を備えたので、
飛び番号に対応した自由な工程番号の採番を行えるとい
う効果がある。
According to a sixth aspect of the present invention, when an arbitrary process number is added to each of the dependent processes connected to the initial process, each of the added processes is independent of the process number specified at the head. Since the whole process is constituted by the numbers, and the second batch generation means for collectively generating the process operation start command and the process drive command corresponding to each process is provided.
There is an effect that any process number corresponding to the skip number can be assigned freely.

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

【図1】 この発明の一実施の形態によるプログラム作
成装置とこのプログラム作成装置と併用されるプログラ
マブルコントローラの構成図である。
FIG. 1 is a configuration diagram of a program creation device according to an embodiment of the present invention and a programmable controller used in combination with the program creation device.

【図2】 図1におけるプログラム作成装置の外観図で
ある。
FIG. 2 is an external view of the program creation device in FIG.

【図3】 図17の選択分岐・合流に対応する形状指示
操作の一例を示す図である。
3 is a diagram showing an example of a shape instruction operation corresponding to the selective branch / merge in FIG.

【図4】 図19の並進分岐・合流に対応する形状指示
操作の一例を示す図である。
FIG. 4 is a diagram illustrating an example of a shape instruction operation corresponding to the translational branch / merge in FIG. 19;

【図5】 図21のシングルフローに対応する形状指示
操作の一例を示す図である。
FIG. 5 is a diagram illustrating an example of a shape instruction operation corresponding to the single flow of FIG. 21;

【図6】 図1に対応する本発明を実現する手段である
工程形状メモリの内部構造を示す図である。
FIG. 6 is a diagram corresponding to FIG. 1, showing an internal structure of a process shape memory as a means for realizing the present invention.

【図7】 図1における工程プログラムメモリの内容例
であって、図17の選択分岐・合流に対応する擬似プロ
グラムリストのシーケンシャルファンクションチャート
表現する図である。
7 is a diagram showing an example of contents of a process program memory in FIG. 1 and representing a sequential function chart of a pseudo program list corresponding to the selective branch / merge in FIG. 17;

【図8】 図1における工程プログラムメモリの内容例
であって、図19の並進分岐・合流に対応する擬似プロ
グラムリストのシーケンシャルファンクションチャート
を表現する図である。
8 is a diagram illustrating a sequential function chart of a pseudo program list corresponding to the translational branch / merge in FIG. 19, which is an example of the contents of the process program memory in FIG. 1;

【図9】 図1における工程プログラムメモリの内容例
であって、図21のシングルフローに対応する擬似プロ
グラムリストのシーケンシャルファンクションチャート
表現する図である。
9 is a diagram showing a sequential function chart of a pseudo program list corresponding to the single flow of FIG. 21, which is an example of the contents of the process program memory in FIG. 1;

【図10】 図1における工程プログラムメモリの内容
例であって、図17の選択分岐・合流に対応する擬似プ
ログラムリストの一例を示す図である。
10 is a diagram showing an example of the contents of a process program memory in FIG. 1 and an example of a pseudo program list corresponding to the selective branch / merge in FIG. 17;

【図11】 図1における工程プログラムメモリの内容
例であって、図19の並進分岐・合流に対応する擬似プ
ログラムリストの一例を示す図である。
11 is a diagram showing an example of the contents of a process program memory in FIG. 1, and showing an example of a pseudo program list corresponding to the translational branch / merge in FIG. 19;

【図12】 図1における工程プログラムメモリの内容
例であって、図21のシングルフローに対応する擬似プ
ログラムリストの一例を示す図である。
12 is a diagram showing an example of the contents of a process program memory in FIG. 1 and an example of a pseudo program list corresponding to the single flow in FIG. 21;

【図13】 図3、図4、図5の形状指示操作の一例の
動作を説明するフローチャート。
FIG. 13 is a flowchart illustrating an example of an operation of the shape instruction operation in FIGS. 3, 4, and 5;

【図14】 図3、図4、図5の形状指示操作の一例の
動作を説明する図13の続きのフローチャート。
FIG. 14 is a flowchart continued from FIG. 13 for explaining an example of an operation of the shape instruction operation in FIGS. 3, 4, and 5;

【図15】 この発明の実施の形態2におけるプログラ
ム作成装置とこのプログラム作成装置と併用されるプロ
グラマブルコントローラの構成図である。
FIG. 15 is a configuration diagram of a program creation device and a programmable controller used in combination with the program creation device according to Embodiment 2 of the present invention.

【図16】 この発明の実施の形態3における形状指示
画面を示す図である。
FIG. 16 is a diagram showing a shape instruction screen according to Embodiment 3 of the present invention.

【図17】 選択分岐・合流のシーケンシャルファンク
ションチャートの一例を示す図である。
FIG. 17 is a diagram illustrating an example of a sequential function chart of selective branching / merging.

【図18】 図17に対応する従来のプログラムリスト
を示す図である。
18 is a diagram showing a conventional program list corresponding to FIG.

【図19】 並進分岐・合流のシーケンシャルファンク
ションチャートの一例を示す図である。
FIG. 19 is a diagram illustrating an example of a sequential function chart of translational branching / merging.

【図20】 図19に対応する従来のプログラムリスト
を示す図である。
FIG. 20 is a diagram showing a conventional program list corresponding to FIG. 19;

【図21】 シングルフローのシーケンシャルファンク
ションチャートの一例を示す図である。
FIG. 21 is a diagram showing an example of a single flow sequential function chart.

【図22】 図21に対応する従来のプログラムリスト
を示す図である。
FIG. 22 is a diagram showing a conventional program list corresponding to FIG. 21.

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

40A,40B プログラム作成装置、60A,60B
プログラマブルコントローラ、41 第1のマイクロ
プロセッサ、61 第2のマイクロプロセッサ、42
システムメモリ、43 シーケンスプログラムメモリ、
44 工程形状メモリ、45 工程プログラムメモリ、
46 操作キー。
40A, 40B Program creation device, 60A, 60B
Programmable controller, 41 First microprocessor, 61 Second microprocessor, 42
System memory, 43 sequence program memory,
44 process shape memory, 45 process program memory,
46 operation keys.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 プログラマブルコントローラに適用され
る工程歩進形プログラムの構造を指示する際に、初期工
程を工程番号にて指示する初期工程指示手段と、前記初
期工程に対してプログラム処理順序で従属接続される各
工程を工程番号にて指示する従属工程指示手段と、従属
する工程の数を指示する工程数指示手段と、前記各指示
手段によって指示された内容を工程形状として記憶する
工程形状メモリと、工程歩進形プログラムの形成形状に
合わせて工程動作開始命令あるいは工程移行に伴って作
用し現工程を不活性にすると共に次工程を活性化する工
程駆動命令に前記工程形状メモリより読み出した各工程
番号を付加する付加手段とを備えたことを特徴とするプ
ログラム作成装置。
1. An initial step designating means for designating an initial step by a step number when designating a structure of a step-advanced program applied to a programmable controller, and subordinate to the initial step in a program processing order. Dependent process instructing means for instructing each connected process by a process number, process number instructing means for instructing the number of dependent processes, and a process shape memory for storing the content instructed by each of the instructing means as a process shape Read out from the process shape memory as a process operation start command or a process drive command which activates the next process while acting in accordance with the process transition to make the current process inactive according to the formation shape of the process step type program. A program creating apparatus comprising: an adding unit for adding each process number.
【請求項2】 初期工程より分岐して接続される複数列
の従属工程の分岐条件を指示すると共に合流条件を指示
する第1の指示手段を備えたことを特徴とする請求項1
に記載のプログラム作成装置。
2. The apparatus according to claim 1, further comprising: first instruction means for instructing a branch condition of a plurality of subordinate steps which are connected by branching from the initial step and for instructing a merging condition.
A program creation device according to claim 1.
【請求項3】 初期工程より分岐して接続され並列実行
される複数列の従属工程を指示する第2の指示手段を備
えたことを特徴とする請求項1に記載のプログラム作成
装置。
3. The program creating apparatus according to claim 1, further comprising second instruction means for instructing a plurality of subordinate processes which are connected and branched from the initial process and executed in parallel.
【請求項4】 工程駆動命令を実行する移行条件命令を
入力する位置および工程内の出力駆動プログラムを入力
する位置に擬似命令を挿入する擬似命令挿入手段を備え
たことを特徴とする請求項1ないし3のいずれかに記載
のプログラム作成装置。
4. A pseudo instruction insertion means for inserting a pseudo instruction at a position for inputting a transition condition instruction for executing a process driving instruction and at a position for inputting an output driving program in a process. 4. The program creation device according to any one of claims 1 to 3.
【請求項5】 初期工程に接続される各従属工程の数を
数値によって指示した場合は、前記従属工程の先頭工程
番号を基準にして次に接続される工程番号はこれに順次
1を加算した番号とすることで全体の工程構成を自動生
成し、前記各工程に対応する工程動作開始命令と工程駆
動命令を一括生成する第1の一括生成手段を備えたこと
を特徴とする請求項1に記載のプログラム作成装置。
5. When the number of each subordinate process connected to the initial process is indicated by a numerical value, the next process number to be connected based on the first process number of the subordinate process is obtained by sequentially adding 1 to the number. 2. The apparatus according to claim 1, further comprising: a first batch generation unit configured to automatically generate an entire process configuration by using numbers, and collectively generate a process operation start command and a process drive command corresponding to each process. The program creation device according to the above.
【請求項6】 初期工程に接続される各従属工程に任意
の工程番号を付加した場合、先頭に指示された工程番号
に関係なく付加された各々の工程番号によって全体工程
が構成され、前記各工程に対応する工程動作開始命令と
工程駆動命令を一括生成する第2の一括生成手段を備え
たことを特徴とする請求項1に記載のプログラム作成装
置。
6. When an arbitrary process number is added to each of the dependent processes connected to the initial process, the entire process is constituted by each of the added process numbers irrespective of the process number specified at the beginning. 2. The program creating apparatus according to claim 1, further comprising a second batch generation unit that batch-generates a process operation start command and a process drive command corresponding to the process.
JP23593197A 1997-09-01 1997-09-01 Program preparation device Pending JPH1185225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23593197A JPH1185225A (en) 1997-09-01 1997-09-01 Program preparation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23593197A JPH1185225A (en) 1997-09-01 1997-09-01 Program preparation device

Publications (1)

Publication Number Publication Date
JPH1185225A true JPH1185225A (en) 1999-03-30

Family

ID=16993360

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23593197A Pending JPH1185225A (en) 1997-09-01 1997-09-01 Program preparation device

Country Status (1)

Country Link
JP (1) JPH1185225A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5025833B1 (en) * 2011-09-16 2012-09-12 三菱電機株式会社 Sequence program creation device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5025833B1 (en) * 2011-09-16 2012-09-12 三菱電機株式会社 Sequence program creation device

Similar Documents

Publication Publication Date Title
EP0444655B1 (en) Controller programming apparatus and process using ladder diagram technique
JP6639786B2 (en) Wire harness manufacturing support system
CN110936354A (en) Program creation assistance device for robot
JP4876537B2 (en) Programmable controller programming device
JPH1185225A (en) Program preparation device
JP4476223B2 (en) Screen data creation device, screen data editing method, and screen data editing program
JPH10283020A (en) Programmable display device
JPS63172303A (en) Programming display method for programmable controller
JP3824411B2 (en) Screen definition device and operation device for executing program defined thereby
JPH05265527A (en) Operation program preparing method and execution method
JP3696906B2 (en) Data input method and apparatus
JP2003223204A (en) Programming method of programmable controller, system thereof and recording medium thereof
JPH096419A (en) Program generator
JPH0221003B2 (en)
JPH08328609A (en) Program display controller
JPH0895612A (en) Sfc program development device
JPH08339208A (en) Program preparation device for programmable controller
JPH11167409A (en) Program controller operating by parallel language
JP2700013B2 (en) Compiler for user program for programmable controller
JPS6318401A (en) Programming device for programmable controller
JP3123720B2 (en) Programming method and programming device for programmable controller
JPS5856121B2 (en) sequence programmer
JPH09167003A (en) Operation device for operation confirmation
JP2000132697A (en) Graph display device and storage medium
JPH1139375A (en) Electric circuit drawing generation device