
MCO 305 Design Guide
__ Software Reference __
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
169
TESTSTART
Summary
Start the recording of a test run.
Syntax
TESTSTART no
Parameter
no = number of measurements to be carried out
If an array does not have sufficient space for no. measurements, the error
Error 171 "Array too small" is triggered.
Description
This command is used to start the recording of a test run with the contents as
defined in TESTSETP. The recorded data can then – as required – be graphically
represented using
Testrun
o
Display recording
. There are four graphics: Position,
Speed, Acceleration and Current available for this.
Command Group
I/O
Cross References
TESTSETP, Testrun, Display Recording
Syntax Example
SYNCP
// Synchronization of the position
WAITI 1 ON
// When the key is pressed
TESTSTART 200
// Start recording (200 measurements)
Syntax Example
NOWAIT ON
// Do not wait until the position is reached
VEL 50
POSA 100000
// Start positioning with velocity 50%
WHILE (APOS<50000) DO
// Wait until position 50000 is reached
ENDWHILE
VEL 100
// Increase velocity to 100%
TESTSTART 200
// Start recording (200 measurements)
DELAY 20
// Wait 20 ms
POSA 100000
// Start positioning with new velocity
NOWAIT OFF
// Wait until positioning is finished
TIME
Summary
Reads system-time
Syntax
res = TIME
Return Value
res = system-time in milliseconds after switching on
NB!:
Please note that after counting up to MLONG the value will change to
–MLONG.
Description
The internal system-time can be read out using the TIME command. The TIME
command is most suitable for calculating the execution time of a command
sequence or device cycle time.
Command Group
I/O
Syntax Example
PRINT TIME
/* print current system-time */
timestop1 = TIME
/* store current system-time */
Program Sample
ACC_01.M, DELAY_01.M, EXIT_01.M, GOSUB_01.M
Summary of Contents for MCO 305
Page 4: ......