ARLACON MC300
MC300MAE
Control system
User's manual
31
Product code 1003418
4. PROGRAMMING THE MC300
To use the McBasic programming environment of the MC300 please note the considerations in
this chapter.
4.1 SYSTEM SPECIFIC MCBASIC FEATURES
The McBasic environment in the MC300 operates under the McDos operating system, so you
can enter the operating system level with DOS, SYSTEM or X command.
Following devices are as default available for OPEN command and thus input/output
commands and functions.
CN:
console serial communications channel (default)
LP:
auxiliary serial communications channel
TR:
display and keyboard
R1:
CMOS RAM file 8Kb with no filename
D2:
CMOS RAM drive default 48Kbytes when 1M RAM installed, configurable
D6:
FLASH EPROM drive, with file system
D7:
CMOS RAM drive default 16Kb, configurable, with file system
D8:
EPROM (system) drive, with file system
If necessary, all device numbers D1: ... D8 can be configured using the McDos SET command
as RAM, FLASH or EPROM drives according to available RAM and application needs. While
several RAM drives of different sizes can be used, only one device can be set as FLASH and
one as EPROM.
4.2 DISPLAY AND KEYBOARD
The display and keyboard in the MC300 can be used from programs by opening it for a
suitable logical device number:
OPEN #5,”TR:”
Keypad and keyboard
Keystrokes can be read from the keypad or connected ASCII keyboard using the McBasic
BYTE function:
DO
A=BYTE(#5)
IF A=CHR$(“1”) THEN GOSUB SomeSubroutine
UNTIL A=13 ‘ enter key
LOOP