
120
Starting/Stopping the BASIC Program
Section 7-3
• Place the PWORD command at the beginning of a statement if it is used
with an OPTION LENGTH command.
7-3
Starting/Stopping the BASIC Program
7-3-1
Starting the Program
Selecting the Program
Number
When transferring DM data allocated in the CPU Unit to the ASCII Unit at
power up or start up, the start program number is specified in bits 00 to 07 of
DM m in the DM Setup Area allocated to the Unit. Refer to
SECTION 3 IR/CIO
and DM Area Allocations
for specific word allocations.
00: No. 1
01: No. 1
02: No. 2
03: No. 3
04: No. 4
Use the PGEN command to change the program number from the terminal.
Example:
>PGEN 2 (The program area will switch to number 2.)
Starting the Program
1,2,3...
1.
If starting from the terminal, make sure that the START/STOP switch on the
front panel of the Unit is in START position, and input the RUN command
from the terminal.
2.
If using the START/STOP switch on the front panel of the Unit, toggle the
START/STOP switch from STOP to START.
3.
If starting automatically when power is turned ON or when the Unit is re-
started, set the START/STOP switch on the front of the Unit to START, and
set bits 08 to 11 of DM m + 1 to 5A
hex
(automatic start) in the DM Setup
Area allocated to the Unit. Refer to
SECTION 3 IR/CIO and DM Area Allo-
cations
for specific word allocations.
7-3-2
Stopping the Program
Press the Ctrl+X Keys to stop the program from the terminal.
If the port connected to the terminal has been opened as a COMU device or
an output device, the program cannot be stopped by pressing the Ctrl+X
Keys.
or
Turn OFF the START/STOP switch on the front panel of the Unit.
7-3-3
Stopping the Program at a Specified Line Number
Perform one of the following steps to stop the program from the terminal.
• Input RUN TO and the line number, and run the program.
• Input the BRKPT command, set the break point, and run the program.
• Input the STEP command and only run the specified lines.
or
In the program, set a STOP command at the specified line number before run-
ning the program.
7-3-4
Continuing the Program after Stopping at a Line
1,2,3...
1.
Input the CONT command from the terminal.
2.
Input the STEP command for the desired number of lines.
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...