BASIC commands
PROGRAMMING MANUAL
130
Revi
si
on 3.0
/i
3.2.220 REMAIN
/i
3.2.221 REMOTE_ERROR
/i
3.2.222 RENAME
/i
Bit
Function (MECHATROLINK-II)
1, 0
Primary registration occurs for:
•
00: Z-mark of the encoder
•
01: EXT1 input (CN1 pin programmed with Pn511.1)
•
10: EXT2 input (CN1 pin programmed with Pn511.2)
•
11: EXT3 input (CN1 pin programmed with Pn511.3)
2 -7
Not used
9, 8
Windowing function choice:
•
00: No windowing
•
01: Inclusive windowing
•
10: Inclusive windowing
•
11: Exclusive windowing
10
Not used
Type
Axis parameter (read-only)
Syntax
REMAIN
Description
The
REMAIN
parameter contains the distance remaining to the end of the
current move. It can be checked to see how much of the move has been com-
pleted.
REMAIN
is defined in user units.
Arguments
N/A
Example
To change the speed to a slower value 5mm from the end of a move.
start:
SPEED = 10
MOVE(45)
WAIT UNTIL REMAIN < 5
SPEED = 1
WAIT IDLE
See also
AXIS
,
UNITS
Type
Axis parameter
Syntax
REMOTE_ERROR
Description
Returns the number of errors on the digital communication link of a driver.
Arguments
N/A
Example
>>PRINT REMOTE_ERROR
1.0000
See also
N/A
Type
Program command
Syntax
RENAME "old_program_name" "new_program_name"
Description
The
RENAME
command changes the name of a program in the TJ1-MC__
directory. The program names can also be specified without quotes.
Note: This command is implemented for an offline (VT100) terminal. Within
Trajexia Tools users can select the command from the
Program
menu.
Arguments
•
old_program_name
The current name of the program.
•
new_program_name
The new name of the program.
Example
RENAME "car" "voiture"
See also
COPY
,
DEL
,
NEW
.
I52E-EN-03.book Seite 130 Freitag, 29. Juni 2007 11:55 11