JPH0482448A - Transmission speed switching system - Google Patents
Transmission speed switching systemInfo
- Publication number
- JPH0482448A JPH0482448A JP2197417A JP19741790A JPH0482448A JP H0482448 A JPH0482448 A JP H0482448A JP 2197417 A JP2197417 A JP 2197417A JP 19741790 A JP19741790 A JP 19741790A JP H0482448 A JPH0482448 A JP H0482448A
- Authority
- JP
- Japan
- Prior art keywords
- transmission speed
- transmission
- code
- switching
- peripheral device
- 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
- 230000005540 biological transmission Effects 0.000 title claims abstract description 106
- 238000005070 sampling Methods 0.000 claims abstract description 9
- 238000000034 method Methods 0.000 claims description 26
- 230000002093 peripheral effect Effects 0.000 abstract description 37
- 238000004891 communication Methods 0.000 abstract description 16
- 238000010586 diagram Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 3
- 101150010202 G9R gene Proteins 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
Landscapes
- Communication Control (AREA)
Abstract
Description
本発明は伝送速度切り替え方式に関するものである。 The present invention relates to a transmission rate switching method.
第11図に示すようにプログラマブルコントローラ(以
下PCと略する)1.と周辺装置とを接続する場合R3
232C方式の通信ボートを用いて互いに接続すること
が行われるが、通常伝送速度は速い方が一定時間内に送
信できるデータ量が多ため、伝送速度を高めにして通信
を行うのが通常である。ところがPCIに対して専用の
周辺装置21を使用する場合は任意に伝送速度が設定で
き、例えば19.2Kbpsというように高い伝送速度
が選べる。
一方最近では周辺装置としてパーソナルコンピュータ(
以下パソコンと略す)が使用されることが増えて来てい
るが、一般にパソコンからなる周辺装置22の場合、伝
送速度は9600bpsが最高の場合が多い。
そのため専用周辺装置21を使用する場合と、パソコン
からなる周辺袋W2□を使用する場合とでは伝送速度を
切り替える必要があり、そのためPCI側に切り替えス
イッチなどの切り替え手段を設け、接続する周辺装置に
合わせて操作していt′:。As shown in FIG. 11, a programmable controller (hereinafter abbreviated as PC)1. When connecting R3 and peripheral devices
232C type communication boats are used to connect to each other, but normally the faster the transmission speed, the more data can be sent within a certain amount of time, so it is normal to communicate at a higher transmission speed. . However, when using a dedicated peripheral device 21 for PCI, the transmission speed can be set arbitrarily, and a high transmission speed such as 19.2 Kbps can be selected, for example. On the other hand, recently personal computers (
Personal computers (hereinafter abbreviated as personal computers) are increasingly being used, and in the case of peripheral devices 22 that are generally personal computers, the maximum transmission speed is often 9600 bps. Therefore, it is necessary to switch the transmission speed between when using the dedicated peripheral device 21 and when using the peripheral bag W2□ consisting of a personal computer.For this reason, a switching means such as a switch is provided on the PCI side, and the peripheral device to be connected is Operate at the same time.
上述のようにPCIに接続する周辺装置が専用周辺装置
21であるのか、パソコンからなる周辺装置22である
のかによって伝送速度を切り替える場合、使用周辺装置
を変える度に切り替え操作を行わなければならないとい
う煩わしさがあった。
また切り替えを忘れたり、切り替え間違いをした場合、
動作しないため、故障したと判断され、作業が止まって
しまうなどの使い勝手面で不便であるという問題があっ
た。
本発明は上述の問題点に鑑みて為されたもので、その目
的とするところは送信側装置の伝送速度を自動的に判断
して受信側装置の伝送速度を切り替え、従来のように手
動による切り替え操作を無くし、操作の煩わしさや切り
替え忘れや間違を無くした伝送速度切り替え方式を提供
するにある。As mentioned above, when switching the transmission speed depending on whether the peripheral device connected to the PCI is the dedicated peripheral device 21 or the peripheral device 22 consisting of a personal computer, the switching operation must be performed every time the peripheral device used is changed. It was annoying. If you forget to switch or make a mistake,
Since the device does not work, it is determined that the device is malfunctioning, and work stops, which is inconvenient in terms of usability. The present invention has been made in view of the above-mentioned problems, and its purpose is to automatically determine the transmission speed of the transmitting side device and switch the transmission speed of the receiving side device, so that it is possible to automatically determine the transmission speed of the transmitting side device and switch the transmission speed of the receiving side device. To provide a transmission speed switching method that eliminates switching operations and eliminates troublesome operations, forgetting to switch, and mistakes.
本発明は上述の目的を達成するために、R3232C方
式等のシリアル信号で2つの装置の間でデータを所定の
手順で伝送する際に、最初に送信権を持った送信側装置
から予め定めている特定の伝送速度切り替えコマンドコ
ードを伝送し、受信側装置では、受信側の設定伝送速度
に応じたサンプリング周期で読み取った受信コードが上
記の特定の伝送速度切り替えコマンドコードと異なる場
合に該受信コードに基づいて送信側装置の伝送速度を判
断して送信側装置の伝送速度に切り替えるものである。In order to achieve the above-mentioned object, the present invention has been developed to transmit data using a serial signal such as the R3232C method between two devices according to a predetermined procedure. A specific transmission speed switching command code is transmitted, and the receiving device transmits the received code when the receiving code read at a sampling period according to the set transmission speed of the receiving side is different from the above specific transmission speed switching command code. The transmission speed of the transmitting device is determined based on the transmission speed of the transmitting device, and the transmission speed is switched to that of the transmitting device.
而して本発明によれば送信側装置から特定の伝送速度切
り替えコマンドコードを送ることにより、受信側装置で
は自己の設定伝送速度に応じて変化した受信コードの内
容に応じて送信側装置の伝送速度を判断することができ
、その結果送信側装置の伝送速度と同じ伝送速度に受信
側装置の伝送速度を自動的に切り替えることができる。According to the present invention, by sending a specific transmission speed switching command code from the transmitting device, the receiving device changes the transmission of the transmitting device according to the content of the receiving code that has changed according to its own set transmission speed. The speed can be determined, and as a result, the transmission speed of the receiving device can be automatically switched to the same transmission speed as the transmission speed of the sending device.
以下本発明を実施例により説明する。
まず本発明を使用するPCIは第1図に示すように演算
処理を行うCPU1a、システムプログラムなどを格納
したROM1b、ユザーズシーケンスプログラムを格納
するRAM1c、l10R置を接続するI10ボート1
d、更に周辺装置2を接続するR3232C方式を用い
た通信ボート1eからなる、−e的なPCの構成となっ
ている。
通信ボート1eを使用した周辺装置2との閏での通信手
順はコマンド/レスポンスタイプの専用手順で行う。こ
の場合送信権のある側からコマンドメツセージを送り、
受信側ではコマンドに対してコマンドに応答する形でレ
スポンスメツセージを送る。そしてコマンドメツセージ
を送信するごとに送信権をPCIと周辺装置2との間で
移行させるようになっている。
またPCIと周辺装置2との間で伝送されるデータは制
御コード以外は英数字のみをASCIIコードで送るよ
うになっており、上記の手順で送られるコマンドメツセ
ージは第2図(a)に示すようにヘッダHと、送信先ア
ドレスADと、コマンドメツセージであることを示す識
別コードC、コマンドコードCC、テキストデータTD
からなるテキスト部TXと、チエツクコードCHと、タ
ーミネータTNとから構成される。またレスポンスメツ
セージは正常な場合には第2図(b)に示すようにヘッ
ダHと、送信先アドレスADと、レスポンスメツセージ
であることを示し且つ正常であることを識別する識別コ
ードC、レスポンスコードCD、テキストデータTDか
らなるテキスト部TXと、チックコードCHと、ターミ
ネタTNとから構成される。また異常な場合には第2図
(C)に示すようにヘッダHと、送信先アドレスADと
、レスポンスメツセージであることを示し且つ異常であ
ることを識別する識別コードC、エラーコードERから
なるテキスト部TXと、チックコードCHと、ターミネ
タTNとから構成される。
而してシステムを立ち上げると、まず専用周辺装置或は
パソコンからなる周辺装置2が送信権をもち、このとき
周辺装置2から伝送速度の切り替えコマンドコード(例
えば“9E0.”)をコマンドメツセージによりPCI
側に伝送する。この伝送は2回行うようになっており、
第3図(a)はその伝送のフローチャートを示す。
ここで伝送される信号は伝送速度に応じた間隔でサンプ
リングを行って読み取られるため、スタートビットb8
と、ストップビットbspの2ビツトとを先頭、後尾に
加えたシリアル信号から構成されているコード(bo〜
by)は送信側の周辺装置2の伝送速度(例えば960
0bps)に受信側のPCIの通信ボート1eで設定し
ている伝送速度とが一致している場合には第4図(a>
に示すように受信側の信号読み取りサンプリング周期A
がシリアル信号の1ビツト毎に対応することになり、送
信されたコードと同じコードを読み取ることになる。つ
まり伝送速度の切り替えコマンドコード“9ElII、
”がPCIで受信されることになる。このコマンドコー
ド“9 E 、、、”が受信されたことにより、PCI
のCPU1aは第3図(b)の受信処理のフローチャー
トに示すように、伝送速度の切り替えが一致したと判断
して通信ボートleの伝送速度の切り替えを行わず受信
処理を行う。
逆にPCIの伝送速度が周辺装置2の伝送速度の2倍の
伝送速度(19,2Kbps)に設定されている場合、
シリアル信号を読み取るサンプリング周期は第4図(a
)に示すようにサンプリング周期Aの2倍の周期Bとな
る。従って読み取るコードは“OF8.、、、“OF8
゜、”となり、2回のコマンドメツセージの送信ではこ
のコード“OF8゜、”が4回受信されるため、第3図
(b)に示すようにPCIのCPU1bではコード“O
F 8 、、、”を4回連続して受信した場合、周辺装
置2の伝送速度がPCI側で設定している伝送速度の1
/2であると判定し、伝送速度を周辺装置2側と同じ伝
送速度に切り替えた後、受信処理を行う、また4回連続
して受信されない場合にも受信処理へ戻る。
上記の場合は周辺装置2側の伝送速度がPCI側の伝送
速度の1/2の場合であったが、逆に周辺装置2側の伝
送速度が例えば19.2Kbpsで、PCI側の伝送速
度が9600bpsの場合には、第4図(b)に示すよ
うに送受信側とも同じ伝送速度のときのサンプリング周
期Aに対して、サンプリング周期がBで示すように倍と
なり、送信された伝送速度の切り替えコマンドコード“
9E tar”が受信側では“OF B 、、、”とな
る、従ってPCIでは“OF B 、、、”を2回連続
して受信した場合、周辺装置2の伝送速度がPCIII
Iの伝送速度の2倍の伝送速度であると判定し、通信ボ
ート1eの伝送速度を周辺装置2側と同じ伝送速度に切
り替える。
受信されたコマンドコードが9E、。 、“OF8□1
、“OFB、□′のいずれでもない場合には受信デー
タの処理を行った後受信処理へ戻る。
以上のように本実施例では立ち上がり時に周辺装置から
送られて来る特定の伝送速度切り替えコマンドコードを
受信した際、その受信認識したコードのWIIによって
周辺装置2の伝送速度を判断し、通信ボート1eの伝送
速度を識別するため、特別な切り替え手段を操作する必
要がなく、また切り替え間違いも生じないため、操作の
煩雑さや、不便さがない。
さて上記の実施例では特定の伝送速度切り替えコマンド
コードを伝送することにより受信側で伝送速度を判断す
るようになっているが、R3232Cの制御線を利用し
て伝送速度を切り替えることもできる。
つまりR5232Cの接続を例えば第5図に示すように
制#線R5,ERを用いて行っている場合、一般には制
御線DR,ERは論理値“0”にてデータセットレディ
状態、データ端末レディ状態を示している。これらの制
御線DR,ERを用いて伝送速度を切り替える方法を説
明する。
まず周辺装置2側では立ち上げ時に第6図(b)に示す
ように制御線ERを“0″→“1”→0″とすると、P
CI側では第7図に示す通信ボート1eのカウンタ3は
制御線ERの信号でクリアされ、そのカウンタ3の出力
で分周器4から出力される伝送用クロックを例えば19
.2KbpSに設定するものとする。この後、周辺装置
2側から制御線DRを介してパルスを第6図(a)に示
すように“0”−“1”−“0”を送って、カウンタ3
をカウントアツプさせると、このカウント値によって分
周器4の分周比を変えるのである。
例えば第6図(a)の場合において、4分周とすれば、
伝送用クロックは4800bpsに切り替わることにな
る。従って伝送部5における伝送速度が4800bps
と設定される。ここで制御線DR= ERの状態は一般
的にソフトウェアにより設定が可能であるため、周辺装
置2側で制御11DR,ERの状態を第6図に示すよう
に設定することにより所定の伝送速度に切り替えること
ができるのである。尚第5図、第6図中のRDは受信デ
ータを、SDは送信データ、C8は送信可能信号、R3
は送信要求信号を送るための制御線であることを示す、
6は基準クロック発生部である。
ところで上記方法では制御線DR,ERを用いた場合で
あるが、第8図に示すような制御線の接続構成を用いた
場合において、制御線R3を利用することにより伝送速
度切り替え信号をPct側に与えるようにしても良い。
この場合周辺装置2側では立ち上げ時に第9図(a)に
示すように制御線R3を14時間で“0→“1”→“0
”とすると、PCI側では第10図に示す通信ボート1
eのカウンタ3.は制御線R3の信号でクリアされ、そ
のカウンタ3の出力C0、C3は第9図くb)くc)に
示すように変化する。ここでC0はカウンタ32のクリ
ア信号となり、C1はカウンタ32のクロックとなるた
め、カウンタ32は出力C1でクリアされ、分周器4が
ら出力される伝送用クロックを例えば19.2Kbps
に設定するものとする。カウンタ31は規定時間T 4
. T 2を計時するためのものであり、基準クロック
発生器6.がら出力するクロックの幅T、をカウントし
て、T2経適時に出力c1を、T経過時には出力C0を
発生するのである。
さて上記のようにクリアした後、周辺装置2側から制御
線R8を介してパルスを第9図<a)に示すように時間
T2で“0”→“1”→″o”を送ると、カウンタ31
がら第9図(c)に示す出力C1が発生し、この出力C
3によりカウンタ32がカウントアツプし、このカウン
ト値によって基準クロック発生器32のクロックを分周
する分周器4の分周比を変えるのである2例えば第6図
(C)の場合において、4分周とすれば、伝送用クロッ
クは4800bpsに切り替することになる。
従って伝送部5における伝送速度が4800bpSと設
定される。ここで制御線R3の状態は一般的にソフトウ
ェアにより設定が可能であるため、周辺装置2側で制御
!1Rsの状態を第9図に示すように設定することによ
り所定の伝送速度に切り替えることができるのである。The present invention will be explained below with reference to Examples. First, as shown in FIG. 1, the PCI using the present invention includes a CPU 1a that performs arithmetic processing, a ROM 1b that stores system programs, etc., a RAM 1c that stores a user's sequence program, and an I10 board 1 that connects an I10R device.
d, and a communication boat 1e using the R3232C system to which a peripheral device 2 is connected, making it an -e-like PC configuration. The communication procedure with the peripheral device 2 using the communication boat 1e is performed using a dedicated command/response type procedure. In this case, the side with transmission rights sends a command message,
On the receiving side, a response message is sent in response to the command. The transmission right is transferred between the PCI and the peripheral device 2 each time a command message is transmitted. In addition, the data transmitted between the PCI and the peripheral device 2 is configured such that only alphanumeric characters other than control codes are sent using ASCII codes, and the command message sent in the above procedure is shown in Figure 2 (a). Header H, destination address AD, identification code C indicating that it is a command message, command code CC, and text data TD.
It consists of a text section TX, a check code CH, and a terminator TN. In addition, when the response message is normal, as shown in Figure 2(b), it contains a header H, a destination address AD, an identification code C that indicates that it is a response message and identifies that it is normal, and a response code. CD, a text portion TX consisting of text data TD, a tick code CH, and a terminator TN. In addition, in the case of an abnormality, as shown in Fig. 2 (C), it consists of a header H, a destination address AD, an identification code C that indicates that it is a response message and identifies that it is abnormal, and an error code ER. It consists of a text portion TX, a tick code CH, and a terminator TN. When the system is started up, the peripheral device 2, which is a dedicated peripheral device or a personal computer, has the right to transmit data. P.C.I.
Transmit to the side. This transmission is performed twice,
FIG. 3(a) shows a flowchart of the transmission. The signal transmitted here is sampled and read at intervals according to the transmission speed, so the start bit b8
A code (bo~
by) is the transmission speed of the peripheral device 2 on the sending side (for example, 960
If the transmission speed set in the communication port 1e of the PCI on the receiving side matches the transmission speed set in the communication port 1e of the PCI on the receiving side, the transmission speed shown in Fig. 4 (a>
The signal reading sampling period A on the receiving side is as shown in
corresponds to each bit of the serial signal, and the same code as the transmitted code is read. In other words, the transmission speed switching command code “9ElII,
" will be received by the PCI. By receiving this command code "9 E,...", the PCI
As shown in the flowchart of the receiving process in FIG. 3(b), the CPU 1a determines that the switching of the transmission speed matches, and performs the receiving process without switching the transmission speed of the communication boat le. Conversely, if the PCI transmission speed is set to twice the transmission speed of peripheral device 2 (19.2 Kbps),
The sampling period for reading the serial signal is shown in Figure 4 (a
), the period B is twice the sampling period A. Therefore, the code to read is “OF8.,,”OF8
゜,'', and this code “OF8゜,” is received four times in two command message transmissions, so the PCI CPU 1b receives the code “OF8゜,” as shown in Fig. 3(b).
If "F8,..." is received four times in a row, the transmission speed of peripheral device 2 becomes 1 of the transmission speed set on the PCI side.
/2, and after switching the transmission speed to the same transmission speed as the peripheral device 2 side, the reception process is performed. Also, if the reception is not received four times in a row, the process returns to the reception process. In the above case, the transmission speed on the peripheral device 2 side is 1/2 of the transmission speed on the PCI side, but conversely, the transmission speed on the peripheral device 2 side is, for example, 19.2 Kbps, and the transmission speed on the PCI side is In the case of 9600 bps, as shown in Figure 4(b), the sampling period is doubled as shown by B compared to the sampling period A when both the transmitting and receiving sides have the same transmission speed, and the transmitted transmission speed is switched. Command code “
9E tar" becomes "OF B,..." on the receiving side. Therefore, if "OF B,..." is received twice in succession on the PCI, the transmission speed of peripheral device 2 becomes PCIII.
It is determined that the transmission speed is twice that of the communication port 1e, and the transmission speed of the communication boat 1e is switched to the same transmission speed as that of the peripheral device 2 side. The received command code is 9E. , “OF8□1
, "OFB," or "□'", the received data is processed and then the process returns to the receiving process. As described above, in this embodiment, the specific transmission speed switching command code sent from the peripheral device at startup When receiving a message, the transmission speed of the peripheral device 2 is determined based on the WII of the code recognized as being received, and the transmission speed of the communication boat 1e is identified. Therefore, there is no need to operate a special switching means, and there is no possibility of switching errors. Therefore, there is no operational complexity or inconvenience.In the above embodiment, the transmission speed is determined on the receiving side by transmitting a specific transmission speed switching command code, but the R3232C control line It is also possible to switch the transmission speed using the . In other words, when connecting the R5232C using the control lines R5 and ER as shown in Figure 5, the control lines DR and ER generally have logical values "0" indicates the data set ready state and the data terminal ready state. The method of switching the transmission speed using these control lines DR and ER will be explained. First, on the peripheral device 2 side, when starting up, As shown in b), when the control line ER is changed from "0" to "1" to 0", P
On the CI side, the counter 3 of the communication boat 1e shown in FIG.
.. It is assumed that it is set to 2KbpS. After that, the peripheral device 2 side sends pulses "0"-"1"-"0" via the control line DR as shown in FIG. 6(a), and the counter 3
When the count value is increased, the frequency division ratio of the frequency divider 4 is changed according to this count value. For example, in the case of Fig. 6(a), if the frequency is divided by 4,
The transmission clock will be switched to 4800 bps. Therefore, the transmission speed in the transmission section 5 is 4800bps.
is set. Here, since the state of the control line DR=ER can generally be set by software, a predetermined transmission speed can be achieved by setting the states of the controls 11DR and ER on the peripheral device 2 side as shown in Figure 6. It is possible to switch. In addition, RD in FIG. 5 and FIG. 6 represents received data, SD represents transmitted data, C8 represents a transmission enable signal, and R3 represents transmission data.
indicates that it is a control line for sending a transmission request signal,
6 is a reference clock generating section. By the way, in the above method, the control lines DR and ER are used, but when the connection configuration of the control lines as shown in FIG. 8 is used, the transmission speed switching signal is transferred to the Pct side by using the control line R3. You may also give it to In this case, on the peripheral device 2 side, at startup, the control line R3 changes from "0 to "1" to "0" in 14 hours as shown in FIG.
”, on the PCI side, communication boat 1 shown in Figure 10
e counter 3. is cleared by the signal on the control line R3, and the outputs C0 and C3 of the counter 3 change as shown in FIG. 9, b) and c). Here, C0 becomes a clear signal for the counter 32, and C1 becomes a clock for the counter 32, so the counter 32 is cleared by the output C1, and the transmission clock output from the frequency divider 4 is set to 19.2 Kbps, for example.
shall be set to . The counter 31 indicates the specified time T4
.. A reference clock generator 6. The width T of the output clock is counted, and the output c1 is generated when T2 has elapsed, and the output C0 is generated when T has elapsed. Now, after clearing as described above, if a pulse is sent from the peripheral device 2 via the control line R8 at time T2 as shown in FIG. counter 31
However, the output C1 shown in FIG. 9(c) is generated, and this output C1 is generated.
3 causes the counter 32 to count up, and this count value changes the frequency division ratio of the frequency divider 4 that divides the clock of the reference clock generator 32.2For example, in the case of FIG. If it is 4800 bps, the transmission clock will be switched to 4800 bps. Therefore, the transmission speed in the transmission section 5 is set to 4800 bpS. Here, the state of the control line R3 can generally be set by software, so it can be controlled on the peripheral device 2 side! By setting the state of 1Rs as shown in FIG. 9, it is possible to switch to a predetermined transmission speed.
本発明はR3232C方式等のシリアル信号で2つの装
置の間でデータを所定の手順で伝送する際に、最初に送
信権を持った送信側装置がら予め定めている特定の伝送
速度切り替えコマンドコードを伝送し、受信側装置では
、受信側の設定伝送速度に応じたサンプリング周期で読
み取った受信コードが上記の特定の伝送速度切り替えコ
マンドコードと異なる場合に該受信コードに基づいて送
信側装置の伝送速度を判断して送信側装置の伝送速度に
切り替えるものであるから、送信側装置から特定の伝送
速度切り替えコマンドコードを送ることにより、受信側
装置では自己の設定伝送速度に応じて変化した受信コー
ドの内容に応じて送信側装置の伝送速度を判断すること
ができ、その結果送信側装置の伝送速度と同じ伝送速度
に受信側装置の伝送速度を自動的に切り替えることがで
き、そのためプログラマブルコントローラに接続する周
辺装置を専用周辺装置としたり、或はパソコンとしたり
するような使い分けを行う場合に毎回切り替え手段の挽
作を行うような煩わしさが無く、しかも切り替え忘れや
、間違いによる不動作が起きないため、使い勝手が向上
するという効果がある。When transmitting data between two devices using a serial signal such as the R3232C method in a predetermined procedure, the present invention first sends a predetermined specific transmission speed switching command code to the transmitting device that has the right to transmit. If the received code read at a sampling period according to the set transmission speed of the receiving side is different from the above-mentioned specific transmission speed switching command code, the receiving side device changes the transmission speed of the sending side device based on the received code. Therefore, by sending a specific transmission speed switching command code from the sending device, the receiving device can change the reception code that has changed according to its own set transmission speed. The transmission speed of the sending device can be determined according to the content, and as a result, the transmission speed of the receiving device can be automatically switched to the same transmission speed as the sending device, and therefore connected to the programmable controller. There is no need to create a switching method each time when using a peripheral device as a dedicated peripheral device or as a personal computer, and there is no possibility of forgetting to switch or malfunction due to mistake. This has the effect of improving usability.
第1図は本発明方式に用いるプログラマブルコントロー
ラの構成図、第2図(a、)〜(c)は本発明の実施例
に用いる各メツセージのフォーマット説明図、第3図(
a)、(b)は同上の伝送速度切り替え手順を示すフロ
ーチャート、第4図(a)、(b)は同上のコード受信
の説明図、第5図はR3232Cの制御線を用いて伝送
速度切り替えを行う一方法のR8232Cの制御線の接
続例図、第6図は同上の動作説明用タイミングチャート
、第7図は同上の通信ボートの回路構成図、第8図はR
8232Cの制御線を用いて伝送速度切り替えを行う一
方法のR8232Cの制御線の接続例図、第9図は同上
の動作説明用タイミングチャート、第10図は同上の通
信ボートの回路構成図、第11図は従来例の説明図であ
る。
1はプログラマブルコントローラ、1eは通信ボート、
2は周辺装置である。
代理人 弁理士 石 1)長 七
第2図
1はプログラマブルコントローラ
1eは通信ボート
′9−
第6図
第8図
第9図Figure 1 is a configuration diagram of a programmable controller used in the method of the present invention, Figures 2 (a,) to (c) are explanatory diagrams of the format of each message used in the embodiment of the present invention, and Figure 3 (
a) and (b) are flowcharts showing the procedure for switching the transmission speed as above, Figures 4 (a) and (b) are explanatory diagrams of code reception as above, and Figure 5 is a flowchart showing the procedure for switching the transmission speed as above. 6 is a timing chart for explaining the operation of the same as above, FIG. 7 is a circuit configuration diagram of the same communication boat as above, and FIG.
A connection example diagram of the R8232C control line, which is one method of switching the transmission speed using the 8232C control line, Figure 9 is a timing chart for explaining the operation of the same as above, Figure 10 is a circuit configuration diagram of the same communication boat, FIG. 11 is an explanatory diagram of a conventional example. 1 is a programmable controller, 1e is a communication boat,
2 is a peripheral device. Agent Patent attorney Ishi 1) Chief
Claims (1)
の間でデータを所定の手順で伝送する際に、最初に送信
権を持った送信側装置から予め定めている特定の伝送速
度切り替えコマンドコードを伝送し、受信側装置では、
受信側の設定伝送速度に応じたサンプリング周期で読み
取った受信コードが上記の特定の伝送速度切り替えコマ
ンドコードと異なる場合に該受信コードに基づいて送信
側装置の伝送速度を判断して送信側装置の伝送速度に切
り替えることを特徴とする伝送速度切り替え方式。(1) When transmitting data between two devices using a serial signal such as the RS232C method in a prescribed procedure, the sending device that has the right to transmit first sends a predetermined specific transmission speed switching command code. transmitting, and the receiving device
If the reception code read at a sampling period according to the set transmission speed of the reception side is different from the above-mentioned specific transmission speed switching command code, the transmission speed of the transmission side device is determined based on the reception code, and the transmission speed of the transmission side device is determined based on the reception code. A transmission speed switching method characterized by switching to the transmission speed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2197417A JPH0482448A (en) | 1990-07-25 | 1990-07-25 | Transmission speed switching system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2197417A JPH0482448A (en) | 1990-07-25 | 1990-07-25 | Transmission speed switching system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0482448A true JPH0482448A (en) | 1992-03-16 |
Family
ID=16374174
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2197417A Pending JPH0482448A (en) | 1990-07-25 | 1990-07-25 | Transmission speed switching system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0482448A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0714091A (en) * | 1993-06-23 | 1995-01-17 | Sankyo Seiki Mfg Co Ltd | Transmitting method for multiple serial signal |
-
1990
- 1990-07-25 JP JP2197417A patent/JPH0482448A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0714091A (en) * | 1993-06-23 | 1995-01-17 | Sankyo Seiki Mfg Co Ltd | Transmitting method for multiple serial signal |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| AU609642B2 (en) | Improved synchronous/asynchronous modem | |
| US4761800A (en) | Method and apparatus for detecting a rate of data transmission | |
| JP2863653B2 (en) | Microcomputer with built-in communication device | |
| US5842039A (en) | Most recent first dynamic protocol detection for use with a programmable controller | |
| JPH0252281B2 (en) | ||
| JPH0482448A (en) | Transmission speed switching system | |
| EP0232315A1 (en) | Asynchronous addressable electronic key telephone system | |
| KR950704900A (en) | Method and apparatus for escaping from pass-through mode (ESCAPE SEQUENCE USING MONITORING OF CONTROL SIGNAL STATES) | |
| JPS6125348A (en) | Method for deciding and notifying communication speed of data communication network | |
| JPH0522365A (en) | Communication processor | |
| KR0141718B1 (en) | PD communication device | |
| JPS63164554A (en) | Automatic recognizing system for data speed | |
| JPS62147834A (en) | Time division multiplex transmission system | |
| JP2709720B2 (en) | Line connection method between the numerical controller and its peripheral devices | |
| KR100266591B1 (en) | Data communication apparatus and method between personal computer and camera | |
| JP2724323B2 (en) | Signal switching device and signal switching method | |
| JPS5812460A (en) | Automatic transmission form matching device | |
| JP2661583B2 (en) | Clock signal distribution apparatus and method | |
| KR100225043B1 (en) | Multiple serial communication method and serial communication device using interrupt | |
| KR0172321B1 (en) | Interface circuit | |
| KR0142527B1 (en) | Bus interface circuit for interfacing two bus system | |
| JPH0969849A (en) | Asynchronous communication method | |
| JPS6180928A (en) | Communication control equipment | |
| JPH06105921B2 (en) | Communication control device | |
| JPS60215226A (en) | Automatic power supply controller |