PLCopen Motion Control The function block releases a cam plate coupling between two axes, which was started through an MC_CamIn_BkPlcMc [ } 44] function block. VAR_INPUT Execute: BOOL; ND_VAR VAR_OUTPUT Busy: BOOL; Done: BOOL; Error: BOOL; ErrorID: UDINT; END_VAR VAR_INOUT Slave: Axis_Ref_BkPlcMc; END_VAR Execute : A rising edge at this input starts the coupling. Busy : Indicates that a command is being processed. Done : This indicates successful processing of the command. Error : The occurrence of an error is indicated here. ErrorID : An encoded indication of the cause of the error is provided here. 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 rising 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 the pointer pStAxParams in Axis_Ref_BkPlcMc [ } 67] is not initialized, the function block responds with Error and ErrorID :=dwTcHydErrCdPtrPlcMc. If the pointer pStAxRtData in Axis_Ref_BkPlcMc [ } 67] is not initialized, the function block responds with Error and ErrorID :=dwTcHydErrCdPtrMcPlc.
If the axis is not coupled, the function block responds with Done , without further checks or activities. If the current set velocity of the axis is smaller than the velocity specified by pStAxParams.fCreepSpeed, the axis immediately assumes McState_Standstill and dissipates the residual velocity. Done is indicated, and no further checks or activities take place. If these checks could be performed without problem and Done is not already indicated for one of the reasons mentioned, the motion controlled by the cam plate coupling is converted to a continuous motion with the same velocity and direction, which is independent of the master.
Done is indicated if this conversion was executed successfully, otherwise the system responds with Error and ErrorID :=error code. NOTE! This function block requires no time for executing its tasks. The output Busy will never assume the value TRUE and only exists for compatibility reasons. 4.2.3 MC_CamTableSelect_BkPlcMc (from V3.0) PLC Library Hydraulics 46 Version: 1.4