Motion synchronous actions
10.6 Delete synchronized action (CANCEL)
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
629
10.6 Delete synchronized action (CANCEL)
Function
The CANCEL command can be used to cancel (delete) a modal or a static synchronized action
from the part program.
If a synchronized action is canceled while the positioning axis movement that was activated
from it is still active, the positioning axis movement is interrupted. If this is not desirable, axis
motion can be braked with deletion of the axial distance-to-go before the
CANCEL command.
Syntax
CANCEL(<n1>,<n2>,...)
Significance
CANCEL: Command to delete programmed synchronized actions
Identification numbers of the synchronized actions to be deleted
<n1>,<n2>,etc.:
Note:
If identification numbers are not specified, all modal/static
synchronized actions are deleted.
Examples
Example 1: Cancel synchronized action
Program code Comments
N100 ID=2 WHENEVER $A_IN[1]==1 DO M130
...
N200 CANCEL(2) ; Deletes modal synchronized action
no. 2.
Example 2: Delete distance-to-go before cancelling synchronized action
Program code Comments
N100 ID=17 EVERY $A_IN[3]==1 DO POS[X]=15 FA[X]=1500 ; Start positioning axis motion.
...
N190 WHEN ... DO DELDTG(X) ; End positioning axis motion.
N200 CANCEL(17) ; Deletes modal synchronized action
no. 17.