
MCO 305 Design Guide
__ Software Reference __
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
123
LINKSYSVAR
Summary
Link system variable with LCP display
Syntax
LINKSYSVAR indx parno "text"
Parameter
indx
= Index of the system variable SYSVAR
parno
= LCP-Parameter number 19-00 to 19-99
text
= descriptive text for display
Description
The command LINKSYSVAR links the system variable SYSVAR[indx] with the
FC 300 Parameter (19-00 to 19-99) and the display "text". This means that you
can link internal values on the display without using LINKGPAR.
If, for example, you are compiling with #DEBUG NOSTOP, link the internal line
number with the FC 300 parameter 19-90. Then you can selectively observe the
program execution.
NB!:
The parameter is updated every 40 ms. Therefore, if five parameters are linked in
this way, it takes at least 200 ms until the same parameter is updated.
Command Group
PAR
Cross Index
LINKGPAR, SYSVAR, Application parameter, Parameter Reference
Syntax Examples
LINKSYSVAR 33 19-90 "internal line number"
LINKSYSVAR 30 19-91 "Motor voltage"
LOOP
Summary
Defined loop repetition
Syntax
LOOP n label
Parameter
n = number of loop repetitions
label = identification of target program position
Description
A single or multiple repetition of a certain program part can be realized by using
the LOOP command. The number of loop repetitions can be given as either an
absolute value or in the form of a variable.
The program position to be jumped to is identified via a label. A label can be made
up of one or more characters, and must not be identical with a variable name or a
command word. A label must also be unique, i.e. the same label may not be used
more than once for different program positions.
The label on the target program position must be followed by a colon (:).
Because the internal loop counter monitors only at the end of the loop and then
decreases by one, the commands within the loop will be carried out with one more
sequence than keyed in (keyed in loop repetitions 10 = 11 real repetitions).
Command Group
CON
Cross Index
GOTO, WHILE . . ENDWHILE, REPEAT .. UNTIL
Syntax Example
next_in:
/* jump to label */
command line 1
command line n
LOOP 9 next_in
/* repeat loop contents 10 times */
Program Sample
LOOP_01.M, APOS_01.M, IN_01.M, MOTOR_01.M, NOWAI_01.M
Summary of Contents for MCO 305
Page 4: ......