Komtek 1 User manual

KOMTEK I
MICROCOMPUTER

KOMTEK I
MICROCOMPUTER
CONTROL FUNCTION MANUAL
KOMTEK TECHNOLOGIES LTD.

BRIEF SUMMARY OF CONTROL FUNCTION
OPERATIO N USING DEM ONSTRA TIO N T A P E PROGRAMME
1. Load Control Function demonstration tape using CLOAD, press RETU R N key.
2. After loading type RUN & press RETURN.
3. I f you want channel 1 to light up just press key 1, i f channel 3, press key 3 & so on up to 6.
If you want it to go OFF just press again.
4. For sensing to be active press 7 for sensing channel 1, 8 for channel 2 & so on.
5. There are two kinds o f contact switch: the OPEN or CLOSE type, so choose the corresponding
channel as designated by A.B.C.D.
6. Starting time for control function: Just type O and then the number o f the channel. Then type
time. e.g. 6:30 A.M. just type 0630 and the screen will show 06:30. The programme will take
care o f the : always maintain a 4 digit configuration For 6:30 P.M. just type 1830.
7. For tim e-off just type F and proceed as before.
8. Be sure to set the OUT-IN switch in the O U T position for the real time clock to run. Set it
O U T just before you load tape.
PRIN TE R FUNCTIONS ASSOCIATED WITH CO N TR O L FUNCTIO NS
In some countries the Distributer order from Komtek the Control Function-Basic Printer
together as a package. In this case one can have printer function simply by connecting a parallel
centronic printer.
O P E R A T IN G TH E BASIC PRIN TER IN TER F A C E
1) When the printer is already connected to the printer Dort:
Tum on the power and the basic instruction o f LP R IN T“ or L L IS T will operate the
printer.
2) When the printer is not connected to the computer printer port and the computer is
turned on or in operation:
You should then put in the printer connector and then use the following: —
SYSTEM Press RETU RN
* ? Will appear
N ow t y p e t h e f o l l o w i n g : - / 1 2 3 6 7
T y p e L P R IN T " t h e n p r e s s r e t u r n
OM ERROR w i l l a p p e a r n o w p r o c e e d t h e s e c o n d
t i m e & t h e p r i n t e r w i l l w o r k .
N o t i c e t h a t e v e r y t i m e y o u p r e s s t h e RETURN k e y t o g o t o t h e
n e x t l i n e t h e p r i n t e r a l r e a d y p r i n t o n p a p e r g i v i n g y o u n o
c h a n c e o f e d i t i n g . O ne s o l u t i o n i s t o u s e l i n e n u m b e rs an d
t h e e d i t i n g c a n b e d o n e u s i n g B a s i c E d i t i n g f u n c t i o n s . F i n a l l y
w h en y o u a r e s a t i s f i e d w i t h i t y o u c a n u s e RUN t o dump a l l t h a t
y o u h a v e o n t h e s c r e e n o n t o t h e p r i n t e r . T o f u r t h e r s a v e y o u
t h e t r o u b l e o f w r i t i n g l i n e n u m b e r s y o u c a n u s e AUTO f o r
a u t o m a t i c l i n e n u m b e r .
1

