TwinCAT PLC Library Hydraulics - Version 1.4 — 4.4.9.3.1 MC_AxUtiAutoIdent_BkPlcMc (from V3.0.28)

PLCopen Motion Control NOTE! The principle of sliding averaging leads to a delay amounting to half the filter time. If the filtered parameter can be used in a control loop, the resulting frequency-dependent phase shift can lead to restrictions for the parameter selection. NOTE! The function block has no way to fully check the transferred values of pBuffer, MinIdx and MaxIdx. The user must ensure that these values can be used safely. Otherwise may behave in an unpredictable manner (overwriting of memory) or abortion of the PLC operation. 4.4.9.3 Identification 4.4.9.3.1 MC_AxUtiAutoIdent_BkPlcMc (from V3.0.28) The function block automatic determines a number of axis parameters.

VAR_INPUT Execute: BOOL; END_VAR VAR_OUTPUT Busy: BOOL; Done: BOOL; Error: BOOL; ErrorID: UDINT; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR Execute : A positive edge at this input triggers the identification. Busy : Indicates that a command is being processed. Done : This indicates successful identification. 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. Behavior of the function block The function block checks whether the pointer Axis_Ref_BkPlcMc [ } 67] .pStAxAutoParams was initialized.

If this is the case, it performs a number of initializations when a positive edge is detected at the Execute input and then commences the parameter identification. The individual steps of the identification are determined by the values in ST_TcMcAutoIdent [ } 93] . EnableEndOfTravel : If this boolean parameter is set, the mechanical travel limits are determined automatically. First, the system ensures that the axis can move freely or is at the positive function block. The axis is now moved with a negative control voltage until it has reached the function block. The axis is then operated with a positive control voltage until the positive function block has been detected.

The control voltage is limited to EndOfTravel_NegativLimit and EndOfTravel_PositivLimit . If the positive travel limit falls below the negative limit, the values are swapped, and Axis.stAxParams.bDrive_Reversed is inverted. PLC Library Hydraulics 192 Version: 1.4