TwinCAT PLC Library Hydraulics - Version 1.4 — 4.2.2 MC_CamOut_BkPlcMc (from V3.0)

PLCopen Motion Control InSync : This indicates the first successful synchronization of the axes. The signal the remains active, even if the synchronization subsequently fails temporarily or permanently. CommandAborted : This indicates abortion of the coupling. Error : The occurrence of an error is indicated here. ErrorID : An encoded indication of the cause of the error is provided here. EndOfProfile : This is indicates whether the master has reached the end of the defined range. Master, Slave : Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred.

Behavior of the function block The function block is activated by a positive edge at Execute , and investigates the axis interface that has been passed to it. A number of problems can be detected and reported during this process: If CamTableId .bValidated was not set by a function block of type MC_CamTableSelect_BkPlcMc, the system responds with Error and ErrorID :=dwTcHydErrCdTblNoInit. If either the master or the slave are not in idle state, the system responds with Error and ErrorID:=dwTcHydErrCdNotStartable. If the value MC_StartMode_RampIn is specified as StartMode , the function block responds with Error and ErrorID :=dwTcHydErrCdNotSupport.

If these checks could be performed without problem, the coupling is initiated. Depending on StartMode , the reference position for Slave is either set to 0.0 or to the current actual position of Slave . The axis is now in state McState_Synchronizedmotion [ } 78] , and the function block starts calculating and monitoring the coupling. The set position and set velocity of Slave are calculated depending on the actual position and the set velocity of the master and the table. When the velocity required by the coupling is reached for the first time while the slave axis coupling is active, this is indicated at output InGear.

Since the coupling can currently only be activated at standstill, this is the case immediately. If the slave axis is unable to follow the specifications for some reason while the coupling is active, InGear remains unchanged. If an error code occurs in the motion generator while the coupling is active, the system responds with Error and ErrorID :=motion algorithm error code. A negative edge at Execute neither aborts the calculation nor the monitoring of the coupling. This is only brought about if the coupling is activated through an MC_CamOut_BkPlcMc function block or if an error occurs. Only then are all pending output signals cleared. NOTE!

This function block temporarily deals with setpoint generation. To indicate this, Busy is not only TRUE up to the transition to synchronicity, but remains TRUE until the coupling is released. 4.2.2 MC_CamOut_BkPlcMc (from V3.0) PLC Library Hydraulics 45 Version: 1.4 Note Function block call It is therefore imperative that this function block is called cyclically, if Busy is TRUE. Sub- sequently, the function block should be called at least once with Execute:=FALSE.