PLCopen Motion Control If these checks could be performed without problem, the control value for the axis is adapted according to the values in Axis . ST_TcHydAxParam [ } 93] . The control value for the advance and the positional control reaction are combined to form the output control value. Area compensation is taken into account. Compensation is applied for a bend in the characteristic curve. The overlap compensation, the terminal control value and the offset compensation are included in the calculation. If only the usual blocks (encoder, generator, finish, drive) for the axis are to be called, a block of type MC_AxStandardBody_BkPlcMc [ } 181] should be used for simplicity.
4.4.7.3 MC_AxRtFinishLinear_BkPlcMc (from V3.0.16) 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. VAR_INPUT EnableLinearisation: BOOL; ValveTable: POINTER TO LREAL:=0; ValveTableLowIdx: INT:=0; ValveTableHighIdx: INT:=0; END_VAR VAR_OUTPUT Error: BOOL; ErrorID: UDINT; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR EnableLinearisation : TRUE at this input activates the linearisation. ValveTable : The address of the linearisation table should be transferred here. If possible, this should be the ValveCharacteristicTable of an ST_TcMcAutoIdent [ } 93] linked to the axis.
ValveTableLowIdx : The index of the first point in the linearisation table. ValveTableHighIdx : The index of the last point in the linearisation table. If possible, this should be the ValveCharacteristicTblCount of an ST_TcMcAutoIdent [ } 93] linked to the axis. Error : The occurrence of an error is indicated here. ErrorID : An encoded indication of the cause of the error is provided here. Axis : Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred. Behaviour 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: EnableLinearisation is FALSE.
The pointer ValveTable is not initialised. ValveTableLowIdx is less than 0. PLC Library Hydraulics 176 Version: 1.4