Danfoss VLT5000 SyncPos Operating Instructions Manual page 123

Motion controller for danfoss vlt5000 series; danfoss vlt 5000flux series
Table of Contents

Advertisement

Syntax-Example
LINKGPAR I_ERRCLR 710 " " 0 33 0
/* Predefined global parameter */
LINKGPAR 132 711 "name" 0 100000 0
/* Free internal user parameter */
LINKGPAR PRGPAR 701 "auto-program" –1 10 0
/* Define autostart */
■ ■ ■ ■ ■ LINKSYSVAR
The command LINKSYSVAR links the system
variable SYSVAR[indx] with the VLT Parameter vltno
(795-799) and the display text 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 VLT
parameter 795. Then you can selectively observe
the program execution.
Summary
Link system variable with LCP display
Syntax
LINKSYSVAR indx vltno "text"
Parameter
indx = Index of the system variable SYSVAR
vltno = LCP-Parameter number (795...799)
text
= descriptive text for display
NB!
If the value of the parameter is out of the
range defined by the min and max value the
command is not displayed and executed correct.
NB!
The parameter vltnr is updated every 40 ms.
Therefore, if five parameters are linked in this
way, it takes at least 200 ms until the same parame-
ter is updated.
Command group
PAR
Cross Index
LINKGPAR, SYSVAR
User parameter, Parameter Reference
Syntax-Example
LINKSYSVAR 33 795 "internal line number"
LINKSYSVAR 30 796 "Motor voltage"
// Determine with user parameter 11 and 12:
// line number in the first display line and
// motor voltage in the second display line
122
Programmable SyncPos motion controller
■ ■ ■ ■ ■ LOOP
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.
Summary
Defined loop repetition
Syntax
LOOP n label
Parameter
n
= number of loop repetitions
label = identification of target program position
NB!
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
MG. 1 0.J8.02 – VLT is a registered Danfoss trade mark

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents