MC_Power

 

MC_Power - General Information

Overview

Type:

Function Block

Available as of:

1.0.5.0

Versions:

current version

Task

The position control of the axis is to be enabled or disabled.

Description

Uses PDL.FB_DriveEnable to switch the drive on or off

Interface

Input

Data type

Description

Axis

SystemConfigurationItf.IF_Drive

Interface for the axis to be controlled

Enable

BOOL

If the Enable input is TRUE, the power stage is enabled.

Output

Data type

Description

Status

BOOL

TRUE: The position control is enabled.

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

Enabled

3

The drive is enabled.

OK

Ok

0

Ok

DriveConditionInvalid

DriveNotReady

70

The drive is not ready for motion commands.

DriveConditionInvalid

InverterEnableOff

29

The InverterEnable signal is not present.

DriveConditionInvalid

PowerOnTimeOut

34

Timeout when enabling the axis

DriveConditionInvalid

TorqueEnableOff

30

The TorqueEnable signal is not present.

InputParameterInvalid

AxisInvalid

25

The connected drive is not supported.

InputParameterInvalid

DriveInvalid

26

The connected drive is invalid.

InputParameterInvalid

DriveNotInitialised

27

The connected drive is not initialized.

InputParameterInvalid

PowerSupplyInvalid

31

The connected power supply is invalid.

InputParameterInvalid

PowerSupplyNotFound

32

The connected power supply was not found.

PowerSupplyConditionInvalid

PowerSupplyNotReady

33

The connected power supply is not ready.

UnexpectedProgramBehavior

UnexpectedFeedback

10

An unintended detected error occurred during execution.

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.

DriveInvalid

Enumeration name:

DriveInvalid

Enumeration value:

26

Description:

The connected drive is invalid.

Issue

Cause

Solution

-

The drive connected at the input Axis does not support all required functionalities.

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

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

DriveNotReady

Enumeration name:

DriveNotReady

Enumeration value:

70

Description:

The drive is not ready for motion commands.

Issue

Cause

Solution

-

The axis is not in position control.

Verify the state of the axis.

Enabled

Enumeration name:

Enabled

Enumeration value:

3

Description:

The drive is enabled.

The axis is in position control.

InverterEnableOff

Enumeration name:

InverterEnableOff

Enumeration value:

29

Description:

The InverterEnable signal is not present.

Issue

Cause

Solution

-

The InverterEnable signal of the axis is not enabled.

Verify the wiring of the InverterEnable signal.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The POU is waiting for jobs.

PowerOnTimeOut

Enumeration name:

PowerOnTimeOut

Enumeration value:

34

Description:

Timeout when enabling the axis

Issue

Cause

Solution

-

The drive is not set in position control within 2 seconds.

Verify the state of the axis.

PowerSupplyInvalid

Enumeration name:

PowerSupplyInvalid

Enumeration value:

31

Description:

The connected power supply is invalid.

Issue

Cause

Solution

-

The connected power supply is not supported.

Please contact the support team.

PowerSupplyNotFound

Enumeration name:

PowerSupplyNotFound

Enumeration value:

32

Description:

The connected power supply was not found.

Issue

Cause

Solution

-

No power supply has been applied.

Add a power supply to the PLC configuration.

-

No power supply has been connected.

Connect the Poser power supply to the axis.

PowerSupplyNotReady

Enumeration name:

PowerSupplyNotReady

Enumeration value:

33

Description:

The connected power supply is not ready.

Issue

Cause

Solution

-

The connected power supply is not ready.

Verify the state of the power supply for errors.

TorqueEnableOff

Enumeration name:

TorqueEnableOff

Enumeration value:

30

Description:

The TorqueEnable signal is not present.

Issue

Cause

Solution

-

The TorqueEnable signal of the axis is not enabled.

Verify the hardware/software wiring of the TorqueEnable signal.

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.