Danfoss VLT5000 SyncPos Operating Instructions Manual page 113

Motion controller for danfoss vlt5000 series; danfoss vlt 5000flux series
Table of Contents

Advertisement

■ ■ ■ ■ ■ E RR NO
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
Messages and Error Reference.
If, at the time of inquiry no error has occurred, then
ERRNO will contain a 0.
Summary
System variable with the actual error code
Syntax
res = ERRNO
Command group
I/O
Cross Index
ON ERROR GOSUB, ERRCLR
Messages and Error reference
Syntax-Example
PRINT ERRNO /* display actual error code */
Program sample
ERROR_01.M, IF_01.M, INDEX_01.M
■ ■ ■ ■ ■ EXIT
EXIT ends a program where active positioning pro-
cedures are being carried out to the end.
The EXIT command is especially intended for use in
an error treatment routine, and permits an unplan-
ned program termination in the case of an un-cor-
rectable error occurrence.
After an abort with EXIT, programs marked with
"AUTOSTART" will start up again automatically if
SET PRGPAR = –1.
Summary
Premature program termination
Syntax
EXIT
NB!
A program should only be terminated in the
case of a serious error, e.g. when reacting to
a limit switch.
Cross Index
ON ERROR GOSUB, SET PRGPAR, "AUTOSTART"
Syntax-Example
EXIT
/* Program termination */
Program sample
EXIT_01.M, ERROR_01.M, GSVEL_01.M
112
Programmable SyncPos motion controller
■ ■ ■ ■ ■ GET
Reads the value of an axis parameter, a global
parameter or an user parameter of the SyncPos
option.
Global and axis parameter are addressed with a
code, for example KPROP (11) for the Proportional
factor, , , , , KDER (12) for the Derivative Factor
factor
factor
factor
factor
POSERR (15) for the T T T T T olerated position error
olerated position error. A
olerated position error
olerated position error
olerated position error
complete list of the codes can be found in the
Parameter reference.
User parameter are addressed with a number, 130
– 229. See also the Parameter reference for
details.
Summary
Reads an axis parameter, a global parameter or an
user parameter
Syntax
res = GET par
Parameter
par = parameter identification
Return value
res = parameter value
Command group
PAR
Cross Index
SET, GETVLT, SETVLT, LINKGPAR, LINKAXPAR
Parameter reference
Syntax-Example
PRINT GET POSLI MIT
/* Print-out positive positioning limit */
posdiff = GET POSERR
/* Read actual setting tolerated position error */
Syntax-Example
PRINT GET I_B REAK /* reads input for abort */
Program sample
G ETP_01.M
MG. 1 0.J8.02 – VLT is a registered Danfoss trade mark
Proportional
Proportional
Proportional
Proportional
Derivative Factor or
Derivative Factor
Derivative Factor
Derivative Factor

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents