JP2020080463A - Numerical control device with error correction function during communication - Google Patents

Numerical control device with error correction function during communication Download PDF

Info

Publication number
JP2020080463A
JP2020080463A JP2018212624A JP2018212624A JP2020080463A JP 2020080463 A JP2020080463 A JP 2020080463A JP 2018212624 A JP2018212624 A JP 2018212624A JP 2018212624 A JP2018212624 A JP 2018212624A JP 2020080463 A JP2020080463 A JP 2020080463A
Authority
JP
Japan
Prior art keywords
frame
crc
data
unit
received frame
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
JP2018212624A
Other languages
Japanese (ja)
Inventor
渓太 土井
Keita Doi
渓太 土井
健 松林
Takeshi Matsubayashi
健 松林
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.)
Okuma Corp
Original Assignee
Okuma Corp
Okuma Machinery Works 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 Okuma Corp, Okuma Machinery Works Ltd filed Critical Okuma Corp
Priority to JP2018212624A priority Critical patent/JP2020080463A/en
Publication of JP2020080463A publication Critical patent/JP2020080463A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Numerical Control (AREA)

Abstract

To suppress the number of times of retransmission and prevent the stop of a machine when a retransmitted frame is also destroyed in a communication in a numerical control device.SOLUTION: A numerical control device equipped with an error detection function by CRC includes a reception buffer that can store at least one reception frame, a comparison unit that compares a first received frame and a retransmitted second received frame to detect a mismatch, a plurality of CRC calculation units that calculate a CRC on the basis of the received frame, a data selection unit that controls data included in the received frame which is data to be sent to each of the plurality of CRC calculation units, and a result selection unit that selects the data to be used on the basis of the calculation results of the plurality of CRC calculation units, and has a function to perform error correction by calculating CRC of a pattern obtained by combining the first received frame and the second received frame in parallel when the second received frame is received.SELECTED DRAWING: Figure 1

Description

本発明は、制御対象物を制御するためにユニット間で通信によるデータの受け渡しを行う数値制御装置に関する。   The present invention relates to a numerical control device that exchanges data by communication between units in order to control an object to be controlled.

工作機械の数値制御装置では、数値制御装置から離れた位置にモータを駆動する駆動装置やソレノイド等を制御するためのI/O装置が存在するため、指令等のデータを通信する必要がある。   In a numerical control device for a machine tool, an I/O device for controlling a drive device for driving a motor, a solenoid, etc. exists at a position distant from the numerical control device, and therefore it is necessary to communicate data such as commands.

イーサネット(登録商標)に関して規定されたIEEE802.3を利用する場合において、データが格納されたフレームが破壊された場合に誤ったフレームに基づき制御対象物が動作することを防ぐために、フレームが破壊されたことを検出する手段としてバースト誤りを検出しやすいCRC(Cyclic Redundancy Check:巡回冗長検査)が用いられることがある。   When IEEE802.3 defined for Ethernet (registered trademark) is used, if a frame storing data is destroyed, the frame is destroyed in order to prevent the controlled object from operating based on an erroneous frame. A CRC (Cyclic Redundancy Check) that can easily detect a burst error may be used as a means for detecting this.

また、ノイズ等によってフレームが破壊されたことにより正しいフレームを受け取ることができなかった場合の対策として、フレームの再送により正常にフレームを受け取ることができる確率を高めることが行われる場合がある。   Further, as a measure against the case where a correct frame cannot be received due to the frame being destroyed by noise or the like, there is a case where the probability that the frame can be normally received is increased by retransmitting the frame.

ところで、CRCによる誤り検出では、誤り箇所を特定することができず、誤りを訂正することができないため、正しいフレームを受け取るために再送が必要になる。しかし、リアルタイム性が重要になる数値制御装置における通信では、同一フレームの再送を複数回実施すると規定時間内に通信を完了することができないため、機械が停止する。   By the way, in the error detection by CRC, the error location cannot be specified and the error cannot be corrected, so that the retransmission is necessary to receive the correct frame. However, in communication in a numerical control device in which real-time property is important, if the same frame is retransmitted a plurality of times, the communication cannot be completed within a specified time, and the machine stops.

