Program Control Commands; Slot Parameters And Modifiers; System Commands And Functions - Omron TJ1-MC04 - PROGRAMMING 1 Programming Manual

Hide thumbs Also See for TJ1-MC04 - PROGRAMMING 1:
Table of Contents

Advertisement

BASIC commands
Name
Description
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.
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" on
page 132 is given.
GOTO
Jumps to the line containing the label.
PROGRAMMING MANUAL
Name
Description
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" on page 146.
WHILE..WEND
Loop allows the program segment to be repeated until the con-
dition becomes FALSE.
3.1.9

Slot parameters and modifiers

/i
Name
Description
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.
BASICERROR
Is used to run a specific routine when an error occurs in a
BASIC command.
CLEAR
Clears all global variables and the local variables on the current
task.
CLEAR_BIT
Clears the specified bit of the specified VR variable.
38

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tj1-mc16 - programming 1Tj1-mc04 1

Table of Contents