MC_StepBlock_BkPlcMc

MC_StepBlock_BkPlcMc 1:

The function block is used for referencing via a fixed stop. The function block triggers a position setting internally after the cam is found.

MC_StepBlock_BkPlcMc 2: Inputs

VAR_INPUT
    Execute:                BOOL;
    Direction:              MC_Direction_BkPlcMc;
    Velocity:               LREAL;
    Acceleration:           LREAL;
    Deceleration:           LREAL;
    Jerk:                   LREAL;
    SetPosition:            LREAL;
    DetectionVelocityLimit: LREAL;
    DetectionVelocityTime:  LREAL;
    TorqueLimit:            LREAL;
    TorqueTolerance:        LREAL;
    TimeLimit:              TIME;
    DistanceLimit:          LREAL;
    BufferMode:             MC_BufferMode_BkPlcMc:=Aborting_BkPlcMc;
END_VAR

Name

Type

Description

Execute

BOOL

The homing is initiated by a rising edge at this input.

Direction

MC_Direction_BkPlcMc

The direction is specified via MC_Direction_BkPlcMc.

Velocity

LREAL

[mm/s] The required motion velocity in actual value units of the axis per second.

Acceleration

LREAL

[mm/s2] The required acceleration in actual value units of the axis per square second. If this parameter is 0.0, it is replaced by a default value from the axis parameters.

Deceleration

LREAL

[mm/s2] The required deceleration in actual value units of the axis per square second. If this parameter is 0.0, it is replaced by a default value from the axis parameters.

Jerk

LREAL

[mm/s3] The required jerk in actual value units of the axis per square second. If this parameter is 0.0, it is replaced by a default value from the axis parameters.

SetPosition

LREAL

Required position on the referencing cam.

DetectionVelocityLimit

LREAL

[mm/s] Velocity limit to reliably detect a stop

DetectionVelocityTime

LREAL

[s] Time in which the actual velocity must be below the DetectionVelocityLimit in order to reliably detect the fixed stop.

TorqueLimit

LREAL

[Bar] Limitation for the pressure

TorqueTolerance

LREAL

[Bar] Tolerance for the pressure

TimeLimit

TIME

After this time, the referencing is canceled with error. At zero, time monitoring is disabled.

DistanceLimit

LREAL

After this distance, the referencing will be aborted with an error. At zero, the distance monitoring is disabled.

BufferMode

MC_BufferMode_BkPlcMc

reserved

MC_StepBlock_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_StepBlock_BkPlcMc 4: Outputs

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

Name

Type

Description

Done

BOOL

Successful processing is indicated here

Busy

BOOL

Indicates that a command is being processed.

Active

BOOL

Readiness for operation is indicated here.

CommandAborted

BOOL

Here an abort of the command is indicated.

Error

BOOL

The occurrence of an error is indicated here.

ErrorID

UDINT

An encoded error message is provided here.

Behavior of the function block

On a rising edge at Execute all parameters are transferred to the function block MC_StepBlockDetection_BkPlcMc. If the internal function block MC_StepBlockDetection_BkPlcMc is successfully processed, the determined position is set accordingly via MC_SetPosition_BkPlcMc.

During processing, the function block reports Busy and Active. After successful position setting, Done is reported back. If a subordinate function block reports an error, this is reported via Error and ErrorID.