本発明の目的は、数値制御装置における通信において、再送されたフレームも破壊されていた場合に、再送回数を抑制しつつ機械の停止を防ぐことにある。   An object of the present invention is to prevent the machine from stopping while suppressing the number of retransmissions when the retransmitted frame is also destroyed in the communication in the numerical control device.

本発明に係る数値制御装置は、CRCによる誤り検出機能を備えた機械の数値制御装置であって、少なくとも1回分の受信フレームを保存することができる受信バッファと、1回目の受信フレームと再送された2回目の受信フレームとを比較して不一致箇所を検出する比較部と、受信フレームに基づいてCRCを計算する複数のCRC計算部と、前記複数のCRC計算部のそれぞれに送るデータであって受信フレームに含まれるデータを制御するデータ選択部と、前記複数のCRC計算部のそれぞれのCRC計算結果に基づいて、使用するデータを選択する結果選択部と、を有し、2回目の受信フレームの受信時に、1回目の受信フレームと2回目の受信フレームとを組み合わせたパターンのCRCも並行して計算することで誤り訂正する機能を有する。   A numerical control device according to the present invention is a numerical control device for a machine having an error detection function by CRC, and has a reception buffer capable of storing at least one reception frame, a first reception frame and a retransmitted frame. A comparison unit for comparing the received frame of the second time to detect a mismatched portion; a plurality of CRC calculation units for calculating a CRC based on the received frame; and data to be sent to each of the plurality of CRC calculation units. The second reception frame includes a data selection unit that controls data included in the reception frame, and a result selection unit that selects data to be used based on the CRC calculation results of the plurality of CRC calculation units. Has a function of correcting an error by concurrently calculating a CRC of a pattern obtained by combining the first received frame and the second received frame.

本発明によれば、少ない遅延で誤り訂正を行うことが可能となり、機械の停止を防止することが可能となる。   According to the present invention, it becomes possible to perform error correction with a small delay and prevent the machine from stopping.

本発明の実施形態に係るシステムを示すブロック図である。It is a block diagram which shows the system which concerns on embodiment of this invention. 本発明の実施形態に係る誤り訂正方法を説明する図である。It is a figure explaining the error correction method which concerns on embodiment of this invention.

以下、本発明の実施形態について、図に基づいて説明する。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

図1に示すように、制御装置1は、制御部11と、送信部12と、受信部13と、を備える。送信部12は、送信するデータを格納する送信バッファ121と、送信フレームの生成を行う送信制御部122と、フレームに付与するCRCを計算するCRC計算部123と、フレームを送信するフレーム送信部124と、を備える。受信部13は、フレームを受信するフレーム受信部134と、受信フレームのCRCをチェックするCRC計算部133aと、フレームの情報に応じてデータ格納先等を制御する受信制御部132と、受信したデータを格納する受信バッファ131と、を備え、通常の受信処理を行う。また、受信部13は、受信フレーム同士を比較して不一致箇所を検出する比較部135と、不一致箇所と不一致時のフレームを一時的に保存する不一致バッファ136と、誤り訂正用のCRC計算部133b,133cと、不一致回数をカウントし、CRC計算部133b,133cに送るデータを切り替えるデータ選択部137と、CRC計算部133a,133b,133cで計算した結果から使用するデータパターンを選択する結果選択部138と、を更に備える。駆動装置2も制御装置1と同様に、制御部21と、送信部22と、受信部23と、を備える。送信部22の構成は、送信部12の構成と同じである。受信部23の構成は、受信部13の構成と同じである。   As shown in FIG. 1, the control device 1 includes a control unit 11, a transmission unit 12, and a reception unit 13. The transmission unit 12 includes a transmission buffer 121 that stores data to be transmitted, a transmission control unit 122 that generates a transmission frame, a CRC calculation unit 123 that calculates a CRC assigned to a frame, and a frame transmission unit 124 that transmits a frame. And The reception unit 13 includes a frame reception unit 134 that receives a frame, a CRC calculation unit 133a that checks the CRC of the received frame, a reception control unit 132 that controls a data storage destination according to the information of the frame, and received data. And a reception buffer 131 for storing the received data. Further, the receiving unit 13 compares the received frames with each other to detect a mismatched portion, a mismatch buffer 136 for temporarily storing a mismatched portion and a frame at the time of a mismatch, and a CRC calculation unit 133b for error correction. , 133c, a data selection unit 137 that counts the number of times of mismatch and switches data to be sent to the CRC calculation units 133b and 133c, and a result selection unit that selects a data pattern to be used from the results calculated by the CRC calculation units 133a, 133b, and 133c. And 138. Like the control device 1, the drive device 2 also includes a control unit 21, a transmission unit 22, and a reception unit 23. The configuration of the transmission unit 22 is the same as the configuration of the transmission unit 12. The configuration of the receiving unit 23 is the same as the configuration of the receiving unit 13.

