Exit camming

If you don't need camming anymore, use ReleaseAxis to detach the slave axis.

In Cam.cpp, add the following code:

Copy
VOID RemoveCamSlave(int Index)
{
    RtPrintf("Exit camming.\n\n");

    //Remove the cam.
    KsError removeCam = ReleaseAxis(Index);
    if (removeCam != errNoError)
        RtPrintf("The slave axis has not been detached: %x\n\n", removeCam);

    else if (removeCam == errNoError)
        RtPrintf("The slave axis has been detached.\n\n");
}