EasyManua.ls Logo

Danfoss VLT5000 SyncPos - Page 134

Danfoss VLT5000 SyncPos
236 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
133
MG.10.J8.02 – VLT is a registered Danfoss trade mark
Programmable SyncPos motion controller
Software Reference
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: „, GET POSERR
RETURN
ON PERIOD
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
INT
Cross Index
ON TIME, GOSUB

Table of Contents

Related product manuals