Saving And Loading Via Personal Computers - Omron SYSMAC CV500-BSC11 Operation Manual

Basic units
Table of Contents

Advertisement

Saving and Loading Programs

4-4-3 Saving and Loading via Personal Computers

1, 2, 3...
1, 2, 3...
72
To save the program to the memory card, use the SAVE command.
SAVE "0:SAMPLE"s
. . . . . . . . . . .
The contents of the program area currently used are saved to the memory card
under a specified file name in text format (in displayed image). If the specified file
name already exists in the memory card, the contents of the existing file are
changed.
To load the contents of the memory card to the program area of the BASIC Unit,
use the LOAD or MERGE command.
To Load New Program:
LOAD "0:SAMPLE"s
. . . . . . . . . . .
The LOAD command clears the currently used area and loads the program to
that area.
To Load Additional Program:
MERGE "0:SAMPLE"s
. . . . . . . . . .
The MERGE command loads an additional portion of a program to the area cur-
rently used.
Only files of text format can be loaded. If a file of specified file name does not
exist on the memory card, an error message is displayed. If the line numbers of
the program loaded by the MERGE command overlap the line numbers of the ex-
isting program, the line numbers of the newly loaded program take precedence.
Personal computer editing operations can be used to create source programs in
the BASIC Unit or transferred programs between the personal computer and the
BASIC Unit. Connect the personal computer to the terminal port of the BASIC
Unit as proceed as described next.
Use the following program to load programs from the personal computer to the
BASIC Unit.
1. Use an editor in the personal computer to create a source program consist-
ing of BASIC Unit commands as a file in memory or on a disk.
2. Place the BASIC Unit into BASIC mode so that input from the terminal is en-
abled.
3. Create a program in the personal computer to do the following.
a) Send the LOAD command to the BASIC Unit to initialize reception.
b) Send the program created in step 1. one line at a time to the BASIC Unit.
c) Send the file end code after the last line of the source program has been
sent.
Use the following program to save programs from the BASIC Unit to the personal
computer.
1. Place the BASIC Unit into BASIC mode so that input from the terminal is en-
abled.
2. Create a program in the personal computer to do the following.
a) Send the LIST command to the BASIC Unit to have the BASIC Unit out-
put one line at a time of a source program.
b) Store each line of the program being read into the personal computer
into a file in memory or on a disk.
c) Detect "OK" in the transmission from the BASIC Unit to determine the end
of the transmission.
The following sample program can be used as reference in program develop-
ment. If there are problems with loading using this program, increase the time on
line 340.
0 is the device name (0: memory card),
and SAMPLE is the file name
0 is the device name (0: memory card),
and SAMPLE is the file name
0 is the device name (0: memory card),
and SAMPLE is the file name
Section 4-4

Advertisement

Table of Contents
loading

Table of Contents