Danfoss VLT 5000 Series Manual page 90

Synchronizing and positioning option onizing and positioning option
Hide thumbs Also See for VLT 5000 Series:
Table of Contents

Advertisement

I I I I I 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 va-
riable 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
90
VLT
®
5000 SyncPos option
I I I I I MAPOS
With the MAPOS command it is possible to query
the actual master position (absolute to the actual
zero position).
Summary
Queries current actual position of the master
Syntax
res = MAPOS
Return value
res = master position to absolute actual zero point
in qc
Command group
I/O
Cross Index
CPOS, DEF ORIGIN, SET ORIGIN, POSA, POSR
Parameter: POSFACT_N (26), POSFACT_Z (23)
Syntax-Example
PRINT MAPOS
/* queries actual master position and print to PC */
MG.10.J4.02 – VLT is a registered Danfoss trade mark

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents