FINS commands Section 3-4
70
3-4-5 Run (0401)
The FINS Run command starts or stops a BASIC program.
The FINS Run command has these formats:
• To start a BASIC program:
/i
• To stop a BASIC program:
/i
The parameters can have the following values:
/i
The CJ1W-MCH72 responds with these codes:
/i
If the response code is 0000, the program is started or stopped.
04 01 00 .. 01 .. ..
command_code process mode program_name
04 01 00 .. 00
command_code process mode
Parameter Values
mode • 00 (Stop)
• 01 (Start)
process 01..0E (Process number)
program_name A string that represents the program name
(The string does not have zero termination)
Condition Response code
(hex)
Description
All elements valid 0000 OK
process invalid 1106 Process number does not
exist or invalid mode
mode invalid
program_name invalid 2402 Program name does not
exist
Start BASIC program that is already
running
2201 Wrong mode (executing)
Stop BASIC program that is not run-
ning
2202 Wrong mode (stopped)