Ad51 Programming Notes; Basic Program Address Data - Mitsubishi Melsec A User Manual

Table of Contents

Advertisement

6. AD51 PROGRAMMING NOTES
/MELSE
6. AD51 PROGRAMMING NOTES
6.1 BASlC Program Address Data
The following information must be specified before a GPC-BASIC
program can be written: program number, program head address,
program last address, additional program head address, work area
head address, and channel. For further details on setting the data,
refer t o AD51 E Operating Manual.
The following table indicates the function of each of the addresses. Before the
BASlC program can be written a BASlC text area must be defined as well a s
an interpreter work area. The operating system automatically asigns the addi-
tional program head address depending on how much of the BASlC text area is
vacant.
I
Proaram last address
I
The last address of the BASIC t e x t area
I
Program number
BASIC t e x t number I 1 t o 8 )
Program head address
I
The first address o f the BASlC t e x t
area
(8WOH onwardrl
Add.tnon.4 program
head address
(1) Direct variables (A t o Z ) are allotted i n the BASlC interpreter
work area.
-
Head aodrers of vacant area in BASIC text area
(Aulomatcallu
set b v
the 0 S I
1
~
-
, - ~ ~ - ,
~
.
(2) Use the address range DOOOH t o FEFFH for @ array variables
Work area head
and indirect variables. The hatched areas in the example below
may not be used.
Work area used for BASlC interpreter. Fixed t o
256
bytes.
[ N o t available for user)
Example:
Channel 2 (8000H t o FFFFH) data has been set as follows:
1. Program head address
8 0 0 0 H
2. Program last address
CFFFH
3.
Additional program head address
AOCBH
4. Work area head address
FFOOH
5. Channel
2
Channel
I
Channel for the BASIC t e x t
FFOOH
BASlC interpreter work area

Advertisement

Table of Contents
loading

Table of Contents