Modbus RTU slow & high cpu load

Antworten
Tim
Beiträge: 2
Registriert: Samstag 25. April 2020, 08:53

Modbus RTU slow & high cpu load

Beitrag von Tim » Sonntag 16. Mai 2021, 11:38

Hello,

I use the latest version of profilab: version 12/05/2021

I noticed 2 strange behavoirs the new modbus client component, by use of the serial modbus RTU configuration.
My settings:
Baud:19200
Databite:8
Parity: EVEN
Stopbits:1
Checksum active, with no RTS or DTR activated.

- When I set the parameter "Pause after request" less then 120 ms, the block is giving communication error's.
This is quite long, when reading 10 values, you have a delay of 1200 ms.

- There is a issue when using the modbus client component.
To reproduce this bug:
1. Open taskmanager in windows and watch you CPU load from the profilab application.
2. Look at the CPU load from the profilab application.
3. Run the application
4. Wait for at least 5 seconds
5. Stop the application
6. Look at the CPU load from the profilab application.
7. Run the application
8. Wait for at least 5 seconds
9. Stop the application
10. Look at the CPU load from the profilab application.
11. Run the application
12. Wait for at least 5 seconds
13. Stop the application
14. Look at the CPU load from the profilab application.
15. Run the application
16. Wait for at least 5 seconds
17. Stop the application
18. Look at the CPU load from the profilab application.
19. You CPU is running now on 100% load, with no application running.

What am I doing wrong?

Here my small example whereI have this behavoir.
SineSimInterface.prj
(9.47 KiB) 156-mal heruntergeladen
My PC runs windows 7.

Antworten

Zurück zu „Thema Modbus“