Download Print this page

Danfoss MCO 305 Design Manual page 168

Hide thumbs Also See for MCO 305:

Advertisement

MCO 305 Design Guide
TESTSETP
Summary
Syntax
Parameter
Array Format
Description
Command Group
Cross References
Syntax Example
168
__ Software Reference __
Specify recording data for test run
TESTSETP ms vi1 vi2 vi3 arrayname
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
The values are stored as follows within the array (all values 4 Byte):
Designation
Content
version
000
ms
1
vi1
i
vi2
i
vi3
i
number
nn
data
...
...
...
number
0-mm
data
...
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.
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.
I/O
TESTSTART, DIM, SYSVAR, Testrun, Display Recording
DIM tstfahrtarray[307]
TESTSETP 3 0X1001 0X1009 0X1005 tstrunarray
// Record current position, current position of the master
// and current tolerated position error
... Start positioning run ...
TESTSTART 100
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark
Meaning
Version of the data structure
Interval between two measurements in ms
Value, recorded at point 1 (Index)
Value, recorded at point 2 (Index)
Value, recorded at point 3 (Index)
Specifies how many measurements follow
Measurement data
(total nn*3)
Number of measurements (if others are present)
(see above)
// Array with 307 elements
// Start recording

Advertisement

loading