OPERATING THE CONTROL FUNCTION
The simplest mode o f operationg the control function is to use it to turn on electrical
appliances & machines. Suppose the control function channels are connected to 6 control boxes,
or even LED’s. I f you want the first control channel to light up, this is what you do:
1. Turn on the computer.
2. Reset the computer, some version o f the same computer with real time clock based on the
interrupt (IN T ) has to be reset by first pressing the switch on the left side o f the computer
to stop the clock and at the same time press the reset switch on the keyboard for 2 seconds
& then release both.
3. Press R ETU R N key.
4. If you want channel 1 to light up type: POKE 13825, 1
5. Press RETURN
The LED will immediately light up.
6. Let’s say you want channel 3 to light up this is what you type in as a continuation:
POKE 13825, 4. Press RETURN key. Yes, 4 represent No. 3 channel because all the channels
are recalled by a system o f binary place value not decimal value.
Channel No. 1 2 3 4 5 6
Binary 00000001 00000010 00000100 00001000 00010000 01000000
Decimal place value 1 2 4 8 16 32
For you information Komtek 1 microcomputer has already 8 control channels. But only 6 is
wired for your use externally. I f you are an electric engineer or technician you can wire you the 2
extra bonus channels. Another point o f interest is that 13825 in the hex system is 3601.
Note: FOR OLDER VERSIO N OF KOMTEK 1, Y O U NEED T O T YPE FIR S T POKE 13827,
128 & PRESS RETU RN K E Y BEFORE YO U T YPE CLAUSE 4.
Occasion arises where one needs to turn on more than one channel at the same time, in this
case all you need to do is to superimpose the binary one’s & translate into decimal, for example:
If you want to turn on channel 1
Binary 0000 0001
Decimal 1
If you want to turn on channel 3
Binary 0000 0100
Decimal 4
If you want to turn on both channel 1 & 3
0000 0001
0000 0100
0000 0101 which is decimal 5
The principle to do this is, in a more imaginative form, is to imagine all the 0’s in the binary
train as switches turned off. I f you want to turn on any one o f them, just put in the number 1 in
the required switch position which represent turning on a switch. So the number name o f the switch
is called by its place value mathematically turning one more than one switch is merely binary
addition. So in the decimal system too, it is the aiding o f the decimal value!
2

.You can o f course turn on all the switches, in our computer it is the decimal value 63.
Now with all the switches or one o f the switch on, how to turn it off?
Type: POKE 13825, O. & press R ETUR N key.
For those who purchase Komtek 1 equipped with control function, there is a operating
cassette programme to be load into the computer, you do not need to do the “ PO K ING ” . All you
need to do is to press one key for each channel & also to set the clock or alarm & also termination
time.
To use the programme, First load the cassette programmes into the computer. A fte r going
through the normal loading procedure type RUN, press RETU R N key and the switch operating
listing will be shown on the screen as a 12 line listing, excluding the real time clock on the top right
hand comer.
To set the real time on the top right hand corner you set it from seconds to minutes & then to
hour. However this is an interruption o f the programme, so you First press BREAK key and proceed
as follow:
(L e t’s suppose the time is now 10:45:32)
a. To set second:
POKE 16449, 32 press R ETUR N key.
b. T o set minutes:
POKE 16450, 45 press RETU RN key.
c. To set hour:
POKE 16451, 10 press RETU RN key.
d. Type CONTINUE & press RETURN key.
or Type RU N & press RE T U RN key.
Now you have the correct time - but, do not turn the computer o ff otherwise you have to
reset again. I f you set the time on the computer before you load the control programme you do not
need to press the BREAK key; or that you can simply leave the power on so that computer is acting
as a clock.
Note that in the above d. when you type CONT you only have part o f the listing shown on the
screen as your previous setting move the programme on the screen upwards, but the contents is
still in the memory, you have not lost anything, just that you are not able to see the complete
listing.
However when you type R U N & press RETU R N you have a complete listing but you have lost
all date that you put in (except the programme). I f you are starting a new control function setting
it is all right, but when you are in the middle o f a programme setting & forget to set the time, then
you would have to use the command CONT.
We advise strongly that you should always reset your real time clock first before you will load
the control programme to save you the dilemna o f choosing CONT or RUN.
3

