Danfoss VLT5000 SyncPos Operating Instructions Manual page 134

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

Advertisement

■ ■ ■ ■ ■ ON PARAM .. GOSUB
The instruction ON PARAM can be used to respond
when parameters are altered via the VLT display and
to call up a subprogram.
Summary
Call up a subprogram when a parameter is altered.
Syntax
ON PARAM n GOSUB name
Parameter
n =
701 ... 779
name =subroutine name
Priority
If, during an interrupt subroutine, the same interrupt
occurs (exception: error interrupt), then it will be
ignored and thus lost.
Peculiarities
The subroutine to be called up must be defined
within the SUBMAINPROG and ENDPROG identified
program.
A maximum of 10 ON PARAM functions are possible.
NB!
During the execution of a subroutine called
by an interrupt NOWAIT is automatically set to
ON.
Command group
INT
Cross Index
SUBPROG...RETURN
Syntax-Sample
LINKAXPAR POSERR 712 „position error" 300 5000
0
ON PARAM 712 GOSUB poserr
// when position error is changed
SUBMAINPROG
SUBPROG poserr
PRINT „New position error:
RETURN
MG.10.J8.02 – VLT is a registered Danfoss trade mark
■ ■ ■ ■ ■ ON PERIOD
„, GET POSERR
Programmable SyncPos motion controller
With ON PERIOD it is possible to call up a subpro-
gram at regular intervals (time triggered). ON
PERIOD works like an interrupt. It is checked every
20 ms.
Summary
calls up a subroutine at regular intervals
Syntax
ON PERIOD n GOSUB name
Parameter
n > 20 ms = time in ms, after which the subroutine
is called up again
n = 0
= switch off the function
NB!
The precision with which the time is kept
depends on the remaining program. Typically
the precision is ±1 ms.
Peculiarities
The subroutine to be called up must be defined
within the SUBMAINPROG and ENDPROG identified
program.
NB!
During the execution of an ON PERIOD sub-
routine NOWAIT is set to ON.
Command group
I NT
Cross Index
ON TIME, GOSUB
133

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents