
MCO 305 Design Guide
__ Software Reference __
168
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
TESTSETP
Summary
Specify recording data for test run
Syntax
TESTSETP ms vi1 vi2 vi3
arrayname
Parameter
ms
= interval in milliseconds between two measurements
vi 1–3
= indices of the three values to be recorded. The agreements for the
system array apply. Three values are always recorded.
array name
= Name of the array used for the recording
Array Format
The values are stored as follows within the array (all values 4 Byte):
Designation Content Meaning
version
000
Version of the data structure
ms
1
Interval between two measurements in ms
vi1
i
Value, recorded at point 1 (Index)
vi2
i
Value, recorded at point 2 (Index)
vi3
i
Value, recorded at point 3 (Index)
number
nn
Specifies how many measurements follow
data …
Measurement
data
… …
(total
nn*3)
number
0-mm
Number of measurements (if others are present)
data …
(see
above)
Please make sure that the size of the array is sufficient for the recording. You need
6 elements for the header, 1 element for the number, and 3 elements for each
measurement. Thus for 100 measurements you need 307 elements.
Description
The menu
Testrun
can be used to trigger a test run which records desired and
current position, speed, acceleration and current and whose result can be seen in
the test run graphic.
With the two commands TESTSETP and TESTSTART you can record other or
additional parameters, for example the master position. And, in contrast to a test
run, you can record this data while executing the program.
With TESTSETP you determine the parameters of the recording (which parameters
are to be recorded, how often and in which array) and with TESTSTART you then
start recording.
Command Group
I/O
Cross References
TESTSTART, DIM, SYSVAR, Testrun, Display Recording
Syntax Example
DIM tstfahrtarray[307]
// Array with 307 elements
TESTSETP 3 0X1001 0X1009 0X1005 tstrunarray
// Record current position, current position of the master
// and current tolerated position error
... Start positioning run ...
TESTSTART 100
// Start recording
Summary of Contents for MCO 305
Page 4: ......