Run_Error; Runtype - Omron TJ1-MC04 - PROGRAMMING 1 Programming Manual

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

Advertisement

BASIC commands
Arguments
program_name
Any valid program name.
task_number
Any valid task number. Range: [1,14].
Example
>> SELECT "PROGRAM"
PROGRAM selected
>> RUN
This example executes the currently selected program.
Example
RUN "sausage"
This example executes the program named sausage.
Example
RUN "sausage",3
This example executes the program named sausage on task 3.
See also
HALT, STOP.

3.2.233 RUN_ERROR

/i
Type
Task parameter (read-only)
Syntax
RUN_ERROR
Description
The RUN_ERROR parameter contains the number of the last BASIC run-time
error that occurred on the specified task.
Each task has its own RUN_ERROR parameter. Use the PROC modifier to
access the parameter for a certain task. Without PROC the current task will be
assumed.
Arguments
N/A
Example
>> PRINT RUN_ERROR PROC(5)
9.0000
See also
BASICERROR, ERROR_LINE, PROC.
PROGRAMMING MANUAL

3.2.234 RUNTYPE

/i
Type
Program command
Syntax
RUNTYPE "program_name", auto_run [ , task_number ]
Description
The RUNTYPE command determines whether the program, specified by
program_name, is run automatically at start-up or not and which task it is to
run on. The task number is optional, if omitted the program will run at the
highest available task.
The current RUNTYPE status of each programs is displayed when a DIR
command is executed. If one program has compilation errors no programs will
be started at power up. To set the RUNTYPE using Trajexia Tools, select Set
Power-up mode from the Program menu.
Note: The execution of the EPROM command is required to store the new
RUNTYPE settings into flash memory. Otherwise the new settings will be lost
when the power is switched off.
Arguments
program_name
The name of the program whose RUNTYPE is being set.
auto_run
0 = Running manually on command; 1 = Automatically execute on power
up. All non-zero values are considered as 1.
task_number
The number of the task on which to execute the program. Range: [1, 14].
Example
>> RUNTYPE progname,1,3
This line sets the program progname to run automatically at start-up on task
3.
Example
>> RUNTYPE progname,0
This line sets the program progname to manual running.
See also
AUTORUN, EPROM, EX.
134

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tj1-mc16 - programming 1Tj1-mc04 1

Table of Contents