
114
Programming Procedure
Section 7-1
• That the communications parameters are the same for the ASCII Unit
and terminal (DM m + 2 or m + 4 contain the terminal communications
parameters)
• If the ERR indicator on the front panel of the ASCII Unit is lit, indicating
there is an error in word n + 7 (bits 00 to 11: Error Code, bits 12 to 15:
Error Type), correct the error, reset the CPU Unit power supply, and
then press the Ctrl+X Keys.
Refer to
SECTION 3 IR/CIO and DM Area Allocations
for specific word al-
locations.
The “>” prompt may not always be displayed properly after stopping a BA-
SIC program to open a port using the Start/Stop Switch. If the prompt is
not displayed, enter Ctrl + X before continuing terminal operations.
Inputting Programs
Perform the following steps to input a BASIC program directly into the ASCII
Unit.
1,2,3...
1.
Input
New
and press the Enter Key to clear the ASCII Unit’s program.
>NEW_
Note The ASCII Unit has four program areas (No. 1 to 4) within the user
memory area (RAM). Programs input using the default settings will
be input in program area 1. To input a program into another area,
switch to the desired program area executing the PGEN command
as shown in the following example.
Example:
>PGEN 2 .... (Program area 2 will become the active program area.)
2.
Input
Auto
and press the Enter Key to automatically display line numbers.
>NEW
>AUTO_
3.
Input the BASIC program.
Example:
>NEW
>AUTO
10 A$=CHR$(67)
20 PRINT A$
30_
To quit AUTO, press the Ctrl+X Keys.
Note a) Execute the LIST command to display the BASIC program that
has been written.
b) Execute the PNAME command to name the program that has
been written. See
7-6 BASIC Commands
for details on the
PNAME command.
Example:
>PNAME “SAMPLE”
(In this example,
SAMPLE
will be the program name.)
c) Execute the PINF command to display the information on the
ASCII Unit’s user memory area (RAM). See
7-6 BASIC Com-
mands
for details on the PINF command.
Example:
>PINF ALL
>PINF ALL
P1
:
[R/W]
76 bytes
P2
:
[R/W]
0 bytes
P3
:
[R/W]
0 bytes
P4
:
[R/W]
0 bytes
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...