MC_GearOut

 

MC_GearOut - General Information

Overview

Type:

Function Block

Available as of:

1.0.5.0

Versions:

current version

Task

This function block disconnects the slave axis from the master axis.

Description

If the slave axis executes a synchronous motion, the job buffer of the axis is cleared via SystemInt­erface.FC_JobClear and the axis set to standstill via Axis.ControllerStopSet= TRUE.

Interface

Input

Data type

Description

Slave

SystemConfigurationItf.IF_Drive

The slave axis that is to be disconnected from the master.

Execute

BOOL

A positive edge disconnects the axis from the master.

Output

Data type

Description

Done

BOOL

The axis is disconnected from the master.

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

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

Busy

1

The order is executed.

OK

Done

8

The order is completed.

OK

Ok

0

Ok

ExecutionAborted

PLCopenTransition

49

PLCopen transition is not permitted.

InputParameterInvalid

DriveInvalid

26

The connected drive is invalid.

InputParameterInvalid

DriveNotInitialised

27

The connected drive is not initialized.

InputParameterInvalid

SlaveInvalid

46

Slave is invalid.

UnexpectedProgramBehavior

UnexpectedFeedback

10

An unintended detected error occurred during execution.

Busy

Enumeration name:

Busy

Enumeration value:

1

Description:

The order is executed.

The electronic gearbox is being disabled.

Done

Enumeration name:

Done

Enumeration value:

8

Description:

The order is completed.

The electronic gearbox is disabled.

DriveInvalid

Enumeration name:

DriveInvalid

Enumeration value:

26

Description:

The connected drive is invalid.

Issue

Cause

Solution

-

The drive transferred at the input Slave does not support all required functionalities.

The drive must support the interface SystemConfigurationItf.IF_JobBuffer.

The drive must support the SystemConfigurationItf.IF_RefActualValuesPosition interface.

The drive must support the SystemConfigurationItf.IF_ControllerStop interface.

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 Slave.

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.

PLCopenTransition

Enumeration name:

PLCopenTransition

Enumeration value:

49

Description:

PLCopen transition is not permitted.

Issue

Cause

Solution

-

During job submission the axis is not in PLCopen state MC_Standstill or MC_SynchronizedMotion.

It must be made sure that the axis is in a valid PLCopen state when the POU is enabled.

SlaveInvalid

Enumeration name:

SlaveInvalid

Enumeration value:

46

Description:

Slave is invalid.

Issue

Cause

Solution

-

No drive has been applied at the Slave input.

A valid drive must be transferred to the input Slave.

UnexpectedFeedback

Enumeration name:

UnexpectedFeedback

Enumeration value:

10

Description:

An unintended detected error occurred during execution.

Issue

Cause

Solution

-

A detected error occurred in the internal execution.

Please inform the support team about this detected error.