Going back to loading the control function after it is loaded type RUN and press R E T U R N &
a 12 line listing will appear on the screen.
TIM E TIME
SWITCH O U TPUT SENSER OFF IS ON O FF
SW 1 - OFF OFF OPEN 0 0 :0 0 0 0 :0 0
SW 2 - OFF OFF OPEN 0 0 :0 0 0 0 :0 0
SW 3 ** OFF OFF OPEN 0 0 :0 0 0 0 :0 0
SW 4 ** OFF OFF OPEN 0 0 :0 0 0 0 :0 0
SW 5 - OFF SW 6 - OFF
1 7 AOF F
28B
39C
40D
56
The bottom 5 rows o f alphabets and numerals represents the control and sensing function
switch number as well as the ON-OFF time.
1 represents control function switch 1
2 represents control function switch 2 etc.
7 represents sensing function switch 1
8 represents sensing function switch 2 etc.
NOTE: Control Function switch 5 is represented by 5 and switch 6 is represented by 6, both
do not have corresponding sensing functions to match. O f course it holds true for this
programme only.
You can also write programme to have switch 5 or 6 to correspond to any o f the
sensing function channel (or switch). Or alternatively you can use one control channel
to correspond to all 4 control functions or vice versa.
To activate the different functions all you need to do is to type the corresponding
number or alphabet on the keyboard; typing the same key twice causes it to revert
back to the original mode.
One the fourth column is OFF IS. This means that when the senser is ON the way you
stop the control function is by choosing the OPEN or CLOSE mode. For example:
When switch 1 i.e. SW1 is on & SENSER control is ON and if O FF IS is typed OPEN,
control switch 1 will be OFF when you have no sensing lead connected to the sensing
channel or that even if it is connected & open circuited it will still be OFF. Thus the
control function will operate only when the sensor is CLOSE circuited; if it is OPEN
circuited the control function will be OFF.
So when you are boiling water in the morning and if your sensing function is con
nected to a contact point thermometer it should be o f the “ OPEN CIR C U IT T Y P E ”
i.e. when certain temperature is reached the circuit will OPEN thus stopping the
control function. However if the thermometer you bought is o f the “ CLOSE-CIRCUIT
T Y P E ” all you need to do is to change the mode by typing A on the keyboard to
change the O FF IS for senser 1 to CLOSE.
Every time the sensing function turn O FF the control function it will not revert back
by itself again.
4

This is true for control channel 1& 2. What it means is that in the above example o f
boiling water, even if the temperature drops after a while when power is turn O FF
the control function wili not be able to start by itself. Control channel 3 & 4 is special
in that it is continuously re-activated by itself every time the sensing function revert
back to its original state. This means that when you cook food you can have your food
warmed by using that 3rd or 4th control channel & sensing function. Every time when
the food gets cold that sensing function will sense the drop via the thermometer and
command the control channel to turn pn the heat again. This carries on until termina
tion time, as designated by column TIM E OFF. So we designate control channel 3 &
4 by tw o asterisk * * to distinguish its nature from channel 1 & 2. A fter you have set
all the time please make sure that the real time clock is ON. This is done by releasing
the OUT-IN switch on the left side o f the computer by leaving it in the O U T posi
tion. Otherwise the clock will not run!
To set the time o f switching on and o ff for the control function, proceed as follow:
a) Press key 0 and on the screen you will see:
SET SWITCH (1 -4 )
This means it is asking you what switch (or channel do you want).
b) I f you want say channel 2, you simply press key 2 and press RETU RN, the screen will
show:
TIM E:
Now if you want to set the time as 12:30PM, you simply type 12 on the keyboard and
the screen will show you
12:
Now type 3 and the screen will show
12:3
Now type 0 the line will disappear!
Because 12:30 is immediately transferred to the TIM E ON column.
To set the time O F F press key F and proceed as before. For P.M. add 12 to the time because
the computer real time clock runs on HOURS designation basis, e.g. 8 O ’clock in the evening is
20:00 HOUR.
By the way, when you have gone through most o f the programme and find that there are
typing errors, don’t press RESET! Just press BACK SPACE to where you made the mistake and
re-type again.
Or you can type B REAK and the line in which you write will be erased completely. In case
you go way back to the beginning o f the programme then you do not want all the intermediate line
to be erase; you should then use EDIT functions: please refer to your basic manual for ways o f
using it.
Finally type RUN and press R ETURN. Leave the computer on until the control function has
done its job.
You can write programme to convert the real time clock on the top right hand comer o f the
screen to drive big time display on the screen. So that for those o f you who are short sighted or that
you T V is every far away you can still see the time from afar.
5

