JPH05158836A - Programming device for programmable controller - Google Patents

Programming device for programmable controller

Info

Publication number
JPH05158836A
JPH05158836A JP3322961A JP32296191A JPH05158836A JP H05158836 A JPH05158836 A JP H05158836A JP 3322961 A JP3322961 A JP 3322961A JP 32296191 A JP32296191 A JP 32296191A JP H05158836 A JPH05158836 A JP H05158836A
Authority
JP
Japan
Prior art keywords
communication
programmable controller
response
specifications
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3322961A
Other languages
Japanese (ja)
Inventor
Nobuaki Mochizuki
伸昭 望月
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP3322961A priority Critical patent/JPH05158836A/en
Publication of JPH05158836A publication Critical patent/JPH05158836A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To eliminate instructing operation about communication specification. CONSTITUTION:Information is transmitted to a programmable controller by changing the communication specification by a first communication control means 1000, and when a judging means 1100 confirms the answer of the programmable controller, the communication specification corresponding to this answer is set as the communication specification for usual communication by a second communication control means 1200.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、プログラマブルコント
ローラとの間で情報の授受を行うプログラマブルコント
ローラのプログラミング装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller programming device for exchanging information with a programmable controller.

【0002】[0002]

【従来の技術】図4に示すようにプログラミング装置1
00はプログラマブルコントローラ200と伝送ライン
150により結ばれている。プログラミング装置100
はキーボード60から操作者によりシーケンスプログラ
ムをシーケンス命令単位で入力し、表示画面上で全体の
シーケンスプログラムを作成する。
2. Description of the Related Art As shown in FIG.
00 is connected to the programmable controller 200 by a transmission line 150. Programming device 100
The operator inputs a sequence program in sequence command units from the keyboard 60 to create the entire sequence program on the display screen.

【0003】作成されたシーケンスプログラムは伝送ラ
イン150を介してプログラマブルコントローラ200
へ転送され、プログラマブルコントローラ200におい
てこのシーケンスプログラムを実行することで、プログ
ラマブルコントローラ200に接続された電子機器の動
作制御を行う。
The created sequence program is transmitted via the transmission line 150 to the programmable controller 200.
Then, the programmable controller 200 executes the sequence program to control the operation of the electronic device connected to the programmable controller 200.

【0004】プログラミング装置100はプログラマブ
ルコントローラ200から上記電子機器の動作情報を受
信し、表示装置50に表示することで上記電子機器の動
作状態をモニタすることが可能である。
The programming device 100 can monitor the operation state of the electronic device by receiving the operation information of the electronic device from the programmable controller 200 and displaying it on the display device 50.

【0005】プログラミング装置100はプログラマブ
ルコントローラ200と脱着可能であり、複数種のプロ
グラマブルコントローラ200と交換的に接続可能であ
る。
The programming device 100 can be attached to and detached from the programmable controller 200, and can be exchangeably connected to a plurality of types of programmable controllers 200.

【0006】通信仕様の異なる多種のプログラマブルコ
ントローラと通信を行うために、ユーザは通信に先立っ
て伝送状態(伝送速度およびパリティ,データ長,スト
ップビット等のデータフォーマット)を予めキーボード
60から指示入力する。
In order to communicate with various programmable controllers having different communication specifications, the user inputs a transmission state (transmission speed and parity, data length, data format such as stop bit) from the keyboard 60 in advance prior to the communication. ..

【0007】[0007]

【発明が解決しようとする課題】このため、ユーザはプ
ログラマブルコントローラの通信仕様を調べなければな
らず、また誤入力を行うと、プログラミング装置とプロ
グラマブルコントローラの間では通信ができないという
不具合があった。
Therefore, the user has to check the communication specifications of the programmable controller, and if an erroneous input is made, communication between the programming device and the programmable controller cannot be performed.

