123
MG.10.J4.02 – VLT is a registered Danfoss trade mark
VLT
®
5000 SyncPos option
■■
■■
■ #DEBUG
The #DEBUG instruction is not a genuine com
-
mand, but a command for the translation program,
which translates an MPL program into command
codes for the VLT with the SyncPos option. This is
called a Compiler Directive.
Via the instruction #DEBUG OFF, the instructions
in a step-by-step program will be carried out with-
out interruption until the instruction #DEBUG ON
is detected.
It is thus possible to simplify and accelerate the
program test via the #DEBUG instruction, as it
excludes program parts or loops which are known
to be error free, as well as any other program part,
from step-by-step command processing.
Because the #DEBUG instruction has no influence
on the normal program execution, it is not neces-
sary to remove it after a program test.
Summary
Step-by-step command processing possible /
impossible
Syntax
#DEBUG s
Parameter
s = condition
ON single step possible; the system stops
after each program line
OFF single step not possible; the program is
run through until the next DEBUG ON
NOSTOP
The system is not stopped, but internal
break commands update the line
number when the program is executed
incrementally with "DEVELOPMENT" →
"SINGLESTEP F9".
The line numbers generated in this way
can then be laid on a VLT parameter
795-799 with LINKSYSVAR and
observed on the LCP display.
NB!
#DEBUG instructions are only of use in the
step-by-step program processing – they are
otherwise ignored.
Command group
CON
Cross Index
Look up user Interface: "DEVELOPMENT" →
"EXECUTE" → "SINGLE STEP"
Syntax-Example
#DEBUG OFF
/* no step-by-step command procedure */
command line 1
command line n
#DEBUG ON
/* step-by-step command procedure possible */
Software Reference