6.5.4.4 MC_ReadStatus_ISD51x
This function block returns the detailed status of the state
diagram (see Illustration 6.18) of the selected axis.
The output data is available immediately.
MC_ReadStatus_ISD51x
EnableBOOL
Axis
AXIS_REF_-
ISD51x
BOOLValid
BOOLBusy
DD_ERROR_ISD51xErrorInfo
BOOL
BOOL
BOOL
ErrorStop
Disabled
BOOLStopping
BOOLHoming
BOOLStandstill
BOOLDiscreteMotion
BOOLContinuousMotion
BOOLSynchronizedMotion
Error
130BE299.10
Illustration 6.27 MC_ReadStatus_ISD51x
Variable
name
Data
type
Default
value
Description
VAR_IN_OUT
Axis AXIS_REF_ISD51x Reference to the axis.
See
chapter 6.5.4.1 AXIS_REF_IS
D51x.
VAR_INPUT
Enable BOOL FALSE Get the value of the
parameters continuously
while enabled.
VAR_OUTPUT
Valid BOOL The function block has a
valid set of outputs.
Busy BOOL The function block is not
nished and new output
values are to be expected.
Error BOOL An error has occurred
within the function block.
ErrorInfo DD_ERROR_ISD51x Error identication and
instance identier.
See chapter 6.5.2.3 Error
Indication.
ErrorStop BOOL TRUE if the axis is in state
ErrorStop.
Disabled BOOL TRUE if the axis is in state
Disabled.
Stopping BOOL TRUE if the axis is in state
Stopping.
Homing BOOL TRUE if the axis is in state
Homing.
Variable
name
Data
type
Default
value
Description
Standstill BOOL TRUE if the axis is in state
StandStill.
Discrete-
Motion
BOOL TRUE if the axis is in state
DiscreteMotion.
Continuous-
Motion
BOOL TRUE if the axis is in state
ContinuousMotion.
Synchronized-
Motion
BOOL TRUE if the axis is in state
SynchronizedMotion.
Table 6.5 MC_ReadStatus_ISD51x
6.5.4.5 MC_ReadAxisError_ISD51x
This function block presents general axis errors that are
unrelated to the function blocks (for example, overtem-
perature on the axis). The output AxisErrorID gives the last
error that occurred in the axis (see chapter 9.2.2 Error
Codes).
The output data must be read from the device and is
therefore not immediately available.
MC_ReadAxisError_ISD51x
Axis
EnableBOOL
AXIS_REF_-
ISD51x
BOOLValid
BOOLBusy
BOOL
DD_ERROR_-
ISD51x
ErrorInfo
WORD
AxisErrorID
Error
130BE292.10
Illustration 6.28 MC_ReadAxisError_ISD51x
Programming Programming Guide
MG36D102 Danfoss A/S © 01/2017 All rights reserved. 179
6
6