エラーが発生しない正常な通信時は、制御装置1が生成した指令値を駆動装置2へと送信し、駆動装置2は指令値を受け取り、指令に応じて機械を駆動させ、応答を制御装置1へと送信する。具体的には、制御装置1の制御部11は、駆動装置2に対する指令値を生成し、送信バッファ121に指令値を書き込む。その後、制御部11は、送信制御部122に対して送信開始指令を送る。送信開始指令を受け付けた送信制御部122は、送信バッファ121のデータをCRC計算部123に送る。CRC計算部123は、受け取ったデータからCRCを計算し、データにCRC情報を付加したフレームを、フレーム送信部124へと送る。フレーム送信部124は、送られてきたフレームを駆動装置2に送信する。   During normal communication in which no error occurs, the command value generated by the control device 1 is transmitted to the drive device 2, the drive device 2 receives the command value, drives the machine according to the command, and sends a response to the control device 1. Send to. Specifically, the control unit 11 of the control device 1 generates a command value for the drive device 2 and writes the command value in the transmission buffer 121. After that, the control unit 11 sends a transmission start command to the transmission control unit 122. The transmission control unit 122 that has received the transmission start command sends the data in the transmission buffer 121 to the CRC calculation unit 123. The CRC calculation unit 123 calculates a CRC from the received data, and sends a frame in which CRC information is added to the data to the frame transmission unit 124. The frame transmitter 124 transmits the transmitted frame to the drive device 2.

駆動装置2内のフレーム受信部234は、制御装置1から受信したフレームをCRC計算部233aを介して受信制御部232へと送る。CRC計算部233aは、受信フレームのCRCを計算し、受信フレームのデータが正しいかを判定し、その判定結果を受信制御部232に通知する。受信制御部232は、受信フレームを受信バッファ231に保存し、CRC計算部233aから受信フレームが正常である判定を受けた場合は、制御部21へ受信が完了したことを通知する。制御部21は、受信バッファ231に保存されたフレーム内にある指令情報に基づいて装置を駆動させ、その応答の情報を送信バッファ221に保存し、制御装置1宛に送信するように送信制御部222へと指示する。指示を受けた送信制御部222は送信部12と同様の動作で制御装置1にフレームを送信する。   The frame reception unit 234 in the drive device 2 sends the frame received from the control device 1 to the reception control unit 232 via the CRC calculation unit 233a. The CRC calculation unit 233a calculates the CRC of the received frame, determines whether the data of the received frame is correct, and notifies the reception control unit 232 of the determination result. The reception control unit 232 saves the reception frame in the reception buffer 231, and when the CRC calculation unit 233a determines that the reception frame is normal, notifies the control unit 21 that the reception is completed. The control unit 21 drives the device based on the command information stored in the frame stored in the reception buffer 231, stores the response information in the transmission buffer 221, and transmits it to the control device 1 so as to transmit the transmission control unit. Instruct to 222. The transmission control unit 222 that has received the instruction transmits a frame to the control device 1 in the same operation as the transmission unit 12.

