Specifications

BASIC commands
PROGRAMMING MANUAL 161
Revision 5.0
/i
3.2.235 RUNTYPE
/i
51 LABEL must be at start of line 120 Device error: Command not sup-
ported by device
52 Cannot nest one line IF 121 Device error: CRC error
53 LABEL not found 122 Device error: Error writing to
device
54 LINE NUMBER cannot have dec-
imal point
123 Device error: Invalid response
from device
55 Cannot have multiple instances
of REMOTE
124 Firmware error: Cannot reference
data outside current block
56 Invalid use of $ 125 Disk error: Invalid MBR
57 VR(x) expected 126 Disk error: Invalid boot sector
58 Program already exists 127 Disk error: Invalid sector/cluster
reference
59 Process already selected 128 File error: Disk full
60 Duplicate axes not permitted 129 File error: File not found
61 PLC type is invalid 130 File error: Filename already
exists
62 Evaluation error 131 File error: Invalid filename
63 Reserved keyword not available
on this controller
132 File error: Directory full
64 VARIABLE not found 133 Command only allowed when
running Trajexia Studio
65 Table index range error 134 # expected
66 Features enabled do not allow
ATYPE change
135 FOR expected
67 Invalid line number 136 INPUT/OUTPUT/APPEND
expected
68 String exceeds permitted length 137 File not open
69 Scope period should exceed
number of AIN parameters
138 End of file
Number Message Number Message
Arguments N/A
Example >> PRINT RUN_ERROR PROC(5)
9.0000
See also BASICERROR, ERROR_LINE, PROC.
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 any program has compilation errors no programs will
be started at power up. To set the RUNTYPE using Trajexia Studio, set the
Priority property of the program.
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.