Modbus user-defined function code

7 ビュー (過去 30 日間)
Tianji Gao
Tianji Gao 2020 年 12 月 2 日
回答済み: Pranav Verma 2020 年 12 月 11 日
I am using modbus communication supported by Instrument Control Toolbox. The problem is my modbus slave has a user-defined function code 28 and I cannot find a possible way to send the command including the function code 28. The command I want to send should be like "01 28 ...", can anyone remind me of a way to do this?
  2 件のコメント
Tianji Gao
Tianji Gao 2020 年 12 月 3 日
To be specific, I want to find a matlab function that can send binary data over a modbus object.
Tianji Gao
Tianji Gao 2020 年 12 月 3 日
The only solution I can think of is to delete the modbus object, create a new serial object and use write() function to communicate.

サインインしてコメントする。

回答 (1 件)

Pranav Verma
Pranav Verma 2020 年 12 月 11 日
Hi Tianji,
Here is the list of all the MODBUS communication functions supported by MATLAB. You can refer to the below add-on to check if it helps:
Thanks

カテゴリ

Help Center および File ExchangeModbus Communication についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by