BASIC commands
PROGRAMMING MANUAL 23
Revision 1.0
3.1.8 Program control commands
/i
3.1.9 Slot parameters and modifiers
/i
3.1.10 System commands and functions
/i
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.
GOTO Jumps to the line containing the label.
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
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.
AXIS_OFFSET Defines the axis offset per unit when axes are assigned.
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.
CLEAR Clears all global variables and the local variables on the current
task.
CLEAR_BIT Clears the specified bit of the specified VR variable.
CLEAR_PARAMS Clears all parameters and variables stored in Flash-ROM to
their default values.
CONSTANT Declares a constant for use in BASIC program.
CRC16 Calculates the 16 bit CRC of data stored in contiguous TABLE
or VR Memory locations.