-
Re: Modbus Protocol on Raspberry Pi 3 using Serial GPIO Ports
peteroakesNov 7, 2017 10:34 AM (in response to patil.sunny9999)
1 of 1 people found this helpfulHi there, I have a better suggestion
, try using Node-Red and the Modbus plugin, if you are a beginner then this I think will be an easier route to go, I have loads of Node-Red videos on my channel and alot of them use Modbus to talk to a thermal imaging camera and other devices
Node Red is included with the Raspberry PI image and it is easy to add the Modbus plugin right from within Node-Red UI, look for the pallet manager. The plugin makes it so much easier to talk to modbus devices and node-red will allow easily to configure workflows and displays without the need for extensive coding. You can code stuff if you want but I would suggest getting to know Modbus first and then go from there.
If you need help with Modbus I can help, I just have never needed to use the python interfaces.
Regards
peter
Oh, my channel is https://www.youtube.com/thebreadboardca
If necessary i will create a video for E14 and post it here to help, I have many devices I can choose from
-
Re: Modbus Protocol on Raspberry Pi 3 using Serial GPIO Ports
fed27 Dec 16, 2020 4:25 AM (in response to peteroakes)Hi Peter
i have been using a raspberry pi and node red for modbus communications with PLCs for a while now, but I have only ever done it over TCP modbus.
I now need to do the same but over modbus serial, we are trying not to use a hat as we might want them in future for other reasons.
so that means I really need to use a USB modbus plug in device which I have various. I just can’t seem to set up the pi and node red to read modbus through the USB adaptor.
Please anyone who has done this successfuly before HELP.
-
-
Re: Modbus Protocol on Raspberry Pi 3 using Serial GPIO Ports
peteroakesNov 7, 2017 10:47 AM (in response to patil.sunny9999)
1 of 1 people found this helpfulSorry, missed the other part of your question, the, an Arduino may make a better Slave device and there is a sketch for that, just search for Arduino and Modbus.
Is there a reason you have to use MODSCAN 32, this seems to be more of a debug tool, it this an assignment or something, perhaps you can provide a little background info so others can also help
-
Re: Modbus Protocol on Raspberry Pi 3 using Serial GPIO Ports
patil.sunny9999 Nov 7, 2017 9:15 PM (in response to patil.sunny9999)peteroakes Yes, actually its my Project. so I have to use it on Modbscan 32 only. I want to run it on Raspberry Pi though.
If possible for you Please make Video on Raspberry Pi as slave communicating with Modscan 32. it will help me alot
Thank you.
-
Re: Modbus Protocol on Raspberry Pi 3 using Serial GPIO Ports
patil.sunny9999 Nov 12, 2017 5:10 AM (in response to patil.sunny9999)Hey There,
I am using Libmodbus Library for my Raspberry Pi as Slave Device, but i am stuck on following error
slave_c.c:9:20: fatal error: modbus.h: No such file or directory
here i am using simple test program from libmodbus examples
Anyone please suggest me how to overcome this problem
thank you in advance
-
Re: Modbus Protocol on Raspberry Pi 3 using Serial GPIO Ports
mconnersNov 12, 2017 1:58 PM (in response to patil.sunny9999)
2 of 2 people found this helpfulI'm not familiar with the modbus libraries, but that is just a typical c compiler error when it can't find an include file. Either you didn't install the modbus package as directed, or they left out an instruction.
you can add the -I command line option to tell the compiler where to find the directory where the include file is located. See the following.
https://gcc.gnu.org/onlinedocs/gcc-3.1/gcc/Directory-Options.html
Mike
-
Hello There,
I want to make use of Modbus Protocol on my Raspberry pi 3 model B. I am Complete Beginner. After some Research i Found Some information about Modbus Protocol. i found these Libraries by which i can Use Modbus Protocol on Raspberry pi.
LIBMODBUS
PYMODBUS
MODBUS-TK
Please Suggest me that which one will be better to use.
As I have to communicate with MODSCAN 32 using my Raspberry Pi by RS232 circuitry, i have bought one
so I am quite sure that I need to make Raspberry Pi as SLAVE device. Because I am little confused with that please help me out.
Also Please Provide if any sample code is available to you, it will help me alot to understand better.
Thank you in advance