前記通信の流れにおいて、制御装置1から送信されたフレームが破壊された場合は、受信制御部232は、受信フレームを受信バッファ231に保存し、CRC計算部233aから受信フレームが異常であることを通知されたため、送信制御部222に対して再送要求のフレームの送信を指令する。指令を受けた送信制御部222は、再送要求のフレームを生成し、制御装置1に対して送信する。再送要求を受信した制御装置1は、要求に応じて、同一のフレームを駆動装置2に再送する。   In the communication flow, when the frame transmitted from the control device 1 is destroyed, the reception control unit 232 stores the reception frame in the reception buffer 231, and the CRC calculation unit 233a confirms that the reception frame is abnormal. Since it has been notified, the transmission control unit 222 is instructed to transmit the frame of the retransmission request. Upon receiving the instruction, the transmission control unit 222 generates a retransmission request frame and transmits it to the control device 1. The control device 1 that has received the retransmission request retransmits the same frame to the drive device 2 in response to the request.

再送されたフレームを受信した駆動装置2は、フレームの受信処理時に誤り訂正処理を並行して実行する。この誤り訂正処理に関して図2も参照して説明する。図2(a)は、再送前の受信フレームにおいてAバイト目からAバイト目までの区間でデータが破壊されたことを示している。図2(b)は、再送時の受信フレームにおいてBバイト目からBバイト目までの区間でデータが破壊されたことを示している。図2(c)と図2(d)は、再送前と再送時の2回の受信フレームを組み合わせて作成されたフレームを示している。本実施形態では、CRCの性質上、CRC長より長いバースト誤りがあり、単一フレームで2箇所以上の誤りがある場合は、信頼性が低下するため、誤り訂正を行わない。そのため、以下では、フレームが破壊された区間がCRC長より短い場合について説明する。 The drive device 2 that has received the retransmitted frame executes error correction processing in parallel during frame reception processing. This error correction process will be described with reference to FIG. FIG. 2A shows that the data is destroyed in the section from the A 0 byte to the A 1 byte in the received frame before retransmission. FIG. 2B shows that the data is destroyed in the section from the B 0 byte to the B 1 byte in the received frame at the time of retransmission. FIG. 2C and FIG. 2D show a frame created by combining two received frames before and during retransmission. In the present embodiment, due to the nature of CRC, if there is a burst error longer than the CRC length and there are errors in two or more locations in a single frame, the reliability decreases, so error correction is not performed. Therefore, in the following, a case where the section in which the frame is destroyed is shorter than the CRC length will be described.

