MC_SetReferenceFlag_BkPlcMc (from V3.0)

MC_SetReferenceFlag_BkPlcMc (from V3.0) 1:

(Function is not defined by PLCopen) The function block defines the referencing flag of the axis.

MC_SetReferenceFlag_BkPlcMc (from V3.0) 2: Inputs

VAR_INPUT
    Execute:        BOOL;
    ReferenceFlag:  BOOL;
END_VAR

Name

Type

Description

Execute

BOOL

A rising edge at this input sets the referencing flag of the axis.

ReferenceFlag

BOOL

The new state of the referencing flag of the axis.

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

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

Name

Type

Description

Done

BOOL

This indicates successful processing of the command.

Busy

BOOL

This output is TRUE while the command is being processed.

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

A rising edge at Execute causes the referencing flag in ST_TcHydAxRtData.nStateDWord to be updated. To this end, the respective bit is cleared or set with dwTcHydNsDwReferenced, depending on ReferenceFlag. The successful execution of the function is indicated with Done. A falling edge at Execute clears all the pending output signals.