I would like Modbus RTU communication with raspberry pi B + . Only it does not work . I do not know what I do wrong can someone my help . The messages on the forum , I have also been applied to my application just no result.
I hope you can help me further . I have a USB converter rs485 to me raspberry raspberry connected it recognized me too.
The comport comport stands as one .
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Het probleem is dat mijn Modbus Master de Raspberry pi B+ niet wil runnen. In de status heb ik een Bus failure. De topics op de forum welke betrekking hebben met modbus en seriaal heb ik al gelezen en geprobeerd maar geen resultaat
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The problem is that my Modbus Master the Raspberry Pi B does not want to run. In the state I have a bus failure. The topics on the forum which concern I have read with Modbus and serialy and tried but no result.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone. I have a problem. I have USB - 485 converter with cp21xx (I see them in sudo dmesg). I can to send packets from raspberry to another computer. Is it possible to try to make a raspberry master using a standard CODESYS bus configurator. Will it work? Now I have bus failure.
1. Raspi B+
2. Codesys 3.5 SP6
3. Raspberry control 2.1
4. USB-485 cp21xx Silicon Labs
Solved, was space in string Linux.Devicefile=/dev/ttyUSB. Master now is run.
But I have other problem. Everything is work (slave device responded), registers is wrote and read. But the Modbus slave now give the message Bus Failure. What could be this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
could you give a screenshot of the non working project of the device tree when you are online?
Please add the Slavename of the modbus slave to the watchwindow.
You should see the error there.
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
RESPONSE_TIMOUT means:
Either the answer from the slave occure to late or the answer does not come to the iec code...some how
Could you check by a sniffing tool if the response is on the serial line?
Another check might be:
Using Control Win for a quicktest (if your pc have a Serial Interface or a usb-to-serial interface)
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would like Modbus RTU communication with raspberry pi B + . Only it does not work . I do not know what I do wrong can someone my help . The messages on the forum , I have also been applied to my application just no result.
I hope you can help me further . I have a USB converter rs485 to me raspberry raspberry connected it recognized me too.
The comport comport stands as one .
Hi,
would recommend to check if serial communication works (you need to add your device to /etc/CODESYSCOntrol.cfg etc) see the following thread here:
l viewtopic.php?f=21&t=5699#p10247 l
after that switch to modbus and check if this works with modbus.
BR
Edwin
Hello Edwin,
A have don this already. But no result.
I don't no what to do.
Hallo,
Het probleem is dat mijn Modbus Master de Raspberry pi B+ niet wil runnen. In de status heb ik een Bus failure. De topics op de forum welke betrekking hebben met modbus en seriaal heb ik al gelezen en geprobeerd maar geen resultaat
Hello,
The problem is that my Modbus Master the Raspberry Pi B does not want to run. In the state I have a bus failure. The topics on the forum which concern I have read with Modbus and serialy and tried but no result.
here same setting of my raspberry
settings CODESYSControl.cfg
Hi,
don't write ttyUSB0 only write ttyUSB then it should work.
Gesendet von iPhone mit Tapatalk
Hello,
I now have the modbus mater in running. But the Modbus slave now give the message Bus Failure. What could be this.
Hy there,
I have the same Problem with my Modbus RTU Slave.
I get teh stat BUS Error but i dont know why.
could anyon help me ?
Gretings
Hi,
depending on which adapter you are using,
could you check Serial com example from store and crossover serial connection if this works?
BR
Edwin
Hello everyone. I have a problem. I have USB - 485 converter with cp21xx (I see them in sudo dmesg). I can to send packets from raspberry to another computer. Is it possible to try to make a raspberry master using a standard CODESYS bus configurator. Will it work? Now I have bus failure.
1. Raspi B+
2. Codesys 3.5 SP6
3. Raspberry control 2.1
4. USB-485 cp21xx Silicon Labs
PS: I add in sudo nano /etc/CODESYSControl.cfg
[SysCom]
Linux.Devicefile=/dev/ttyUSB
portnum := COM.SysCom.SYS_COMPORT1;
Solved, was space in string Linux.Devicefile=/dev/ttyUSB. Master now is run.
But I have other problem. Everything is work (slave device responded), registers is wrote and read. But the Modbus slave now give the message Bus Failure. What could be this?
Hi Edwin,
I
ve Checkt my Serial Comunication with the Raspberry and it works. I
ve used the Serial Projekt out of these Forum.Write Works and Read also.
But in my other brojekt the Modbus doesnt work I get an working Master but the Slave has an Error.
What could that be.
BR
Torsten
Hi,
could you give a screenshot of the non working project of the device tree when you are online?
Please add the Slavename of the modbus slave to the watchwindow.
You should see the error there.
BR
Edwin
Hy,
here is the
Screenshot
BG
Torsten
Hi Thorsten,
RESPONSE_TIMOUT means:
Either the answer from the slave occure to late or the answer does not come to the iec code...some how
Could you check by a sniffing tool if the response is on the serial line?
Another check might be:
Using Control Win for a quicktest (if your pc have a Serial Interface or a usb-to-serial interface)
BR
Edwin
Hi Edwin
I tried it with an Control Win
but there is no Comunication on the Port
also not at the start of the application.
BR
Torsten
Hi ,
I tried with an other Terminal and now i get the Error
"ILLEGAL_FUNCTION"
On the Modbus Slave
BR
Torsten
Hi,
this sounds for me like your connected slave does not support the configured function codes.
BR
Edwin
HY Edwin,
I found`ve my mistake.
I thougt there was an Bus error but the Bus was still working i just used the wrong parameters.
thanks for your help
Greetings
Torsten