JPH0483497A - Macro-command forming and executing system - Google Patents
Macro-command forming and executing systemInfo
- Publication number
- JPH0483497A JPH0483497A JP19887590A JP19887590A JPH0483497A JP H0483497 A JPH0483497 A JP H0483497A JP 19887590 A JP19887590 A JP 19887590A JP 19887590 A JP19887590 A JP 19887590A JP H0483497 A JPH0483497 A JP H0483497A
- Authority
- JP
- Japan
- Prior art keywords
- command
- macro
- macro command
- parameter
- parameter value
- 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
Links
- 238000000034 method Methods 0.000 claims description 11
- 238000006467 substitution reaction Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Stored Programmes (AREA)
- Exchange Systems With Centralized Control (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、パラメータを有する複数の既存コマンドを組
合せて、マクロコマンドを生成し実行する蓄積プログラ
ム制御式交換機におけるマクロコマンド生成実行方式に
関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a macro command generation/execution method in a storage program controlled switch that generates and executes a macro command by combining a plurality of existing commands having parameters.
従来、この種のマクロコマンド生成実行方式では、パラ
メータを有する複数の既存コマンドを任意に組合せて生
成されるマクロコマンドの機能は、登録されたそれぞれ
の既存コマンドで予め固定的に割付けられたパラメータ
の値により決まっている。Conventionally, in this type of macro command generation/execution method, the function of a macro command generated by arbitrarily combining multiple existing commands with parameters is based on the parameters fixedly assigned in advance for each registered existing command. Determined by value.
上述したように従来のマクロコマンド生成実行方式では
、マクロコマンドの機能は、登録された既存コマンドで
予め固定的に割付けられたパラメータの値により決まっ
ているため、登録してある既存コマンドのパラメータの
値のみが異なる場合にも、関連するそれぞれの既存コマ
ンドのパラメータの値をいちいち修正しなければならず
、同一機能のマクロコマンドを実行したいときなど汎用
性に欠けるという問題点がある。As mentioned above, in the conventional macro command generation/execution method, the function of the macro command is determined by the value of the parameter fixedly assigned in advance to the registered existing command. Even if only the values are different, the parameter values of each related existing command must be modified one by one, resulting in a lack of versatility, such as when you want to execute macro commands with the same function.
本発明の目的は、マクロコマンドのパラメータの値を変
えるだけで既存コマンドのパラメータの値を個別に修正
作業を行うことなく、同一機能のマクロコマンドを生成
し実行することができるマクロコマンド生成実行方式を
提供することにある。An object of the present invention is to provide a macro command generation/execution method that can generate and execute macro commands with the same function by simply changing the parameter values of the macro commands without individually modifying the parameter values of existing commands. Our goal is to provide the following.
本発明のマクロコマンド生成実行方式は、複数の既存コ
マンドを組合せてマクロコマンドを生成し実行する蓄積
プログラム制御式交換機におけるマクロコマンド生成実
行方式において、前記マクロコマンドに登録してある前
記既存コマンドのパラメータの値を指定されるパラメー
タの値に置換するマクロコマンドを生成するマクロコマ
ンド生成部と:対象とする前記既存コマンドのパラメー
タの値を前記マクロコマンド生成部によって生成された
マクロコマンドにより指定されるパラメータの値に置換
した後、前記マクロコマンドにより指定される全てのコ
マンドを実行するマクロコマンド実行部と;前記マクロ
コマンド生成部及び前記マクロコマンド実行部でパラメ
ータの値を置換し実行するためのデータを格納するデー
タ部とを備える構成である。The macro command generation/execution method of the present invention is a macro command generation/execution method in a storage program controlled switch that generates and executes a macro command by combining a plurality of existing commands, and includes parameters of the existing command registered in the macro command. a macro command generation unit that generates a macro command that replaces the value of the target existing command with the value of the parameter specified by the macro command generated by the macro command generation unit; a macro command execution unit that executes all commands specified by the macro command after replacing the value of the parameter with the value of the parameter; a macro command execution unit that executes all commands specified by the macro command; The configuration includes a data section for storing data.
次に、本発明の実施例について図面を参照して説明する
。Next, embodiments of the present invention will be described with reference to the drawings.
本発明の一実施例を示す第1図を参照すると、蓄積プロ
グラム制御式交換機において、コマンド入力端末(図示
せず)からのコマンドを受信するコマンド受信部1は、
マクロコマンドに登録してある既存コマンドのパラメー
タの値を指定されるパラメータの値に置換するマクロコ
マンドを生成するマクロコマンド生成部2と、対象とす
る既存コマンドのパラメータの値をマクロコマンド生成
部2によって生成されたマクロコマンドにより指定され
るパラメータの値に置換した後、マクロコマンドにより
指定される全てのコマンドを実行するマクロコマンド実
行部4に接続されている。マクロコマンド生成部2及び
マクロコマンド実行部3はパラメータの値を置換し実行
するためのデータを格納するデータ部4とも接続されて
いる。Referring to FIG. 1, which shows an embodiment of the present invention, in a storage program controlled exchange, a command receiving unit 1 that receives commands from a command input terminal (not shown) includes:
A macro command generation unit 2 that generates a macro command that replaces the parameter value of an existing command registered in the macro command with a specified parameter value, and a macro command generation unit 2 that generates a macro command that replaces the parameter value of the existing command as a target. It is connected to a macro command execution unit 4 that executes all commands specified by the macro command after replacing them with values of parameters specified by the macro command generated by the macro command. The macro command generation section 2 and the macro command execution section 3 are also connected to a data section 4 that stores data for replacing and executing parameter values.
第2図は本発明の一実施例のデータ部4における各種デ
ータの割付けを説明するための図であり、第3図は本発
明の一実施例のマクロコマンド生成部2の処理の流れを
示すフローチャートである。FIG. 2 is a diagram for explaining the allocation of various data in the data section 4 of one embodiment of the present invention, and FIG. 3 shows the flow of processing of the macro command generation section 2 of one embodiment of the present invention. It is a flowchart.
以下に第1図〜第3図を用いてマクロコマンドに第1パ
ラメータを有する場合の登録動作について説明する。初
めに、マクロコマンド登録要求動作では、交換機の保守
者によってコマンド入力端末から入力された「マクロコ
マンド登録要求」は、コマンド受信部2が受信し、コマ
ンド受信部2は入力コマンドの種別をチエツクし、マク
ロコマンドの生成にかかわるものであることを識別する
と、マクロコマンド生成部3へ伝達する。マクロコマン
ド生成部3では、コマンドの種別をチエツクしくステッ
プ10)、「マクロコマンド登録要求」であることを識
別すると、第2図(d)に示す登録状態フラグXが「0
」、つまり「未受付状態」であることを確認しくステッ
プ11)、「0」でなければエラーとしくステップ12
)処理を終了する。「OJの場合には、次に、登録状態
フラグを「1」、つまり「登録要求受付状態」に設定す
る(ステップ13)。そして、マクロコマンドに第1パ
ラメータが有ることを確認しくステップ14)、第2図
(a)に示すパラメータ管理テーブルのP1フラグを使
用中であることを表わす「1」に設定しくステップ15
)、第2図(b)に示すコマンド管理テーブルとしPl
用のエリアを確保する(ステップ16)、第2図におけ
る「L」は登録コマンドが格納エリアの何行目にセーブ
されたかを示すものである。これで、マクロコマンド登
録要求動作を終了する。The registration operation when the macro command has the first parameter will be described below using FIGS. 1 to 3. First, in the macro command registration request operation, a "macro command registration request" input from a command input terminal by a maintenance person of the exchange is received by the command receiving section 2, and the command receiving section 2 checks the type of input command. , when it is identified that it is related to the generation of a macro command, it is transmitted to the macro command generation unit 3. The macro command generation unit 3 checks the type of command (step 10), and when it identifies that it is a "macro command registration request", the registration status flag X shown in FIG. 2(d) is set to "0".
”, that is, it is in the “unreceived state” (Step 11), and if it is not “0”, it is considered an error and Step 12)
) Terminate processing. In the case of "OJ", next, the registration state flag is set to "1", that is, "registration request acceptance state" (step 13). Then, check that the macro command has the first parameter (step 14), and set the P1 flag in the parameter management table shown in FIG. 2(a) to "1", which indicates that it is in use (step 15).
), the command management table shown in FIG. 2(b), and Pl
(Step 16). "L" in FIG. 2 indicates in which line of the storage area the registered command was saved. This completes the macro command registration request operation.
次に、既存コマンド登録要求動作では、コマンド入力端
末から入力されたマクロコマンドに登録するマクロコマ
ンドの第1パラメータを含む個別の既存コマンドをコマ
ンド受信部1を介して受信すると、マクロコマンド登録
要求と同様にステ・ンブ10でコマンドの種別をチエツ
クし、「既存コンド登録要求」であることを識別すると
、登録状態フラグが「1」であることをチエツクしくス
テップ18)、「1」ではない場合には、「コマンド登
録中状態」 「2」であることをチエツクしくステップ
19)、「2」でもないときには、エラー処理を行い(
ステップ20)処理を終了する。ステップ18で登録状
態フラグが「1」である場合には、これを「2」に設定
する(ステップ21)0次に、登録コマンドを第2図(
c)に示す登録コマンド格納エリアの、例えば、第1番
目にセーブしくステップ22)、マクロコマンドの、例
えば、Plのパラメータを使用していることを確認して
(ステップ23)、パラメータ管理テーブルの第1パラ
メータに対応するコマンド管理テーブルの第1番目にコ
マンドを登録した登録コマンド格納エリアの位置情報「
1行目」を設定しくステップ24)、処理を終了する。Next, in the existing command registration request operation, when an individual existing command including the first parameter of the macro command to be registered in the macro command input from the command input terminal is received via the command receiving unit 1, a macro command registration request is received. Similarly, if the type of command is checked in step 10 and it is identified as an "existing condo registration request", the command is checked to see if the registration status flag is "1" (step 18), and if it is not "1" In step 19), check that the "command registration status" is "2", and if it is not "2", perform error handling (step 19).
Step 20) End the process. If the registration status flag is "1" in step 18, it is set to "2" (step 21). Next, the registration command is set to "2" (step 21).
In the registered command storage area shown in c), for example, save the first parameter.Step 22) Make sure that the parameter of the macro command, for example, Pl, is used (Step 23), and then save it in the parameter management table. The position information of the registered command storage area where the command is registered in the first position of the command management table corresponding to the first parameter "
1st line" is set (step 24), and the process ends.
次に、マクロコマンド登録終了要求動作では、前述した
と同様にコマンド種別をチエツクし、「マクロコマンド
登録終了要求」であることを識別すると、登録状態フラ
グが「2」であることをチエツクしくステップ17)、
「2」ではない場合には、手う−としくステップ12)
処理を終了し、「2」である場合には、これを「3」、
つまり、「コマンド登録終了状態」に設定する。Next, in the macro command registration termination request operation, the command type is checked in the same manner as described above, and when it is identified as a "macro command registration termination request", a step is performed to check that the registration status flag is "2". 17),
If it is not "2", please try step 12)
If the process is finished and the result is "2", change it to "3",
In other words, it is set to "command registration completed state".
第4図は本発明の一実施例のマクロコマンド実行部の処
理の流れを示すフローチャートである。FIG. 4 is a flowchart showing the flow of processing by the macro command execution unit according to an embodiment of the present invention.
以下に第1図、第2図及び第4図を用いてマクロコマン
ド置換実行動作を説明する。The macro command replacement execution operation will be explained below using FIGS. 1, 2, and 4.
第1パラメータに、例えば、「10」という数値を有す
る登録済みのマクロコマンドが、保守者によってコマン
ド入力端末から入力されると、コマンド受信部1により
受信され、コマンド受信部1はこの情報をマクロコマン
ド実行部3へ伝達する。マクロコマンド実行部3では、
パラメータの入力が有るか否かをチエツクしくステップ
30)、有る場合には、パラメータ管理テーブルとコマ
ンド管理テーブルからマクロコマンドの第1パラメータ
を有するコマンドが登録コマンド格納エリアの第1番目
にあることを識別し、第1番目に登録されているコマン
ドのマクロコマンドの第1パラメータの変数部分を指定
された「10」に置換する(ステップ31)0次に、置
換したコマンドを含め同一マクロコマンドに含まれてい
る全てのコマンドを指定の順序で順次実行する。When a registered macro command whose first parameter has a numerical value of, for example, "10" is input by a maintenance person from a command input terminal, it is received by the command receiving section 1, and the command receiving section 1 transfers this information to the macro command. The command is transmitted to the command execution unit 3. In the macro command execution unit 3,
Check whether there is a parameter input (step 30), and if there is, check from the parameter management table and command management table that the command with the first parameter of the macro command is in the first position in the registered command storage area. Identifies and replaces the variable part of the first parameter of the macro command of the first registered command with the specified "10" (step 31) 0 Next, the variable part of the first parameter of the macro command of the first registered command is replaced with the specified "10". Executes all commands in the specified order sequentially.
本実施例では、第1パラメータを有する既存コマンドが
1つの場合を説明したが、この第1パラメータを有する
既存コマンドが複数ある場合や、あるいは変更すべきパ
ラメータが複数ある場合でも、−度マクロコマンドの該
当パラメータに変数値を代入するだけで、これら対象の
既存コマンドを順次前述したと同様の手順により変更さ
せることができる。従って、個々の既存コマンドのパラ
メータの値を個別に修正する必要はない。In this embodiment, the case where there is one existing command that has the first parameter has been explained, but even if there are multiple existing commands that have this first parameter, or there are multiple parameters that need to be changed, the -degree macro command By simply substituting variable values for the corresponding parameters, these existing commands can be sequentially changed in the same manner as described above. Therefore, there is no need to individually modify the parameter values of each existing command.
本発明は以上説明したように、マクロコマンドに登録し
てある既存コマンドのパラメータの値を指定されるパラ
メータの値に置換するマクロコマンドを生成するマクロ
コマンド生成部と:対象とする既存コマンドのパラメー
タの値をマクロコマンド生成部によって生成されたマク
ロコマンドにより指定されるパラメータの値に置換した
後、マクロコマンドにより指定される全てのコマンドを
実行するマクロコマンド実行部と;マクロコマンド生成
部及びマクロコマンド実行部でパラメータの値を置換し
実行するためのデータを格納するデータ部とを備えるこ
とにより、マクロコマンドのパラメータの値を変えるだ
けで既存コマンドのパラメータの値を個別に修正作業を
行うことなく、同一機能のマクロコマンドを生成し実行
することができる。As explained above, the present invention includes: a macro command generation unit that generates a macro command that replaces the parameter value of an existing command registered in the macro command with a specified parameter value; a macro command execution unit that executes all commands specified by the macro command after replacing the value of the parameter with the value of the parameter specified by the macro command generated by the macro command generation unit; a macro command generation unit and the macro command; By having a data section that stores data for replacing and executing parameter values in the execution section, you can simply change the parameter values of macro commands without having to modify the parameter values of existing commands individually. , it is possible to generate and execute macro commands with the same function.
第1図は本発明の一実施例を示す構成図、第2図は本発
明の一実施例のデータ部における各種データの割付けを
説明するための図、第3図は本発明の一実施例のマクロ
コマンド生成部の処理の流れを示すフローチャート、第
4図は本発明の一実施例のマクロコマンド実行部の処理
の流れを示すフローチャートである。
1・・・・−・コマンド受信部、2・・・・・・マクロ
コマンド生成部、3・・・・・・マクロコマンド実行部
、4・・・・・・データ部。FIG. 1 is a configuration diagram showing an embodiment of the present invention, FIG. 2 is a diagram for explaining the allocation of various data in the data section of an embodiment of the present invention, and FIG. 3 is an embodiment of the present invention. FIG. 4 is a flowchart showing the processing flow of the macro command generating section in one embodiment of the present invention. DESCRIPTION OF SYMBOLS 1...--Command receiving section, 2... Macro command generating section, 3... Macro command execution section, 4... Data section.
Claims (1)
実行する蓄積プログラム制御式交換機におけるマクロコ
マンド生成実行方式において、前記マクロコマンドに登
録してある前記既存コマンドのパラメータの値を指定さ
れるパラメータの値に置換するマクロコマンドを生成す
るマクロコマンド生成部と;対象とする前記既存コマン
ドのパラメータの値を前記マクロコマンド生成部によっ
て生成されたマクロコマンドにより指定されるパラメー
タの値に置換した後、前記マクロコマンドにより指定さ
れる全てのコマンドを実行するマクロコマンド実行部と
;前記マクロコマンド生成部及び前記マクロコマンド実
行部でパラメータの値を置換し実行するためのデータを
格納するデータ部とを備えることを特徴とするマクロコ
マンド生成実行方式。In a macro command generation/execution method in a storage program controlled exchange that generates and executes a macro command by combining multiple existing commands, the value of the parameter of the existing command registered in the macro command is set to the value of the specified parameter. a macro command generation unit that generates a macro command to be replaced; after replacing the parameter value of the target existing command with the parameter value specified by the macro command generated by the macro command generation unit; a macro command execution unit that executes all commands specified by; and a data unit that stores data for replacing and executing parameter values in the macro command generation unit and the macro command execution unit. Macro command generation and execution method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP19887590A JPH0483497A (en) | 1990-07-26 | 1990-07-26 | Macro-command forming and executing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP19887590A JPH0483497A (en) | 1990-07-26 | 1990-07-26 | Macro-command forming and executing system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0483497A true JPH0483497A (en) | 1992-03-17 |
Family
ID=16398375
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP19887590A Pending JPH0483497A (en) | 1990-07-26 | 1990-07-26 | Macro-command forming and executing system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0483497A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009187098A (en) * | 2008-02-04 | 2009-08-20 | Canon Inc | Image forming device, control method therefor, program and storage medium |
-
1990
- 1990-07-26 JP JP19887590A patent/JPH0483497A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009187098A (en) * | 2008-02-04 | 2009-08-20 | Canon Inc | Image forming device, control method therefor, program and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7080377B2 (en) | Method for effective utilizing of shared resources in computerized system | |
US11500690B2 (en) | Dynamic load balancing in network centric process control systems | |
US4591971A (en) | Method and apparatus for parallel processing of digital signals using multiple independent signal processors | |
US10845787B1 (en) | Concurrent updating for linear topologies in an industrial automation environment | |
JPH0483497A (en) | Macro-command forming and executing system | |
JPH02297633A (en) | Task managing system | |
JPH0715440A (en) | Identification information management method | |
JP3465798B2 (en) | Distributed control system | |
JP2843105B2 (en) | Printer connection method for communication between applications | |
JPH09204326A (en) | Image data storage controller | |
JPH10171509A (en) | Process controller | |
CN113342499A (en) | Distributed task calling method, device, equipment, storage medium and program product | |
JPS61150006A (en) | Programmable controller | |
JPH01234934A (en) | Program developing system for distributed system | |
JPH03204744A (en) | Address converting mechanism | |
JPS6041133A (en) | Correcting method of control program | |
JPH01122247A (en) | Command contention management system | |
JPH0329030A (en) | Decentralized cooperative inference device | |
JPS63111531A (en) | System production changing system | |
JPS63247824A (en) | Expanding method for number of defining blocks of data entry screen | |
JPH04359629A (en) | Method of consistently managing output data | |
JPS59230347A (en) | Programmable controller system | |
JPS6194113A (en) | Monitor system for digital controller | |
JPH04127328A (en) | Execution control method for system consisting of plural modules | |
JPH03147149A (en) | Update control system for data file |