97
MG.10.J8.02 – VLT is a registered Danfoss trade mark
Programmable SyncPos motion controller
Input/Output Commands (I/O)
Commands for setting and re-setting the outputs,
reading the inputs, reading movement information,
reading system data and entering and outputting
user information.
APOS reads actual position
AXEND reads info on status of program
execution
CPOS reads set position
MAPOS queries actual position of the
master
MIPOS queries last index or marker
position of the master
IPOS queries last index or marker
position of the slave
MAVEL queries actual velocity of the
master
AVEL queries actual velocity of an
axis
TRACKERR queries actual position error of
the axis
SYNCERR queries actual synchronization
error of the slave
ER R NO reads error number
I N reads input bit-by-bit (individually)
IN B reads input by bytes (units of 8)
INAD reads analog input
INKEY reads key codes of VLT
OUT sets output bit-by-bit (single)
OUTAN sets VLT reference
OUTB sets output by bytes (units of 8)
OUTDA sets analog output (freely available)
PID completes PID calculation
PRINT output (display) texts and
variables
STAT reads axis status
TESTSETP Specify recording data for test run
TESTSTART Start the recording of a test run
TIME reads internal controller time
_GETVEL changes sample time for AVEL
and MAVEL
Interrupt Functions (INT)
DISABLE … switches interrupt … off
DISABLE ALL switch off all interrupts except
ON ERROR
ENABLE … switches interrupt … on
ENABLE ALL switches all interrupts on
ON APOS .. GOSUB
call up a subprogram when the
slave position xxx is passed.
ON DELETE .. GOSUB
Deletes a position-interrupt: ON
APOS, ON MCPOS or ON MAPOS
ON COMBIT .. GOSUB
call up a subprogram when Bit n of
the communication buffer is set
ON ERROR GOSUB
calls subroutine in the event of
an error
ON IN .. GOSUB calls subroutine depending on
input signal
ON MAPOS .. GOSUB
call up a subprogram when the
master position xxx (qc) is
passed.
ON MCPOS .. GOSUB
call up a subprogram when the
master position xxx (MU) is
passed.
ON PARAM .. GOSUB
call up a subprogram when a
parameter is altered
ON PERIOD .. GOSUB
calls subroutine at regular intervals
ON STATBIT call up a subprogram when bit n
of the VLT status is set
ON TIME calls subroutine after single
timing
Software Reference