Download Print this page

Danfoss MCO 305 Design Manual page 169

Hide thumbs Also See for MCO 305:

Advertisement

MCO 305 Design Guide
TESTSTART
Summary
Syntax
Parameter
Description
Command Group
Cross References
Syntax Example
Syntax Example
TIME
Summary
Syntax
Return Value
Description
Command Group
Syntax Example
Program Sample
__ Software Reference __
Start the recording of a test run.
TESTSTART no
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.
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
Speed, Acceleration and Current available for this.
I/O
TESTSETP, Testrun, Display Recording
SYNCP
// Synchronization of the position
WAITI 1 ON
// When the key is pressed
TESTSTART 200
// Start recording (200 measurements)
NOWAIT ON
// Do not wait until the position is reached
VEL 50
POSA 100000
// Start positioning with velocity 50%
WHILE (APOS<50000) DO
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
Reads system-time
res = TIME
res = system-time in milliseconds after switching on
NB!:
Please note that after counting up to MLONG the value will change to
–MLONG.
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.
I/O
PRINT TIME
/* print current system-time */
timestop1 = TIME
/* store current system-time */
ACC_01.M, DELAY_01.M, EXIT_01.M, GOSUB_01.M
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark
Display recording . There are four graphics: Position,
// Wait until position 50000 is reached
169

Advertisement

loading