Register on Extended Data, limit on Modbus RTU Master

Topics about the Software of Revolution Pi
Frank
Posts: 65
Joined: 09 Jan 2017, 10:46
Answers: 0

Re: Register on Extended Data, limit on Modbus RTU Master

Post by Frank »

Hello Chris,

please ignore the last problems my colleague Amar encountered yesterday. This was due to something I didn't inform him about - it was totally my fault.
We found out what prevented him to correctly load your _config.rsc

Regards,
Frank
Amar
KUNBUS
Posts: 157
Joined: 15 Jul 2019, 12:58
Answers: 4

Re: Register on Extended Data, limit on Modbus RTU Master

Post by Amar »

Hi Chris,
Please check For piModbusMaster logs in file var/log/daemon.log

You may get certain errors.
Jun 16 15:19:41 RevPi17643 piModbusMaster[2109]: modbus rtu action device: /dev/ttyRS485, slave address: 14 function: 0x05, address: 1 failed -1/110/-112345568

If there is a timeout on any action ID the following actions will not be executed.If your all action ids are error free then you could read variables even for more than 32 actions.
Regards,
Amar
KUNBUS
ChrisDeveloper
Posts: 27
Joined: 03 Mar 2020, 00:58
Answers: 0

Re: Register on Extended Data, limit on Modbus RTU Master

Post by ChrisDeveloper »

Hi Amar,

`tail -f /var/log/daemon.log` was a really useful command, it helped me fix a few unrelated issues.

Unfortunately this didn't show any errors coming from the extra registers beyond row 32 (I have no time out errors now ).

Is there anything else I can do?

Kind regards,
Chris
Amar
KUNBUS
Posts: 157
Joined: 15 Jul 2019, 12:58
Answers: 4

Re: Register on Extended Data, limit on Modbus RTU Master

Post by Amar »

Hi Chris,
You can test the Pictory config.rsc with ModRSsim2 and look out for possible errors from any action IDs by checking out the logs.
Regards,
Amar
KUNBUS
ChrisDeveloper
Posts: 27
Joined: 03 Mar 2020, 00:58
Answers: 0

Re: Register on Extended Data, limit on Modbus RTU Master

Post by ChrisDeveloper »

Hi Amar,

I have already tested using a real modbus network, the logs (tail -f /var/log/daemon.log) show no timeout errors.

Would it be possible to setup a team viewer to investigate?

Kind regards,
Chris
User avatar
dirk
KUNBUS
Posts: 1926
Joined: 15 Dec 2016, 13:19
Answers: 4

Re: Register on Extended Data, limit on Modbus RTU Master

Post by dirk »

Hi would you be so kind to give us the following infomation:
  • the compressed "/var/www" folder
  • output of "uname -a" which is the kernel version
Yes, we can organize a remote meeting with TeamViewer or with MS-Teams.
How about Monday at 13:30 CEST?
ChrisDeveloper
Posts: 27
Joined: 03 Mar 2020, 00:58
Answers: 0

Re: Register on Extended Data, limit on Modbus RTU Master

Post by ChrisDeveloper »

Hi Dirk,

Thank you for your response.

Sure, Monday 13:30 CEST / Sunday 21:30 AEST works for me.

Output of uname -a is:
Linux RevPi37288 4.9.76-rt60-v7+ #1 SMP PREEMPT RT Fri, 28 Feb 2020 15:17:03 +0100 armv7l GNU/Linux

Where do I send the www files?

Kind Regards,
Chris
User avatar
dirk
KUNBUS
Posts: 1926
Joined: 15 Dec 2016, 13:19
Answers: 4

Re: Register on Extended Data, limit on Modbus RTU Master

Post by dirk »

Hi this sounds good. You can send the files to support@kunbus.com.
See you moday.
Amar
KUNBUS
Posts: 157
Joined: 15 Jul 2019, 12:58
Answers: 4

Re: Register on Extended Data, limit on Modbus RTU Master

Post by Amar »

Hi Chris,
Thank you for your previous telephone call and for sending www directory.I could reproduce the problem for more than 32 actions at your side.An new ModbusRTUMaster_20180406_1_2.rap for maximum 64 actions and a new _config.rsc for that is attached in zip file ModbusActionsMax64.zip.I could work with more than 32 action with these files.

Steps:
1) backup files
/var/www/pictory/resources/data/rap/ModbusRTUMaster_20180406_1_2.rap
/var/www/pictory/projects/_config.rsc

2) Replace ModbusRTUMaster_20180406_1_2.rap and _config.rsc with the one in ModbusActionsMax64.zip archive

3) Make sure that your browser cache has been cleared!

4) Reload pictory configuration and the new extended data would look as following:
config.png
config.png (71.62 KiB) Viewed 5651 times
5) Modify Modbus comm settings if you have other setting: Kept at default 19200 8 E 1

6) Test the modbus actions.Correct any action id errors if occured with your actual setup.

7) Once it works at your side you can rename the default name registers according to your project.

Attachment:
ModbusActionsMax64.zip
(9.39 KiB) Downloaded 411 times
Please leave a short feedback if it works on step 6.
Regards,
Amar
KUNBUS
User avatar
dirk
KUNBUS
Posts: 1926
Joined: 15 Dec 2016, 13:19
Answers: 4

Re: Register on Extended Data, limit on Modbus RTU Master

Post by dirk »

Hi Chris, how is it going? We would like to hear your precious feedback.
Post Reply