Download Print this page

Danfoss MCO 305 Design Manual page 123

Hide thumbs Also See for MCO 305:

Advertisement

MCO 305 Design Guide
LINKSYSVAR
Summary
Syntax
Parameter
Description
Command Group
Cross Index
Syntax Examples
LOOP
Summary
Syntax
Parameter
Description
Command Group
Cross Index
Syntax Example
Program Sample
__ Software Reference __
Link system variable with LCP display
LINKSYSVAR indx parno "text"
indx
= Index of the system variable SYSVAR
parno
= LCP-Parameter number 19-00 to 19-99
text
= descriptive text for display
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.
PAR
LINKGPAR, SYSVAR, Application parameter, Parameter Reference
LINKSYSVAR 33 19-90 "internal line number"
LINKSYSVAR 30 19-91 "Motor voltage"
Defined loop repetition
LOOP n label
n = number of loop repetitions
label = identification of target program position
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).
CON
GOTO, WHILE . . ENDWHILE, REPEAT .. UNTIL
next_in:
/* jump to label */
command line 1
command line n
LOOP 9 next_in
/* repeat loop contents 10 times */
LOOP_01.M, APOS_01.M, IN_01.M, MOTOR_01.M, NOWAI_01.M
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark
123

Advertisement

loading