TwinCAT PLC Library Hydraulics - Version 1.4 — 4.3.5 E_TcMcDriveType (from V3.0)

PLCopen Motion Control iTcHydStateConstVeloM: The axis travels in negative direction with constant control value. The control value is specified by the travel command. iTcHydStatePcDecP: The axis is in the displacement-controlled brake phase of a travelling motion in positive direction. The control value is reduced to ST_TcHydAxParam.fCreepSpeed. The state then changes to iTcHydStateCreepVeloP . iTcHydStatePcDecM: The axis is in the displacement-controlled brake phase of a travelling motion in negative direction. The control value is reduced to ST_TcHydAxParam.fCreepSpeed. The state then changes to iTcHydStateCreepVeloM . iTcHydStateCreepVeloP:

The axis travels in positive direction with constant control value. The control value is specified by ST_TcHydAxParam.fCreepSpeed. iTcHydStateCreepVeloM: The axis travels in negative direction with constant control value. The control value is specified by ST_TcHydAxParam.fCreepSpeed. iTcHydStateTcDecP: The axis executes a regular stop, starting from a travelling motion in positive direction. The control value is reduced with ST_TcHydAxParam.fStopRamp. The state then changes to iTcHydStateIdle . iTcHydStateTcDecM: The axis executes a regular stop, starting from a travelling motion in negative direction. The control value is reduced with ST_TcHydAxParam.fStopRamp.

The state then changes to iTcHydStateIdle . iTcHydStateFeedStopPos: The axis executes an intermediate stop, due to lack of feed enable in positive direction (dwTcHydDcDwFdPosEna is not set in ST_TcHydAxRtData.nDeCtrlDWord). The control value is reduced with ST_TcHydAxParam.fStopRamp. The axis then waits for a feed enable. iTcHydStateFeedStopNeg: The axis executes an intermediate stop, due to lack of feed enable in negative direction (dwTcHydDcDwFdNegEna is not set in ST_TcHydAxRtData.nDeCtrlDWord). The control value is reduced with ST_TcHydAxParam.fStopRamp. The axis then waits for a feed enable. iTcHydStateDoBrake: The axis executes a waiting time.

This is necessary, if switching is required due to a brake or a switching valve. iTcHydStateCoupling: The axis is in transition to state iTcHydStateCoupled . iTcHydStateCoupled: The control value of the axis is derived from the control value of another axis based on the principle of electronic gearing. iTcHydStateExtCoupled : The control value of the axis is calculated based on the principle of continuously variable transmission. iTcHydStateExtGenerated: The control value of the axis is generated by an external block. This may be a library block or an application-specific block. iTcHydStateEmergencyBreak: The axis executes an emergency stop.

The control value is reduced with ST_TcHydAxParam.fEmergencyRamp. The system then checks whether the axis is in an error state (ST_TcHydAxRtData.nErrorCode not equal 0). If yes, the state is changed to iTcHydStateFault , otherwise iTcHydStateIdle . iTcHydStateFault: The axis is in an error state. It does not carry out actively control movements and does not accept motion commands. To put the axis back in an undisturbed state, call a function block of type MC_Reset_BkPlcMc or MC_ResetAndStop_BkPlcMc. 4.3.5 E_TcMcDriveType (from V3.0) The constants listed here are used to identify the hardware used to output the control values for an axis.

TYPE E_TcMcDriveType :( (* The sequence below must not be changed! New types have to be added at the end. In case a type becomes obsolete it has to be replaced by a dummy to ensure the numerical meaning of the other codes. *) (* PLC Library Hydraulics 72 Version: 1.4