TwinCAT PLC Library Hydraulics - Version 1.4 — 4.2.10 MC_Home_BkPlcMc (from V3.0)

PLCopen Motion Control Homing begins if these checks are carried out without problems. The exact sequence is specified by HomingMode [ } 91] . If the movement algorithm reports an error code while homing is being executed, the function block responds with Error and ErrorID :=the movement algorithm's error code. If completion of homing is prevented by the activity of another function block, the function block responds with CommandAborted . Successful completion of homing is reported with Done . A negative edge at Execute clears all the pending output signals. If, while homing is still active, Execute is set to FALSE, execution of homing that had started continues unaffected.

The signals provided at the end of the movement ( Error , ErrorID, CommandAborted , Done ) are made available for one cycle. CAUTION! fEnc_DefaultHomePosition in pStAxParams is provided for circumstances in which the application does not itself specify a reference position and a value saved with the machine data is to be loaded for use instead. If different values are required, depending on the situation, use should be made of fCustomerData[] in pStAxParams. If iTcMc_EncoderSim is set as encoder type, the mode MC_Direct_BkPlcMc takes effect, irrespective of HomingMode and Axis_Ref_BkPlcMc [ } 67] .stAxParams.nEnc_HomingType.

MC_DefaultHomingMode_BkPlcMc The referencing method is not specified by the application, but through Axis_Ref_BkPlcMc [ } 67] .stAxParams.nEnc_HomingType. The following rules apply: MC_AbsSwitch_BkPlcMc The axis is moved with Axis_Ref_BkPlcMc [ } 67] .stAxParams.fEnc_RefIndexVelo in the direction specified by bEnc_RefIndexPositive. The axis stops if CalibrationCam becomes TRUE or if the reference cam (bit 5, dwTcHydDcDwRefIndex) is detected in Axis_Ref_BkPlcMc [ } 67] .stAxRtData.nDeCtrlDWord. The axis is then moved with fEnc_RefSyncVelo in the direction specified by bEnc_RefSyncPositive, until the reference cam is exited.

The actual value for the axis is set to the value of the reference position. MC_LimitSwitch_BkPlcMc Not currently supported. MC_RefPulse_BkPlcMc The axis is moved with Axis_Ref_BkPlcMc [ } 67] .stAxParams.fEnc_RefIndexVelo in the direction specified by bEnc_RefIndexPositive. The axis stops if CalibrationCam becomes TRUE or if the reference cam (bit 5, dwTcHydDcDwRefIndex) is detected in Axis_Ref_BkPlcMc [ } 67] .stAxRtData.nDeCtrlDWord. The axis is then moved with fEnc_RefSyncVelo in the direction specified by bEnc_RefSyncPositive, until the reference cam is exited. The encoder's hardware latch is then activated, and the axis is moved on until the latch becomes valid.

After the axis has stopped, the actual value for the axis is set to a value that is calculated from the reference position and from the distance covered since the encoder's sync pulse was detected. MC_Direct_BkPlcMc The actual value of the axis is immediately set to the value of the reference position. MC_Absolute_BkPlcMc Not currently supported. PLC Library Hydraulics 58 Version: 1.4 nEnc HomingType _ MC HomingMode BkPlcMc _ _ iTcMc HomingOnBlock _ MC Block BkPlcMc _ _ iTcMc HomingOnIndex _ MC AbsSwitch BkPlcMc _ _ iTcMc HomingOnSync _ MC RefPulse BkPlcMc _ _ iTcMc HomingOnExec _ MC Direct BkPlcMc _ _