home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
basic
/
library
/
pb
/
library3
/
factory.bas
< prev
next >
Wrap
BASIC Source File
|
1994-04-11
|
4KB
|
135 lines
'Program Name : Factory.bas
'Author : Lloyd L. Smith for Spectra Technical Support
'Date : 11-12-90
'Compuserve # : GO PCVENB, Vendor #12/Spectra, Tech Support ID 71530,2640
'Tech Support BBS: 813-625-1721, PC-Board, 8,N,1 USR HST 300 - 14.4, 24hrs
'Tech Support Fax: 813-625-1698 G2 & G3 compatible
'Tech Support Voc: 813-625-1172 Voice
'Concept Date : 07-13-90
'Concept by : Smithtronix Corporation
' : Advanced programming examples, few comments in source code
'
DIM Arry1(5000)
SCREEN 9, , 1, 0
LINE (0, 0)-(639, 349), 14, B
LINE (40, 30)-(600, 180), 8, BF
'Vertical Scaline Lines
os = 0
FOR i = 1 TO 12
LINE (67 + os, 31)-(67 + os, 179), 4'6
os = os + 48
NEXT i
'Horizontal Scaline Lines
os = 15
FOR i = 1 TO 5 '9
LINE (41, 31 + os)-(599, 31 + os), 4'6
os = os + 30
'os = os + 15
NEXT i
COLOR 14, 0: LOCATE 2, 28: PRINT "Smithtronix Trend Monitor";
COLOR 15, 0: LOCATE 3, 77: PRINT "400";
LOCATE 13, 77: PRINT "000";
COLOR 11, 0: LOCATE 4, 78: PRINT "O";
LOCATE 5, 78: PRINT "V";
LOCATE 6, 78: PRINT "E";
LOCATE 7, 78: PRINT "N";
LOCATE 9, 78: PRINT "T";
LOCATE 10, 78: PRINT "E";
LOCATE 11, 78: PRINT "M";
LOCATE 12, 78: PRINT "P";
'Border Enhancement
LINE (39, 29)-(601, 181), 11, B
COLOR 14, 0
LOCATE 14, 2: PRINT "TFT 00000 03000 06000 09000 12000 15000 18000 21000 24000 27000 30000 33000";
LOCATE 15, 2: PRINT "TIME 12:00 12:15 12:30 12:45 01:00 01:15 01:30 01:45 02:00 02:15 02:30 02:45";
COLOR 15, 0
LOCATE 16, 2: PRINT "FPM 200"
LOCATE 16, 14: PRINT "Oven Colors ";
COLOR 10, 0: PRINT "1/1 ";
COLOR 11, 0: PRINT "1/2 ";
COLOR 12, 0: PRINT "2 ";
COLOR 13, 0: PRINT "3/1 ";
COLOR 14, 0: PRINT "3/2 ";
COLOR 15, 0: PRINT "4, ";
COLOR 10, 0: PRINT "5 ";
COLOR 11, 0: PRINT "6 ";
COLOR 12, 0: PRINT "7 ";
COLOR 13, 0: PRINT "8/1 ";
COLOR 14, 0: PRINT "8/2 ";
COLOR 8, 0: LOCATE 24, 2: PRINT "F1-Sel Make#, F2-Set Ovns, F5-Disp Ovn Tmp 1-4, F6-Disp Ovn 5-8, Esc-Exit";
COLOR 15, 0
LOCATE 17, 2: PRINT "Make # 17073-05 Product Name: Cheyenne Hickory "; :
LOCATE 18, 2: PRINT "Ovens 1/1 1/2 2 3/1 3/2 4 5 6 7 8/1 8/2"
LOCATE 19, 2: PRINT "Oven Temp Set Pt F 000 250 250 000 250 235 235 235 275 225 280"
LOCATE 20, 2: PRINT "Oven Temp Actual 100 251 249 098 248 232 235 231 274 225 278";
LINE (0, 223)-(639, 223), 14
COLOR 13, 0: LOCATE 2, 2: PRINT "Time "; TIME$
LOCATE 2, 65: PRINT "Date "; DATE$
SCREEN 9, , 0, 0
VIEW (40, 30)-(600, 180)
WINDOW (1, 1)-(630, 100)
MLoop:
COLOR 13, 0: LOCATE 2, 2: PRINT "Time "; TIME$
LOCATE 2, 65: PRINT "Date "; DATE$
view:window:gosub PBCOPY '1, 0
k$ = INKEY$
IF k$ = CHR$(27) THEN SYSTEM
COLOR 13, 0: LOCATE 2, 2: PRINT "Time "; TIME$
LOCATE 2, 65: PRINT "Date "; DATE$
FOR Dly = 1 TO 1000: NEXT Dly
FOR j = 1 TO 2
FOR i = 0 TO 2 * 3.1415 STEP .02
k$ = INKEY$
IF k$ = CHR$(27) THEN SYSTEM
v1 = INT(ABS(80 * SIN(i)))
v2 = INT(ABS(94 * COS(i)))
v3 = INT(ABS(100 * SIN(i + .45)))
v4 = INT(ABS(100 * SIN(i + .78)))
v5 = INT(ABS(100 * COS(i + .45)))
v6 = INT(ABS(50 * COS(i + .78)))
PSET (cnt, v1), 10
PSET (cnt, v2), 11
PSET (cnt, v3), 12
PSET (cnt, v4), 13
PSET (cnt, v5), 14
PSET (cnt, v6), 15
COLOR 13, 0: LOCATE 2, 2: PRINT "Time "; TIME$
LOCATE 2, 65: PRINT "Date "; DATE$
cnt = cnt + 1
NEXT i
NEXT j
cnt = 1
GOTO MLoop
'This routine copies the background screen to the foreground
PBCopy:
FOR n = 0 TO 349
SCREEN 9, , 1, 0
GET (0, n)-(639, n), Arry1
SCREEN 9, , 0, 0
PUT (0, n), Arry1,pset
NEXT n
VIEW (40, 30)-(600, 180)
WINDOW (1, 1)-(630, 100)
RETURN