TwinCAT PLC Library Hydraulics - Version 1.4 — 4.3.9 E_TcMCParameter (from V3.0)

PLCopen Motion Control McState_Homing : The axis is homing. McState_Disabled : The controller enable of the axis is FALSE. 4.3.8 E_TcMcHomingType (from V3.0) The constants listed here are used to identify the referencing method of the axes. TYPE E_TcMcHomingType :( iTcMc_HomingOnBlock, iTcMc_HomingOnIndex, iTcMc_HomingOnSync, iTcMc_HomingOnMultiSync, iTcMc_HomingOnExec ); END_TYPE iTcMc_HomingOnBlock : The axis is moved in the direction specified by ST_TcHydAxParam.bEnc_RefIndexPositive with ST_TcHydAxParam.fEnc_RefIndexVelo. If no movement is detected over a period of 2 seconds, the fixed stop (block) is considered to have been reached.

The actual value for the axis is set to the value of the reference position. iTcMc_HomingOnIndex : The axis is moved in the direction specified by ST_TcHydAxParam.bEnc_RefIndexPositive with ST_TcHydAxParam.fEnc_RefIndexVelo. The axis is stopped if the reference cam (bit 5, dwTcHydDcDwRefIndex) is detected in ST_TcHydAxRtData.nDeCtrlDWord. It is then moved with ST_TcHydAxParam.fEnc_RefSyncVelo in the direction specified by ST_TcHydAxParam.bEnc_RefSyncPositive until the reference cam has again been left. The actual value for the axis is set to the value of the reference position. iTcMc_HomingOnSync :

The axis is moved in the direction specified by ST_TcHydAxParam.bEnc_RefIndexPositive with ST_TcHydAxParam.fEnc_RefIndexVelo. The axis is stopped if the reference cam (bit 5, dwTcHydDcDwRefIndex) is detected in ST_TcHydAxRtData.nDeCtrlDWord. It is then moved with ST_TcHydAxParam.fEnc_RefSyncVelo in the direction specified by ST_TcHydAxParam.bEnc_RefSyncPositive until the reference cam has again been left. 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. iTcMc_HomingOnExec : The actual value of the axis is immediately set to the value of the reference position. iTcMc_HomingOnMultiSync : The hardware latch of the encoder is activated. The axis is moved with ST_TcHydAxParam.fEnc_RefSyncVelo in the direction specified by ST_TcHydAxParam.bEnc_RefIndexPositive, until the latch has become valid twice. If the end of path is detected before two sync pulses were detected, the process is repeated in the opposite direction.

If this does not succeed either, the homing is aborted. Otherwise the current actual position is determined from the distance of the sync pulses and the fEnc_BaseDistance. 4.3.9 E_TcMCParameter (from V3.0) The constants listed here are used for numbering parameters. TYPE E_TcMCParameter : ( (* ===================================================================== A T T E N T I O N = ===================================================================== = These Codes are also used to identify parameters in files. = = Any change of the meaning of any code here will make any file = = incompatible without notice and may even cause a crash of = = the control system!

= ===================================================================== = CONSEQUENCE: Only adding new codes is allowed! = ===================================================================== = These codes are also used for ADS communication = ===================================================================== *) (* PLC Library Hydraulics 79 Version: 1.4