フレーム受信部234は、受信したフレームをCRC計算部233aを介して受信制御部232へと渡す。再送時受信フレームを受け取った受信制御部232は、受信バッファ231に保存されていた再送前受信フレームを読み出し、再送前受信フレームと再送時受信フレームを、比較部235とデータ選択部237へと送信し、また、受信バッファ231に再送時受信フレームを保存する。比較部235は、受け取った再送前受信フレームと再送時受信フレームとを比較し、それらのフレーム同士が不一致だった場合は、不一致検出信号をデータ選択部237に出力する。図2の例の場合は、AバイトからAバイトまでの区間、及び、BバイトからBバイトまでの区間において、再送前受信フレームと再送時受信フレームとの間に不一致が生じているため、これらの区間に関して不一致検出信号が出力される。データ選択部237は、図2(c)に示されているCRC計算をCRC計算部233bに実行させ、図2(d)に示されているCRC計算をCRC計算部233cに実行させるように、データの振り分けを行う。 The frame reception unit 234 passes the received frame to the reception control unit 232 via the CRC calculation unit 233a. The reception control unit 232 having received the retransmission-time reception frame reads the pre-retransmission reception frame stored in the reception buffer 231, and transmits the pre-retransmission reception frame and the retransmission-time reception frame to the comparison unit 235 and the data selection unit 237. In addition, the reception frame at the time of retransmission is stored in the reception buffer 231. The comparison unit 235 compares the received pre-retransmission received frame with the re-transmission received frame, and if the frames do not match, outputs a mismatch detection signal to the data selection unit 237. In the case of the example in FIG. 2, in the section from A 0 byte to A 1 byte and the section from B 0 byte to B 1 byte, a mismatch occurs between the pre-retransmission received frame and the retransmitted received frame. Therefore, a mismatch detection signal is output for these sections. The data selection unit 237 causes the CRC calculation unit 233b to execute the CRC calculation shown in FIG. 2C, and causes the CRC calculation unit 233c to execute the CRC calculation shown in FIG. 2D. Sort the data.

具体的には、データ選択部237は、再送時受信フレームの受信開始時はCRC計算部233bには、再送時受信フレーム(b)を送信し、CRC計算部233cには、再送前受信フレーム(a)を送信する。そして、データ選択部237は、不一致検出信号(A)を受け取った場合は、そこからCRC長(本実施例ではCByte)までの間は、前記送信先(CRC計算部233b,233c)に前記データを送信し、A+Cの位置から受信フレームを入れ替え、CRC計算部233bには再送前受信フレーム(a)を送信し、CRC計算部233cには再送時受信フレーム(b)を送信する。また、その際に、データ選択部237は、データ選択部237内部にあるフレーム内のデータの不一致数を記録するカウンタ(以下、不一致カウンタ)を1増加させ、不一致バッファ236に不一致位置の先頭を示すAのデータと、Cバイト分のデータであるAからA+C−1のデータを保存する。データ選択部237は、次の不一致検出信号(B)を受け取った場合も、上記と同様の動作を行う。つまり、データ選択部237は、B+Cの位置からCRC計算部233bとCRC計算部233cに送るデータを再度入れ替え、前記と同様に不一致カウンタを増加させ、不一致バッファ236に不一致箇所の先頭を示すBのデータと、Cバイト分のデータであるBからB+C−1のデータを保存する。これ以降は受信完了まで不一致検出信号は現れないため、各CRC計算部(CRC計算部233a,233b,233c)は、自身に振り分けられたデータに基づいてCRCを計算し、そのCRC結果を結果選択部238へと送る。 Specifically, the data selection unit 237 transmits the retransmission reception frame (b) to the CRC calculation unit 233b at the start of reception of the retransmission reception frame, and the CRC calculation unit 233c transmits the pre-retransmission reception frame ( a) is transmitted. Then, the data selection unit 237, when receiving the mismatch detection signal (A 0), from which CRC length until the (C L Byte in the present embodiment), the destination (CRC calculation section 233b, 233 c) wherein the data transmitted to the, replacing the received frame from the position a 0 + C L, the CRC calculation section 233b transmits a retransmission previous received frame (a), the retransmission time received frame to the CRC calculation section 233c of (b) Send. Further, at that time, the data selection unit 237 increments a counter (hereinafter referred to as a non-coincidence counter) for recording the number of non-coincidences of the data in the frame inside the data selection unit 237, and sets the head of the non-coincidence position in the non-coincidence buffer 236. The data of A 0 shown and the data of A 0 to A 0 +C L −1 which is data of C L bytes are stored. The data selection unit 237 also performs the same operation as above when receiving the next mismatch detection signal (B 0 ). That is, the data selection unit 237 replaces the data to be sent to the CRC calculation unit 233b and the CRC calculation unit 233c from the position of B 0 +C L again, increments the mismatch counter in the same manner as above, and moves the mismatch buffer 236 to the beginning of the mismatch position. The data of B 0 shown and the data of B 0 to B 0 +C L −1 which is data of C L bytes are stored. Since the mismatch detection signal does not appear until the reception is completed after that, each CRC calculation unit (CRC calculation unit 233a, 233b, 233c) calculates the CRC based on the data distributed to itself, and selects the CRC result as the result. And send to section 238.

