Chapter 6 Motion Function Blocks
Indicates that cam operation has entered the RunCam state.
Indicates that the execution of the motion function block is not completed.
Indicates that the current motion function block is controlling the relevant axis.
BOOL CommandAborted
Indicates that the current motion function block is interrupted by another
Indicates whether an error occurs or not.
Outputs the error ID that occurred while the motion function block is running.
Indicates the end of the current cam operation.
UINT CamState
1: Executing OnCam
2: Executing RunCam
(1) This motion function block uses three cam tables to carry out the cam operation that is switched to a Stop state->OnCam-
>RunCam or a RunCam->OffCam->Stop state depending on the CamOnOff input.
E xecute
CamOnOff
InSync
CamState
Stop On Run Off Stop On Stop
Off
Ma sterAxi s
SlaveAxis
EndOfProfi le
(2) The cam operation runs under a state where Execute is the rising Edge. The cam operation does not stop even if Execute
is changed to Off during the operation. To stop the OnOffCam operation, you must give the MC_CamOut command or run
another motion function block.
(3) If StartMode is set to 0, OnCam runs as soon as 1 is input in CamOnOff. If StartMode is set to 1, OnCam does not run as
soon as 1 is input in CamOnOff, but when the position of the main axis passes by the position set in StartModeParam. If
StartMode is set to 2, OnCam runs when 1 is input in CamOnOff and the main axis then moves in the distance set in
StartModeParam.
(4) If you are using a cam generated with the LS_CrossSealCamGen function block, set StartMode to 3. If StartMode is set to 3
and the length of OnCam_ID is 270, the same operation is conducted as if StartMode is set to 1 and StartModeParam is
270. If OnCam_ID is 180, the same operation is conducted as if StartMode is set to 1 and StartModeParam is set to 0.
(5) EndOfProfile outputs On when passing the end of a profile during the operation of each OnCam/OffCam/RunCam cam
profile.