
14
Basic Operating Procedures
Section 1-6
1-6-2
BASIC Programming Procedure
1,2,3...
1.
Study communications procedures with the external devices. For further
details on creating flowcharts for communications procedures, refer to
SECTION 4 Data Exchange with General-purpose External Devices
.
2.
Study the method of data exchange with the CPU Unit, including the fol-
lowing:
• Data exchange timing
• Data exchange trigger to be used (i.e., whether to trigger the exchange
from the CPU Unit or the ASCII Unit)
• Interrupts from the CPU Unit
• Data transfer method based on the volume of data
For further details, refer to
SECTION 6 Data Exchange with the CPU Unit
.
3.
Study BASIC internal processing. For further details, refer to
SECTION 5
Processing
.
4.
Write the program. Refer to
7-4 Program Configuration
,
7-5 List of BASIC
Commands
, and
7-6 BASIC Commands
.
5.
Debug the program. Refer to
7-3 Starting/Stopping the BASIC Program
and
7-8 Debugging
.
Note
1.
When storing the program in flash ROM, enter the ROMSAVE command
from the terminal.
2.
When automatically reading the program to user memory at power ON or
when the Unit is restarted, set bits 08 to 15 of the DM word m to 5A
hex
in
the DM Setup Area allocated to the Unit.
3.
Set the port number to 3 when using the LOAD or SAVE command for the
C200H-ASC31.
1-6-3
Connection and Transfer to External Devices
1,2,3...
1.
Mount the ASCII Unit to the Backplane.
2.
Set the following switches on the front of the Unit.
• Unit number switch
• RS-422/485 2-wire/4-wire switch
• RS-422/485 terminating resistance switch
Refer to
2-1 Nomenclature and Functions
.
3.
Connect the external devices using an RS-232C or RS-422/485 port de-
pending on the type of device. Refer to
2-2 Installation.
4.
Turn on the PC power supply.
5.
Using a PC peripheral device (such as Programming Console) set the DM
area words allocated in the CPU Unit. In particular, set DM word m+1 bits
00 to 07 to specify whether the ASCII Unit will run when power is turned
on or the Unit is restarted. Refer to
3-2 DM Area Allocations
.
6.
Transfer the ladder program to the CPU Unit.
7.
Toggle the PC power off and then back on, or restart the ASCII Unit. The
BASIC program will be executed if the ASCII Unit is set to start operation
at power ON or when the Unit is restarted (in the DM Setup Area allocated
to the Unit).
8.
If the ASCII Unit is set for manual starting at power ON or when the Unit is
restarted (in the DM Setup Area allocated to the Unit), perform one of the
following steps.
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...