Cancel; Checksum; Chr - Omron TJ1-MC04 - PROGRAMMING 1 Programming Manual

Hide thumbs Also See for TJ1-MC04 - PROGRAMMING 1:
Table of Contents

Advertisement

BASIC commands

3.2.43 CANCEL

/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 CANCELs 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
PROGRAMMING MANUAL

3.2.44 CHECKSUM

/i
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

3.2.45 CHR

/i
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
56

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TJ1-MC04 - PROGRAMMING 1 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Tj1-mc16 - programming 1Tj1-mc04 1

Table of Contents

Save PDF