LoginSignup
1
3

More than 5 years have passed since last update.

CRC-16 (Modbus) > Modbus の16ビットCRCを計算 @ On-line CRC calculation and free library

Last updated at Posted at 2018-08-01
動作環境
Windows 10 Pro (64bit) バージョン 1803 (April 2018 Update)
Google Chrome バージョン: 67.0.3396.99(Official Build) (64 ビット)

概要

とあるセンサーのInterface Descriptionに記載のModbusのCRC(16ビット)をオンラインツールで計算してみる。

手順

にて紹介した
On-line CRC calculation and free library

を使う。

某Interface Descriptionには下記の記載がある。
| 0x61 | 0x06 | 0x00 | 0x38 | 0x03 | 0xE8 |
これに対してCRCのLSBとMSBは以下とある。
| 0x01 | 0x19 |

以下のようにする。

  1. Input typeをHexにする
  2. Calculate CRCの左側のテキストボックスに以下を入力
  3. Calculate CRCボタンを押す

上の表の「CRC-16 (Modbus)」に0x1901と出て、Interface Descriptionの記載と整合する。

qiita.png

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3