Download Print this page

Danfoss MCO 305 Design Manual page 112

Hide thumbs Also See for MCO 305:

Advertisement

MCO 305 Design Guide
ERRNO
Summary
Syntax
Description
Portability
Command Group
Cross Index
Syntax Example
Program Sample
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 Sample
EXIT_01.M, ERROR_01.M
112
__ Software Reference __
System variable with the actual error code
res = ERRNO
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.
Standard variable
I/O
ON ERROR GOSUB, ERRCLR,
Warnings and Error Messages
PRINT ERRNO
/* display actual error code */
ERROR_01.M, IF_01.M, INDEX_01.M
/* Program termination */
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark

Advertisement

loading