結果選択部238は、3個のCRC計算部(CRC計算部233a,233b,233c)から計算結果を受け取り、有効な結果の判定を行う。再送時受信フレームのCRC計算結果であるCRC計算部233aの結果が正しい場合は、結果選択部238は、受信バッファ231に格納した再送時受信フレームをそのまま使用する。CRC計算部233bのCRC計算結果のみが正しかった場合は、CRC計算部233bが計算した受信フレーム(図2(c)に示されている受信フレーム)が正しいため、結果選択部238は、不一致バッファ236に保存した不一致箇所Bの再送前受信データ(BからB+C−1のデータ)を受信バッファ231に書き込み、誤り訂正を行う。CRC計算部233cのCRC計算結果のみが正しい場合は、結果選択部238は、不一致バッファに保存した不一致箇所Aの再送前受信データ(AからA+C−1のデータ)を受信バッファ231に書き込み、誤り訂正を行う。CRC計算部233bとCRC計算部233cの両方のCRC計算結果が正しい場合は、どちらかが2箇所誤った結果CRC計算結果が一致しているため、結果選択部238は、誤り訂正を行わず、受信制御部232に受信エラーであることを通知し、再び再送要求を行う。同様に、結果選択部238は、全てのCRC計算部の結果が誤りの場合も誤り訂正を行わず、受信制御部232に受信エラーであることを通知し、再び再送要求を行う。 The result selection unit 238 receives calculation results from the three CRC calculation units (CRC calculation units 233a, 233b, 233c) and determines valid results. When the result of the CRC calculation unit 233a, which is the CRC calculation result of the retransmission reception frame, is correct, the result selection unit 238 uses the retransmission reception frame stored in the reception buffer 231 as it is. If only the CRC calculation result of the CRC calculation unit 233b is correct, the result selection unit 238 indicates that the received frame calculated by the CRC calculation unit 233b (the received frame shown in FIG. 2C) is correct. The pre-retransmission received data (B 0 to B 0 +C L −1 data) of the mismatched portion B stored in 236 is written in the reception buffer 231 to perform error correction. When only the CRC calculation result of the CRC calculation unit 233c is correct, the result selection unit 238 receives the pre-retransmission received data (data of A 0 to A 0 +C L −1) of the mismatched portion A stored in the mismatch buffer 231. Write to and correct the error. When the CRC calculation results of both the CRC calculation unit 233b and the CRC calculation unit 233c are correct, the result selection unit 238 does not perform error correction because the result CRC calculation results in which one of the CRC calculation units 233b is incorrect are incorrect. The reception control unit 232 is notified of the reception error, and the retransmission request is made again. Similarly, the result selection unit 238 does not perform error correction even when the results of all the CRC calculation units are erroneous, notifies the reception control unit 232 of a reception error, and requests retransmission again.

