
MCO 305 Design Guide
__ Software Reference __
112
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
ERRNO
Summary
System variable with the actual error code
Syntax
res = ERRNO
Description
ERRNO is a system variable which is available in all the programs, and contains the
momentary error code. All error codes are explained in the chapter
Troubleshooting.
If, at the time of inquiry no error has occurred, then ERRNO will contain a 0.
Portability
Standard
variable
Command Group
I/O
Cross Index
ON ERROR GOSUB, ERRCLR,
Warnings and Error Messages
Syntax Example
PRINT ERRNO
/* display actual error code */
Program Sample
ERROR_01.M, IF_01.M, INDEX_01.M
EXIT
Summary
Premature program termination
Syntax
EXIT
Description
The EXIT command ends a program where active positioning procedures are being
carried out to the end.
The EXIT command is especially intended for use in an error treatment routine, and
permits an unplanned program termination in the case of an un-correctable error
occurrence.
After an abort with EXIT, programs marked with
Autostart
will start up again
automatically if
SET PRGPAR = -1.
NB!:
A program should only be terminated in the case of a serious error, e.g. when
reacting to a limit switch.
Command Group
CON
Cross Index
ON ERROR GOSUB, SET,
Parameter: 33-80
Activated Program Number
PRGPAR, Autostart
Syntax Example
EXIT
/* Program termination */
Program Sample
EXIT_01.M,
ERROR_01.M
Summary of Contents for MCO 305
Page 4: ......