【0008】そこで、本発明の目的は、上述の点に鑑み
て、操作者による通信仕様の指示を行わなくても接続先
のプログラマブルコントローラの通信仕様を自動的に検
出し、検出した通信仕様で通信することの可能なプログ
ラマブルコントローラのプログラミング装置を提供する
ことにある。
Therefore, in view of the above points, an object of the present invention is to automatically detect the communication specifications of the programmable controller of the connection destination without the operator's instruction of the communication specifications, and use the detected communication specifications. It is to provide a programmable controller programming device capable of communicating.

【0009】[0009]

【課題を解決するための手段】このような目的を達成す
るために、本発明は、複数の通信仕様の中の一つを選択
し、選択した通信仕様でプログラマブルコントローラと
の間で通信を行うプログラマブルコントローラのプログ
ラミング装置において、情報を前記複数の通信仕様の各
々に従って順次に前記プログラマブルコントローラに送
信する第1通信制御手段と、前記情報に対する前記プロ
グラマブルコントローラからの応答の有無を判定する判
定手段と、前記第1通信制御手段から、使用された通信
仕様を示す制御情報を入力し、前記判定手段の判定の結
果が、応答有りのとき、当該応答有りに対応する通信仕
様を前記プログラマブルコントローラとの間の通信に用
いる通信仕様として設定する第2通信制御手段とを具え
たことを特徴とする。
In order to achieve such an object, the present invention selects one of a plurality of communication specifications and communicates with a programmable controller according to the selected communication specification. In a programmable controller programming device, first communication control means for sequentially transmitting information to the programmable controller according to each of the plurality of communication specifications, and determination means for determining whether or not there is a response from the programmable controller to the information. When the control information indicating the used communication specification is input from the first communication control means and the result of the judgment by the judgment means is that there is a response, the communication specification corresponding to the response is sent to the programmable controller. Second communication control means set as communication specifications used for communication of .

【0010】[0010]

【作用】本発明では、送信側,受信側の通信仕様が合致
しないと、通信が成立しないことに着目し、通信仕様を
順次に切替えて同一情報をプログラマブルコントローラ
に送信し、プログラマブルコントローラから応答送信が
あったときに、この応答通信に対応する通信仕様をプロ
グラマブルコントローラ側の通信仕様と判定する。
In the present invention, attention is paid to the fact that communication cannot be established unless the communication specifications of the transmitting side and the receiving side match, and the communication specifications are sequentially switched to transmit the same information to the programmable controller, and the programmable controller sends a response. When there is, the communication specification corresponding to the response communication is determined to be the communication specification on the programmable controller side.

【0011】[0011]

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

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

【0013】本実施例のプログラミング装置は複数の通
信仕様の中の一つを選択し、選択した通信仕様でプログ
ラマブルコントローラとの間で通信を行うプログラマブ
ルコントローラのプログラミング装置である。
The programming device of the present embodiment is a programming device for a programmable controller that selects one of a plurality of communication specifications and communicates with the programmable controller according to the selected communication specifications.

【0014】図1において、1000は情報を前記複数
の通信仕様の各々に従って順次に前記プログラマブルコ
ントローラに送信する第1通信制御手段である。
In FIG. 1, reference numeral 1000 denotes a first communication control means for sequentially transmitting information to the programmable controller according to each of the plurality of communication specifications.

【0015】1100は前記情報に対する前記プログラ
マブルコントローラからの応答の有無を判定する判定手
段である。
Reference numeral 1100 is a judging means for judging whether or not there is a response from the programmable controller to the information.

【0016】1200は前記第1通信制御手段から、使
用された通信仕様を示す制御情報を入力し、前記判定手
段の判定の結果が、応答有りのとき、当該応答有りに対
応する通信仕様を前記プログラマブルコントローラとの
間の通信に用いる通信仕様として設定する第2通信制御
手段である。
Reference numeral 1200 denotes control information indicating the used communication specifications from the first communication control means, and when the result of the judgment by the judgment means is that there is a response, the communication specification corresponding to the presence of the response is described as above. It is a second communication control unit that is set as a communication specification used for communication with the programmable controller.

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

【0018】なお、図4に示す従来例と同様の箇所には
同一の符号を付しており、詳細な説明を省略する。
The same parts as those in the conventional example shown in FIG. 4 are designated by the same reference numerals, and detailed description thereof will be omitted.