誤り訂正を行わないCRC長以上の誤りがある場合、及び、同一のフレームで2カ所以上の誤りが存在する場合は、不一致箇所が3箇所以上となる(CRC長を超えた誤りは2箇所として数える)ため、不一致カウンタが3以上であるならば、受信フレームの信頼性が低いため誤り訂正を無効化する。無効化は、データ選択部237がCRC計算部233bとCRC計算部233cに対し、リセット入力を続け、CRC計算結果を固定値とすることで行う。   If there is an error of CRC length or more without error correction, and if there are two or more errors in the same frame, there will be three or more mismatched points (two errors exceed the CRC length. Therefore, if the mismatch counter is 3 or more, the reliability of the received frame is low and the error correction is invalidated. The invalidation is performed by the data selection unit 237 continuing the reset input to the CRC calculation unit 233b and the CRC calculation unit 233c and setting the CRC calculation result to a fixed value.

<変形例1>
上記の実施形態では、フレームを正常に受信できなかった場合に再送要求を送ることで再送処理を行う場合について説明したが、再送要求に応じて再送するのではなく、常に同一フレームを複数回送信する等の方法によって、2回以上のフレームを受信してもよい。
<Modification 1>
In the above embodiment, the case where the retransmission process is performed by sending the retransmission request when the frame cannot be received normally has been described, but the same frame is always transmitted a plurality of times instead of being retransmitted in response to the retransmission request. The frame may be received more than once by a method such as.

<変形例2>
上記の実施形態では、制御装置1と駆動装置2が1対1通信で接続されている場合について説明したが、例えばリング接続等の1対1通信以外で接続されたネットワークが用いられてもよい。この場合、受信バッファを通信相手毎に用意することで、フレームと再送フレームとの間に、他の通信相手との通信フレームが割り込んでも誤り訂正を行うことが可能になる。
<Modification 2>
In the above embodiment, the case where the control device 1 and the drive device 2 are connected by one-to-one communication has been described, but a network connected by other than one-to-one communication such as ring connection may be used. .. In this case, by preparing a reception buffer for each communication partner, it becomes possible to perform error correction even when a communication frame with another communication partner is interrupted between the frame and the retransmission frame.

上記の制御装置1及び駆動装置2は、一例としてハードウェア資源とソフトウェアとの協働により実現される。具体的には、制御装置1及び駆動装置2は、図示しないCPU等のプロセッサを備えている。当該プロセッサが、図示しない記憶装置に記憶されたプログラムを読み出して実行することにより、制御装置1及び駆動装置2の各部の機能が実現される。上記プログラムは、CDやDVD等の記録媒体を経由して、又は、ネットワーク等の通信経路を経由して、記憶装置に記憶される。または、制御装置1及び駆動装置2の各部は、例えばプロセッサや電子回路等のハードウェア資源により実現されてもよい。その実現においてメモリ等のデバイスが利用されてもよい。別の例として、制御装置1及び駆動装置2の各部は、DSP(Digital Signal Processor)やFPGA(Field Programmable Gate Array)等によって実現されてもよい。   The control device 1 and the drive device 2 described above are realized, for example, by the cooperation of hardware resources and software. Specifically, the control device 1 and the drive device 2 include a processor such as a CPU (not shown). The function of each unit of the control device 1 and the drive device 2 is realized by the processor reading and executing a program stored in a storage device (not shown). The program is stored in the storage device via a recording medium such as a CD or a DVD, or via a communication path such as a network. Alternatively, each unit of the control device 1 and the drive device 2 may be realized by a hardware resource such as a processor or an electronic circuit. A device such as a memory may be used in the realization thereof. As another example, each unit of the control device 1 and the drive device 2 may be realized by a DSP (Digital Signal Processor), an FPGA (Field Programmable Gate Array), or the like.

1 制御装置、2 駆動装置、11,21 制御部、12,22 送信部、13,23 受信部、121,221 送信バッファ、122,222 送信制御部、123,133a,133b,133c,223,233a,233b,233c CRC計算部、124,224 フレーム送信部、131,231 受信バッファ、132,232 受信制御部、134,234 フレーム受信部、135,235 比較部、136,236 不一致バッファ、137,237 データ選択部、138,238 結果選択部。   DESCRIPTION OF REFERENCE NUMERALS 1 control device, 2 drive device, 11,21 control unit, 12,22 transmission unit, 13,23 reception unit, 121,221 transmission buffer, 122,222 transmission control unit, 123,133a, 133b, 133c, 223, 233a , 233b, 233c CRC calculation unit, 124, 224 frame transmission unit, 131, 231 reception buffer, 132, 232 reception control unit, 134, 234 frame reception unit, 135, 235 comparison unit, 136, 236 mismatch buffer, 137, 237 Data selection unit, 138, 238 result selection unit.

Claims (1)

CRCによる誤り検出機能を備えた機械の数値制御装置において、
少なくとも1回分の受信フレームを保存することができる受信バッファと、
1回目の受信フレームと再送された2回目の受信フレームとを比較して不一致箇所を検出する比較部と、
受信フレームに基づいてCRCを計算する複数のCRC計算部と、
前記複数のCRC計算部のそれぞれに送るデータであって受信フレームに含まれるデータを制御するデータ選択部と、
前記複数のCRC計算部のそれぞれのCRC計算結果に基づいて、使用するデータを選択する結果選択部と、
を有し、
2回目の受信フレームの受信時に、1回目の受信フレームと2回目の受信フレームとを組み合わせたパターンのCRCも並行して計算することで誤り訂正する機能を有する、
数値制御装置。
In the numerical control device of the machine equipped with the error detection function by CRC,
A reception buffer capable of storing at least one reception frame,
A comparing unit that compares the first received frame with the retransmitted second received frame to detect a mismatched portion;
A plurality of CRC calculation units that calculate a CRC based on the received frame;
A data selection unit that controls data included in the received frame, which is data to be sent to each of the plurality of CRC calculation units;
A result selection unit that selects data to be used based on the CRC calculation result of each of the plurality of CRC calculation units;
Have
When the second received frame is received, the CRC of the pattern obtained by combining the first received frame and the second received frame is also calculated in parallel to have an error correction function.
Numerical control device.
JP2018212624A 2018-11-13 2018-11-13 Numerical control device with error correction function during communication Pending JP2020080463A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018212624A JP2020080463A (en) 2018-11-13 2018-11-13 Numerical control device with error correction function during communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018212624A JP2020080463A (en) 2018-11-13 2018-11-13 Numerical control device with error correction function during communication

Publications (1)

Publication Number Publication Date
JP2020080463A true JP2020080463A (en) 2020-05-28

Family

ID=70801971

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018212624A Pending JP2020080463A (en) 2018-11-13 2018-11-13 Numerical control device with error correction function during communication

Country Status (1)

Country Link
JP (1) JP2020080463A (en)

Similar Documents

Publication Publication Date Title
EP0762705A2 (en) Method for transmitting data via a network
TWI442733B (en) Communication apparatus and system
JPH01228340A (en) Error control system
CN104866454A (en) Write message prospect processing method and device facing board-level high-speed bus
WO2020055616A1 (en) Memory system with error detection
US7120846B2 (en) Data transmission device, data receiving device, data transfer device and method
JP5256855B2 (en) Data transfer device and data transfer method control method
US10516789B2 (en) Information processing apparatus and image processing apparatus that perform transmission and reception of data, and method of controlling information processing apparatus
US20120328038A1 (en) Transmission system, transmission device and method for controlling transmission device
JP2017208710A (en) Communication device, communication method, program, and communication system
CN107852275B (en) Data transmission device, data transmission method, reception device, and reception method
JP2020080463A (en) Numerical control device with error correction function during communication
JP2006087124A (en) Envelope packet architecture for broadband engine
US20160080111A1 (en) Receiver, transmitter and data transmission system
US20030154288A1 (en) Server-client system and data transfer method used in the same system
US10218468B2 (en) USB device, data transfer system and data transfer method
JP3794800B2 (en) Data communication method and apparatus
US10999006B2 (en) Communications having reduced latency
JP5459308B2 (en) Data transfer apparatus and data transfer apparatus control method
WO2007096987A1 (en) Error control device
JP3281202B2 (en) Error control system
US10270705B1 (en) Transmission of stateful data over a stateless communications channel
JP3852600B2 (en) Communication interface device and program
JPH0535616A (en) Data transfer system
JP2001333048A (en) Data transfer system