20-5
6000 Series user’s manual
CAMBASIC
ON INP
Specifies condition for branching by the state of
an I/O address
ON KEYPAD$
Specifies location for branching when a key is
pressed at the keypad
ON TICK
Specifies condition for branching by the state of
the tick timer
POLY
Returns value from a power series in an array
PRINT$
Writes a string of characters
QUIT
Exits CAMBASIC to DOS
RMS
Returns Root-Mean-Square value of an array
SUM
Sums elements of array
UNNEW
Undoes the NEW command if possible
VARSEG
Returns segment of variable
Easy-to-use programming examples
CAMBASIC comes with a number of programming examples. Below are
programming examples present in CAMBASIC.
Example 1
The following exemplifies the program to write display information to
Octagon DP Series and LCD Series display:
10 CONFIG PIO &100,0,0,0,0,0: ‘Configure an 8255 at
&100 to be output ports
20 CONFIG DISPLAY &100,0,0: ‘Use 2x20 fluorescent
display with a hidden cursor at I/O address &100
30 CLEAR DISPLAY
40 DISPLAY (2,0) “OCTAGON SYSTEMS”;
50 DISPLAY (2,1) “CORPORATION”;
Example 2
In the following example, a 16-key keypad is connected to the printer
port at I/O address &378. This program returns inputs from the keypad
in use.
20 CONFIG KEYPAD$ &378,0,8: ‘Keypad type=0(16-key),
port address=&378,debounce=80ms
30 ON KEYPAD$ GOSUB..getkey
40 ...idle
50 GOTO..idle
100 ..getkey
110 A$ = KEYPAD$ (0) : ‘Get key
120 POSITION = KEYPAD$(1) : ‘Get position of key
130 PRINT “Key pressed is ”;A$,” Key position is “;
POSITION
Содержание 6000 Series
Страница 2: ...O C T A G O N S Y S T E M S Embedded PCs For Extreme Environments 6000 Series User s Manual 4738 0906 ...
Страница 7: ...Notice to user PC 500 user s manual ...
Страница 9: ...About this manual 6000 Series user s manual ...
Страница 37: ...2 20 Quick start 6000 Series user s manual ...
Страница 65: ...5 16 Serial ports 6000 Series user s manual ...
Страница 87: ...6 22 EZ I O 6000 Series user s manual ...
Страница 103: ...8 8 Analog I O 6000 Series user s manual ...
Страница 119: ...14 2 PC 104 expansion 6000 Series user s manual ...
Страница 133: ...16 4 Watchdog timer reset and remote reset 6000 Series user s manual ...
Страница 139: ...17 6 Serial EEPROM 6000 Series user s manual ...
Страница 157: ...21 2 Software utilities 6000 Series user s manual ...
Страница 161: ...22 4 Troubleshooting 6000 Series user s manual ...
Страница 177: ...A 16 6010 technical data 6000 Series user s manual ...
Страница 215: ...D 16 6040 technical data 6000 Series user s manual ...
Страница 229: ...F 2 Miscellaneous 6000 Series user s manual ...
Страница 231: ...G 2 Accessories 6000 Series user s manual ...
Страница 233: ...Warranty 6000 Series user s manual ...