Character Variable Space Allocations - Omron C200H-ASC11 Manual

Ascii units
Hide thumbs Also See for C200H-ASC11:
Table of Contents

Advertisement

Character Variable Space Allocations

Writing Data from the Terminal to the ASCII Unit
BASIC Program Transfer Commands
7-2

Character Variable Space Allocations

Static (Fixed) Method
118
To write BASIC programs from the terminal to the user memory (RAM) of the
ASCII Unit, execute the LOAD command, and transfer the text file once the
ASCII Unit is in a transfer wait state.
Operation
Transferring
BASIC programs
between the termi-
nal and ASCII Unit
Transferring
BASIC programs
between flash
ROM and the
ASCII Unit
When executing the BASIC program in a C200H-ASC11/ASC21/ASC31
ASCII Unit, the method can be selected for allocating space for character vari-
ables to user memory. The following two methods are available.
Note For numeric variables, the size of the variable area is fixed based on the type,
and is therefore allocated in user memory using the static (fixed) method out-
lined below.
When compiling the BASIC program, space for all character variables in the
BASIC program will be statically reserved in user memory.
Setting
At the beginning of the BASIC program, the maximum character variable con-
tent to be used in the BASIC program is specified using the OPTION
LENGTH command. The maximum length can be specified from 1 to 255
characters.
Content
The space for character variables is reserved statically and therefore free
memory cannot be generated as with the dynamic method. Even if not actu-
ally used, the space allocated for all variables will still be used.
User memory
Variable area
Restrictions with this method are outlined below:
Terminal-to-ASCII
LOAD
Unit user memory
(RAM)
ASCII Unit user
SAVE
memory
(RAM)-to-terminal
Flash
ROMLOAD
ROM-to-ASCII Unit
user memory (RAM)
ASCII Unit user
ROMSAVE
memory
(RAM)-to-flash ROM
While compiling, the area for all
character variables is statically
reserved in user memory.
Section 7-2
Command
Example
>LOAD #1
>SAVE #1
>ROMLOAD
>ROMSAVE

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200h-asc21C200h-asc31

Table of Contents