Quicktip: Time measurement in ms with the MPR

Moderator: MVogt

Post Reply
User avatar
Theo_Gottwald
Posts: 367
Joined: 03. Oct 2009, 08:57
Location: Herrenstr.11 * 76706 Dettenheim
Contact:

Quicktip: Time measurement in ms with the MPR

Post by Theo_Gottwald » 04. May 2018, 10:53

You can use the MPR for other tasks except for automatic installations.
For example for automated test.

Yes, the MPR can start programs, perform operator actions on these programs,
Check the result and validate if, for example, the most important infrastructures are always available.

Within such tasks it makes sense, to measure the time. To see if everything works within the given time frame.
This is where our today's Quicktip starts. In this case, the MPR runs only in a loop from 0 -100
and then shows how many Miliseconds he needed to do so.

If you compile this as EXE it is 31 ms.
Of course, it takes a lot longer in the editor.

Code: Select all

' +++ zeitmessung.rem +++
' Zweck: 
' erstellt am: 05.11.2017
' von: Theo Gottwald
'========================
GTD\3|$$TIM
VAR\$$CNT=100
:lop
JIN\$$CNT<Lop
GTD\4|$$TIM|$$ERG
MBX\$$ERG in ms
@

Post Reply

Return to “Package Robot”

Who is online

Users browsing this forum: No registered users and 1 guest