【0019】図2において、CPU10はシステムプロ
グラムメモリ20に格納された各種プログラムに従っ
て、シーケンスプログラムの作成処理,モニタ処理,通
信制御処理を実行する。ワークメモリ30はCPU10
の演算処理に用いるデータを一時記憶する。
In FIG. 2, the CPU 10 executes a sequence program creation process, a monitor process, and a communication control process according to various programs stored in the system program memory 20. The work memory 30 is the CPU 10
The data used for the arithmetic processing of is temporarily stored.

【0020】インタフェース40はCPU10により指
示された通信仕様すなわち伝送速度、およびデータフォ
ーマットで、プログラマブルコントローラとの間で情報
の授受を行う。ユーザプログラマブルメモリ70には作
成のシーケンスプログラムが格納される。タイマ80は
CPU10により起動され所定時間を計時する。
The interface 40 exchanges information with the programmable controller according to the communication specifications, that is, the transmission speed and the data format instructed by the CPU 10. The user programmable memory 70 stores the created sequence program. The timer 80 is started by the CPU 10 and measures a predetermined time.

【0021】このような回路において実行される、通信
の初期処理を図3を用いて説明する。
Initial processing of communication executed in such a circuit will be described with reference to FIG.

【0022】図3に示す制御手順は図2のCPU10の
実行する制御手順を示し、この制御手順は実際にはCP
U10の実行可能なプログラム言語で記載され、システ
ムメモリ20に格納されている。CPU10はこの制御
手順を順次に読出し実行することにより、本発明に関わ
る通信仕様の自動検知を実行する。
The control procedure shown in FIG. 3 is a control procedure executed by the CPU 10 in FIG. 2, and this control procedure is actually a CP.
It is written in the executable program language of U10 and is stored in the system memory 20. The CPU 10 sequentially reads and executes this control procedure to execute automatic detection of communication specifications according to the present invention.

【0023】また、プログラマブルコントローラの機種
に対応させた複数種の通信仕様がこの制御手順上に規定
されている。
Further, a plurality of types of communication specifications corresponding to the model of the programmable controller are defined in this control procedure.

【0024】図3において、CPU10は第1の通信仕
様を示す通信関連情報をワークメモリ30上に設定した
後、タイマ80をセットする(S10→S30)。
In FIG. 3, the CPU 10 sets the communication-related information indicating the first communication specification in the work memory 30, and then sets the timer 80 (S10 → S30).

【0025】次に、ワークメモリ30に設定記憶された
通信関連情報に従って第1の通信仕様でインタフェース
40からプログラマブルコントローラに対してたとえば
応答要求命令を送信する(S30)。このときのCPU
10が本発明の第1通信制御手段として動作する。
Next, according to the communication related information set and stored in the work memory 30, a response request command is transmitted from the interface 40 to the programmable controller according to the first communication specification (S30). CPU at this time
10 operates as the first communication control means of the present invention.

【0026】この後、CPU10は、プログラマブルコ
ントローラから応答情報が送信されてくるのを待ち、応
答情報を受信した場合は、応答情報をワークメモリ30
に格納する(S40)。
Thereafter, the CPU 10 waits for the response information to be transmitted from the programmable controller, and when the response information is received, the CPU 10 stores the response information in the work memory 30.
(S40).

【0027】タイマ80からのタイムアップ信号を受信
すると、CPU10は上記応答情報がワークメモリ30
に記憶されているか否かを調べることによりプログラマ
ブルコントローラからの応答有りと判定する(S50→
S60)。このときのCPU10が本発明の判定手段と
して動作する。
Upon receiving the time-up signal from the timer 80, the CPU 10 sends the response information to the work memory 30.
It is determined that there is a response from the programmable controller by checking whether or not it is stored in (S50 →
S60). At this time, the CPU 10 operates as the determination means of the present invention.

