MC_ResetAndStop_BkPlcMc (from V3.0)

MC_ResetAndStop_BkPlcMc (from V3.0) 1:

The function block puts a faulty axis in an operational state. If the axis is processing a travel command, this is aborted, and the associated required stop operation is monitored.

MC_ResetAndStop_BkPlcMc (from V3.0) 2: Inputs

VAR_INPUT
    Execute:        BOOL;
    Deceleration:   LREAL;  (ab/from V3.0.5)
    Jerk:           LREAL;  (ab/from V3.0.5)
    RampTime:       LREAL;  (ab/from V3.0.5)
    BufferMode:     MC_BufferMode_BkPlcMc:=Aborting_BkPlcMc;  (ab/from V3.0.8)
END_VAR

Name

Type

Description

Execute

BOOL

A rising edge at this input triggers an axis reset and a stop operation.

Deceleration

LREAL

[mm/s2] The deceleration to be applied.

Jerk

LREAL

[mm/s3] The jerk to be applied.

RampTime

LREAL

[s] The required stopping time.

BufferMode

MC_BufferMode_BkPlcMc

reserved. This input is provided in preparation for a future build. It should currently either not be assigned or assigned the constant Aborting_BkPlcMc. (from V3.0.8)

MC_ResetAndStop_BkPlcMc (from V3.0) 3: Inputs/outputs

VAR_INOUT
    Axis:       Axis_Ref_BkPlcMc;
END_VAR

Name

Type

Description

Axis

Axis_Ref_BkPlcMc

Here, the address of a variable of type Axis_Ref_BkPlcMc should be transferred.

MC_ResetAndStop_BkPlcMc (from V3.0) 4: Outputs

VAR_OUTPUT
    Busy:       BOOL;
    Done:       BOOL;
    Error:      BOOL;
    ErrorID:    UDINT;
END_VAR

Name

Type

Description

Busy

BOOL

Indicates that a command is being processed.

Done

BOOL

Successful execution of the axis reset is indicated here.

Error

BOOL

The occurrence of an error is indicated here.

ErrorID

UDINT

An encoded indication of the cause of the error is provided here.

Behavior of the function block

On a rising edge at Execute the function block checks the transferred axis interface. A number of problems can be detected and reported during this process:

Successful completion of both operations is reported with Done. The axis is then without error and stationary.

A falling edge at Execute clears all the pending output signals.

MC_ResetAndStop_BkPlcMc (from V3.0) 5:

If the axis is executing a motion, it is decelerated until it stops. In some drive types, signal exchange with an external device is required, in order to rectify certain errors. During the time required for this, the function block is unable to report a final result (Done or Error). Instead, Busy is used to indicate that the function is in progress.