P r i o r i t i e s :
C h a n n e l 1 t o c h a n n e l 4 ca n a l l b e o p e r a t e d
m a n u a lly a n d i n c o n ju n c t i o n w i t h s e n s in g f u n c t i o n .
I n t h e c a s e o f c h a n n e l 1 & 2 . T h e s e n s o r o n l y
d o e s i t s d u t y f o r o n c e an d s t o p s .
I n t h e c a s e o f c h a n n e l 3 & 4 t h e s e n s o r w o r k s on
t h e c o n t r o l f u n c t i o n ON & OFF f o r u n l i m i t e d
n u m b e r o f t i m e s .
H o w e v e r o n c e yo u s e t t h e t i m e o f ON o r OFF t h e
p r o p e r p r o c e d u r e i s t o s e t c o n t r o l an d s e n s in g
c h a n n e l b o t h i n t h e OFF m ode e x c e p t t h e s e n s in g
m od e i n d i c a t e d b y t h e c o lu m n OFF I S .
W hen t h e t i m e c o m es t h e m a c h in e w i l l a u t o m a t i c a l l y
t u r n s b o t h c o n t r o l a n d s e n s i n g f u n c t i o n ON f o r
d u t y t i l l i t i s t u r n e d o f f b y t h e p r o g ra m m e d
t i m e .
(H o w e v e r b e f o r e t h e s e t t i m e y o u c a n s t i l l
m a in p u l a t e c h a n n e l 3 & 4 b y h a n d a f t e r t h e s e t
t i m e y o u c a n a l s o m a i n p u la t e d m a n u a l l y a s
an o v e r r i d e )

