WO2020217697A1 - シリアルデータ通信装置 - Google Patents

シリアルデータ通信装置 Download PDF

Info

Publication number
WO2020217697A1
WO2020217697A1 PCT/JP2020/007794 JP2020007794W WO2020217697A1 WO 2020217697 A1 WO2020217697 A1 WO 2020217697A1 JP 2020007794 W JP2020007794 W JP 2020007794W WO 2020217697 A1 WO2020217697 A1 WO 2020217697A1
Authority
WO
WIPO (PCT)
Prior art keywords
duration
setting
serial data
unit
communication device
Prior art date
Application number
PCT/JP2020/007794
Other languages
English (en)
French (fr)
Inventor
佐藤 健司
Original Assignee
オムロン株式会社
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 オムロン株式会社 filed Critical オムロン株式会社
Priority to CN202080019906.1A priority Critical patent/CN113557688B/zh
Priority to US17/439,802 priority patent/US11960432B2/en
Priority to EP20795163.3A priority patent/EP3961970A4/en
Publication of WO2020217697A1 publication Critical patent/WO2020217697A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/38Synchronous or start-stop systems, e.g. for Baudot code
    • H04L25/40Transmitting circuits; Receiving circuits
    • H04L25/49Transmitting circuits; Receiving circuits using code conversion at the transmitter; using predistortion; using insertion of idle bits for obtaining a desired frequency spectrum; using three or more amplitude levels ; Baseband coding techniques specific to data transmission systems
    • H04L25/4906Transmitting circuits; Receiving circuits using code conversion at the transmitter; using predistortion; using insertion of idle bits for obtaining a desired frequency spectrum; using three or more amplitude levels ; Baseband coding techniques specific to data transmission systems using binary codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/04Speed or phase control by synchronisation signals
    • H04L7/041Speed or phase control by synchronisation signals using special codes as synchronising signal
    • H04L7/044Speed or phase control by synchronisation signals using special codes as synchronising signal using a single bit, e.g. start stop bit

