
MCO 305 Design Guide
__ Software Reference __
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
151
STAT
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 5
1 = Start 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.
Description
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.
Command Group
I/O
Cross Index
AXEND
Syntax Example
PRINT STAT
/* print status word */
Program Sample
STAT_01.M
Содержание MCO 305
Страница 4: ......