BASIC commands
PROGRAMMING MANUAL
56
Revi
si
on 3.0
3.2.43 CANCEL
/i
3.2.44 CHECKSUM
/i
3.2.45 CHR
/i
Type
Axis command
Syntax
CANCEL[(1)]
CA[(1)]
Description
The
CANCEL
command cancels the current move on an axis. Speed-profiled
moves (
FORWARD
,
REVERSE
,
MOVE
,
MOVEABS
,
MOVECIRC
,
MHELICAL
and
MOVEMODIFY
) will be decelerated at the deceleration rate
as set by the
DECEL
parameter and then stopped. Other moves will be imme-
diately stopped.
The
CANCEL
command cancels the contents of the current move buffer
(
MTYPE
). The command
CANCEL(1)
command cancels the contents of the
next move buffer (
NTYPE
) without affecting the current move in the
MTYPE
buffer.
CANCEL
works on the default basis axis (set with
BASE
) unless
AXIS
is used
to specify a temporary base axis.
Note:
•
CANCEL
cancels only the presently executing move. If further moves are
buffered they will then be loaded.
•
During the deceleration of the current move additional
CANCEL
s will be
ignored.
•
CANCEL(1)
cancels only the presently buffered move. Any moves stored
in the task buffers indicated by the
PMOVE
variable can be loaded into
the buffer as soon as the buffered move is cancelled.
Arguments
N/A
Example
FORWARD
WA(10000)
CANCEL
Example
MOVE(1000)
MOVEABS(3000)
CANCEL ' Cancel the move to 3000 and move to 4000 instead.
MOVEABS(4000)
Note that the command
MOVEMODIFY
is a better solution for modifying end
points of moves in this case.
See also
AXIS
,
MTYPE
,
NTYPE
,
PMOVE
,
RAPIDSTOP
Type
System parameter (read-only)
Syntax
CHECKSUM
Description
The
CHECKSUM
parameter contains the checksum for the programs in RAM.
At start-up, the checksum is recalculated and compared with the previously
held value. If the checksum is incorrect the program will not run.
Arguments
N/A
Example
No example.
See also
N/A
Type
I/O command
Syntax
CHR(x)
Description
The
CHR
command is used to send individual ASCII characters
which are referred to by number.
PRINT CHR(x)
; is equivalent to
PUT(x)
in some other versions of BASIC.
Arguments
•
x
A BASIC expression.
Example
>>PRINT CHR(65);
A
See also
N/A
I52E-EN-03.book Seite 56 Freitag, 29. Juni 2007 11:55 11