VLT
®
5000 SyncPos option
MG.10.J4.02 – VLT is a registered Danfoss trade mark
108
Software Reference
■■
■■
■ SETVLT
With the SETVLT command VLT parameters can be
changed temporarily and thus the configuration of
the VLT can also be changed temporarily.
Since only integer values can be transmitted the
parameter value to be transmitted must be adjus-
ted with the associated conversion index.
A list of the VLT parameters with the corresponding
conversion index can be found in the VLT5000
manual.
Summary
sets a VLT parameter
Syntax
SETVLT par v
Parameter
par = Parameter number
v = Parameter value
NB!
The parameter alterations are only stored in
RAM. After power down the original parame-
ter values are restored.
Command group
PAR
Cross Index
GETVLT
Syntax-Example
/* change parameter 202 "maximum reference"
high to 60 Hz */
–Conversion index = –3 (Multiplied with 10
3
during
transmission)
SETVLT 202 60000
■■
■■
■ STAT
The STAT command reports the actual status of the
axis control unit as well as that of the axis. For
example, whether the axis controller shuts down,
ends the motion or the end switch is active. The
status of the program execution cannot be called
up with STAT, but only with AXEND.
The status consists of a total of four bytes.
Summary
Query axis and control status
Syntax
res = STAT
Return value
res = Axis- and Control status (4-Byte value):
Byte 3 MSB
Bit 0 1 = MOVING
Bit 1 1 = OVERFLOW Slave Encoder
Bit 2 1 = OVERFLOW Master Encoder
Bit 3 1 = POSFLOAT active *)
Byte 2 Status byte of axis control
Bit 7 1 = axis control switched off
Bit 2 1 = position reached
Bit 0,1,3-6 has no meaning
Byte 1 not used
Byte 0 LSB
Bit 7 1 = limit switch active
Bit 6 1 = Reference switch active
Bit 2 1 = axis control switched off
Bit 0,1,3,4 not in use
*) Explanation: i.e. the axis is within the tolerance
range of the control window REGWINMAX /
REGWINMIN. As soon as the control window is
set, the axis controller is switched on again.
Command group
I/O
Cross Index
AXEND
Syntax-Example
PRINT STAT /* print status word */
Program sample
STAT_01.M