Definitions

  • the present invention relates to a serial data communication device that performs serial data communication with a communication device of a communication destination.
  • the transmitting side first transmits a low-potential signal called a start bit, and the receiving side detects this to perform serial data communication. It will be started.
  • the falling edge of the potential of the signal of the received data is detected, and the reception of the start bit is recognized along with the detection of the falling edge (see, for example, Patent Document 1).
  • One aspect of the present invention has been made in view of the above circumstances, and an object of the present invention is to realize a technique capable of causing a receiving side communication device to appropriately detect a start bit.
  • the serial data communication device is a serial data communication device that transmits serial data by a combination of a high level signal and a low level signal, and is a head of the serial data. Is provided with a start bit, and immediately before the start bit, a signal transmission unit that transmits a high-level signal for a predetermined duration and a duration setting unit that sets the duration are provided.
  • the serial data communication method is a serial data communication method implemented by a serial data communication device that transmits serial data by a combination of a high level signal and a low level signal.
  • the receiving side communication device can appropriately detect the start bit.
  • FIG. 1 It is a block diagram which shows the main part structure of the serial data communication apparatus which concerns on Embodiment 1 of this invention. It is a figure which shows the example of the signal transmitted from the serial data communication apparatus. It is a figure which shows the example of the setting edit window of a setting apparatus, (a) shows the edit window at the time of manual setting selection, (b) is the figure which shows the edit window at the time of auto tuning selection. It is a flowchart which shows the process flow of the continuation period setting part.
  • FIG. 1 is a diagram showing an outline of a system environment in which the serial communication unit 100 (serial data communication device) according to the present embodiment is used.
  • the serial communication unit 100 is connected to the serial communication device 200 (communication device of the communication destination) and the PLC (Programmable Logic Controller) 400.
  • the PLC 400 transmits / receives transmission data to / from the serial communication device 200 and reception data from the serial communication device 200 via the serial communication unit 100.
  • the PLC 400 is a device that comprehensively controls the devices to be controlled, and may be connected to a plurality of devices to be controlled including the serial communication device 200 via the serial communication unit 100.
  • the serial communication unit 100 starts serial data communication for transmitting a control signal from the PLC 400 to the serial communication device 200.
  • the serial communication unit 100 provides a start bit at the beginning of the serial data, and when the start bit is detected by the serial communication device 200, the serial data communication is started. Further, the serial communication unit 100 transmits a high level signal immediately before the start bit for a predetermined duration so that the start bit is appropriately detected by the serial communication device 200.
  • the serial communication unit 100 appropriately communicates with the serial communication device 200 by providing a start bit at the beginning of the serial data and transmitting a high level signal immediately before the start bit for a predetermined duration.
  • the serial data is transmitted and received between the serial communication device 200 and the PLC 400.
  • FIG. 1 is a diagram showing an outline of a system environment in which the serial communication unit 100 is used. As shown in FIG. 1, the serial communication unit 100 is connected to the serial communication device 200, the setting device 300, and the PLC 400.
  • the PLC400 is an industrial controller and controls a device to be controlled.
  • the PLC 400 is connected to a plurality of controlled devices including the serial communication device 200 via the serial communication unit 100.
  • the control unit (CPU) of the PLC 400 may be connected to the serial communication unit 100 by bus, or may be connected to the serial communication unit 100 by a bus, or may be connected to the serial communication unit 100 via a communication coupler, EtherCAT (registered trademark), EtherNet / IP (registered trademark), DeviceNet (registered trademark), CompoNet. It may be connected by (registered trademark) or the like.
  • the setting device 300 is a device that receives setting instructions according to user operations related to various settings of the serial communication unit 100, the serial communication device 200, and the PLC 400.
  • the setting device 300 may be directly connected to the serial communication unit 100 via the USB cable 3, or may be connected to the PLC 400 by the USB connection, and the setting instruction according to the user operation is sent to the serial communication unit 100 via the PLC. You may send it.
  • the PLC 400 may transmit the setting information according to the setting instruction received from the setting device 300 to the serial communication unit 100, or generate the setting information and serialize by executing the program by the arithmetic processing unit of the own device. It may be transmitted to the communication unit 100.
  • the setting device 300 displays the setting value editing screen (see FIG. 3) and accepts the user's operation on the setting value editing screen.
  • the setting device 300 transmits the setting information according to the user operation to the serial communication unit 100.
  • the serial communication device 200 is, for example, a manufacturing machine, a cooling device, or the like used at a manufacturing site, and operates in response to a control signal from the PLC 400 received via the serial communication unit 100.
  • RS-422 / 485 is mentioned as an effective serial communication method in the present invention, the serial communication unit 100 may also support an RS-232C communication method.
  • the serial communication unit 100 includes a control unit 110 and a storage unit 120.
  • the control unit 110 is an arithmetic unit having a function of comprehensively controlling each unit of the serial communication unit 100.
  • one or more processors for example, a CPU
  • control each part of the serial communication unit 100 by executing a program stored in one or more memories (for example, RAM or ROM). You may.
  • the storage unit 120 stores various software executed by the control unit 110, the serial communication unit 100, and various setting information of the devices connected to the serial communication unit 100.
  • the control unit 110 includes a serial communication unit 111 (signal transmission unit), a communication establishment determination unit 112, a duration setting unit 113, a USB communication unit 114 (setting reception unit), and an upper communication unit 115. It has.
  • the serial communication unit 111 functions as a signal transmission unit that transmits serial data to the serial communication device 200. Further, the serial communication unit 111 functions as a signal receiving unit that receives a response from the serial communication device 200.
  • the serial communication unit 111 transmits serial data to the serial communication device 200 by combining a high level signal having a potential of a predetermined high level signal and a low level signal having a potential of a predetermined low level signal. To do.
  • the serial communication unit 111 provides a start bit at the beginning of the serial data transmitted to the serial communication device 200 when starting communication with the serial communication device 200. Further, the serial communication unit 111 transmits a high level signal to the serial communication device 200 for a predetermined duration immediately before the start bit.
  • the communication destination serial communication device 200 may have a specification that the start bit cannot be detected when the high level signal is not provided before the start bit or when the duration of the high level signal is short. Even in such a case, according to the above configuration, it is possible to cause the serial communication device 200 on the receiving side to detect the start bit by appropriately setting the duration for continuing the transmission of the high level signal. ..
  • the communication establishment determination unit 112 determines whether or not communication with the communication destination serial communication device 200 has been established. Whether or not the communication establishment determination unit 112 has received a response from the serial communication device 200 indicating that the serial data transmitted by the serial communication unit 111 to the serial communication device 200 has been received by the serial communication device 200. It is determined whether or not communication with the serial communication device 200 has been established according to the above.
  • the continuation period setting unit 113 sets the continuation period in which the high level signal is transmitted to the serial communication device 200 by the serial communication unit 111 immediately before the start bit.
  • the USB communication unit 114 has a USB port and communicates with the setting device 300 via the USB cable 3 connected to the USB port.
  • the USB communication unit 114 is a setting value according to the user input from the setting device 300, and is a setting value of the duration of the high level signal immediately before the start bit transmitted by the serial communication unit 111 to the serial communication device 200. Receive.
  • the continuation period setting unit 113 may set the duration of the high level signal immediately before the start bit by the USB communication unit 114 according to the set value received from the setting device 300.
  • the upper communication unit 115 is connected to the PLC 400 by bus connection, Ethernet (registered trademark) via a communication coupler, EtherCAT, or the like, and transmits / receives data to / from the PLC 400.
  • Ethernet registered trademark
  • EtherCAT communication coupler
  • FIG. 2 is a diagram showing an example of serial data transmitted from the serial communication unit 100 to the serial communication device 200.
  • control unit 110 of the serial communication unit 100 When the control unit 110 of the serial communication unit 100 receives the transmission data from the PLC 400, the control unit 110 of the serial communication unit 100 sets the port of the serial communication unit 111 as an output and starts the transmission process. When the transmission process is started, the control unit 110 provides a waiting period for waiting for the start of transmission of serial data for a predetermined continuation period set by the continuation period setting unit 113.
  • the serial communication unit 111 continuously transmits a high level signal to the serial communication device 200 during a standby period of a predetermined continuation period.
  • control unit 110 When the control unit 110 detects the end of the waiting period of the predetermined duration by the timer, it starts transmitting the serial data in which the start bit consisting of the low level signal is provided at the beginning.
  • the control unit 110 transmits serial data to the serial communication device 200 by combining a high level signal and a low level signal.
  • the control unit 110 provides a stop bit at the end of the serial data by the function of the serial communication unit 111, and ends the transmission of the serial data.
  • FIG. 3 is a diagram showing an example of a setting value editing screen of the setting device 300.
  • the user manually sets the setting value of the duration for transmitting the high level signal immediately before the start bit by operating the setting value editing screen of the setting device 300, or serially. It is possible to select whether to perform automatic setting (auto tuning) by the communication unit 100.
  • FIG. 3A shows an example in which the user selects to manually set the setting value of the duration in the operation on the setting value editing screen of the setting device 300.
  • the user manually sets the duration after selecting "manual setting", the user initially sets the setting value of the Hi period before the start bit (the transmission continuation period of the high level signal) in the setting value edit screen.
  • the value of 0 ⁇ s can be changed to any value.
  • the setting device 300 transmits the setting value input by the user to the serial communication unit 100.
  • the control unit 110 of the serial communication unit 100 receives the setting value of the duration from the setting device 300 by the USB communication unit 114
  • the USB communication unit receives the instruction from the setting device 300 by the function of the duration setting unit 113.
  • the duration is set by the set value received by 114.
  • a table of combinations of the model of the serial communication device 200 and the duration is prepared, and the corresponding continuation period is set by the user selecting the model of the serial communication device 200. It may be.
  • FIG. 3B shows an example in the case where the user selects to auto-tune the duration in the operation for the setting value editing screen of the setting device 300.
  • the user sets the duration by auto-tuning, the user selects "auto-tuning".
  • the setting value change window (edit box) in the Hi period before the start bit in the setting value editing screen is grayed out, and the operation is not accepted.
  • the setting device 300 transmits an instruction for auto-tuning the duration to the serial communication unit 100.
  • the control unit 110 of the serial communication unit 100 receives an instruction for auto-tuning the duration from the setting device 300 by the USB communication unit 114
  • the function of the duration setting unit 113 causes the duration to be set between the serial communication device 200 and the serial communication device 200. Set according to whether communication has been established.
  • FIG. 4 is a flowchart showing the flow of the duration setting process by auto-tuning by the control unit 110.
  • control unit 110 When the control unit 110 starts the serial data transmission process to the serial communication device 200, the control unit 110 sets the port of the serial communication unit 111 as an output and waits for the serial data transmission start in the initial value standby period (step S1).
  • the control unit 110 starts transmitting serial data to the serial communication device 200 after waiting in the standby period of the initial value (step S2).
  • the control unit 110 determines whether or not communication with the serial communication device 200 has been established by the function of the communication establishment determination unit 112 (step S3).
  • the communication establishment determination unit 112 determines whether or not communication with the serial communication device 200 has been established based on whether or not the serial communication unit 111 has received a response indicating that the serial data has been received from the serial communication device 200. Is determined.
  • the control unit 110 proceeds to step S5.
  • the control unit 110 determines that the communication establishment determination unit 112 has not established communication with the serial communication device 200 (NO in step S3), the control unit 110 proceeds to step S4.
  • the control unit 110 increases the set value of the standby period by a predetermined amount by the function of the continuation period setting unit 113, and returns to step S2 (step S4).
  • the control unit 110 determines the set value of the standby period by the function of the continuation period setting unit 113, and continues the communication with the serial communication device 200 (step S5).
  • the control unit 110 uses the function of the continuation period setting unit 113 to set the duration for continuing the transmission of the high level signal during the standby period. Gradually increase. Then, the continuation period setting unit 113 determines the continuation period for continuing the transmission of the high level signal when the communication establishment determination unit 112 determines that the communication has been established.
  • the duration setting unit 113 either (1) sets the duration according to the set value received by the USB communication unit 114 in response to an instruction from the setting device 300, or (2) gradually increases the duration. Then, when it is determined by the communication establishment determination unit 112 that the communication has been established, it is switched whether to determine the duration.
  • the serial communication device 200 on the receiving side can appropriately detect the start bit.
  • the control block of the serial communication unit 100 may be realized by a logic circuit (hardware) formed in an integrated circuit (IC chip) or the like, or software. It may be realized by.
  • the serial communication unit 100 includes a computer that executes a program instruction, which is software that realizes each function.
  • the computer includes, for example, one or more processors and a computer-readable recording medium that stores the program. Then, in the computer, the object of the present invention is achieved by the processor reading the program from the recording medium and executing the program.
  • the processor for example, a CPU (Central Processing Unit) can be used.
  • the recording medium in addition to a “non-temporary tangible medium” such as a ROM (Read Only Memory), a tape, a disk, a card, a semiconductor memory, a programmable logic circuit, or the like can be used.
  • a RAM Random Access Memory
  • the program may be supplied to the computer via an arbitrary transmission medium (communication network, broadcast wave, etc.) capable of transmitting the program.
  • a transmission medium communication network, broadcast wave, etc.
  • one aspect of the present invention can also be realized in the form of a data signal embedded in a carrier wave, in which the program is embodied by electronic transmission.
  • the serial data communication device is a serial data communication device that transmits serial data by a combination of a high level signal and a low level signal, and has a start bit at the beginning of the serial data.
  • a signal transmission unit that transmits a high-level signal for a predetermined duration immediately before the start bit and a duration setting unit that sets the duration are provided.
  • the serial data communication method is a serial data communication method implemented by a serial data communication device that transmits serial data by a combination of a high level signal and a low level signal.
  • the external device of the communication destination has a specification that the start bit cannot be detected when the high level signal is not provided before the start bit or when the duration of the high level signal is short.
  • the duration is set as appropriate, it is possible for the receiving side communication device to detect the start bit.
  • the serial data communication device further includes a setting receiving unit for receiving the set value of the duration from the external device in the above configuration, and the duration setting unit is the setting receiving unit. The duration is set according to the set value received by.
  • the serial data communication device further includes a communication establishment determination unit for determining whether or not communication with the communication destination communication device has been established in the above configuration, and the duration setting.
  • the unit gradually increases the duration, and determines the duration when it is determined by the communication establishment determination unit that communication has been established.
  • the user does not need to set the duration for continuing the transmission of the high level signal before the start bit, and the duration can be set automatically.
  • the serial data communication device further includes a setting receiving unit for receiving the set value of the duration from the external device in the above configuration, and the duration setting unit is from the external device.
  • the continuation period is set by the set value received by the setting receiving unit, or (2) the continuation period is gradually increased and communication is established by the communication establishment determination unit. It is switched whether to determine the duration when it is determined that it is completed.
  • Serial communication unit serial data communication device
  • Control unit 111
  • Serial communication unit signal transmission unit
  • Communication establishment determination unit 113
  • Duration setting unit 114
  • USB communication unit setting reception unit
  • Serial communication device communication device of communication destination
  • Setting device (external device) 400

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Systems (AREA)
  • Communication Control (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Dc Digital Transmission (AREA)

Abstract

受信側通信装置にスタートビットを適切に検出させる。ハイレベル信号およびローレベル信号の組合せによってシリアルデータを送信するシリアル通信ユニット(100)であって、シリアルデータの先頭にスタートビットを設けるとともに、前記スタートビットの直前に、所定の継続期間でハイレベル信号を送信するシリアル通信部(111)と、前記継続期間を設定する継続期間設定部(113)とを備える。

Description

シリアルデータ通信装置
 本発明は、通信先の通信装置との間でシリアルデータ通信を行うシリアルデータ通信装置に関する。
 従来、装置間でシリアルデータ通信を行う場合、シリアルデータ通信を開始する際に、送信側が最初にスタートビットと称する電位の低い信号を送信し、これを受信側で検知することによってシリアルデータ通信が開始される。受信側では、受信データの信号の電位の立下りエッジを検出し、この立下りエッジの検出にともなってスタートビットの受信を認識している(例えば、特許文献1参照)。
「日本国公開特許公報」特開2002-252660号公報
 ところで、送信側から出力されるスタートビットの直前の信号の電位が所定レベルよりも低く、かつ、受信側の装置がフェイルセーフ回路を内蔵していない場合には、スタートビットの受信を認識することができず、シリアルデータ通信を開始できない場合がある。
 本発明の一態様は、上述した事情に鑑みてなされたものであり、受信側通信装置にスタートビットを適切に検出させることができる技術を実現することを目的とする。
 前記の課題を解決するために、本発明の一態様に係るシリアルデータ通信装置は、ハイレベル信号およびローレベル信号の組合せによってシリアルデータを送信するシリアルデータ通信装置であって、前記シリアルデータの先頭にスタートビットを設けるとともに、前記スタートビットの直前に、所定の継続期間でハイレベル信号を送信する信号送信部と、前記継続期間を設定する継続期間設定部とを備える構成である。
 また、前記の課題を解決するために、本発明の一態様に係るシリアルデータ通信方法は、ハイレベル信号およびローレベル信号の組合せによってシリアルデータを送信するシリアルデータ通信装置が実施するシリアルデータ通信方法であって、前記シリアルデータの先頭にスタートビットを設けるとともに、前記スタートビットの直前に、所定の継続期間でハイレベル信号を送信する信号送信ステップと、前記継続期間を設定する継続期間設定ステップとを有する構成である。
 本発明の一態様によれば、受信側通信装置にスタートビットを適切に検出させることができる。
本発明の実施形態1に係るシリアルデータ通信装置の要部構成を示すブロック図である。 シリアルデータ通信装置から送信される信号の例を示す図である。 設定装置の設定編集ウィンドウの例を示す図であり、(a)は手動設定選択時の編集ウィンドウを示し、(b)はオートチューニング選択時の編集ウィンドウを示す図である。 継続期間設定部の処理の流れを示すフローチャートである。
 以下、本発明の一側面に係る実施の形態(以下、「本実施形態」とも表記する)を、図面に基づいて説明する。
 §1 適用例
 図1を用いて、本発明が適用される場面の一例について説明する。図1は、本実施形態に係るシリアル通信ユニット100(シリアルデータ通信装置)が使用されるシステム環境の概要を示す図である。
 シリアル通信ユニット100は、シリアル通信機器200(通信先の通信装置)、および、PLC(Programmable Logic Controller)400に接続されている。PLC400は、シリアル通信ユニット100を介して、シリアル通信機器200への送信データおよびシリアル通信機器200からの受信データの送受信を行う。
 PLC400は、制御対象の機器を統括的に制御する装置であり、シリアル通信ユニット100を介して、シリアル通信機器200を含む複数の制御対象の機器に接続されていてもよい。
 シリアル通信ユニット100は、PLC400からの制御信号をシリアル通信機器200に送信するためのシリアルデータ通信を開始する。シリアル通信ユニット100は、シリアルデータの先頭に、スタートビットを設け、当該スタートビットがシリアル通信機器200によって検知されることで、シリアルデータ通信を開始する。また、シリアル通信ユニット100は、スタートビットの直前に、所定の継続期間でハイレベル信号を送信することで、スタートビットがシリアル通信機器200によって適切に検知されるようにする。
 このように、シリアル通信ユニット100は、シリアルデータの先頭にスタートビットを設けるとともに、スタートビットの直前に、所定の継続期間でハイレベル信号を送信することにより、シリアル通信機器200との通信を適切に開始し、シリアル通信機器200と、PLC400との間のシリアルデータの送受信を実行する。
 §2 構成例
 〔システム環境について〕
 図1は、シリアル通信ユニット100が使用されるシステム環境の概要を示す図である。図1に示すように、シリアル通信ユニット100は、シリアル通信機器200、設定装置300、PLC400に接続されている。
 PLC400は、産業用コントローラであり、制御対象の装置を制御する。PLC400は、シリアル通信ユニット100を介してシリアル通信機器200を含む複数の制御対象機器と接続される。PLC400の制御ユニット(CPU)は、シリアル通信ユニット100に、バス接続されていてもよいし、通信カプラを介してEtherCAT(登録商標)、EtherNet/IP(登録商標)、DeviceNet(登録商標)、CompoNet(登録商標)などで接続されていてもよい。
 設定装置300は、シリアル通信ユニット100、シリアル通信機器200、及びPLC400の各種設定に関するユーザ操作に応じた設定指示を受け付ける装置である。設定装置300は、シリアル通信ユニット100にUSBケーブル3を介して直接接続されていても良いし、USB接続によりPLC400に接続され、PLC経由で、ユーザ操作に応じた設定指示をシリアル通信ユニット100に送信してもよい。PLC400は、設定装置300から受信した設定指示に応じた設定情報をシリアル通信ユニット100に送信してもよいし、自装置の演算処理部によりプログラムを実行することで、設定情報を生成してシリアル通信ユニット100に送信してもよい。
 設定装置300は、設定値編集画面(図3参照)を表示するとともに設定値編集画面に対するユーザの操作を受け付ける。設定装置300は、ユーザ操作に応じた設定情報をシリアル通信ユニット100に送信する。
 シリアル通信機器200は、製造現場で用いられる、例えば製造機械や冷却装置等であり、シリアル通信ユニット100を介して受信するPLC400からの制御信号に応じて動作する。なお、本発明において有効なシリアル通信の方式としてはRS-422/485が挙げられるが、シリアル通信ユニット100がRS-232Cの通信方式にも対応していてもよい。
 〔シリアル通信ユニット100の構成について〕
 図1に示すように、シリアル通信ユニット100は、制御部110と、記憶部120とを備えている。
 制御部110は、シリアル通信ユニット100の各部を統括的に制御する機能を備えている演算装置である。制御部110は、例えば1つ以上のプロセッサ(例えばCPUなど)が、1つ以上のメモリ(例えばRAMやROMなど)に記憶されているプログラムを実行することでシリアル通信ユニット100の各部を制御してもよい。
 記憶部120は、制御部110によって実行される各種ソフトウェア、シリアル通信ユニット100、およびシリアル通信ユニット100に接続された機器の各種設定情報が記憶されている。
 〔制御部110の構成について〕
 図1に示すように、制御部110は、シリアル通信部111(信号送信部)、通信確立判定部112、継続期間設定部113、USB通信部114(設定受信部)、および、上位通信部115を備えている。
 シリアル通信部111は、シリアル通信機器200にシリアルデータを送信する信号送信部として機能する。また、シリアル通信部111は、シリアル通信機器200からの応答を受信する信号受信部として機能する。
 シリアル通信部111は、電位が所定の高いレベルの信号であるハイレベル信号と、電位が所定の低いレベルの信号であるローレベル信号と、を組み合わせることによって、シリアルデータをシリアル通信機器200に送信する。
 また、シリアル通信部111は、詳細については後述するが、シリアル通信機器200との通信を開始する際に、シリアル通信機器200に送信するシリアルデータの先頭に、スタートビットを設ける。また、シリアル通信部111は、スタートビットの直前に、所定の継続期間でハイレベル信号を、シリアル通信機器200に送信する。
 通信先のシリアル通信機器200が、スタートビット前にハイレベル信号が設けられていない場合、もしくはハイレベル信号の継続期間が短い場合にスタートビットを検出できない仕様となっている場合がある。このような場合であっても、上記の構成によれば、適宜ハイレベル信号の送信を継続する継続期間を設定することによって受信側のシリアル通信機器200にスタートビットを検出させることが可能となる。
 通信確立判定部112は、通信先のシリアル通信機器200との通信が確立できているか否かを判定する。通信確立判定部112は、シリアル通信部111が、シリアル通信機器200に対して送信したシリアルデータが、シリアル通信機器200によって受信されたことを示す応答を、シリアル通信機器200から受信したか否かに応じて、シリアル通信機器200との通信が確立できているか否かを判定する。
 継続期間設定部113は、シリアル通信部111によってシリアル通信機器200に、スタートビットの直前にハイレベル信号が送信される継続期間を設定する。
 USB通信部114は、USBポートを備え、当該USBポートに接続されたUSBケーブル3を介して設定装置300と通信する。USB通信部114は、設定装置300からから、ユーザ入力に応じた設定値であって、シリアル通信部111がシリアル通信機器200に送信するスタートビットの直前のハイレベル信号の継続期間の設定値を受信する。
 継続期間設定部113は、USB通信部114によって、設定装置300から受信された設定値によってスタートビットの直前のハイレベル信号の継続期間を設定してもよい。
 上位通信部115は、バス接続、または、通信カプラを介したイーサネット(登録商標)やEtherCATなどにより、PLC400に接続され、PLC400との間でデータの送受信を行う。
 〔シリアル通信ユニット100によりデータ通信について〕
 図2は、シリアル通信ユニット100からシリアル通信機器200に送信されるシリアルデータの例を示す図である。
 シリアル通信ユニット100の制御部110は、PLC400から送信データを受信すると、シリアル通信部111のポートを出力に設定し、送信処理を開始する。制御部110は、送信処理が開始されると、継続期間設定部113によって設定された所定の継続期間に亘って、シリアルデータの送信開始を待機する待機期間を設ける。シリアル通信部111は、所定の継続期間の待機期間において、シリアル通信機器200へ継続してハイレベル信号を送信する。
 制御部110は、所定の継続期間の待機期間の終了をタイマにより検知すると、ローレベル信号からなるスタートビットが先頭に設けられたシリアルデータの送信を開始する。制御部110は、ハイレベル信号およびローレベル信号の組合せによってシリアルデータをシリアル通信機器200へ送信する。
 制御部110は、シリアル通信部111の機能によりシリアルデータの後尾にストップビットを設けて、シリアルデータの送信を終了する。
 〔継続期間の設定について〕
 図3は、設定装置300の設定値編集画面の例を示す図である。図3に示すように、ユーザは、設定装置300の設定値編集画面に対する操作で、スタートビットの直前にハイレベル信号を送信する継続期間の設定値を、ユーザが手動設定するか、または、シリアル通信ユニット100によって自動設定(オートチューニング)するかを選択することができる。
 図3の(a)は、設定装置300の設定値編集画面に対する操作で、ユーザが継続期間の設定値を手動設定することを選択した場合の例を示している。ユーザが継続期間を手動設定する場合には、ユーザは、「手動設定」を選択した後、設定値編集画面中のスタートビット前Hi期間(ハイレベル信号の送信継続期間)の設定値を、初期値の0μsから、任意の値に変更することができる。
 設定装置300は、ユーザによって入力された設定値をシリアル通信ユニット100に送信する。シリアル通信ユニット100の制御部110は、設定装置300から継続期間の設定値をUSB通信部114によって受信すると、継続期間設定部113の機能により、設定装置300からの指示に応じて、USB通信部114によって受信された設定値によって継続期間を設定する。
 なお、設定装置300において、シリアル通信機器200の機種と継続期間との組合せのテーブルを用意しておき、ユーザがシリアル通信機器200の機種を選択することによって、対応する継続期間が設定されるようになっていてもよい。
 図3の(b)は、設定装置300の設定値編集画面に対する操作で、ユーザが継続期間をオートチューニングすることを選択した場合の例を示している。ユーザが継続期間をオートチューニングにより設定する場合には、ユーザは、「オートチューニング」を選択する。これにより、設定値編集画面中のスタートビット前Hi期間の設定値変更ウィンドウ(エディットボックス)がグレーアウトし、操作を受け付けない状態となる。
 設定装置300は、継続期間をオートチューニングする指示をシリアル通信ユニット100に送信する。シリアル通信ユニット100の制御部110は、設定装置300から継続期間をオートチューニングする指示をUSB通信部114によって受信すると、継続期間設定部113の機能により、継続期間をシリアル通信機器200との間の通信が確立できているか否かに応じて設定する。
 〔オートチューニングの流れについて〕
 図4は、制御部110によるオートチューニングによる継続期間設定処理の流れを示すフローチャートである。
 制御部110は、シリアル通信機器200へのシリアルデータ送信処理を開始すると、シリアル通信部111のポートを出力に設定し、初期値の待機期間で、シリアルデータ送信開始を待機する(ステップS1)。
 制御部110は、初期値の待機期間で待機した後、シリアル通信機器200へのシリアルデータ送信を開始する(ステップS2)。
 制御部110は、通信確立判定部112の機能により、シリアル通信機器200との間の通信が確立したか否かを判定する(ステップS3)。通信確立判定部112は、シリアル通信部111が、シリアル通信機器200からシリアルデータを受信した旨の応答を受信したか否かに基づいて、シリアル通信機器200との間の通信が確立したか否かを判定する。制御部110は、通信確立判定部112がシリアル通信機器200との間の通信が確立したと判定すると(ステップS3でYES)、ステップS5に進む。制御部110は、通信確立判定部112がシリアル通信機器200との間の通信が確立していないと判定すると(ステップS3でNO)、ステップS4に進む。
 制御部110は、継続期間設定部113の機能により、待機期間の設定値を、所定量増加させて、ステップS2に戻る(ステップS4)。
 制御部110は、継続期間設定部113の機能により、待機期間の設定値を確定し、シリアル通信機器200との間の通信を継続する(ステップS5)。
 このように、制御部110は、シリアル通信機器200との間の通信が確立していない場合には、継続期間設定部113の機能により、待機期間においてハイレベル信号の送信を継続する継続期間を徐々に増大させる。そして、継続期間設定部113は、通信確立判定部112によって通信が確立できていると判定された時点で、ハイレベル信号の送信を継続する継続期間を決定する。
 これにより、ユーザがスタートビット前のハイレベル信号の送信を継続する継続期間を設定する必要がなく、自動的に継続期間を設定することが可能となる。
 また、継続期間設定部113は、設定装置300からの指示に応じて、(1)USB通信部114によって受信された設定値によって継続期間を設定するか、(2)継続期間を徐々に増大させて、通信確立判定部112によって通信が確立できていると判定された時点で継続期間を決定するかを切り替える。
 これにより、通信先のシリアル通信機器200の設定や、使用状況に応じて、スタートビット前のハイレベル信号の送信を継続する継続期間の設定方法を適宜切り替えることが可能となる。よって、受信側のシリアル通信機器200にスタートビットを適切に検出させることができる。
 また、外部の設定装置300からハイレベル信号の送信を継続する継続期間を設定することが可能となるとともに、ユーザが継続期間を設定する必要がなく、自動的に継続期間を設定することも可能となる。
 〔ソフトウェアによる実現例〕
 シリアル通信ユニット100の制御ブロック(特に通信確立判定部112、および継続期間設定部113)は、集積回路(ICチップ)等に形成された論理回路(ハードウェア)によって実現してもよいし、ソフトウェアによって実現してもよい。
 後者の場合、シリアル通信ユニット100は、各機能を実現するソフトウェアであるプログラムの命令を実行するコンピュータを備えている。このコンピュータは、例えば1つ以上のプロセッサを備えていると共に、前記プログラムを記憶したコンピュータ読み取り可能な記録媒体を備えている。そして、前記コンピュータにおいて、前記プロセッサが前記プログラムを前記記録媒体から読み取って実行することにより、本発明の目的が達成される。前記プロセッサとしては、例えばCPU(Central Processing Unit)を用いることができる。前記記録媒体としては、「一時的でない有形の媒体」、例えば、ROM(Read Only Memory)等の他、テープ、ディスク、カード、半導体メモリ、プログラマブルな論理回路などを用いることができる。また、前記プログラムを展開するRAM(Random Access Memory)などをさらに備えていてもよい。また、前記プログラムは、該プログラムを伝送可能な任意の伝送媒体(通信ネットワークや放送波等)を介して前記コンピュータに供給されてもよい。なお、本発明の一態様は、前記プログラムが電子的な伝送によって具現化された、搬送波に埋め込まれたデータ信号の形態でも実現され得る。
 (まとめ)
 以上のように、本発明の一態様に係るシリアルデータ通信装置は、ハイレベル信号およびローレベル信号の組合せによってシリアルデータを送信するシリアルデータ通信装置であって、前記シリアルデータの先頭にスタートビットを設けるとともに、前記スタートビットの直前に、所定の継続期間でハイレベル信号を送信する信号送信部と、前記継続期間を設定する継続期間設定部とを備える構成である。
 また、前記の課題を解決するために、本発明の一態様に係るシリアルデータ通信方法は、ハイレベル信号およびローレベル信号の組合せによってシリアルデータを送信するシリアルデータ通信装置が実施するシリアルデータ通信方法であって、前記シリアルデータの先頭にスタートビットを設けるとともに、前記スタートビットの直前に、所定の継続期間でハイレベル信号を送信する信号送信ステップと、前記継続期間を設定する継続期間設定ステップとを有する構成である。
 前記の構成によれば、通信先の外部装置が、スタートビット前にハイレベル信号が設けられていない場合、もしくはハイレベル信号の継続期間が短い場合にスタートビットを検出できない仕様となっている場合でも、適宜継続期間を設定することによって受信側通信装置にスタートビットを検出させることが可能となる。
 また、本発明の一態様に係るシリアルデータ通信装置は、前記の構成において、外部装置から前記継続期間の設定値を受信する設定受信部をさらに備え、前記継続期間設定部は、前記設定受信部によって受信された設定値によって前記継続期間を設定する。
 前記の構成によれば、スタートビット前のハイレベル信号の送信を継続する継続期間を外部装置から設定することが可能となる。
 また、本発明の一態様に係るシリアルデータ通信装置は、前記の構成において、通信先の通信装置との通信が確立できているか否かを判定する通信確立判定部をさらに備え、前記継続期間設定部は、前記継続期間を徐々に増大させて、前記通信確立判定部によって通信が確立できていると判定された時点で前記継続期間を決定する。
 前記の構成によれば、ユーザがスタートビット前のハイレベル信号の送信を継続する継続期間を設定する必要がなく、自動的に継続期間を設定することが可能となる。
 また、本発明の一態様に係るシリアルデータ通信装置は、前記の構成において、外部装置から前記継続期間の設定値を受信する設定受信部をさらに備え、前記継続期間設定部は、前記外部装置からの指示に応じて、(1)前記設定受信部によって受信された設定値によって前記継続期間を設定するか、(2)前記継続期間を徐々に増大させて、前記通信確立判定部によって通信が確立できていると判定された時点で前記継続期間を決定するかを切り替える。
 前記の構成によれば、通信先の通信装置やシステム使用状況に応じて、スタートビット前のハイレベル信号の送信を継続する継続期間の設定方法を適宜切り替えることが可能となる。
 本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。
100 シリアル通信ユニット(シリアルデータ通信装置)
110 制御部
111 シリアル通信部(信号送信部)
112 通信確立判定部
113 継続期間設定部
114 USB通信部(設定受信部)
200 シリアル通信機器(通信先の通信装置)
300 設定装置(外部装置)
400 PLC

Claims (5)

  1.  ハイレベル信号およびローレベル信号の組合せによってシリアルデータを送信するシリアルデータ通信装置であって、
     前記シリアルデータの先頭にスタートビットを設けるとともに、前記スタートビットの直前に、所定の継続期間でハイレベル信号を送信する信号送信部と、
     前記継続期間を設定する継続期間設定部とを備えるシリアルデータ通信装置。
  2.  外部装置から前記継続期間の設定値を受信する設定受信部をさらに備え、
     前記継続期間設定部は、前記設定受信部によって受信された設定値によって前記継続期間を設定する請求項1に記載のシリアルデータ通信装置。
  3.  通信先の通信装置との通信が確立できているか否かを判定する通信確立判定部をさらに備え、
     前記継続期間設定部は、前記継続期間を徐々に増大させて、前記通信確立判定部によって通信が確立できていると判定された時点で前記継続期間を決定する請求項1に記載のシリアルデータ通信装置。
  4.  外部装置から前記継続期間の設定値を受信する設定受信部をさらに備え、
     前記継続期間設定部は、前記外部装置からの指示に応じて、(1)前記設定受信部によって受信された設定値によって前記継続期間を設定するか、(2)前記継続期間を徐々に増大させて、前記通信確立判定部によって通信が確立できていると判定された時点で前記継続期間を決定するかを切り替える請求項3に記載のシリアルデータ通信装置。
  5.  ハイレベル信号およびローレベル信号の組合せによってシリアルデータを送信するシリアルデータ通信装置が実施するシリアルデータ通信方法であって、
     前記シリアルデータの先頭にスタートビットを設けるとともに、前記スタートビットの直前に、所定の継続期間でハイレベル信号を送信する信号送信ステップと、
     前記継続期間を設定する継続期間設定ステップとを有するシリアルデータ通信方法。
PCT/JP2020/007794 2019-04-24 2020-02-26 シリアルデータ通信装置 WO2020217697A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202080019906.1A CN113557688B (zh) 2019-04-24 2020-02-26 串行数据通信装置及串行数据通信方法
US17/439,802 US11960432B2 (en) 2019-04-24 2020-02-26 Serial data communication device and serial data communication method
EP20795163.3A EP3961970A4 (en) 2019-04-24 2020-02-26 DEVICE FOR SERIAL DATA COMMUNICATION

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2019083291A JP7070496B2 (ja) 2019-04-24 2019-04-24 シリアルデータ通信装置
JP2019-083291 2019-04-24

Publications (1)

Publication Number Publication Date
WO2020217697A1 true WO2020217697A1 (ja) 2020-10-29

Family

ID=72942421

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2020/007794 WO2020217697A1 (ja) 2019-04-24 2020-02-26 シリアルデータ通信装置

Country Status (5)

Country Link
US (1) US11960432B2 (ja)
EP (1) EP3961970A4 (ja)
JP (1) JP7070496B2 (ja)
CN (1) CN113557688B (ja)
WO (1) WO2020217697A1 (ja)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868180B (zh) * 2021-09-16 2024-02-06 河南翔宇医疗设备股份有限公司 一种单总线通信的控制方法、装置及体外冲击波设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62188454A (ja) * 1986-02-13 1987-08-18 Nec Corp 調歩同期式デ−タ伝送方式
JPS63125029A (ja) * 1986-11-14 1988-05-28 Fujitsu Ltd 調歩同期信号発生回路
JPH04144443A (ja) * 1990-10-05 1992-05-18 Sony Corp 伝送データの同期方式
JP2002252660A (ja) 2001-02-22 2002-09-06 Mitsubishi Electric Corp シリアルデータ通信装置及び通信エラー検出方法

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2435758B1 (fr) 1978-09-05 1986-08-22 Motorola Inc Logique de communication a microcalculateur biphase
US6581100B1 (en) * 1998-09-18 2003-06-17 Skyworks Solutions, Inc. System and method for communication parameter determination
WO2004064351A1 (ja) * 2003-01-15 2004-07-29 Fujitsu Limited 非同期伝送方法及びその回路
JP2007150396A (ja) * 2005-11-24 2007-06-14 Matsushita Electric Works Ltd 通信装置
WO2008036413A1 (en) * 2006-09-21 2008-03-27 Analog Devices, Inc. Serial digital data communication interface
US8195844B2 (en) * 2007-09-20 2012-06-05 Siemens Aktiengesellschaft Systems, devices, and/or methods for managing communications
JP2011091742A (ja) * 2009-10-26 2011-05-06 Kyocera Corp 通信装置
FR2963519B1 (fr) * 2010-07-27 2012-08-03 St Microelectronics Rousset Protocole de communication sur bus unifilaire
US9928194B2 (en) 2015-11-30 2018-03-27 Allegro Microsystems, Llc Non-linear transmit biasing for a serial bus transmitter
CN107423248B (zh) * 2016-11-24 2020-08-21 天地融科技股份有限公司 数据帧头发送方法及发送装置
JP6984178B2 (ja) * 2017-05-29 2021-12-17 株式会社デンソー 通信装置
CN108845897A (zh) * 2018-05-25 2018-11-20 北京无线电测量研究所 串口通信调试方法、装置及存储介质
CN108897712B (zh) * 2018-07-09 2021-04-09 北京集创北方科技股份有限公司 单线传输方法、芯片以及通信系统
CN108989014B (zh) * 2018-07-11 2019-05-14 江苏省精创电气股份有限公司 一种宽时钟容差的单线串行半双工通信方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62188454A (ja) * 1986-02-13 1987-08-18 Nec Corp 調歩同期式デ−タ伝送方式
JPS63125029A (ja) * 1986-11-14 1988-05-28 Fujitsu Ltd 調歩同期信号発生回路
JPH04144443A (ja) * 1990-10-05 1992-05-18 Sony Corp 伝送データの同期方式
JP2002252660A (ja) 2001-02-22 2002-09-06 Mitsubishi Electric Corp シリアルデータ通信装置及び通信エラー検出方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3961970A4

Also Published As

Publication number Publication date
EP3961970A1 (en) 2022-03-02
US20220179819A1 (en) 2022-06-09
CN113557688B (zh) 2024-06-07
EP3961970A4 (en) 2022-12-28
JP7070496B2 (ja) 2022-05-18
CN113557688A (zh) 2021-10-26
JP2020182082A (ja) 2020-11-05
US11960432B2 (en) 2024-04-16

Similar Documents

Publication Publication Date Title
JP3841762B2 (ja) サーボモータ制御システム
WO2020217697A1 (ja) シリアルデータ通信装置
EP3236325A1 (en) Control apparatus, relay apparatus, control method for control apparatus, control method for relay apparatus, control program and storage medium
WO2022001348A1 (zh) 数据的发送方法、装置、存储介质以及电子装置
JP4766349B2 (ja) フィールド機器
EP0679038B2 (en) Television receiver
CN111010181B (zh) 一种ddr信号时序校准方法和装置
CN111819039B (zh) 机器人控制方法、装置及可读存储介质
JP7326765B2 (ja) 通信装置、電力制御方法及びコンピュータ
JP2709720B2 (ja) 数値制御装置とその周辺機器との回線接続方式
JP3246302B2 (ja) 自動車用電子制御装置
JP4252572B2 (ja) プログラマブルコントローラ
US7515554B2 (en) Half-duplex communication control method
CN110169018A (zh) 通信装置、通信系统及计算机程序
CN113557693B (zh) 网络设备
JPH0570170B2 (ja)
US10091703B2 (en) Relay apparatus
JP7283875B2 (ja) 数値制御装置
JP6865600B2 (ja) 通信中継装置
JP2003203267A (ja) 自動販売機内におけるマスタとスレーブ間の伝送速度の設定方法
JP6464211B2 (ja) プログラマブルコントローラ
JP2003283360A (ja) 無線機、同調周波数設定システム、および同調周波数設定方法
JP2013239043A (ja) バス制御装置、バス制御方法、プログラムおよび記録媒体
JP4818551B2 (ja) 工作機械のスケジュール運転管理装置、スケジュール運転システムおよびスケジュール運転方法
JP4097064B2 (ja) プログラムダウンロード方法及びシステム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20795163

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2020795163

Country of ref document: EP

Effective date: 20211124