Chapter 6 Motion Function Blocks
6.4.2 Camming stop (MC_CamOut)
MC_CamOut
Slave
Slave
Execute Done BOOL
UINT
BOOL
UINT
Busy BOOL
Error BOOL
ErrorID WORD
Set the serve axis. (1~32: real/virtual axis, 33~36: virtual axis)
Give cam operation stop command to the relevant axis in the rising Edge.
Indicate the state of motion function block completion.
Indicate that the execution of motion function block is not completed.
Indicate whether an error occurs or not.
Output the number of error occurred while motion function block is running.
(1) This motion function block immediately disengages cam operation running in the serve axis.
(2) If motion function block of which BufferMode is Aborting in the serve axis where cam operation is running, cam operation is
automatically disengaged and the relevant motion function block is executed. To execute cam operation abort
(MC_CamOut) motion function block, the relevant axis do operation which keeps the speed at the time when cam
operation is disengaged. If you want to completely stop the serve axis, use stop (MC_Halt) or immediate stop (MC_Stop)
motion function block.
(3) When MC_CamOut motion function block is executed, the InSync output of MC_CamIn function block and the
Synchronized status flag (_AXxx_Synchronized) is off.
(4) Example program
This example shows generating a cam profile, executing MC_CAMIN command on the sub-axis, moving the main-axis to
the 200,000 position, and then executing MC_CAMOUT. The sub-axis maintains the velocity at the time when the cam
operation is terminated.