Omron TJ2-MC64 - PROGRAMMING Programming Manual page 29

Hide thumbs Also See for TJ2-MC64 - PROGRAMMING:
Table of Contents

Advertisement

BASIC commands
Name
Description
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.
3.1.8
Program control commands
/i
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..
Enables a conditional jump to one of several labels.
GOTO
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.
PROGRAMMING MANUAL
3.1.9
Slot parameters and modifiers
/i
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.
3.1.10 System commands and functions
/i
Name
Description
$ (HEXADECIMAL
Assigns a hexadecimal number to a variable.
INPUT)
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.
23

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tj1-prtTj1-drtTj1-cortTj1-mlGrt1-ml2Tj1-fl02

Table of Contents