MC_AxParamSave_BkPlcMc (from V3.0)

MC_AxParamSave_BkPlcMc (from V3.0) 1:

The function block writes the parameters for an axis into a file. A function block of type MC_AxParamLoad_BkPlcMc must be used to read the file.

MC_AxParamSave_BkPlcMc (from V3.0) 2: Inputs

VAR_INPUT
    Execute:        BOOL;
END_VAR

Name

Type

Description

Execute

BOOL

The writing process is initiated by a rising edge at this input.

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

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

Name

Type

Description

Done

BOOL

Successful writing of the parameters 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:

The writing process begins if these checks are carried out without problems. The versions of the saved parameters are logged.

A falling edge at Execute clears all the pending output signals. If Execute is set to FALSE while the writing process is still active, the process that had started continues unaffected. The signals provided at the end of the operation (Error, ErrorID, Done) are made available for one cycle.