Download Print this page

Danfoss MCO 305 Design Manual page 114

Hide thumbs Also See for MCO 305:

Advertisement

MCO 305 Design Guide
GETVLTSUB
Summary
Syntax
Parameter
Return Value
Description
Command Group
Cross Index
Syntax Example
GOSUB
Summary
Syntax
Parameter
Description
Command Group
Cross Index
Syntax Example
Program Sample
114
__ Software Reference __
Reads a VLT parameter with index number
res = GETVLTSUB par indxno
par
= parameter number
indxno = index number
res = parameter value
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.
PAR
SETVLTSUB
PRINT GETVLTSUB 540 0
// reads index 01 of the parameter 5-40 "Function Relay"
Calls a subroutine
GOSUB name
name = subroutine name
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.
CON
SUBMAINPROG .. ENDPROG, SUBPROG .. RETURN, ON ERROR GOSUB .., ON INT n
GOSUB
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
GOSUB_01.M, AXEND_01.M, INCL_01.M, STAT_01.M
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark

Advertisement

loading