필터 지우기
필터 지우기

Modbus TCP/IP for Raspberry PI

조회 수: 9 (최근 30일)
Bartosz Soltowski
Bartosz Soltowski 2021년 11월 22일
댓글: Akshay Jankee 2023년 2월 2일
I've been trying to build a Modbus TCP communication link between a Raspberry PI and my Victron CCGX system. As a result, Raspberry Pi should work as a Master in order to read data from the Victron system.
As such, I want to use Raspberry PI "Modbus TCP/IP Master Read" block in Simulink and automatically generate the code. It turns out that this block does not allow user to specify Unit_ID parameter of the Modbus TCP/IP protocol which is required by Victron devices.
Does anyone know if this parameter can be specified within the extarnal code of Modbus TCP/IP block in one of the Raspberry PI libraries? Is it possible to assign it according to my requirements?
Best Regards,
Bartosz
  댓글 수: 3
Bartosz Soltowski
Bartosz Soltowski 2023년 2월 2일
Hi Akshay,
You can use Python Modbus libraries to specify this paramter on RAspberry Pi instead of using MATLAB Simulink blocks. You can later link your simulink model with the Python script running in the background, if needed.
Good luck,
Bartosz
Akshay Jankee
Akshay Jankee 2023년 2월 2일
Hi Bartosz,
THanks for the response. Would you mind sharing an example or resources?
Kind regards,
Akshay

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by