
MCO 305 Design Guide
__ Software Reference __
114
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
GETVLTSUB
Summary
Reads a VLT parameter with index number
Syntax
res = GETVLTSUB par indxno
Parameter
par
=
parameter
number
indxno = index number
Return Value
res = parameter value
Description
GETVLTSUB reads VLT parameters with index numbers, for example FC 300
parameter 5-40, and return the corresponding value.
Since only integer values are transmitted, it is necessary to take the conversion
index into consideration when evaluating the return value.
Thus an LCP value of 50.0 Hz (par. 16-13 conversion index = –1) is equivalent to a
return value of 500.
The list of FC 300 parameters with their respective conversion index can be found in
the FC 300 Operating Instructions.
Command Group
PAR
Cross Index
SETVLTSUB
Syntax Example
PRINT GETVLTSUB 540 0
// reads index 01 of the parameter 5-40 "Function Relay"
GOSUB
Summary
Calls a subroutine
Syntax
GOSUB
name
Parameter
name = subroutine name
Description
The GOSUB command will call up a subroutine, and the accompanying program will
be carried out.
The main program will be continued following the completion of the last subroutine
command (RETURN).
NB!:
The subroutine must be defined at the beginning or end of a program within the
SUBMAINPROG area.
Command Group
CON
Cross Index
SUBMAINPROG .. ENDPROG, SUBPROG .. RETURN, ON ERROR GOSUB .., ON INT n
GOSUB
Syntax Example
GOSUB testup
/* Call-up the subroutine testup */
Command
line
Command
line
SUBMAINPROG
/* Subroutine testup must be defined */
SUBPROG testup
Command line 1
Command line n
RETURN
ENDPROG
Program Sample
GOSUB_01.M,
AXEND_01.M, INCL_01.M, STAT_01.M
Summary of Contents for MCO 305
Page 4: ......