Programmable SyncPos motion controller
MG.10.J8.02 – VLT is a registered Danfoss trade mark
96
■■
■■
■ Software Reference
■■
■■
■ List of Commands
Initialization of the SyncPos option (INI)
Commands to initialize the axis and the SyncPos
option start up and define the zero point(s)
DEFMORIGIN set the current master position
as the zero point for the master
DEF ORIGIN sets the actual position as real
zero point
DELETE ARRAYS delete all arrays in the RAM
ERRCLR clears error
HOME moves to machine zero point
INDEX moves to next index position
MOTOR OFF turns off motor control
MOTOR ON turns on motor control
RST ORIGIN resets temporary zero point
SETMORIGIN set the current position as the
zero point for the master
SET ORIGIN sets temporary zero point
SAVE ARRAYS save arrays in the EEPROM
SAVE AXPARS save current axis parameters in
the EEPROM
SAVE GLBPARS save current global parameters
in the EEPROM
SAVEPROM saves memory in EEPROM
SWAPMENC Swap master and slave encoder
internally.
Control Commands (CON)
Commands for controlling the program flow and
structuring the programs.
DELAY time delay
DIM declaration of a global array
EXIT desired, premature program
termination
GOSUB calling up a subroutine
GOTO jumping within a program
IF THEN conditional program execution
... ELSE IF THEN .. with conditional alternative
branching
... ELSE .. with alternative branching
... ENDIF end of the conditional program
execution
LOOP repeats loop
CONTINUE continues positioning from point
of interruption, for example follo-
wing a motor-stop
MOTOR STOP motor-stop with a programmed
delay (with ramp)
NOWAIT ON/OFF on/off switch for waiting for the
command execution
REPEAT beginning of repeat loop
REPEAT... UNTIL conditional loop, with an end
criteria
SUBMAINPROG commencement of the subrou-
tine definition area
... ENDPROG end of the subroutine definition
area
SUBPROG begins a subroutine
... RETURN ends a subroutine
SYSVAR system variable (pseudo array)
reads system values
WAITAX waits until target position is reached
WAITI waits for input
WAITNDX waits until the next index position
is reached
WAITP waits until a certain position is
reached
WAITT time delay in milliseconds
WHILE … DO conditional loop with commence-
ment criteria
… ENDWHILE end of the loop
#INCLUDE compiler directive: embedding
further data
Absolute Motion (ABS)
Commands for the absolute positioning of the axis
ACC sets acceleration
DEC sets deceleration
POSA positions axis absolutely
V E L sets velocity for relative and
absolute motions and set maximum
allowed velocity for synchronizing
Speed Control (ROT)
Commands to obtain a permanently driving axis
with constant speed
CSTART starts the continuous movement
in rpm mode
CSTOP stops the drive in speed mode
CVEL sets the velocity for speed
regulation
Software Reference