Specifications

BASIC commands
PROGRAMMING MANUAL 20
Revision 5.0
3.1.8 Program control commands
/i
3.1.9 Slot parameters and modifiers
/i
3.1.10 System commands and functions
/i
DEL Deletes a program from the motion controller.
DIR Displays a list of the programs in the motion controller, their size
and their RUNTYPE on the standard output.
EDIT Allows a program to be modified using a VT100 Terminal.
EPROM Stores a program in the flash memory.
LIST Prints the program on the standard output.
NEW Deletes all lines of the program in the motion controller.
PROCESS Returns the running status and task number for each current
task.
RENAME Changes the name of a program in the motion controller.
RUN Executes a program.
RUNTYPE Determines if a program is run at start-up, and which task it is to
run on.
SELECT Specifies the current program.
STEPLINE Executes a single line in a program.
STOP Halts program execution.
TROFF Suspends a trace at the current line and resumes normal pro-
gram execution.
TRON Creates a breakpoint in a program.
Name Description
FOR..TO..STEP..NEXT Loop allows a program segment to be repeated with increasing/
decreasing variable.
GOSUB..RETURN Jumps to a subroutine at the line just after label. The program
execution returns to the next instruction after a “RETURN” on
page 157 is given.
GOTO Jumps to the line containing the label.
Name Description
IF..THEN..ELSE..ENDIF Controls the flow of the program base on the results of the con-
dition.
ON.. GOSUB or ON..
GOTO
Enables a conditional jump to one of several labels.
REPEAT..UNTIL Loop allows the program segment to be repeated until the con-
dition becomes TRUE.
WHILE..WEND Loop allows the program segment to be repeated until the con-
dition becomes FALSE.
Name Description
ALL Is a modifier that specifies that all items in the controller are con-
cerned.
COMMSTYPE Contains the type of unit in a controller slot.
FPGA_VERSION Returns the FPGA version of unit with unit_number in a control-
ler system.
SLOT Is a modifier that specifies slot number of unit.
Name Description
$ (HEXADECIMAL
INPUT)
Assigns a hexadecimal number to a variable.
AXIS Sets the axis for a command, axis parameter read, or assign-
ment to a particular axis.
BASICERROR Is used to run a specific routine when an error occurs in a
BASIC command.
CAN_CORT Configures the TJ1-CORT for data exchange, or returns the sta-
tus of the TJ1-CORT.
Name Description