EasyManuals Logo

Danfoss VLT5000 SyncPos User Manual

Danfoss VLT5000 SyncPos
236 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #117 background imageLoading...
Page #117 background image
Programmable SyncPos motion controller
MG.10.J8.02 – VLT is a registered Danfoss trade mark
116
Software Reference
IF ..THEN .., ELSEIF .. THEN .. ELSE .. ENDIF
Conditional program branching can be realized
with the IF..ENDIF construction.
When the conditions following IF or ELSEIF are
fulfilled, then the commands leading to the next
ELSEIF, ELSE or ENDIF are carried out – and the
program will be continued after the ENDIF in-
struction.
When the conditions are not fulfilled, then the
following ELSEIF branching will be checked and,
in as much as the conditions are fulfilled, the
corresponding program part will be carried out,
and the program continued after ENDIF.
The branching conditions that are checked after IF
or ELSEIF can be made up of one or more com-
parison operations.
Any number of ELSEIF branching can occur within
an IF...ENDIF construction – however, only one ELSE
instruction should be available. Following the ELSE
instruction is a program part that must be carried
out, in as much as none of the conditions are
fulfilled.
The ELSEIF and ELSE instructions can, but do not
have to be, contained within an IF ENDIF
construction.
Summary
Conditional single or multiple program branching.
(When the conditions are fulfilled, then
......
......
..., else
......
......
...)
Syntax
IF condition THEN command
ELSEIF condition THEN command
ELSE command
ENDIF
Parameter
condition = Branching criteria
command = one or mor program commands
NB!
After a condition has been fulfilled, the
appropriate program part will be carried out
and the program following the ENDIF instruction
continued. Further conditions will no longer be
checked.
Command group
CON
Cross Index
REPEAT
.. ..
.. ..
.. UNTIL, WHILE ..ENDWHILE
Syntax-Example
/* simple branch */
IF (a == 1) THEN /* Variable a = 1, then */
command line 1
command line n
ENDIF
/* multiple branch */
IF (a == 1 AND b != 1) THEN
command lines
ELSEIF (a == 2 AND b != 1) THEN
command lines
ELSEIF (a == 3) THEN
command lines
ELSE
command lines
ENDIF
Program sample
IF_01.M; ERROR_01.M, EXIT_01.M, HOME_01.M,
IN_01.M,

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Danfoss VLT5000 SyncPos and is the answer not in the manual?

Danfoss VLT5000 SyncPos Specifications

General IconGeneral
CategoryController
Frequency50/60 Hz
SeriesVLT5000
Control MethodVector control
CommunicationCANopen
Enclosure RatingIP20
Storage Temperature-25°C to 70°C
AltitudeUp to 1000m above sea level
Humidity5% to 95% (non-condensing)

Related product manuals