Modbus and Siemens Sinamics Communication

Topics about the Software of Revolution Pi
joao.pires
Posts: 12
Joined: 18 Nov 2021, 15:28

Re: Modbus and Siemens Sinamics Communication

Post by joao.pires »

See if you can open the attach.
Attachments
_config.zip
(5.98 KiB) Downloaded 419 times
User avatar
nicolaiB
KUNBUS
Posts: 931
Joined: 21 Jun 2018, 10:33
Location: Berlin
Contact:

Re: Modbus and Siemens Sinamics Communication

Post by nicolaiB »

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
joao.pires
Posts: 12
Joined: 18 Nov 2021, 15:28

Re: Modbus and Siemens Sinamics Communication

Post by joao.pires »

I add the missing fields but the issue keeps up.
MicrosoftTeams-image (1).png
MicrosoftTeams-image (1).png (147.52 KiB) Viewed 4973 times
User avatar
nicolaiB
KUNBUS
Posts: 931
Joined: 21 Jun 2018, 10:33
Location: Berlin
Contact:

Re: Modbus and Siemens Sinamics Communication

Post by nicolaiB »

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
joao.pires
Posts: 12
Joined: 18 Nov 2021, 15:28

Re: Modbus and Siemens Sinamics Communication

Post by joao.pires »

Hi,
Here is the update config file.
Attachments
config.zip
(5.98 KiB) Downloaded 448 times
User avatar
nicolaiB
KUNBUS
Posts: 931
Joined: 21 Jun 2018, 10:33
Location: Berlin
Contact:

Re: Modbus and Siemens Sinamics Communication

Post by nicolaiB »

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
Nils
Posts: 15
Joined: 01 Jan 2022, 21:09

Re: Modbus and Siemens Sinamics Communication

Post by Nils »

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
User avatar
nicolaiB
KUNBUS
Posts: 931
Joined: 21 Jun 2018, 10:33
Location: Berlin
Contact:

Re: Modbus and Siemens Sinamics Communication

Post by nicolaiB »

Hi Nils,

please see my questions above. Without any details I can't try to reproduce the erorr.

Nicolai
Nils
Posts: 15
Joined: 01 Jan 2022, 21:09

Re: Modbus and Siemens Sinamics Communication

Post by Nils »

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
User avatar
nicolaiB
KUNBUS
Posts: 931
Joined: 21 Jun 2018, 10:33
Location: Berlin
Contact:

Re: Modbus and Siemens Sinamics Communication

Post by nicolaiB »

Thanks for the update. I will try to reproduce this in our lab.

Nicolai
Post Reply