MC_AxRtFinishLinear_BkPlcMc (from V3.0.16)

MC_AxRtFinishLinear_BkPlcMc (from V3.0.16) 1:

The function block deals with the adjustment of the generated control value to the special features of the axis, taking into account a characteristic curve.

MC_AxRtFinishLinear_BkPlcMc (from V3.0.16) 2: Inputs

VAR_INPUT
    EnableLinearisation:   BOOL;
    ValveTable:            POINTER TO LREAL:=0;
    ValveTableLowIdx:      INT:=0;
    ValveTableHighIdx:     INT:=0;
END_VAR

Name

Type

Description

EnableLinearisation

BOOL

TRUE at this input activates the linearization.

ValveTable

POINTER TO LREAL

The address of the linearization table should be transferred here. If possible, this should be the ValveCharacteristicTable of an ST_TcMcAutoIdent linked to the axis. If a NULL-pointer is passed here the linearization table and the limiting indices of the ST_TcMcAutoIdent structure associated with the axis are used. If such a structure is not present, the function block shows the behavior of a MC_AxRtFinish() function block.

ValveTableLowIdx

INT

The index of the first point in the linearization table.

ValveTableHighIdx

INT

The index of the last point in the linearization table. If possible, this should be the ValveCharacteristicTblCount of an ST_TcMcAutoIdent linked to the axis.

MC_AxRtFinishLinear_BkPlcMc (from V3.0.16) 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.

VAR_MC_AxRtFinishLinear_BkPlcMc (from V3.0.16) 4: Outputs

UTPUT
    Error:                 BOOL;
    ErrorID:               UDINT;
END_VAR

Name

Type

Description

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

The function block investigates the axis interface that has been passed to it every time it is called. A number of problems may be detected:

In these cases an MC_AxRtFinish_BkPlcMc function block is called internally, and its outputs are passed on. Otherwise the table linearization for the axis is performed. Note the following special characteristics:

Example: Display of a linearization in the PlcMcManager:

MC_AxRtFinishLinear_BkPlcMc (from V3.0.16) 5:

A sample program can be found in the SampleList of the Knowledge Base. Demonstrates automatic determination of a characteristic curve with an MC_AxUtiAutoIdent_BkPlcMc function block.