MC_Halt_BkPlcMc (from V3.0)

MC_Halt_BkPlcMc (from V3.0) 1:

The function block cancels a current axis motion and monitors the stop operation.

MC_Halt_BkPlcMc (from V3.0) 2:

The stop operation initiated by this function block can be interrupted by other function blocks. An MC_Stop_BkPlcMc function block can be used to prevent the axis from restarting during a stop operation.

MC_Halt_BkPlcMc (from V3.0) 3: 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 ends a movement being carried out by the axis.

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_Halt_BkPlcMc (from V3.0) 4: 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_Halt_BkPlcMc (from V3.0) 5: Outputs

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

Name

Type

Description

Busy

BOOL

Indicates that a command is being processed.

Done

BOOL

This indicates successful processing of the operation.

Error

BOOL

The occurrence of an error is indicated here.

ErrorID

UDINT

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

Active

BOOL

Indicates that a command is being processed.

CommandAborted

BOOL

Indicates that processing of this command was aborted by another command.

Behavior of the function block

The behavior of the function block is identical to that of the MC_Stop_BkPlcMc() function block. The only difference is that processing of the command can be aborted by other function blocks.