【0028】S60の判定処理において、応答無しの判
定結果が得られた場合は、CPU10は本発明の第1の
通信制御手段として、次に、第2の通信仕様についての
通信関連情報をワークメモリ30に切替設定する(S7
0)。
When a determination result of no response is obtained in the determination processing of S60, the CPU 10 serves as the first communication control means of the present invention, and then the communication-related information regarding the second communication specifications is stored in the work memory. Switch to 30 (S7)
0).

【0029】以下、実行手順をS20に戻し、第2の通
信仕様で上述と同様の処理、すなわち、タイマセット,
応答要求の送信,一定時間後の応答の有無判定(S20
〜S60)を行う。
Thereafter, the execution procedure is returned to S20, and the same processing as described above in the second communication specification, that is, the timer setting,
Transmission of response request, determination of presence / absence of response after a fixed time (S20
~ S60) is performed.

【0030】このようにして、通信仕様を順次に切替え
て応答要求信号を送信して行くと、プログラマブルコン
トローラは通信仕様の合致した時点で、応答要求を送信
する。
As described above, when the communication specifications are sequentially switched and the response request signal is transmitted, the programmable controller transmits the response request when the communication specifications are met.

【0031】この場合、CPU10ではS60の判定処
理において、応答有りの判定処理が得られる。そこで、
CPU10は応答要求の送信処理を中止し、本制御手順
を終了させる。このときのCPU10が本発明の第2通
信制御手段として動作する。また、このとき、ワークメ
モリ30上には接続のプログラマブルコントローラと合
致した通信仕様の通信関連情報が設定記憶されているこ
とになる。そこで、以後、実行する通信処理については
CPU10はこの通信関連情報を用いることになる。
In this case, the CPU 10 obtains a response presence determination process in the determination process of S60. Therefore,
The CPU 10 stops the response request transmission process and ends the present control procedure. At this time, the CPU 10 operates as the second communication control means of the present invention. Further, at this time, the communication-related information having the communication specifications that match the programmable controller to be connected is set and stored in the work memory 30. Therefore, thereafter, the CPU 10 uses this communication related information for the communication processing to be executed.

【0032】以上の通信制御処理をCPU10が実行す
ることで、接続先のプログラマブルコントローラの通信
仕様を自動識別することができるので、ユーザは、プロ
グラマブルコントローラの通信仕様を指示する必要はな
い。
Since the CPU 10 executes the above communication control processing to automatically identify the communication specifications of the programmable controller at the connection destination, the user does not need to instruct the communication specifications of the programmable controller.

【0033】本実施例の他に次の例が挙げられる。In addition to this embodiment, the following examples can be given.

【0034】1)本実施例では通信仕様の検知の際に用
いる情報として応答要求命令を用いたが、応答要求命令
だけでなくプログラマブルコントローラが応答する情報
であればこの限りではない。
1) In this embodiment, the response request command is used as the information used when detecting the communication specifications, but the information is not limited to this as long as it is the information which the programmable controller responds in addition to the response request command.

【0035】2)本実施例ではCPU10が本発明に関
わる通信制御処理を実行する例を示したが、専用の通信
ユニットを用いて、通信を行うプログラミング装置では
図1の基本構成に従った回路を通信ユニット内に設けれ
ばよい。
2) In the present embodiment, an example in which the CPU 10 executes the communication control processing relating to the present invention has been shown. However, in a programming device for performing communication using a dedicated communication unit, a circuit according to the basic configuration of FIG. May be provided in the communication unit.

【0036】3)図3の制御手順において、S20〜S
70のループ処理を繰り返し実行し、予めプログラム上
に記憶されている全ての通信仕様で情報通信を完了した
場合は、プログラマブルコントローラと合致する通信仕
様が無いことになる。このような場合は表示装置50に
メッセージ表示をして、操作者に通信エラーの内容を報
らせるとよい。
3) S20 to S in the control procedure of FIG.
When the loop process of 70 is repeatedly executed and the information communication is completed with all the communication specifications stored in the program in advance, there is no communication specification that matches the programmable controller. In such a case, a message may be displayed on the display device 50 to inform the operator of the content of the communication error.

【0037】[0037]

