Modbus Master - possible with Industruino ?

I'm trying for several days to get the SimpleModbusMaster V2.2 library working - till now no luck. Changed the Serial to Serial1 (needed for Leonardo configuration). Has anyone tried this before - to use the Industruino as a ModBus Master - to communicate with Modbus slaves ?

Jan

Jan Faber
Jan Faber
27
| 0 0 1
Asked on 7/10/15, 10:04 AM
2
vote
1779 Views

Hi all,

I just uploaded a sample sketch demostrating the use of the Industruino's RS485 tranceiver, even for reading and writing

https://github.com/gianlucastella1/industruino-rs485

Gianluca Stella
Gianluca Stella
32
| 0 0 1
Answered on 11/30/15, 5:02 PM
1
vote

Very nice example and documentation Gianluca! Thank you.

Loic De Buck
on 12/6/15, 11:52 PM

Thanks,

Did the trick - "standard" SimpleModbusMaster & SimpleModbusSlave works fine. Don't forget to change the Serial port to Serial1.

 

Jan Faber
Jan Faber
27
| 0 0 1
Answered on 7/17/15, 1:55 PM
1
vote

Extremely interrested in SimpleModbusSlave code examples.

Didier DORGUIN
on 3/24/16, 5:25 PM

Dear Jan,

The direction of communication on the half duplex RS485 transceiver has to be toggled via pin D9. (can be seen on our pinout diagrams in the tech centre: https://industruino.com/page/indio-diagram )

We will upload a Modbus Master and Modbus Slave library in the coming days.

Best Regards,

Loic

 

 

Loic De Buck
Loic De Buck
1237
| 3 1 3
Answered on 7/14/15, 10:25 AM
1
vote

Hello.  Has there been a modbus library released yet?  Or Jan Faber, would you mind uploading the sketch you got working?  

I tried adapting the simplemodbusmaster's example sketch to pull data from an industrial controller but haven't been able to get it to work.

Any help is appreciated... Thank you!

 

Patrick Doyle
Patrick Doyle
7
| 0 0 2
Answered on 10/4/15, 12:58 PM
0
vote

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

9 follower(s)

Stats

Asked: 7/10/15, 10:04 AM
Seen: 1779 times
Last updated: 12/3/15, 12:35 PM