MC_ReadStatus

 

MC_ReadStatus - General Information

Overview

Type:

Function Block

Available as of:

1.0.5.0

Versions:

current version

Task

The state of the axis is to be read out.

Description

The state of the axis is determined and represented using BOOL signals.

Interface

Input

Data type

Description

Axis

SystemConfigurationItf.IF_Drive

The axis the status of which is to be determined

Enable

BOOL

TRUE: The status of the axis is determined.

Output

Data type

Description

Valid

BOOL

The function block has valid outputs.

Busy

BOOL

The function block is not finished and new outputs are still pending.

Error

BOOL

Signalizes a detected error within the function block

ErrorId

DWORD

Error identification

ErrorStop

BOOL

TRUE: An emergency stop is active in the axis.

Disabled

BOOL

TRUE: The axis is disabled.

Stopping

BOOL

TRUE: The axis is stopped.

StandStill

BOOL

TRUE: The axis is not in motion.

DiscreteMotion

BOOL

TRUE: The axis executes a motion for a limited period of time.

ContinuousMotion

BOOL

TRUE: The axis executes a motion for an unlimited period of time.

SynchronizedMotion

BOOL

TRUE: The axis executes a motion synchronously to a master.

Homing

BOOL

TRUE: The axis is homed.

q_etDiag

GD.ET_Diag

General, library-independent statement on the diagnostic.

A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = GD.ET_Diag.Ok -> status message

q_etDiag <> GD.ET_Diag.Ok -> diagnostic message

q_sMsg

STRING[80]

Event-triggered message which gives more detailed information on the diagnostic state

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

OK

Valid

2

The output values are valid.

InputParameterInvalid

AxisInvalid

25

The connected drive is not supported.

InputParameterInvalid

DriveNotInitialised

27

The connected drive is not initialized.

UnexpectedProgramBehavior

UnknownState

38

The POU is in an undefined state.

AxisInvalid

Enumeration name:

AxisInvalid

Enumeration value:

25

Description:

The connected drive is not supported.

Issue

Cause

Solution

-

No drive has been applied at the input Axis.

A valid drive must be transferred to the input Axis.

DriveNotInitialised

Enumeration name:

DriveNotInitialised

Enumeration value:

27

Description:

The connected drive is not initialized.

Issue

Cause

Solution

-

The function FC_DriveInit was not activated for the drive at the input Axis.

Before using the POU, the drive must be initialized using the function FC_DriveInit.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The POU is waiting for jobs.

UnknownState

Enumeration name:

UnknownState

Enumeration value:

38

Description:

The POU is in an undefined state.

Issue

Cause

Solution

-

A detected error occurred in the internal execution.

The status of the axis could not be determined.

Please inform the support team about this detected error.

Valid

Enumeration name:

Valid

Enumeration value:

2

Description:

The output values are valid.

The state of the axis is output.