BASIC commands
PROGRAMMING MANUAL
53
Revi
si
on 3.0
3.2.39 BATTERY_LOW
/i
3.2.40 BREAK_RESET
/i
3.2.41 CAM
/i
Example
ON BASICERROR GOTO error_routine
...
no_error = 1
STOP
error_routine:
IF no_error = 0 THEN
PRINT "The error ";RUN_ERROR[0];
PRINT " occurred in line ";ERROR_LINE[0]
ENDIF
STOP
If an error occurs in a BASIC command in this example, the error routine will
be executed.
The
IF
statement is present to prevent the program going into error routine
when it is stopped normally.
See also
ERROR_LINE
,
ON
,
RUN_ERROR
.
Type
System parameter (read-only)
Syntax
BATTERY_LOW
Description
This parameter returns the current state of the battery condition. If
BATTERY_LOW=ON
then the battery needs to be changed. If
BATTERY_LOW=OFF
then battery condition is ok.
Arguments
N/A
Example
No example.
See also
N/A
Type
System command
Syntax
BREAK_RESET "program_name"
Description
Used by Trajexia Tools to remove all break points from the specified program.
Arguments
•
program_name
The name of the program from which you want to remove all break
points.
Example
BREAK_RESET "simpletest"
Will remove all break points from program
simpletest
.
See also
N/A
Type
Axis command
Syntax
CAM(start_point, end_point, table_multiplier, distance)
Description
The
CAM
command is used to generate movement of an axis following a
position profile which is stored in the TABLE variable array. The TABLE val-
ues are absolute positions relative to the starting point and are specified in
encoder edges. The TABLE array is specified with the
TABLE
command.
The movement can be defined with any number of points from 2 to 64000.
The TJ1-MC__ moves continuously between the values in the TABLE to allow
a number of points to define a smooth profile. Two or more
CAM
commands
can be executed simultaneously using the same or overlapping values in the
TABLE array. The TABLE profile is traversed once.
CAM
requires that the start element in the TABLE array has value zero. The
distance argument together with the
SPEED
and
ACCEL
parameters deter-
mine the speed moving through the TABLE array. Note that in order to follow
the
CAM
profile exactly the
ACCEL
parameter of the axis must be at least
1000 times larger than the
SPEED
parameter.
CAM
works on the default basis axis (set with
BASE
) unless
AXIS
is used to
specify a temporary base axis.
I52E-EN-03.book Seite 53 Freitag, 29. Juni 2007 11:55 11