Modbus and Siemens Sinamics Communication
-
- Posts: 12
- Joined: 18 Nov 2021, 15:28
Re: Modbus and Siemens Sinamics Communication
See if you can open the attach.
- Attachments
-
- _config.zip
- (5.98 KiB) Downloaded 419 times
Re: Modbus and Siemens Sinamics Communication
Hi,
I noticed that the field "Quantity of Registers" is empty for every action status register. Normally you should see an error message if you press save. Please add the missing field for each line and try again.
Nicolai
I noticed that the field "Quantity of Registers" is empty for every action status register. Normally you should see an error message if you press save. Please add the missing field for each line and try again.
Nicolai
-
- Posts: 12
- Joined: 18 Nov 2021, 15:28
Re: Modbus and Siemens Sinamics Communication
I add the missing fields but the issue keeps up.
Re: Modbus and Siemens Sinamics Communication
Did you a) saved the extended data, b) saved to startup config, c) reseted the driver and d) restarted the entiry revpi or at least the modbus daemon (sudo systemctl restart pimodbus-master)?
If yes to questions a-d: Please share the updatet config file.
Nicolai
If yes to questions a-d: Please share the updatet config file.
Nicolai
-
- Posts: 12
- Joined: 18 Nov 2021, 15:28
Re: Modbus and Siemens Sinamics Communication
Hi,
Here is the update config file.
Here is the update config file.
- Attachments
-
- config.zip
- (5.98 KiB) Downloaded 448 times
Re: Modbus and Siemens Sinamics Communication
Weird, your configuration is still missing the register count. Could you please test with a empty configuration and add the base device, modbus master and one action row only?
Which image version (cat /etc/revpi/image-version) do you use? Is the system up to date and all updates are applied (sudo apt update && sudo apt upgrade)?
Nicolai
Which image version (cat /etc/revpi/image-version) do you use? Is the system up to date and all updates are applied (sudo apt update && sudo apt upgrade)?
Nicolai
Re: Modbus and Siemens Sinamics Communication
Dear Nicolai,
I just wanted to confirm that this issue exists. I am also using a Modbus 150 RTU Master and somehow my config.rsc had everywhere missing RegisterQuantities. The field was simply erased although a 1 was displayed in Pictory beforehand. After reloading the Startup config into Pictory, also Pictory shows simply blank fields where the 1´s were before and immediately prints out the warnings. Interestingly, this was also true for 1´s in register address fields, not only the ones in the Register Quantities fields. Sounds like some sanity check mechanism that the file is being run through that sometimes removes all 1´s....
After adding all the 1s again to the config file and saving/resetting driver/restarting Modbus service, everything works as expected and data can be read out.
Cheers,
Nils
I just wanted to confirm that this issue exists. I am also using a Modbus 150 RTU Master and somehow my config.rsc had everywhere missing RegisterQuantities. The field was simply erased although a 1 was displayed in Pictory beforehand. After reloading the Startup config into Pictory, also Pictory shows simply blank fields where the 1´s were before and immediately prints out the warnings. Interestingly, this was also true for 1´s in register address fields, not only the ones in the Register Quantities fields. Sounds like some sanity check mechanism that the file is being run through that sometimes removes all 1´s....
After adding all the 1s again to the config file and saving/resetting driver/restarting Modbus service, everything works as expected and data can be read out.
Cheers,
Nils
Re: Modbus and Siemens Sinamics Communication
Hi Nils,
please see my questions above. Without any details I can't try to reproduce the erorr.
Nicolai
please see my questions above. Without any details I can't try to reproduce the erorr.
Nicolai
Re: Modbus and Siemens Sinamics Communication
Dear Nicolai,
The command specified in your comment above doesn´t yield any result. There is no such file.
Instead I´ve tried:
# cat /etc/revpi/image-release:
2021-07-01-revpi-buster.img
The system is fully updated.
I could also not reliably reproduce the issue. But it happened to me multiple times by now trying different Pictory configurations. I think it happens when a blank configuration is chosen, then a ModBus Master is added (I´ve had it with the normal and the 150 RTU master) and some variables are renamed and afterwards actions for these variables specified. I think either while saving the config file or upon resetting the driver something goes wrong and removes all '1' from the file. Not only from register quantities, but also addresses. Since they are missing in the file itself, it might also be the save option with some sanitization steps in there?
Cheers,
Nils
The command specified in your comment above doesn´t yield any result. There is no such file.
Instead I´ve tried:
# cat /etc/revpi/image-release:
2021-07-01-revpi-buster.img
The system is fully updated.
I could also not reliably reproduce the issue. But it happened to me multiple times by now trying different Pictory configurations. I think it happens when a blank configuration is chosen, then a ModBus Master is added (I´ve had it with the normal and the 150 RTU master) and some variables are renamed and afterwards actions for these variables specified. I think either while saving the config file or upon resetting the driver something goes wrong and removes all '1' from the file. Not only from register quantities, but also addresses. Since they are missing in the file itself, it might also be the save option with some sanitization steps in there?
Cheers,
Nils
Re: Modbus and Siemens Sinamics Communication
Thanks for the update. I will try to reproduce this in our lab.
Nicolai
Nicolai