MC_RampedStop_BkPlcMc

MC_RampedStop_BkPlcMc 1:

The function block cancels a movement that is currently being executed.

MC_RampedStop_BkPlcMc 2: Inputs

VAR_INPUT
    Execute:        BOOL;
    RampTime:       LREAL;  (ab/from V3.0.5)
END_VAR

Name

Type

Description

Execute

BOOL

A rising edge at this input ends a movement being carried out by the axis.

RampTime

LREAL

[s] The required stopping time.

MC_RampedStop_BkPlcMc 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_RampedStop_BkPlcMc 4: 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

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:

The Stop operation begins if these checks can be carried out without problems. RampTime is used to calculate a deceleration, taking into account the reference velocity. With this deceleration, the target velocity is reduced to 0 with a pure time ramp.

CAUTION No defined end position is driven to and the axis can overrun a software limit switch.