Modbus RTU for LCPXpresso804

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Modbus RTU for LCPXpresso804

跳至解决方案
1,777 次查看
Mayk_Blanco
Contributor I
Hi. I want to know if there is already a library for the Modbus RTU protocol for LCPXpresso804. I need to control a PLC. If anyone has nan example it would help me a lot.
 
Greetings to all.
标签 (1)
0 项奖励
回复
1 解答
1,769 次查看
ErichStyger
Specialist I

I use Modbus with K22, RP2040 and LPC845.

You should be able to easily use it with the LPC804, as it is similar to the LPC845.

You can find it here:

https://github.com/ErichStyger/McuOnEclipseLibrary/tree/master/lib/Modbus

and the RS-485 driver is here: https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/src/McuUart485.c

You can check the project described here (has a link to the GitHub project too):

https://mcuoneclipse.com/2022/12/31/controlling-an-ev-charger-with-modbus-rtu/

See the other links at the end of above article.

 

I hope this helps,

Erich

在原帖中查看解决方案

2 回复数
1,728 次查看
Mayk_Blanco
Contributor I

Thank you a lot!

0 项奖励
回复
1,770 次查看
ErichStyger
Specialist I

I use Modbus with K22, RP2040 and LPC845.

You should be able to easily use it with the LPC804, as it is similar to the LPC845.

You can find it here:

https://github.com/ErichStyger/McuOnEclipseLibrary/tree/master/lib/Modbus

and the RS-485 driver is here: https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/src/McuUart485.c

You can check the project described here (has a link to the GitHub project too):

https://mcuoneclipse.com/2022/12/31/controlling-an-ev-charger-with-modbus-rtu/

See the other links at the end of above article.

 

I hope this helps,

Erich