【発明の効果】以上、説明したように、本発明によれ
ば、ユーザはプログラマブルコントローラ側の通信仕様
を指示入力する必要がなく、また誤入力操作も発生しな
い。
As described above, according to the present invention, the user does not need to instruct and input the communication specifications on the programmable controller side, and erroneous input operations do not occur.

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

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

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

【図3】図2のCPU10の実行する制御手順を示すフ
ローチャートである。
3 is a flowchart showing a control procedure executed by a CPU 10 in FIG.

【図4】従来のシステム構成を示す斜視図である。FIG. 4 is a perspective view showing a conventional system configuration.

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

10 CPU 20 システムメモリ 30 ワークメモリ 40 インタフェース 50 表示装置 60 キーボード 80 タイマ 10 CPU 20 System Memory 30 Work Memory 40 Interface 50 Display Device 60 Keyboard 80 Timer

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数の通信仕様の中の一つを選択し、選
択した通信仕様でプログラマブルコントローラとの間で
通信を行うプログラマブルコントローラのプログラミン
グ装置において、 情報を前記複数の通信仕様の各々に従って順次に前記プ
ログラマブルコントローラに送信する第1通信制御手段
と、 前記情報に対する前記プログラマブルコントローラから
の応答の有無を判定する判定手段と、 前記第1通信制御手段から、使用された通信仕様を示す
制御情報を入力し、前記判定手段の判定の結果が、応答
有りのとき、当該応答有りに対応する通信仕様を前記プ
ログラマブルコントローラとの間の通信に用いる通信仕
様として設定する第2通信制御手段とを具えたことを特
徴とするプログラマブルコントローラのプログラミング
装置。
1. A programming device for a programmable controller, which selects one of a plurality of communication specifications and communicates with a programmable controller according to the selected communication specifications, wherein information is sequentially transferred in accordance with each of the plurality of communication specifications. First communication control means for transmitting to the programmable controller, determination means for determining whether or not there is a response from the programmable controller to the information, and control information indicating communication specifications used from the first communication control means. And a second communication control means for setting a communication specification corresponding to the presence of the response as a communication specification used for communication with the programmable controller when the result of the determination made by the determination means is a response. A programmable controller programming device characterized by the above.
JP3322961A 1991-12-06 1991-12-06 Programming device for programmable controller Pending JPH05158836A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3322961A JPH05158836A (en) 1991-12-06 1991-12-06 Programming device for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3322961A JPH05158836A (en) 1991-12-06 1991-12-06 Programming device for programmable controller

Publications (1)

Publication Number Publication Date
JPH05158836A true JPH05158836A (en) 1993-06-25

Family

ID=18149579

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3322961A Pending JPH05158836A (en) 1991-12-06 1991-12-06 Programming device for programmable controller

Country Status (1)

Country Link
JP (1) JPH05158836A (en)

Similar Documents

Publication Publication Date Title
JPH05158836A (en) Programming device for programmable controller
JPH06214819A (en) Information processor and system and method for evaluating the same
JP2004054526A (en) Image processing system, printer, control method, method of executing control command, program and recording medium
JP2527849Y2 (en) Programmable controller and its programming device
JP4562439B2 (en) Program verification system and computer program for controlling program verification system
JP2002189617A (en) Evaluation system and evaluation method
JP2523515Y2 (en) Sequence controller
JPH0619741A (en) Debugging system
JP2597635B2 (en) All key operation check method and device
JPH0417454B2 (en)
JP3384141B2 (en) Programmable controller and programmable controller maintenance device
JPS6334604A (en) Programmable controller
JPH08286953A (en) Program verifying system
JPS62266604A (en) Remote programming console device
JPS63284604A (en) Programmable controller
JPH03282617A (en) Printer device
JPH04350736A (en) Programmable controller
JPH0460807A (en) Programming device for programmable controller
JPH11161514A (en) Debugger device, debugging method and storage medium recording debugging program
JPH07202990A (en) Debugging device
JPH0472257B2 (en)
JPH06149933A (en) Device and method for visualizing program operation
JPH1142835A (en) Image forming apparatus
JP2003114804A (en) Real time os control unit
JPS63247803A (en) Program input/output device for programmable controller