10 CLS:G0T0570
20 C L S :CT=0 :PR INT:POKE 13827,137
30 T S ="17A28B39C40D":TI =P EE K<16451> *16+PEEK(16450)
40 POKE 13825,0
50 P RINT"TO SEEK INSTRUCTION:- PRESS I"
60 PRINT:PRINT" TIME TIME
SW ITCH OUTPUT SENSER OFF IS ON OFF
SW 1 — OFF OFF OPEN 0 0 : 00 00:00
SW 2 — OFF OFF OPEN 00:00 00:00
SW 3 ** OFF OFF OPEN 0 0:00 00:00
70 PRINT "SW 4 ** OFF OFF OPEN 0 0 : 00
SW 5 — OFF SW 6 - - OFF
17A0F
28 B -
39C
4 0 D
56"
80 DIM S W (6,5): FOR A=1 TO 4:S W (A,3 ) = 1 : NEXT
90 G OS UB 100:GO TO 200
100 G OSUB 520 :TC=P E E K <1 6451) * 16+ PEE K< 16450): IF IN T(TC- TI)>0 THEN GOSUB 350
110 IF S W (1,2)+ S W (2,2)=0 THEN 150 ELSE FOR A=1 TO 2 : IF SW(A, 2) =0 OR S W( A, 1> =0 TH
EN 140
120 B = P E E K (138 26) AN D 2 C ( A + 3): IF (B > 0 >*- l < > S W(A,3 ) THE N 140
130 X=A :GOSUB 330
140 NEXT
150 IF S W (3,2)+ S W (4,2)=0 THE N RETUR N EL SE FOR A=3 TO 4
160 IF SW (A,2)=0 THEN 190
170 IF ( (PEEK < 13826) AND. 2C (A+3) > >0) *-l=SW (A, 3) THEN IF SW(A,1) = 1 THE N X=»A:GOSUB
330 :G OTO 190
180 IF ( ( P E E K U3S2 6 ) A ND 2C (A + 3 ) ) >0) *-l < >SW (A, 3) THEN IF SW(A ,1)=0 T HEN GOSUB 34
0 : S W ( A , 1) = 1: CT= C T + 2 C (A - 1>:PR INT@265+A*6 4, "O N "!:POKE 13825,CT: GO SU B 550
190 NEXT:RETURN
200 K S= INKEY S:IF KS="" THEN 90
21 0 IF KS="Q" OR KS = " F " THEN 420
220 IF KS="I"THEN570
230 IF KS< >"5" AND KS<>"6 " THE N 260 ELSE S=6 :IF K S = " 5 ” THEN S=5
240 IF SW (S,1) =0 THEN C T=C T+ 2 C(S - l):FS ="ON ":SW(S,1>=1 ELSE C T =CT- 2 C(S - l>:PS="OF
F " : S W (S,1)=0
250 P OK E 13825,CT:PRINT 0500 + S * 17, P S ;
260 FOR A = 1 TO 12: IF M I D S (T S , A, 1>< >KS THEN 320
27 0 C=I NT <(A-l)/3 )+1:B=A - (C- l )*3
28 0 IF SW (C,B> = 1 THEN S W (C,B)=0 :P S="CLOSE" ELSE S W (C,B>= 1 :PS =" OP EN "
290 IF B<3 THEN IF SW(C,B)=1 THEN PS="ON " ELSE PS="OFF"
300 I FB =1 THEN IF SW(C,B)=1 THEN C T =CT+ 2 C(C - l):POK E 13823,C T EL SE X=C:GOSU B 330
31 0 P R INT @ 257 + C* 64+ B*8 ,P S;: GOT O 90
320 NEXT:GOTO 90
6

330 GOSUB 540:CT=CT-2C<X— 1):POKE 13825,CT:PRINT@265+X*64,"OFF";
340 GOSUB 550:S W (X , 1)=0: RETURN
350 GOSUB 540:FOR A=1 TO 4:TI=TC:IF S W (A,4 )=S W (A,5) THEN 410
360 IF SW(A,1)=1 THEN 390
370 IF SW(A,4)< >TI THEN 410
380 SW(A, 1> = 1>PRINT@265+A*64,"ON :CT=CT+2C(A-l): POKE 13825,CT:GOTO 410
390 IF SW(A,5)< >TI THEN 410
400 SW(A,1)=0:PRINT@265+A*64,"OFF";:CT=CT-2C(A-l): POKE 13825,CT
410 NEXT:GOTO 550
420 SS=KS:PRINT@962,"SET SWITCH (1-4)
430 GOSUB 100:KS=INKEYS:IF KS>“4" OR KS<"1" THEN 430 ELSE S=VAL(KS)
440 PRINT@962,CHRS(30);"TIME : ";:STS="":TS=0:ST=0
450 GOSUB 100:KS=INKEYS:IF K$>"9" OR KSC'O" THEN 450
460 PRINT K$;
470 STS=STS+KS: IFLEN(STS)=2 THEN TS=TS+1:ST=ST*16+ VAL (STS ):P T S (TS ) IF
TS<2 THEN PRINT
....
GOTO 450 ELSE IF V A L (PTS(1)>>23 ORVAL(PTS(2))>59 THEN 440
ELSE 490
480 GOTO 450
490 IF S$="0" THEN S W (S,4)=ST:SL=1 ELSE S W (S,5)=ST:SL=2
500 PRINT C HRS(29);C H R S (30);
510 PRINT @280+S*64+SL*9,PTS(1)j": ;P T S (2);: GOTO 90
520 GOSUB 540:GOSUB 540:PRINT @181, : Z=PEEK(16451>:GOSUB 560:PRINT ":"t:Z=PEEK
(16450):GOSUB 560:PRINT ":"5:Z=PE EK(16449):GOSUB 560:G0T0 550
530 GOSUB 550:RETURN
540 C1=PEEK(16 4 16):C2 = PEEK(16 4 17): RETURN
550 POKE 1 641 6,Cl:POKE 16 417,C2:RETURN
560 PRINT RIGHTS ("0"+RIGHTS(STRS(Z),LEN(STRS(Z>)-1),2)!: RETURN
570 PRINT" INSTRUCTION FOR CONTROL & SENSING FUNCTION-TIMER PROGRAMME
580 PRINT" THIS IS A DEMONSTRATION PROGRAMME FOR YOU TO FAMILIARIZE YOURSE
LF WITH OUR CONTROL SYSTEM OF KOMTEK I. YOU CAN TURN ON 6 APPLIANCES BY 3 WAYS
590 PR INT:PRINT
600 PRINT"1ST SIMPLE SWITCH ACCORDING TO THE # ON KEYBOARD
I.E. : SW 5, SW 6
610 PR INT"2ND CONNECTED WITH SENSING FUNCTION STATUS 3RD C
ONTROLED BY PRESET TIMER (SW 1 TO SW 4)
620 PRINT:PRINT:PRINT"THE SITUATION OF THE SWITCH, TIMER, S< SENSOR ARE SHOWN IN
THE TABLE BELOW:
630 F0RT-0T02OOO:NEXT
640 CLEAR255
650 G0TÜ20
7

D IS P LA Y IN G T IM E
If you do not intent to load or use any control functions but just to use the computer as a
clock the following are the procedures:
a) Look at your watch and set the correct time by POKE method suppose the time is
14:25:42 i.e. 2 o ’clock in the afternoon Twenty Five Minutes and Fourty-two seconds.
b) To set seconds:
POKE 16449,42
Press RETU R N key
T o set Minutes
POKE 16450,25
press RETURN key
The clock in the computer is already running and that gives you any amount o f time to
type in the display command.
c) To tell the computer to display the time on the screen type in the following programme:
10 P R IN T @ 5 6 ,“ FO R A = 16451 to 16449 STEP-1
20 AS = STRS (PEEK ( A ) ) : P R IN T R IG H T $
( “ 0 ” +R IG H T $ (AS, LEN ( A S ) - l ) , 2);
30 IF A O 16449 THEN P R IN T “ :” ;
40 N E X T
50 GOTO 10
T o execute the above programme, type R U N and press RETU R N key. The time will then
be displayed on the screen.
d) For your own convenience we suggest that you load the programme on tape so that you
do not have to go through the tedious procedure o f typing out the programme.
In case you wish to display the time on one more line below, just add 64 to 56 i.e. 120. In line
10 PR IN T @56 now becomes P R IN T @120. Following the same reasoning if you like to display 5
spaces further to the left then type P R IN T @115.
8

CO N T R O L FUNCTIONS
FURTH E R EXPANSIO N
Komtek 1 fitted with control functions may be expanded to a total o f 24 channels without
any additional hardware internally. One only need to use a 34 P IN flat cable & connector to tap
the control channels from the printer port. This is because the printer port is only wired for 12
channels, plus the 6 existing control function channels and the existing 4 sensing channel makes a
22 channel control & sensing function machine. So for those who do not wish to do modifications
he can still have a ready 22 channels control functions.
To get the last two channels one only needs to connect two wires to the printer port:
1 Connect printer port pin NO. 19 to pin NO. 14 o f control chip 8255 by soldering a wire and
also cut the 5V power leading to pin No. 14 o f 8255.
2. Connect printer port pin NO. 27 to pin NO. 24 o f 8255.
The above connection applies to computer which has a mainboard designated from KT1001-
01-62 up to KT1001-01-64CI. For mainboard which are o f the KT1001-01-64D version and later
version all one need is to apply a drop o f solder to connect two half moon shaped pieces to connect
up the wire laid into the board and also to cut the power to pin NO. 14 o f 8255 marked by a cross
X over the wire, with a sharp knife.
For those who buy control functions o f 64C version and later a simple demonstration pro
gramme fo r the 20 control function outlet is supplied with the package. This simple programme is
stored after the main demonstration programme on the demonstration tape. One can list out the
programme to gain an insight o f how it is written. In this programme there are no sensing functions.
O f course you can add them into the programme yourself.
One can also change some o f the channels into sensing channels by adding a series resistor to
output o f 2.7 to 4.7K, and a boot up resistor o f 270 to 100 OHMS. The boot up resistor is con
nected to the 5V + power supply.
* CAU TIO N : One must be well versed with electronic circuits to do this conversion. The manu
facturer & Distributor will not entertain any claim arising from damages due to
control function expansion modifications. The user is advised to use the 22 channels
available without any soldering.
* IM PO R TANT: All control function interaction with the outside world where higher voltage are
involved must be properly insolated by optical couplers or relays, or thryisters.
Any leakage may caused the computer to bum out! In order not to unduly over
load the power supply when all 24 control channels are. Operating at the same
time all the time, we strongly advise users to feed the signal through a transistor
so that the load is on the transistor & that there are practically very little current
drain on the 8255 chip. One separate transistor for each channel should be used.
9

F U LL EXPANSIO N
For those who are using Komtek for more process & industrial & building controls the ex
pansion circuit is recommended. One can use expander boards with banks o f 8255 and stack up to
a total o f 255 channels. A separate power supply is needed. However the supply o f these systems
are on a contract & custom made basis. In many countries these 255 channel control system
Komtek are marked under a different distributor than those who market personal or home
computer. Also it may appear on the market under a different brand name i.e. on a OEM basis.
SIG N A L CONVERSION
Sometimes it may be helpful to have a A/D i.e. analogue to Digital converter to convert your
signal into quantitative Digital signal for the computer to analyse. For example if you have a certain
voltage to monitor you can set a threshold digitally so that if the voltage exceed or drop below a
certain voltage the control function would operate according to a certain programme mo^e.
Kom tek’s simple A/D converter plugs into the expander port. I f you have a printer interface hooked
up onto the expander port you can get an extra connection by putting a second female parallel
output connector or use our multi expander output cable.
Expander pin
Number
8355 pin
Number
Programming
Number
Demonstration
Programme
Designation
125 POKE 13825, 128 428
34POKE 13824, 1 1
53POKE 13824,2 2
7 2 POKE 13824,4 4
9 1 POKE 13824,8 8
11 40 POKE 13824, 16 16
13 39 POKE 13824, 32 32
15 38 POKE 13824,64 64
17 37 POKE 13824, 128 128
19 14 POKE 13826, 1 601
21 17 POKE 13826,8 608
23 16 POKE 13826,4 604
25 15 POKE 13826, 2 602
27 24 POKE 13825, 64 364
29
31
33
Existing Control Control channel 1 POKE 13825,01 301
Outlets Fitted On Control channel 2 POKE 13825,02 302
The Computer Control channel 3 POKE 13825,04 304
Control channel 4 POKE 13825,08 308
Control channel 5 POKE 13825, 16 316
Control channel 6 POKE 13825,32 332
Existing Sensing Sensing Channel i POKE 13826, 16 616
Outlets Fitted On Sensing Channel 2 POKE 13826,32 632
The Computer Sensing Channel 3 POKE 13826,64 664
Sensing Channel 4 POKE 13826, 128 728
10

CONNECTING TH E COMPUTER
The following diagramme shows the connection points o f Komtek 1 and is self explanatory.
11

1 I- 0RT=0T016 : PR I N T : NEXT
2 PR INT"THIS IS KOMTEK CONTROL PROGRAMME. YOU CAN USE IT TO CONTROL
NT APPLIANCES. "
3 PRINT: PRINT:
5 PRINT"THE APPLIANCES ARE NUMBERED AS FOLLOWS:"
6 PRINT" 1
7 PRINT“301
8 PRI NT"601
9 PRINT:PRINT
T
24816 32
302 304 308 316 332
602 604 608
TURN THEM OFF, TYPE 999":PRINT"TO 1
0 64
364 (
128'
428'
20 DIFFERE
1000": PRIN
10 POKE 13827,128
4 PRINT"WHICH LAMP (OR APPLIANCES) DO YOU WANT":
20 INPUTA
21 IFA>=300ANDA 0 5 6 T H E N 1 0 0
22 IFA>=600AND A<856THEN200
23 IF A = 99 9 T H E N 100 0:
24 IFA=1000THEN2E
25 IFA >=0ANDA<256THEN30
26 PRINT"ILLOGICAL INPUT":G0T020
30 POKE 13824,A
40 G0T0500
100 B=A—300
110 POKE 13825,B
130 G0T0500
200 C=A—600
210 POKE 13826, C
500 PRINT:PRINT"WHAT OTHER APPLIANCES WOULD YOU LIKE TO TURN ON'’"-PRINT-
550 G0T020
1000 PRINT"TURN OFF THE 1st ROW OF LAMPS BY INPUT 0"
1010 PR INT"TURN GFF THE 2nd ROW BY INPUT 300"
1020 PRINT"TURN OFF THE 3rd ROW BY INPUT 600"
1040 GDT020
12

Other manuals for 1
1
Table of contents
Other Komtek Computer Hardware manuals