13. PROGRAMMIEREN 14. FEHLERSUCHE Dattel-Nummaem .. Daten-Dateien Ausdrucke .. Numerische Operatoren Zeichenfolge-Ausdriicke Verhiltnis-Ausdriick Logische Ausdrucke Klammerung und Vorrang Operatoren .. Programme BASIC-Anweisungen Zeilennummern Direkt-Kommandos . Modi {Betriebsarten) Der Anfang des Programmierens Speichern von Programmen im Computer Daten-Dateien .. Programmerbalm Funktionsmäßigen . Vorgehen bei der Fehlersuche KAPITEL 4 COMPUTER-ANWEISUNGEN 15.
ERSTE VERWENDUNG DES PC-E500 Einsetzen der Batterien Der PG-E500 verwendet zwei Arten von Batterien, nämlich vier Trockenbatterien vom Typ AAA fair den Betrieb des Computers selbst und eine Lithiumbatterie fir die Speichersicherung. Die mitgelieferten vier Betriebsbatterien und die Lithiumbatterie klirr die Speichersicherung sind folgendermaßen einzusetzen: Einsetzen der Trockenrasierer 1. Den Batteriefachdeckel auf der Trickserei des PC-E500 entfernen.
WIE MAN DIESES HANDBUCH BENUTZT Dieses Handbuch soll Sie mit den Fähigkeiten und Charakteristiken ihres Computers vertraut machen und Ihnen als wertvolles Nachschlagewerk dienen. £s wurde in sechs Abschnitte eingeteilt; jeder mit einer Einleitung versehen, dis sinne speziellen. Aspekt des PC-E500, behandeln. So. Ist das Handbuch letztlich ein Nachschlagewerk und, wir empfehlenswerten, dis einleitenden Abschnitte Im Kapitel! 1 (Hardware), ind Kappt angedient.
Spaltabdeckungssensor: o Zum Schutz der Tastatur und der Anzeige ist der-Computer it eifer stabiler; doppelseitig aufschiebbaren Tastaturabdeckung ausgestattet. ¢ Tastaturabdeckung bei Gebrauch des Rechners wie abgebildet vom Computer abnehmen, =7 f / INNEN pri » Wenn der Computer nicht verwendet wird, die Tastaturabdeckung wie abgebildet aber die Tastatur schieben.
KAPITEL 1 HARDWARE Die ersten Abschnitte von Kapitel 1 sind eine Einführung in die speziellen Eigenschaften des PC-E500*, eine Beschreibung der Grundgesetzwidrig des Computers, der Bedienung der Tasten und der Bedeutungen der verschiedenen Displaysymbole. Die folgenden Abschnitte behandeln RAM Karten und periphere Gerate (wie Diskettenlaufwerke, Drucker und Kassettenrecorder). * Der PC-E500 wird im folgenden als “der Computer” bezeichnet.
5. ir serielle Eingabestrings User den Anschub fir serielle Eingabe/Ausgabe wird der Computer direkt mit einem optionalen Peripheriegrat, z.B. dem Farbplotter/ -Drucker (CE-515F) verbunden. . LCD-Kontrastregler Hier kann der Bildschirm aufgelistet oder abgedunkelt und somit auf die aktuellen Tastverhältnisse eingestellt werden. . Zurückgeschalteter (RESET) Falls der Computer aus irgend einem Grund widerfahrend des Betriebs "hockt", arbeitet die Tastatur nicht.
Automatische Abschaltung Zum Schutz der Batterien schaltet sich der Computer automatisch selbst aus, wenn etwa 11 Minuten lang keine Tasten betätigt werden. Die automatische Abschaltung erfolgt jedoch nach etwa einer Minute, wenn die RESET-Meldung (sehe Seite 2) auf dem Display angezeigt wird. Die [B -Taste zum erneuten Einschalten drinstecken, wenn sich der Computer selbst abgeschaltet hat. Wahrend der Computer Absinkender ausfielt, ist die automatische Abschaltfunktion wirkungslos.
Bet Bedarf werden in dieser Anleitung die Tassen als Kasten mit Symbole dargestellt, 2.8, 2Zdr Unterscheidung der Zahl Null und dem Buchstabengetreu 0" erscheint dig Null auf dem Display des BC-E500 als Bel den Beschreibungen dieser Anleitung erscheint die Saht Null ebenfalls als “0", wenn es 2u Verwechslungen kommen kannte, Das Display WEGRAD. HYP BUS- DAL hus PRO 2nd* Gas Der Computer hat ein mit 40 Zeichen pro Zeile und einer darunterliegenden Statuszeile. Jods Zeichen besetzt eine 5 x 7 Punkmusik.
DEG Zeigt fir Winkelfunktionen den Altgrad-Modus an. RAD Zeigt fr Winkelfunktionen den Bogenmai-Modus an. GRAD Zeigt fair Winkelfunktionen den Neugrad-Modus an. HYP Wird angezeigt, wenn die -Taste geklickt wurde und damit eine Bezahlfunktion angezahlt ist. Werden die Tasten und gestrickt {Anzeige *2nd F HYPNOSE, so ist damit eine inverse Bezahlfunktion (Funktioniere) angewandt. E Hiermit wird angezeigt, daf ein Fehler (ERFROR) aufgetreten ist.
Auswechseln der Batterien Der Computer verwendet zwei Arten von Batterien, nämlich. vier Trockenbatterien vom Typ AAA III den Betrieb des Computers selbst und eine Lithiumbatterie fair die Speichersicherung. s . Wenn die Trockenbatterien des Computers zu schwach sind, wahrend der Drucker CE-126P gleichzeitig mit dem Computer verwendet wird, anriss er auch ber den CE126P mit Strom versorgt-werden. Dadurch: wird ‘Belastung-der internen’Batterien vermindert.
4. Den Speicherschutz-Schalter auf die Position B schieben. Vorsicht: Wenn die Batterien ausgewechselt werden, wehrend sich der Speicherschutz-Schalter in Position A befindet, wird der gesamte Speicherinhalt gelöscht. 5. Die verbrauchten Batterien herausnehmen und neue Batterien in das Fach einlegen. Vor dem Einlegen die Batterien mit einem trockenen Tuch abreiben. Die negative Seite zuerst einlegen. 6. Den RESET-Schalter rückblickend. Zu diesem Zeitpunkt die RAM-Karte noch nicht wieder einsetzen.
7. Die RAM-Karte einsetzen; siehe dazu Seite 18.: L s Danach unbedingt die Arretieren in die -lockposition schieben. Andernfalls ist der Computer nicht betriebsbereit. 8. Den Speicherschutz-Schalter auf die Position A stellen. Hinweis: ) T Wenn der Speicherschutz-Schalter sich nicht in der A-Position befindet, ist der Computer nicht betriebsbereit. : ! 9. Den Deckel des Batteriefachs wieder befestigen.
3. Falls eine RAM-Karte eingesetzt ist, muB sie entnommen werden. 4, Mit dem mitgelieferten Schraubendreher die Schraube entfernen, welche die Abdeckung des Batteriefachs hielt und dis Abdeckung entfernen (das Grat umdrehen, dann fallt die Abdeckung ab). 5. Die verbrauchte Batterie aus dem Fach entnehmen und ein neu Lithiumbatterie einsetzen. Die Batterie vorher mit einem trockenen Tuch abreiben. Die Batterie mit der positiven Seite nach oben einsetzen.
Der Computer hat standardmäßig ein internes RAM mit 32 Kilobyte fair die ~ Speicherung von Programmen und Datiert. Es ist grob genug fir die meisten Programme und Berechnungen, aber es kann durch Einsetzen einer zusätzlichen RAM-Karte in den Hineinschaue der Unterseite des Grates erweitert werde. Es gibt RAM-Karten mif einer Kapazität von 8 Kilobytes bis 64 Kilobyte. Sie bereithalten alle eine Lithiumbatterie zur Speichersicherung, auch wenn sie aus dém Computer entnommen werden.
Zuerst die Taste drinstecken, um den Computer einzuschalten. Die folgende Meldung erscheint: WARD PF1 == INITIALE FF2 DO NCT INITIALE Die Taste drinstecken, um die RAM-Karte {ir die Verwendung im Computer vorzubereiten. Im folgenden wird das Einsetzen oder Auswechseln einer RAM Karte beschrieben: 1. und dann drinstecken, um den Computer abzuschalten. 5 Den Einschub der RAM-Karte durch Verschieben der Arretieren öffnen und die Abdeckung entfernen. Wenn keine RAM-Karte eingesetzt Ist, zu Schritt 4 Bibergehen.
5. Das Heranschleichender neuen RAM-Karte wie-gezeigt-in Peilrichtung einlegen: Verriegelung zum Einsetzer Entnehmen der Karte Vorsicht: Die Karte nicht umgekehrt hinsetzen, da es sonst zum Kurzschub bzw. Bildgebend Schaden am Computer Kommen kann. Vorsicht: Der Computer funktioniert nur, wenn dio Abdeckung richtig verriegelt ist. Falle dies vergessen wurde, die Abdeckung vorschriftsmäßig starrsinnig und dann den Strom -bund wieder einschalten. Arretieren RAM-Karten Die RAM-Karte dient drei Zwecken: 1.
Vorsicht: Die RAM-Chips der RAM-Karte sind empfindlich gegen statische Elektrizität. Statische Elektrizität entsteht im Körper, wenn Sie auf einem Teppich laufen. Vor der Verwendung einer RAM-Karte solide daher zur Entladung ein Torgriff oder ein anderer Metallgegenstand bereichert werden. Die folgende Tabelle zeigt die Kapazitäten der zusätzlichen RAM-Karten und die unangetastet Lebensdauer der Batterie: RAM-Karies Kapazität |Lebensdauer der Tierlieb] CE-212M 8 Kilobyte 7725 Byte ca.
Zuerst die neue Speicher-Konfiguration bestimmen, dann die -Taste drucken. Bel der Konfiguration “S1” wird nur der intime Speicher des Computers verwendet, wehrend mit "S2* auch die RAM-Karte benutzt warten kann. Durch Umschalten zwischen “S1" und “S2” kennen daher verschiedene Programme bzw. Daten, die in verschiedenen Bereichen gespeichert sind, verwendet werden. Beim Umschalten von nach wird zuerst die Konfiguration gewahrt, dann den RESET-Schalter eindrücken, um alle Daten der RAM-Karte zu [duschen.
Farbplotter/Drucker CE-515P (Farbdrucker) Der zusätzliche Farbdrucker CE-515P kann mit dem Computer verbunden werden. Merkmale des CE-515P: » Ausdruck von Farbgrafiken, » Drucken von geometrischen Formen, z.B. Kreisen und Rechtecken. s ZeichengréBe-Wahl. « Linienart-Wahl (z.B. durchgezogene Linie, punktierte Linie).
6. Klicken Sie gleichzeitig die: REDFORD. Oben Sie die Aufnahmebefehle oin do, S/ undatierter* Sie Startbit 'der Aus rolling die ~Taste. [ Bringen Sie den Computer in den Runder PRO-Modus. Danach drinstecken Sie folgende Tasten: wed SR e . und.
st der bezeichnete Dateiname auf Band gefunden, so wird an die auf dem Bildschirm getippte Zeile automatisch ein Stern angehängt. Hierdurch wird angezeigt, dal der Verbesserungsvorschlag begonnen hat. Das Bereitschaftssymbol erscheint auf dem Display, wenn die Programme identisch sind. Unterscheiden sich die Programme, so wird die Ausführung unterbrochen, und auf dem Display wird eine Fehlermeldung angezeigt. Kommt das vor, versuchen Sie es ermunter. Laden von einem Magnetband Siehe die Kassetten-Hinweise.
Der Computer kann wie ein Taschenrechner mit 10 Stellen verwendet werden. Dazu muB der Computer auf die LAG-Betriebsart eingestellt werden. Entweder + drinstecken oder mit der “Taste des Enthauptens die AAL-Betrlebsart Wahlen (wieder abrufen mit der (MEHRT] -Taste). Hinweise: . + gedeutet, daB die Taste gedruckt wird, wahrend die Taste gestrickt gehalten wird. Das gleiche Resultat ergibt sich beim Drinstecken ven [znd 7] und [CALL.
Eingabe Anzeige [Z] 3.141502654 Auf der Anzeige erscheint jetzt der Wert von . Nun soll 10° berechnet werden. Fir lese Berechnung wird die Funktion 10° verwendet, die auch in braun geschrieben ist. Daher mus die -Taste geklickt werden. Eingabe ;. S . Anzeige o000, (10° = Folgend werden dig Funktionen dar wichtigsten Taster Umrissen: * [Gebe] (Löschung) (rote Taste) des Speicherinhaltes geklickt, werden diese Daten gelöscht.
Die Taste [Gote] kann außerdem zur Löschung seines Fehlers verwendet werden. SED (Anzeigemodus-Schalter) Diese Taste dient zum Umschalten des Anzeigemodus fir das Ergebnis von Berechnungen vom Gleitpunktsystem (normaler Modus) zu Festpunktsystem (FIX), wissenschaftliche Notation (SCSI, technische Notation (ENG) oder umgekehrt. Eingabe Anzeige e 23 [Xx] 1000 =71 23000 (Normal) [&E] B 23000.000 (F1X) — ?.300E ENG 23.
180° = 1 {rad) = 2007 DEG: Altgrad [} RAD: Bogenmai fad] GRAD: Neugrad [g] * ] bis 8 [T (B und (5] [ B Dient zur Eingabe von Zahlen In Exponentialfaktor (auf der Anzeige erscheint “E” nach der eingegebenen Zahn. Eingabe Anzeige 4[EE 100} = 4000. —4000. e [SE7} Dient zur Eingabe ven negativen Zahlen {oder zur Umkehrung des Vorzeichens von negativ zu positiv). Eingabe Anzeige 1.28 -1.23 5 -1.
2. Multiplikation und Division ; a. Eingabe: 841 586 (7] 12 [5] Ergebnis: o ! b. Eingabe: 427 [37] 7 =) 30 [3t] 2 =3 Ergebnis: 595.8571420 Multiplikation und Division haben Vorrang vor Addition und Subtraktion, Der Computer fahrt intern zuerst die Multiplikation und Division durchfuhr Multiplikationen mit einer Konstanten: . Der zuerst-eingegebene Wert ist Osiris Konstante.
Im AAL-Modus stehen 26 Speicher zur Verfügung, die mit A ]bis spezifiziert werden, außerdem der Speicher, der mit der Taste spezifiziert wird. Durch Drinstecken der Tasten [ ] werden der numerischen BASIC-Variablen A Daten zugewiesen. Zum Lesen dieser Daten missen die Tasten [ gestrickt werden. Das Drinstecken der Tasten [E_J im RUN-Modus ist identisch zum Drinstecken der der Tasten [A_1im AAL-Modus.
Po‘lenzfuhkilcned S Aufgabe: ‘207 ©a v .. Ergebnis: 400 Ergebnis: 27 o R 3[=1 Eingabe 8 [77] -4131‘ : Ergebnis: Wurzelfunktonen E Ausgabe: V25 Eingebe: 25 Ergebnis: § Aufgabe: Wurzel van 27 . s Eingabe: 27 [zad F] " Ergebenheit: 3 Abgabe' Wurzel Vo' g1 6. charismatische Funkhosen A Aufgabe: In 21, log 173 Nachrichtlicher Logarithmus Eingabe: 21 [ ] Ergebnis: 3.044522438 Dekadischer Logarithmus Lo Eingabe: 173 [ieg | Ergebnis: 2.238046103 7. Exponentialfunktionen e Aufgabe: Eingabe: 3.
11. Anwandelung des Winkels und der Zelt Zur Umwandlung von Winkel oder Zeitangaben ‘4,7, bzw. Std., Min., Sek.} In den entsprechenden Dezimalwert muB der Grad wert als ganze Zahl und die Werke in Minuten und Sekunden als Nachkommastellen eingegeben werden. Aufgabe: Umwandlung von 12°4752" in den entsprechenden Dezimalwert Eingabe: 12.4752 Ergebnis: Bei der Umwandlung des dezimalen in den infinitesimalen Wert (2, *, * bzw. Std., Mine, Sek.
Ergeben : Eingabe: II[ Ergebnis: 1212435585 o :E8 wird zuerst.0'= /3 nachgemacht. ; Nach der Eingabe von r wird es durch = 14 ersetzt, wenn dle II] Taste gedruckt wird. ;. Verwendung der Kammern-T; Die Verwendung lor Klammern Amtmann ]I] und II( lst dann zwängend notwendig, wenn eine Serie vor Differenzialrechnung einem; Hervorgegangen . dabei die. hierauf Kraft gesetzt werden muB. Sobald die [T -Taste gedruckt wird, erscheint “( )* in der rechten scheren Ecke des Displays;, .
— (Betriebsamkeit) (Die Zahl wird auf die 9. Nachkommastelle gerundet.) —» (Schal-Betriebsart) (Die Mantisse wird auf dis 9. Dezimalstelle gerundet.) -~ {Betriebsamkeit) (Die Mantisse wird auf die 4. Dezimalstelle gerundet.) (ENG-Betriebsart) -3 Der Wert ist im Rechner In der Form von x 107 gespeichert. Die Rundung in der 11. Nachkommastelle der Mantisse ergibt x 1072 Da das Display 10 Stellen anzeigt, ist die Rundung in der Ergebnisanzeige nicht enthalten.
Hexadezimale Umwandlung und Berechnungen (e, [SEHE) (KT : Zur Umwandlung von Dezimalzahlen in ihre hexadezimalen Äquivalente; gleichzeitig wird der Computer in die hexadezimale Betriebsart HEX umgestellt, (Das Display zeigt “HEX" an.) [$8EE] ; Zur Umwandlung von Hexadezimal zahlen in inne dezimalen Äquivalente; gleichzeitig wird die hexadezimale Betriebsart deaktiviert (das Symbol “HEX” verschwindet). Hexadezimal zahlen werden häufig im Computerbereich verwendet.
*» Die Umwandlung:einer: negativen: Dezimalzahn polizeiintern der das, “Komplementbildung. Das Ergebnis wird im “komplementär” angezeigt. » Mit der [
3. Rechnen mit Zahlen In Hexadezimal-Schreibwelse Drinstecken von wird das Symbol HEX angezeigt. Aufgabe: Ad4 +BA= Eingabe CITIBANK] Ausgabe: 8x8= Eingabe Aufgabe: Eingabe [ege) ({12 Aufgabe: 43A — 3CB = +) A38 2FB = Gesamt Eingabe 43A ] 3cB [ A38 [T 2FB [ Dabei sind folgende Hinweise zu beachten: « Bei Berechnungen mit Hexadezimal zahlen jungen bedeutungslos ist. Anzeige Anzeige Anzeige Anzeige In der Betriebsart *HEX® kénnan auch Berechnungen durchgeführt warten. Durch . HEX (850 dezimal) 8.
Beispiel: S B .. Bei Divisionen wird immer eine ganze Zahl als Ergebnis angezeigt. Wenn bei dem Ergebnis der letzten Berechnung ein Bruchteil entsteht, wird er abgeschnitten urd™ nur die ganze Zahl des Ergebnisses angezeigt, Vi Wird &angezeigt) Beispiel: BLEIBE. 3. HEX Durch Driickish'dér 5] -Taste kann auf einfache Weise das Komplement der angezeigten Hexadezimalzahl ermittelt werden.
| %111 PRIME FAKTORS (Skalenfaktoren) | Beschreibung: Dieses Programm zerlegt eingegebene numerische Werte in seine Skalenfaktoren. Zulässige Eingabewerte sind ganze Zahlen im Bereich von: 2 = Zahn < 10 Eingabe: [P ] [MATT] PRI EINT] ¥ PRIME FAKTORS * Lo} {PRIME] Base ¢ (Vereinbarungsentwurf) Beispiel: Zerlegen von 2200 in seine Proklamieren: 2200 % PRIMEL FAKTORS ¥ 2200 = Dig Antwort ist: 2200 Zum Zurückgehen auf die Eingabeaufforderung drinstecken Sie nach Erhalt der Antwort die -Taste.
Unzen Zahlen, & ='6'und LCM a = 5 b = §_ Das Ergebnis st ALLG.. = 2 ind KG.V, = 24 Durch Drinstecken der Taste nach Erhalt der Antwort erscheint wieder die Aufforderung zur Eingabe des Wertes fair a”. R ’ Hinweis: + Wenn die eingegebenen Daten sich außerhalb des zulässigen Bereiches befinden, fordert der Computer zur -meuten Eingabe auf. Wenn nur die ~Taste gestrickt wird, ohne Eingabe von Daten, gibt der Computer automatisch die Zah! “1" gin.
Unter der Annahme von erhalten wir: w= I g +in) o Yyl=a=ddn @ © wt VPN =74 Wenn uwv = ~p angenommen wird, heilt die Losung: s Vier debil gelten b=l 7y und at= =L SEi W= 2 Eingabe: [MATT] EQU] ot »Gelatcht EVALUATION # aXx X e x4 [BIC] e Beispiel: Lesen der kubischen Gleichung (Der Koeffizient a wird *+ BIC EVALUATION * eingegeben.) x+d=0 axial) (x=8) (Koeffizienten b, c und d | 2= werden eingegeben) Die Wurzeln der Gleichung sind 2 und 34 i. fair den s BIC EVALUATION * Koeffizienten a.
1 [a=] (Eingeben von NUthg\Ogg\? (NEWTON' S METHODE] * h= QL (Eingeben von # = ¥ NUMERISCH RESOLUTION (NEWTON'S METHODE) # h= ‘ . c= ¢ (Eingeben von £ = « NUMERISCH RESOLUTION (NEWTON'S METHODE) # h= . LGPL [imitiere 30 ¢ 10 [a=4] (Bereich mit + NUMERISCH RESOLUTION (NEWTON'S METHODE) # l X3-BX X= 2 (Zurückgehen auf die # NUMMERIER.
(Eingegebene = s BLOOMBERGS METHODE # e= visieren limitiere 10 9 == (Berechnung mit i ¥ BLOOMBERGS METHODE * 10 facher Schleife} §OAN3-4HXN2-RARE20 dx Ja (Zurückgewichene + BLOOMBERGS METHODE * Aufforderung zur Funktionsein- flx)= 7 Gabe) Wenn die selbe Funktion ober einem anderen Intervall noch einmal integriert werden soll, mobb als Antwort auf die Aufforderung zur Funktionseingabe die “Taste noch einmal gestrickt werden. Der Computer fragt dann nach der Eingabe eines neuen Interveniertes.
; ¥ ANGETRUNKEN METHODE * dy/dx= XY = ¢.909400988 3 = 9,9004 .. flt x= 03 v ENTRUNGEN METHODE + dy/dx= XY = 9.9878098 7= 88979 . fir £ = 02 Der Computer zeigt die Werte von for jedes von x an, wenn die Taste bis zu 50 mal gestrickt wird. Hinweise: » Zum Abruf des vorhergesagten Wertes von y die =] -Taste drucken. + Zum Zurückgehen auf die Aufforderung zur Funktionseingabe die [ ] -Taste klicken.
Eingabe: {PEL TRIGONOMETRIE FUNKTION = sinne? goss? gz o 1{CENTER] [ TR VIETCONG CALLCENTER Mit den folgenden Tasten wird eine spezifische Gleichung abgeraten: ¥ +-Abruf der ersten Gleichung. 5o 3] ¢ Abruf einer Gleichung finit Schritte vor der gerade angezeigten Gleichung (Gleichung mit der gegenwärtigen Zahl minus [ENTERT : Abruf der 25, (mittleren) Gleichung. # + Abruf seiner Gleichung finit Schritte nach der gerade angezeigten Gleichung (Gleichung mit der gegenwärtigen Zahl plus 5). 4 * Abruf der 49.
Eingabe: MATHILDE] REFORMIERE* [T % INTEGRATION. [eFa ENTFREMDEN” i . 1 [CENTER) INTEGRAL ION rdx=1/n Center Mit den folgenden Tassen wird ginge spezifische Gleichung abgerufen: 7 "1 Abruf der ersten Gleichung. 2] Abrufbereiter. Gleichung fing Schritte vor der gerade angezeigten Gleichung {Gleichung mit der gegenwärtigen Zahl minus 5). [PET ] [CENTER] : Abruf Gleichung, =2 + Abruf einer Gleichung fing Schritte nach der gerade angezeigten Gleichung (Gleichung mit der gegenwärtigen Zahl plus 5).
Eingabe: [FFL | MATT] 7] [FORM] Alfs {a) 18§ Beets (b) [P ][GRETE] Ty gamma (g) A4 Delta (0 E ¢« Epsilon V4§ Zeta (2} P p Rho (r) 5 Lo Sigma (s) oIt T r Tau (t3 1w Epsilon (W vog Pni (pn; 2 X g Chi (ch) ¢ Psi {(pe) 1 0 w Olegs Hinweis: « Durchgeblickten der Tasten 3] und [ & ]fixiert zum Abruf der griechischen Buchstaben in Vorwärts. Rückwärtsrichtung. Bei jedem Drinstecken dieser Tasten wird das Display drei Zeiten aufbaue. abgerollt.
%152 GRAPH (DATA) (Grafik (Daten)) l Dieses Programm gibt die eingegebenen Daten als grafische Darstellungen aus. Es ist nützlich fair die Darstellung von Regressionstest eingegebener Daten. Statistische Daten, die im SATT-Modus eingegeben wurden, Kinnen mit diesem Programm ebenfalls grafisch dargestellt werden (fir die grafische Darstellung sind mindestens 2wej Datensitze notwendig). Hinweis: « Wenn dis Daten im SATT-Modus bereits gespeichert sind, kennen keine weiteren Daten hinzugetan werden.
GRAPH (DATA) %, Lear all Data 2, putzt Data 3. Pilot Hinweise: Zur Verwendung der gerade angezeigten Daten einfach die -Taste drucken, Wenn keine weitere Änderung der Daten mehr notwendig ist, erfolgt das Zurückgehen auf das Mond durch Drinstecken vor: X [=il Die einmal festgelegte Anzahl der darzustellenden Daten kann nicht mehr geändert werden, Wenn die Eingabe so erfolgte, das Xmn > Max oder Sound > Max Wird, wird zur Eingabe neuer Werte aufgefordert.
] 211 PHYSIKALISCH KONSTANT (Physikalische Konstanten) l Dieses Programm stellt die folgenden 47 physikalischen Konstanten dar: Name und Symbol Wert Einheit Vakuumlichigeschwindigkelt ¢ 2.59792458 % 10° messt (2) Gravitationskonstante G 6.67258 %107 Nem? kg™ (3) Gravitationsbeschiounigung ¢ 9.80665 mes™? {4) Ruhemasse von Elektron 107! kg (6) Ruhemasse von Protonen iz 77 kg (6) Ruhemasse von Neutronen s 1.6749286 X 1078 ke {7) Ruhemasse von Melonen 1.8835327 X 107% kg (8) Atomare Masseneinheit 1.
=3 o MUSICAL KONSTANT ¢ = Der Wert 6,67259 x 107" wird jetzt ir die Variabel A zugewiesen. Hinweise: « Beim Klicken der [ ¥ erfolgt ein Abrollen durch die Tabelle, wehrend Verticken der [ zu einem Aufrollen finit. Beim Drinstecken der [ 9 | -Taste werter zwei Konstanten nach unten übersprungen, beim Drucken der [« ]-Taste zwei Konstanten nach oben. « Helm Handgestrickten der Tasten [F7, [ ] und [} werden die physikalischen Konstanten kontinuierlich abgerufen.
| =212 METRIK KONVERSION (Metrische Umwandlung) Dieses Programm Angelegenheiten far Langen, Flachsan, Volumen, Gewichtung, Energien (Ich) F (FuB) yd (Zyanid) Lose “in 1 L. ' o 12 1 1 Lageneinheit milde 1609364 . . 6336000 vorderes 000208361 A 1x1gTie L, B93T0LX 1078, 3.28084 10710 |, +1,09367 3100 BC OBSERVATION 10 | 1214834367 X 10'% | 101236 T4s X 107 |. 37452788 w 10 milde, (Parser) m 0:000621371 |100 13101 324077927 %1077 | = | 1.57828 X 107 2.54 8.231579346 x 1019 g ft 0.000189394 30.48 9.
(Unzen) b @End 0.001 0.035274 000220462 35,274 2.20462 gl o 28.3495 0.0283495 1 0.0625 E T | 45850237 T bemesst erg 1.50218% 10717 806554 2.41799 X 10 g erg 6.24151 % 10" 3 5.08411% 107 1.50918 X 102 B | em” 0.000123984 1,98545 X 1071¢ 1 2.99792 X 10V £l H 2.13567 10718 6.62608 % 107 3.53504 X 10711 1 5 .61738 %107 1.380663 107 0.695039 2.08367 578838 107 9.27402% 3074 14,6686 % 107 1399620 Tummel | 1.66054% 1077 0.0835934 amoralisch 0.0433854 5.9511 x 1074 349.926 1.04905 X 101 } K G Moll keinmal I 11604.
Eingabe: [SCSI [PH [EMOTION] [P 1% -+ INSERTION GF WOT MYSTIK_ o Autoritativ 5=y V172 GEGENTEILIG ÄQUATORNAH OF NOTTON —+ 6 . S L7 002 ENTERICH Mit den folgenden Tasten werden spezifische Gleichungen oder Generationenkonflikten: + Abruf der ersten Gleichung, Abruf einer Gleichung fnt Schritts vor dér gerade angezeigten Gleichung (Gleichung mit der gegenwärtigen-Zahl minus 5). . : Abruf der 11. {mittleren) Gleichung.
Spezifizierung der Einheiten, in die umgewandelt werden soll: [atm] ’ ' Lok atmosphärisch pressiere. % X= . 960 fromm [atm | ..9680 0.847446336 Das Ergebnis ist 0,947446336 atm. ) ” Hinweise: * Wenn das Ergebnis einer metrischen Umwandle 10'% drinstecken und die entsprechenden Daten fir eine Umwandelung eingeben.
I #311 KOMPLEX NUMMER (Komplexe Zahlen) Dieses Programm fortholt unser Verwendung der folgenden Tasteneingaben Berechnungen mit komplexen Zahlen aus. Taste Funktion Speichert den Wert nach X (in der Reihenfolge der residieren und imaginären Teller. Speichert den Wert nach Y (in der Reihenfolge der reellen und imaginären Atelier. X +Y¥— X Hineintrete Addition durch und speichert das Ergebnis nach X. Eingeführte Subtraktion durch und speichert das Ergebnis nach X.
Mit den folgenden Tasten wird eine spezifische Formel der Elektrotechnik abgerufen: L PERSIFLAGE o7 % Abrufender ersten Formel, oo PRz |[2) : Abitur einer Formel finit Schritte vor der gerade angezeigten Formel (Formel mit der gegenwärtigen Zah! minus 5). [CENTER]. : Abruf der 7. (mittleren) Formel. . =l + Abruf einer Formel finit Schritte nach der gerade < @gezeigten Formel (Formel mit der gegenwärtigen Zahl plus 5). : Abruf der 14.
Fis) gg(sinh at final) s 1 W 7(cosh af schoss af) 13 by -sin sinnhaft ot 4 sin at.cosh altrosa ad-sinh af s —142¢me [ 2y tm Eingabe: S ['7Fa J [ENG] [FFi I [ELLE] % LAPLACE TRANSFORMATION & 4i1]s J(CENTER]] LAPLACE TRANSFORMATION x [l et [ ENTERICH] Mit den folgenden Tasten wird eine spezifische Fouriertransformation abgerufen: ] + Abruf der ersten Gleichung. [2] + Abruf einer Gleichung fünft Schritte vor der gerade angezeigten Gleichung (Gleichung mit der gegenwärtigen Zahl minus 5).
Eingabe: I (7F3 ] (ENG] [FFZ] [MICH] « WEGGESCHALTET FORMULARS # y Module [PFL] [METERMAß] ENTERICH[ MECHANISCH FORMULARS « Bernoulli's Theorem v ENTERICH Beim Drinstecken der ] -Taste wehrend der Darstellung einer Formel fuhrt der Computer Berechnungen mit dieser Formel aus: Rz Einfaches Klicken der Taste bei der Aufforderung zur Dateneingabe fuhrt zum Zurückgehen auf die Darstellung der vorherigen Formel. Mit den folgenden Tasten wird eine spezifische Forme! abgerufen: ¥ : Abruf der ersten Formel.
[ %412 t DISTRIBUTION (-Verteilung) ] Mit diesem Programm wird der Punkten einem gegebenen Freiheitsgrad » Neuverteilung und einer gegebenen Wahrscheinlichkeit p rechts des Punktes x aus, oder umgekehrt, die Wahrscheinlichkeit p oberhalb des Punktes x von einem gegebenen Freiheitsgrad und einem gegebenen Punkt x aus gerechnet, Die Eingabedaten und das Ergebnis werden mit 4 signifikanten Ziffern dargestellt.
#414 F DISTRIBUTION (F-Verteilung) it diesem Programm kennen der Punkt.x von zwei Freiheitsgraden n; und np der Verteilung und einer gegebenen Wahrscheinlichkeit p rechts des Punktes x aus, oder umgekehrt, die Wahrscheinlichkeit oberhalb des Punktes x von den gegebenen Freiheitsgraden »; und n und einem gegebenen Punkt » aus berechnet werden. Die Eingabedaten und das Ergebnis werden mit 4 signifikanten Ziffern dargestellt. Die Freiheitsgrade n; und n.
Hinweise: « Wenn ein Programm mit der Erweiterung ‘611" gespeichert wird, kann es nicht ausgefiltert werden, wenn und “61#" nicht definiert sind. Mit der Option TAPPEND werden die entsprechenden Zeichen registriert. « Die Inhalte der Technikerdsoftware kennen nicht umgeschrieben werden, da sie im ROM resident sind (Chargenbezeichnung G).
Die Betriebsart fair die Reserve von algebraischen Ausdrucken {(AER) eignet sich fir wiederholte Berechnungen. Berechnungen mit algebraischen Ausdrucken und Konstanten kennen im ER-Modus programmiert werden, um Berechnungen mit Zahlen und Variablen durchzuführen, die in der RUN-Betriebsart eingegeben wurden. Die algebraischen Ausdrucke konnten auch von BASIC-Programmen abgerufen werden. (Siehe die ER-Befenle Im BASIC KOMMANDO LEXIKON.
Berechnungen mit Ausdrucken Zur Ausführung von Berechnungen mit gespeicherten Ausdrucken im RUN-Modus folgendermaßen vorgehen: (1) Die Taste zur Einstellung des RUN-Modus drinstecken. 2) Die _Taste zum Abrufen von Ausdrücken In Vorwarnrichtung drucken. Zum Abrufen in umgekehrter Reihenfolge die Tasten + drinstecken. (3) Nach dem Abrufen des entsprechenden Ausdrucks die “Taste klicken.
Eingabe des Wertes fir die Seite B. Die Pirsche fir das Drehlack betätigt 500, -~ = T Hindurch gemeintes Drinstecken der taste wird der gleiche Ausdruck hoch einmal berechnet. 500 Suche von: en von Ausdrucken i In der Parametrisierung kennen. Ausdrucke durch Eingabe: der ganzen Bezeichnung oder der ersten Buchstaben der Bezeichnung und Drinstecken der ~Taste.
Der Computer kann statistische und Regressions-Berechnungen mit einer oder zwei Variablen durchfuhren. Bei statistischen Berechnungen werden Mittelasien, Standardabweichungen und andere statistische Maizahlen aus den Stichprobendaten erhalten. Regressions-Berechnungen gestatten die Bestimmung der Koeffizienten der linearen Regression und von Schutzwerten aus den Stichprobendaten.
Sie erhalten die statistischen Abzahlen fir Datensatz B mit den gleichen Tasten, die Sie fir Datensatz A verwendet haben. Um die Berechnungen besser lesbar zu machen, Kinnen Sie die auf Seite 42 beschriebene Notaktionsfunktion verwenden. Zur Spezifizierung von drei Dezimalstellen fir das Berechnungsergebnis drinstecken Sie die Tasten [ |2 bevor Sie die [ox] Taste drinstecken. [ 18.
In diesem Beisole! ist eine lineare Regression durchzuführen. [a + b4} y=atbx x=d1_ y-de {CANDELA] Dax und y sich in dehnt Spalten di und d2 befinden, brauchen Sie nur zweimal zu drinstecken: Bestimmen Sie die Koeffizienten und b sowie den Korrelationskoeffizienten 72 el 34,44951017 -3.425018839 950108887 Schatzes Sie als wachstes den Wen y (Datum des Durchzugs) fir x = 9,1 (Unterdurchschnittlich. Mit[$ die Tastenkennung [y'] zur Anzeige bringen und die gewischte PI-Taste drinstecken. 91 Elefant Y] 4= 3.
Drinstecken Sis zweimal die Taste, da sich die Daten x und y des Persien Versuchs In den Spalten d1 bzw. d2 befinden. Die Koeffizienten a und & und den 2] Irl Anpassungsfehler Se bestimmen: 8,673727735 11 8e 7.567048348 Den Anpassungsfehler Se bestimmen und in Speicher A geben: 47.71106565 JjL » 1 Die linearen Regressions-Berechnungen mit den Daten des zweiten Versuchs durchfuhren. [FREAK] [ P73 | [CALL] y=athx beredt {CANDELA] Spezifizieren Sie die Spalten d3 bzw.
Taste Funktion X M: Einspeicherung der Werte von Matrix X im Speicherbereich von Matrix M (mit gleichzeitiger Löschung des alten Speicherinhalts von Matrix ). Dadurch bleibt der Wert von Matrix X bis nach der Prozentrechnung erhalten. M — X: Urabstimmung des Speicherintensiv von Matrix M zu Matrix X (mit gleichzeitiger Löschung des alten Halsbrecherisch von Matrix Kumulative Addition des Werts von Matrix X zum Speicherinhalt von Matrix M.
Taste Funktion k+x] Addition von Safari k und den Elementen von Matrix X. Mathematisch ist eins solche Operation nicht existent. Die Addition von Katarrhen Ist eins der speziellen Funktionen dieses Computers. Subtraktion von Elementen der Matrix X von Skala k. Mathematisch ist eine solche Operation nicht existent. Die Subtraktion von Skalieren ist eine der speziellen Funktionen dieses Computers.
[P [EQU] Pisa 'FREAK to Star be ol (TUST BARAK te Story | C k@D Y31 ¥3.3 dort ) CALAMARES) | Sex | Das Ergebnis auf die Anzeige rufen. [ ] [Se: [Sex] 3. T VIER T . s [QUITT) B [VIER] QUITT | Es ergeben sich fir x, y und z der Gleichungen: Hinweis:, . . Matrix-Berechnungen basieren auf dem gebräuchlichen Eliminationsverfahren.
Wenn im obigen Beispiel der Wert der Determinante durch Multiplikation der ursprünglichen Matrix X mit 3 erhalten wird, bestätigt es sich, daB Matrix X ekeln reguläre Matrix ist, da sich fir die Determinante ergibt. Hinweis: Da Matrix-Berechnungen nicht durch eine einzelne Rechenoperation (wie z.B. einmalige Multiplikation) ausfilterbar sind, benötigt der Computer einige Zeit zur Abwicklung.
Die RUN-Betriebsart ist sehr vielseitig; damit kennen Berechnungen und Vorgange in den Betriebsarten CAL, ENG, MATRIX, AER und SATT durchgeführt werden. Weltrhein kennen die Variablen dieser Betriebsarien benutzt werden und die Möglichkeit zur Ausführung ven BASIC-Programmen in der PRO-Betriebsart besteht ebenfalls. Einstellen des RUN-Modus Wahlen der BASIC-Betriebsart durch Drinstecken der Tasten [mengen | . Wenn PRO angezeigt wird, kann durch Drinstecken der ~Taste die Inbetriebsetzung gewitzt werden.
Benutzen Sie bei der Eingabe von Berechnungen in den Computer kein Dollarzeichen oder Kommata. Diese Zeichen haben in der BASIC Programmiersprache eine ganz besondere Bedeutung. Bei Verwendung der ~Taste zur Aktivierung der zweiten Funktion einer andern Taste muB die -Taste gehalten werden, wehrend die andre Taste gedruckt wird. Die -Taste kann ebenfalls verwendet werden, 2.B. in der Betriebsamkeit. . B Bei Verwend urig der. ~Tagte Wird das eigentliche: Zeichne mit beifolgenden i Tastendruck wiedergegeben.
In der RUN-Betriebsart mu 2ur Ausgabe eines Ergebnisses die “Taste gestrickt werden, nicht die -Taste. Das Display des Computers besteht aus vier Zellen (je 40 Zechen pro Zeile). Alle Eingaben und Rechenergebnisse werden jeweils von der obersten Zeile aus angegeben. Wenn die Daten die Kapazität von 4 Zeilen überschreiten, wird der Anzeigeinhalt jeweils um eine Zeile nach oben gerollt (die erste angezeigte Zelle rollt nach oben aus dem Display).
Da Sie daran gedacht: haben, (97 2y besitzen, steht der Cursor i am Ende der Anzeige. Benutzen Sie arisch einmal [ ], um den Cursor eine Stelle nah links zg bewegen. 36057 ‘ | 30078 Beachten Sie, daR nach dieser Bewegung der Cursor sich if &y blickendes Revidiere: verwandelt. Immer, wenn Sie den Cursor auf ein schon bestehendes Zeichen setzen, wird er in.dieser Form dargestellt .
Zum Laschen von Zeichen wird die Taste gestrickt. Andern der vorherigen Berechnung auf 3/5. Rufen Sie die Eingabe mit Hilfe von [ ] auf. 3000/25 i 120 3000/25 Der blinkende Cursor steht nun (ober dem ersten Zeichen der Anzeige. Um die Eingabe zu korrigieren, missen Sie die Nullen solchen. Mit Hilde von [ ] bewegen Sie den Cursor auf die erste Null. Wenn Sie efn Zeichen laschen wollen, setzen Sie den Cursor auf das zu löschende Zeichen.
“Syntax erfror st dig zweifache Art des Computers, Ihrer mitziehen: “lch weis nicht, was ich hier tun soll.” Wenn 8ie in diesem Fall die Taste [ betätigen; erscheint def blinkende Cursor an der Stelle, wo der Feier liegt. [ (oder [7) 300//5 Syntax erfror | 300775 Um dieser Fehler zu korrigieren, benutzen Sie die -Taste. K [0 [—1t] 300//5 géS}” erfror 5 80 Wenn Sie bei einem Syntaxfehler feststellen, daB bei der Eingabe ein Zeichen vergessen wurde, kennen Sie es mit Hilfe der [T | -Taste einstigen.
Beispiel: =] 300%180 45000 45900% .15 6750 Zur Änderung des Vorzeichens des letzten Ergebnisses mit —~1 multiplizieren: el =11 = 45000+, 15 \ 8750 8750%—1 -6750_| Die Anwendung von variablen in Berechnungen Der Computer kann bis zu 26 einfache numerische Variablen unter den alphabetischen Zeichen A Z speichern. Wenn ihnen der Begriff der Variablen nicht vertraut ist: Im Abschnitt 12 finden S herausfische Erklärungen.
Die roste Zah, mit der der Computer be einfacher Genauigkeit operieren kann, besteht aus 10 Stellen plus 2 Stellen im Exponenten. Einfache Genauigkeit, doppelte Genauigkeit Bel doppelter Genauigkeit besteht diese Zahl aus bis zu 20 Stellen, D 99 und D -99 (Das grobe E, welches den Exponenten anzeigt, wird bej doppelter, Genauigkeit. durch ein grobes, D ersetzt.) Wahl der Betriebsart fair doppelte Genauigkeit 1.
Der Computer hat aber eine Funktion, die erlaubt, das Ergebnis der vorherigen Berechnung zurückholen und es irgendwo in der gegenwärtigen Berechnung zu benutzen. Dies ist die Funktion fur das “Letzte Ergebnis.” Der vorige Werk kann beliebig oft zurückgerufenen werden, indem Sie die -Taste drinstecken. Wenn Sie das letzte Beispiel eingegeben haben, so drucken Sie und dann [_ANS |, worauf die “35” angezeigt wird.
Beispiel: T Umwandlung von rechtwinkligen in Polarkoordinaten; Bestimmung der Polaroid dinierte (1, 6) fur Punkt {3, 8) einer: schiefwinkligen Koordinate: : Eingabe: T DEGRESSIV [=7] (Spezifiziert “Altgraf” als Scheitelwinkel) 30.4518 -DEGRESSIV 8.544003745 z Z[= 8.544003745 89.44395475 | Der Wert von 0 wird in der Variablen Z und der Wert von rin der Variablen v gespeichert.
— Referenz — Ausdrucke, die Versinnbildlichen enthalten, kennen die in der folgenden Tabelle angeführten Werte annehmen: x und y repräsentieren numerische Warte.
Rechenfehler Folgend Fehlertypen treten bei gewöhnlichen Rechnern, Taschen und Personal Computern auf: Fehler, die mit der Anzahl der Dezimalstielen zusammenhingen Normalerweise ist die maximale Anzahl! der Dezimalstellen, mit denen ein Computer rechnen kann, festgelegt. Zum Beispiel 4/3 ergibt Bei einem Computer mit einem Maximum von 8 Stellen werden diese 8 Zitieren als signifikant bezeichnet, weitere Ziffern werden entweder ignoriert oder gerundet.
KAPITEL 3 PROGRAMMIEREN Kapitel 3 ist der Anwendung der BASICProgrammiersprache fir den PG-ES00* gewidmet. Wir beginnen mit einer generellen Diskussion von Programmierkonzepten und kommen dann zu einer mehr speziellen Anwendung dieser Konzepte beim PCE500. Kapitel 3 endet mit einigen Klischeevorstellungen zum Programmieren und mit Hinweisen zum Auffinden von Fehler in ehren Programmen, PRO(Programm)und RUN-Modus (der detailliert Im KAPITEL 2 beschriebenen wurde) werden in diesem Abschnitt behandelt.
In dieser Kapitel wollen wie einige Begriffe und Ausdrucke der Programmiersprache BASIC kennenlernen, Zelchenfolgen-Kenstanten e Der. Computer ist:in der:Lage, Bauer: Zahlen auch Buchstaben und spezielle Symbole in vielfacher Weise zu verarbeiteter. Diese Buchstaben, Zahlen und speziellen Symbole'werden Zeichen genannt; Im BASIC wird eine Folge von Zeichen ale Zeichenfolge bezeichnet. Damit der Computer den’Unterschied zwischen einte Zeichenfolge und andrem Programmteilen, wie z.B.
Variablen Computer sind aus einer Vielzahl von Kleinsten Speichereinheiten aufgebaut, genannt Bytes. Jedes Byte kann man sich als einzelnes Zeichen vorstellen. Das Wort “Byte” erfordert beispielsweise vier Speicherbytes, welk es vier Buchstaben enthalten, Um herauszufinden, wievielte Bytes zum Arbeiten zur Verfertigung stehen, geben Sle einfach FRECH efn und drinstecken Die angezeigte Zahn gibt an, wievielt Bytes zum Programmieren frei sind.
Bislang haben wir uns nur mit numerischen Zeichen begabt. Wie speicher martern alphabetische Zeichen? Grundsätzlich ist das Prinzip das gleiche, aber damit der Computer dén Unterschied wischen drei beiden Variablentypen erwirken kann, Minimum ein $ zum Namibia der Veritablen gesetzt werden. Wir wollen z.B, das Wort BYTE unser der Variablen BS speicher. Beachte Sle das $-Zeichen hinter dem B, Dies sagt dem Computer, da@ der hinhaut der Variabler B$ alphanumerisch bzw, eine Zeichenfolge ist.
Wahrend alphanumerische Bezeichnungen fir eintauche Variablen-Namen verwendet werden konnten, muB man als erstes Zeichen eines Variablen-Namens grundsätzlich einen Buchstaben Wahlen. Es kennen bis zu 40 Zeichen zur Definition einer Variables verwendet werden. Hinweise: 1. Variablen-Namen soliden nicht mit BASIC-Befehlen beginnen (z.8. SPRINTET, SPRINT, sie Kinnen aber BASIC-Befehle enthalten (z.B. SPRINT, MINIPRINTER. 2.
T Anzahl der verwendeten Bytes Variablen-Typ Variablen-Name Daten Numerische Variable mit einfacher | {Lange des Variablen- Byte Genauigkeit Namens + 4) Byte Numerische Variable mit doppelter | (Lange des Stringvariable Byt Genauigkeit Namens + 4) Byte e .
Speichen von Werten in Variable mit doppelter Genauigkeit 1. Geringverdiener der Baudratenbestimmungen ! und #) ABI (oder AB) = 1234567891234567801234 ., 1.234867891 x 102 Der Wert wird mit 10 Stellen mit det einfach genauen Variationen AB! (oder AR . gespeichert.j i o AB# 1.2345678912345678912 x 10 Der Wert werd mit 20 Stellen mit der doppelt genauen Variablen AB# gespeichert. 2.
Mischung von Variablen mit einfacher und doppelter Genauigkeit Endhalt eine Berechnung doppelt genaue Variablen, sa geht der Computer bei Bedarf automatisch in den Modus der doppelten Genauigkeit. Doppelte Genauigkeit wird in folgenden Fallen automatisch eingeschaltet: Berechnungen mit 11-stelligen Worten und mehr: z.B.: 1234567891234 x 5 Bei Verwendung des Buchstabens D zur Bezeichnung eines Exponent: 2.B.: TAN 7.43D05 Bel Identifizierung von Werten mit dem Kreuzzeichen 2.B.
[SHR] + 7 [Assistenz . . Absprungs . ; .+5: o Wenn ein doppelt genauer Wert in Verbindung mit einer Funktion antrittst wird, deren Argument in einfacher Genauigkeit Ist, werden funktionale Berechnungen ., ausgeliefert, nachdem der doppelt genaue Wert auf die 10. Stelle gerundet Die folgenden Funktionen DECK, HEX, POL, REC. e . vy Dateien fair Programme und Daten Programme und Dateien stellen die wichtigsten Aspekte beim Gebrauch des Computers dar.
Beispiel: AND B> =90 ATHEN 150 Diese Anweisung bewirkt, daB die Ausführung auf Zeile 150 Springt: wein der-Wert 7 der numerischen Variable A Kernel oder gleich 32 ist und wenn gleichzeitig der Werk der numerischen Variabler B grober o ¢ gleich 90 ist. . Diese Anweisung bewirkt, das die Ausführung auf Ziels 50 springt, es sei denn die Variable X hat den Wert 13, oder die Variable ¥ ungleich 0 ist.
NOT X kann generell berechnet werden durch die Gleichung NOT X = Klammerung und Vorrang der Operatoren Bal der Bearbeitung komplexer Ausdrucke folgt der Computer einer Reihe vordefinierter Prioritäten, die bestimmen, in welcher Reihenfolge die Operatoren bearbeitet werden. Das kann sehr wichtig sein: kann sein 54+2=7 oder 2%3=6 Die genauen Regeln des “Operatoren-Vorrangs” werden auf Seite 162 beschrieben.
Im vergangenen Abschnitt haben wir einig ’wegraffe und Ausdrucke der Programmiersprache BASIC kennengelernt. In diesem Abschnitt wollen wir nun diese Gebrauche des BASIC auf dem Computer einfließen, Programme BASIC-Anweisungen Der Computer setzt Programme entsprechend einem bestimmen Format um, Dieses Format wird Anweisung genannt. Sig geben die BASIC-Anweisungen immer nach einem bestimmten Muster ein.
Wenn Sie gleiche Zeilennummer benutzen, wird die &leert Zeile gelöscht, wenn Sie ginge neue mit derselben Nummer eingeben. Etikettierte Programme Es wird häufiger vorkommen, daB Sie mehrere verschiedene Programme Zur gleichen Zeit im Speicher abspeichern wollen. (Vergessen Sie nicht, verschiedene Zellennummern zu vergeben.) Um ein Programm mit einen Runder einem TOTO-Befehl zu starten, missen Sie sich normalerweise an die erste Zeilennummer eines jeden Programms erinnern.
Direkt-Kommandos L o Direkt-Kommandos sing Anweisungen an den Computer, die außerhalb eigen Programms eingegeben werden, Sie fordern den Computer auf, bestimmst Vorgange durchzuführen oder einen bestimmten Malus zu setzen; der arid wieder die Art der Programmbearbeitung determiniert ’ unfihwlbére Dyslexie Eingabe des i . Direkt-Kommandos beendet haben (durch Betätigen; der
Beispiel 1 — Eingabe und Ablauf eines Programms Vergewissern Sie sich, daB der Computer sich im PRO-Modus befindet, und geben Sie das folgende Programm ein: SPRINT NEW | ]+ [ HELLROT 110 PRINTTHELLO™. Beachten Sie, daB der Computer bej Druck aut (<=1 automatisch zwischen die Nummer und das Kommando einen Doppelpunkt setzt. Peripherien Sie, da® die Anweisung das richtige Format hat, und #andern Sie dann durch Druck auf die Taste den Modus auf den RUN-Modus.
Wir wollen nun das Ausrufezeichen | an die richtige Stelle setzen. Wenn man Programme aufbereitet, werden die Wandelung die INS-Funktionen genauso benutzt wie beim Korrigieren einfacher Rechenoperationen. Mit Hilfe von [ =] bringen Sie den Cursor auf das der Einwilligung folgend Zeichen. 10 SPRINT "GODESBERG" Drinstecken Sie die Taste. Ein * -4 * markiert die Stelle, an der ein neues Zeichen einzugeben ist: 10 SPRINT “GODESBERG" — Geben Sie das “" ein.
Gehen Sie zurichte in den PRO-Modus und benutzen Sie den Auf oder Abgespielt {oder LIST), um in Zeile 50 zu kommen oder geben Sie folgendes ein: LIS 56:END \ — Sig kennen nun 50 eingeben, um o die gesamte Zeile zu laschen. Sie innen aber auch den Cursor mit [ auf das E in END setzen. Andern Sie die Zeile 50 folgendermaßen: 50: TOTO 10 Nun lassen Sie das modifizierte Programm taufen (RUN). Die TOTO-Anweisung schafft eine Programm-Scheffel (d.h. ginge bestimmte Operation wird immer wieder durchgeführt.
Nachdem Sie ein neues BASIC-Programm eingaben, wird es In der Regel beim ersten Startversuch nicht laufen. Selbst wenn Sie ein Programm nur abtippen, von dem Sie wissen, dab es korrekt ist, wis 2.8, die In diesem Handbuch vorgestellten, durfte ihnen normalerweise mindestens ein Tippfehler unterbauten. Handelt es sich um ein längeres Programm, wird es oft auch mindestens einen logischen Fehler enthalten. Es folgen einige grundsätzliche Hinweise, wie Sie solche Fehler finden und korrigieren.
KAPITEL 4 COMPUTERANWEISUNGEN Kapitel 4 entweiht eine alphabetische Liste aller Baissemeldungen flr den PC-E500*. Dieser Abschnitt dient zum Nachschlagen. Der erste Abschnitt enthielt eine alphabetische Liste der numerischen Funktionen und Pseudovariablen-. Der zweite Abschnitt besteht aus einer alphabetischen Liste aller anderen BASIC-Anweisungen. * Der PC-ES00 wird im folgenden als “der Computer” bezeichnet.
Der Computer ist mit zahlreichen eingebauten Funktionen fir wissenschaftliche, mathematische und statistische Bezeichnerlängen ausgestaltet. Eine alphabetische Liste folgt weiltet unter. All dies’ Furiiciodian' kennen bei der Anwendung des Computers im RUN Verweisungszeichen in einer Programm.” häufig als Telefon Berechnungen benutzt werden bzw.
“ABS ) Funktion: Absoluter Wert D Anmerkungen: Zeigt den absoluten Wert des numerischen Arguments an. Der absolute Wert it der Wert Rainer Ziffer unabhängig von selbem Vorzeichen. ANS-10 Ist 10. Beispiel: ABS —10 10 DECKS cos"xl Funktion: Reziproker oder Sinusförmig D Anmerkungen: Zeigt den Sinusförmig des numerischen Arguments an. Der Sinusförmig ist der Winkel, dessen Cousins gleich dem Ausdruck ist. Der Wert ist abhängig von der Einstellung in Alugrad, Bogenmai oder Neugrad. Beispiel: DEGRESSIV ACS -0.
CUR E Funktion: Kubikwurzel D Anmerkungen: Zeigt die Kubikwurzel des Arguments an. Beispiel: CUR 125 5 IDEE — Funktion: Uranformung von hexadezimal auf dezimal s Anmerkungen: Wandelt einen hexadezimalen Wert in einen dezimalen um. Beispiel: DECK F82 3970 wieg —» Funktion: Umwandlung von AltgradMinuten/Sekunden in eine dezimale D Form Anmerkungen: Wandelt das Argument eines Winkels In der DM-Form (Altgrad, Minuten, Seilwunden) in die DE-Form (Dezimal-Grad) um.
*INT Funktion: Ganze Zahl D Anmerkungen: Zeigt die ganze Zahn des eigenen Arguments an. Die ganze Zahl von -list 3. Bespiele: INT ~1.8 -2 LN log.x Funktion: Natürlicher Logarithmus D Anmerkungen: Zeigt den Logarithmus der Basis e (2.718281828...) des eigenen numerischen Arguments an. Beispiel: N2 LOG fortzog Funktion: Dekadischer Logarithmus mit der Basis 10 D Anmerkungen: Zeigt den Logarithmus der Basis 10 des eigenen numerischen Arguments an.
REC (X9 () Funktion: Umwandlung polarer in rechtwinklige Koordinaten S Anmerkungen: Wandelt numerische Argumente im Polarkoordinaten-Format in gin rechtwinkliges Koordinaten-Format um. Das erste Argument bezeichnet die Entfernung und das zweite den Winkel. Die Winkelangabe hingt ab von der Einstellung des Computers (DEG, RAD oder GRAD). Dis umgekehrten Werte, die Entfernungen von der w-Achse und der y-Achse, werden den festen Variablen Y und Z zugewiesen. Beispiel: DEGRESSIV REG (12,30} 10.39230485 (x = 10.
SIN sind |, Funktion: Sl Strieder e ) LUy Erkundigen: Zeig den Sirius Saiteninstruments' an; Der vorgezeigte W sangt von der Einstellung des Computers 2t (Alugrad, Bogenmai oder Neugrad), Beispiel: . DEGRESSIV . KRR SINN Isar % Funktion: .. Quadratwurzel D Anmerkungen: Zeigt die Quadratwurzel des Arguments an. Bespiele: SQR 3 1.
Die folgenden Seiten enthalten eine Auflistung aller BASIC-Kommandos, die Sie auf dem Computer benutzen kennen. Der Einfachheit halber wurden fir diesen Nachschlageteil folgende Symbole hinzugefügt: Ausdruck Variable «Sicherzugehen” ZeichenfolgeVariable *Etikett 1 () Zeigt einen numerischen Wert, eine numerische Variable oder Formel an, einschließlich der numerischen Werte und der numerischen Variablen. Zelt die numerische Variable oder die Zeichenfoige-Variable an, einschließlich Feld variablen.
AER FORMAT: AER Zahn | (Ausdruck, Ausdruck, ) ] Abkürzung: AE. Flehe auch: WIRKUNG: Zur Ausführung algebraischer Ausdrucke, die in der ER-Betriebsart gespeichert wurden. ANMERKUNGEN: AER wandelt die in AER gespeicherten Ausdrucke in BASIC-Programme um. Die Nummer des zugewiesenen algebraischen Ausdrucks angeben; der Computer ruft diesen Ausdruck auf und fuhrt thn aus. Wenn eine nicht zugewiesene Nummer angegeben wird, erfolgt ain Fehler.
ASC FORMAT: pqc Zeichenfolge-Variable “Zeichenfolge” Abkürzung: A Siehe auch: OHRS WIRKUNG: Berechnet den Zeichencode fir das erste Zeichen In der vorgegebenen Zeichenfolge. ANMERKUNGEN: Die Zeichenfolge kann als Inhalt einer Zeichenfolge-Variablen in der Form X$ oder als wirkliche Zeichenfolge in Ausrufungszeichen, 2.B. angegeben werden. Nur der Zeichencode des ersten Zeichens der Zeichenfolge wird dargestellt, Die Zeichencode-Tabelle finden Sie im Anhang B.
AUTOFOTO : FORMAT: Zeilennummer AUTOFOTO {*Enm } Abkürzung: AU. Siehe auch: -RUN, TOTO WIRKUNG: Stellt den Computer so ein, daB der Programmablauf automatisch beim Einstellen der RUN-Betriebsart erfolgt. ANMERKUNGEN: Wenn AUTOFOTO in der ersten Zeile seines Programme (erste Anweisung) enthalten Ist, startet das Programm beim Einstellen des Computers in die RUN-Betriebsart. Er arbeitet so, ais ob eine TOTO-Anweisung ber die Tastatur eingegeben wurde.
JEEP FORMAT: JEEP Nummer { 1 Abkürzung: B. Siehe auch: WIRKUNG: Erzeugt Tone der vorgegebenen Hohe und Dauer Ober den internen Lautsprecher des Computers. ANMERKUNGEN: Die eingeben Zahl Ist die Anzahl der Signaltone. Einen positiven Wert oder Ausdruck bis zu 85535 bestimmen. Die Wahl der Tonhöhe spezifizieren die steigende Tonhöhe (Frequenz) des Piemonts Jt Bereich von 255 bis 0. Mit Zunahme dieses Wertes wird die Tonfrequenz geringer.
Die glatt Einzelheit der Tom Wedle [ Rede | Transistor Tonwale [ Reste | Toleranz :J 20 Ten N Ton st Frequenz | Frequenz | () at Frequenz | Frequenz | (x) doof 3] 6 %18 808 12220 [ 27 | pass | kurios 7956 | @ cool 918208 ook ) 35 | 11007 | Tilde T ose 2037 | a3 220 1195 11747 | 11743 T —pp3 o treffe 6 ] 111 | s1i4 218 (fresst 50| 125 | war | Hie B ml7 ) s | 596 | s e lml e 13185 | 13196 | 698 882 | seid | —oi1 (161l e 13969 | 14688 | 069 | 23 fatal o | versus | sing 827 1o EFTA [ 35 | 1000 | RIAS | Srm 21 S
CIRCA o FORMAT: CIRCA (Ausdruck 1, Ausdruck 2), Ausdruck 3 {,Ausdruck 4][ Ausdruck 5]} Ausdruck &} [ Ausdruck 71, Ausdruck 9] Abkürzung: Cl. Flehe auch: CHLOR, GRAPH WIRKUNG: Dient zur Darstellung von Kreisen. ANMERKUNGEN: Dieser Befehl ist it im Grafikmodus wirksam und kann 2ur Darstellung von Kreisen, Kreishagen, Sektoren urd Eklipsen mit durchgehender Linie verwendest werden. Ausdrucke 1 und 2 sind fur die Angabe der Koordinaten X und Y zur Bestimmung des Kreismittelpunks.
UPLOAD? o FORMAT: 1. GOLDA? “Dateiname” 2. GOLDA? Abkürzung: KLO? Siehe auch: UPLOAD, SALVE WIRKUNG: Mit dem Kommando GOLDA? wird ein auf Band gespeichertes Programm mit einem im Speicher enthaltenen Programm verglichen. ANMERKUNGEN: Nur als direkte Eingabe in der Pro oder RUN-Betriebsart zulässig. Um zu priesen, ob ein Programm richtig gespeichert wurde, spulen Sie das Band an den Anfang zurück und geben Sie das ein.
ROTATOR. 7% Abkürzung: CR.: Siehe auch; qnn WIRKUNG: v Lo LT Bestimmt die Druckrichtung ung die Zeichen auf dem CE-515P. ANMERKUNGEN; i I Dieser Befehl ist nur wirksam, wenn der Drucker auf Grafikmodus geschaltet ist. Der Wert des Ausdrucks bestimmt hierbei die jeweilige Druckrichtung und Orientierung der Schriftzeichen, o . Wenn fir den Ausdruck.ein, Wert inzwischen und 3 eingegeben wird, schaltet der Drucker nach dem folgenden Schema auf die zugehörige Druckrichtung und Orientierung um.
SALVE > FORMAT: 1.CSAVE “Dateiname” 2. SALVE 3. SALVE "Dateiname”, “Kennwort” 4. SALVE , "Kennwort” Abkürzung: CS. Siehe auch: UPLOAD, CLOCHARD, PASS WIRKUNG: Mit dem Kommando AGAVE wird ein Programm auf Band gesichert, ANMERKUNGEN: Format 1 des Kommandos AGAVE speichert alle Programmzellen im Speicher des Rechners auf Band und weist den entsprechenden Dateinamen zu. Format 2 des Kommandos SALVE speichert alle Programmzeiten des Rechners ohne spezielle Datenalmen auf Band.
DATA ’ FORMAT: DATA Liste der Werte Abkürzung: DA. Siehe auch: RED, RESTOHRE WIRKUNG: DATA wird benutzt, um Daten fair RED bereitzustellen. ANMERKUNGEN: Soll einem Feld mit Anfangswerte zugewiesen werden, ist es empfehlenswert, die Werte in einer DATA-Anweisung aufzulisten und sie dann mit einer RED-Anwel sing in einer in das Feld einzulesen. Wird die erste Radanweisung ausgeführt, wird der erste Wert in der DATA-Anweisung abgerufen.
Im folgenden Beispiel werden die Variablen als Variablen mit einfacher Genauigkeit behandelt: DIM DEFILEE A DEFTIG b FORMAT: 1.DEFSNG Zeichenbereich 2. DEFTIG Abkürzung: DES. Siehe auch: DEFILEE WIRKUNG: Definiert eine oder mehrere Variable fair einfache Genauigkeit, oder hebt Berechnungen mit doppelter Genauigkeit auf, die durch DEFILEE spezifiziert wurden. ANMERKUNGEN: In Format 1 werden die Variablen im “Zeichenbereich™ mit einfacher Genauigkeit bestimmt.
DELLE D FORMAT: 1, DELLE Zeilennummer 2. DELLE Zellennummer 3. DELLE Zeilennummer Zeilennummer 4. DELLE Zeilennummer Abkürzung: DEL. Siehe auch: NEW, PASS WIRKUNG: Löscht die angegebenen Programmzeilen im Speicher. ANMERKUNGEN: Nur als direkte Eingabe in der PRO-Betriebsart zulässig. Format 1 Schicht nur die angegebene Programmzeile. Format 2 tuscht die Programmzeilen von der angegebenen Zellenförmiger bis zur wichsten Programmzeile im Speicher.
Bespiele: wird als X(2) erkannt. wird als Y(0) erkannt. Der Index kann als eine numerische Variable oder ein Ausdruck bestimmt werden: 10: EINPUT A,B 20: DIM X(A), Mit einer DM-Anwelsung kann mehr als nur ein Feld bestimmt werden. Beispiel: DIM V(5), Wenn ein Feld definiert wurde, kann es nicht noch einmal definiert werden. Es kann 2.B. nicht DIM X(5) und DIM definiert werden, weil die Variablennamen gleich sind.
DISK s FORMAT: DISK fair Diskette, 8 fir RAM-Diskette E, 4 f0r RAM-Diskette F Abkürzung: DS. Flehe auch: Dieses Kommando gibt den: freien Platz auf einer Paket-Diskette aderigen RAM-. Disketten £ und ANMERKUNGEN: ) DISK gleitenden Umfang einer freien Diskettenzone in Byte an. Die Diskette wird in Bocks-von 512 Byte verwendet; die RAM-Diskette wird In Blicks von 256 Byte benutzt ol Um ein.
o u EOF FORMAT: EOF (Dateinummer) Abkürzung: EO. Siehe auch: WIRKUNG: Bestimmt, ob das Ende einer sequentiellen Daherschleicht wurde; ™ > ANMERKUNGEN: T Die EOF-Funktioniberpriift; global Daten in einer sequentiellen Dattel {mit dér bestimmten: Dateinummer) gelesen: windenden. Sl : Wurden alle Daten gelesen, Referier EOF als Funktionswert ~1 ‘ Wenn nicht, liefert es 0 (falsch).
FILES FORMAT: FILES d: X EF Abkürzung: Fl. L Siehe ach: --FILES, SET. Ty WIRKUNG: S e Zelt die Namen und Ergänzungen einer oder mehrerer Dateien einer Po kette oder RAM-Diskette an, ANMERKUNGEN: FILES zeigt den Dateinamen an, erweiterungsfähig jung) und (Schreibschutz) sage 2 S {.BAS ad andere Weiterbestehe dazu SET-Kommando). Wenn kein Gerätenamen spezifiziert wird, wird der letzte Name angenommen. Wenn kein Dateinamen spezifiziert wird, werden alle Dateien Gerätes dargestellt.
Dateispezifikation Aufgelistete Dateien TEST? TEST, TESTS, TESTE, TASTE 177 TEST, TEXT, DORT, TBYTE SIMPLE SIMPLE, SAMPLE, SIMPLE A?777? ABFINDE, TAPPEND, A12345 Rx RATES, R1, TURNENS, RAND-, R Wenn die Tasten oder + [T gestrickt werden, oder wenn der letzte Dateiname angezeigt und die Taste geklickt wird, wird die Aufforderung ° dargestellt und der Computer wartet auf den wichsten Befehl. FILES hat keine Wirkung, wenn die spezifizierte Dattel nicht auf dem spezifizierten Medium vorhanden ist.
Die Lokalisation (0,7) wird automatisch angenommen, wenn der Anfangspunkt auf dem Display mit dem RUN-Befehl ausgefiltert wird oder [HILFLOS] + [CA_] gedrillt wird. Beim Starten eines Programms mit TOTO wird nur die Zellennummer berücksichtigt, die mit diesem Befehl spezifiziert wird, wirrend die Spaltennummer automatisch auf Null zurückgesetzt wird. ÖLCURSOR > FORMAT: ÖLCURSOR (Ausdruck 1, Ausdruck 2) Abkürzung: GL. Siehe auch: WIRKUNG: Versetzt den Druckkopf.
TOTO > FORMAT: Zeilennummer Toto {*Etikett } Abkürzung: G. Siehe auch: GOSS, ON...GOTO, RUN WIRKUNG: \ersetzt die Programmsteuerung 2u einer spezifizierten Zellennummer oder zu *Etikett. ANMERKUNGEN: TOTO veranlagt den Rechner, von einer bestimmten Stelle in einem Basisprogramm an eine andere Stelle zu springen. Anders als bei GOSS “erinnert’ sich TOTO nicht, von wo dieser Sprung ausgeführt wurde. im Allgemeinen wird ein Programm sequentiell von der Klingelten Zeilennummer aus ausgefiltert.
Beispiel: [T Serpentine das ober 4-Punkmusik SPRINT “102812FD122810" obere 4 Punkte bl L Repräsentiert das unter 4-Taskfunktion unsre 4 Punkts 1 | | SPRINT 16;40;18;253;18;40;16 produziert das gleiche Punktmuster. Setzen Sie ein Semikolon () ans Ende der Zeichenfolge, damit der Cursor automatisch an die nächste Position gebracht wird. In Format 2 wird gin senkrechtes 8-Punktmuster als Hexadezimal oder Dezimalwert wiedergegeben.
FINIT o FORMAT: FINIT “0:2K° FINIT Abkürzung: NI Siehe auch: WIRKUNG: Initialisiert eine Diskette (RAM oder Pocken. ANMERKUNGEN: Format 1 spezifiziert die Bereiche der Daten-Dateien auf den RAM-Disketten E und F. Durch den Bereich fir Daten-Dateien inne Programme und Daten verwendet werden, als ob sie in einem externen Speicher gespeichert waren. Die Grobe des Bereichs fir Daten-Dateien wird in Kilobyte spezifizier. Die zulässige Grobe flr RAM-Diskette E ist 2 bis 27.
KLINKE Zeichencodetabelle Homoehe Tief 0 SEIFT | SPAGETTI G P PF1 1 Fund | hyp PF2 2 CCE 2 B8 B log PF3 3 1 | FSE ANS 4 o T PFS 5 1 CAMPS 5 E U —HEX | sin 8 RCL |CTRL STO tan 8 BASIC WURMEN OFF INS + : K -DEGEN C DEL EXP Dio ] -Teste funktioniert als Abbruchtaste (FREAK-Taste).
EINPUT —— FORMAT: 1. EINPUT) Variable [, Variable] e . “Aufforderungs-Zejchenfolgs”, Variable Variable]. | -+ EINPUT *Aufforderungs-Zeichienfolge™ Variable . . yo Variable] Abkürzung: f, Lty e Stehe auch: INPUTFILE, EINSINKE, RED, LOCHTE WIRKUNG: P EINPUT wird benutzt; um einen oder mehrere Werte (ober die Tastatur einzugeben, ANMERKUNGEN: ! Wollen Sie verschiedene Werte fair. jeden Programmablauf eingeben, benutzen Sie EINPUT, um diese Werte Tiber die Tastatur einzugeben.
{10] Setzt ein Fragezeichen an den Viren Rand. [20] Gibt "Ax” aus und wartet auf Eingabe. [30} Gibt “A=" aus. Bel der Eingas vorschwindelt A" und der eingegeben Wert wird von Finken Band an angezeigt. {40] Gibt “X=7" aus und wartet auf die erste Eingabe. Nach [az=] wird dis Anzeige gelöscht und wird am linken Rand angezeigt. INPUTFILE 0 FORMAT: INPUTFILE (Zeichenzahler) 2.
INPUTFILE T FORMAT: EINPUT# Dateinummer, Variable, Variable, Variable Abkürzung: |# Siehe auch: POPEN, SPRINT# WIRKUNG: Liest Teile von sequentiellen Dateien auf Diskette (Raumader Floppydisketten. ANMERKUNGEN: Die Dateinummer entspricht der Nummer, die der Datei beim Offenen mit der Prämienanpassung gegeben wird. Die Datenframe mu8 in einer POPEN-Anweisung spezifiziert werden.
SPIELBERG: 10: A§ = "AB" + CHRIS 34 + "CDE" + HRS CHRIS 34 + "CD,EF" + HRS 34 30: PRINT A$ 40: PRINT B§ 50: OPEN FOR OUTPUT AS #2 80: PRINT 70: CLOSE OPEN FOR INPUT AS #2 90: INPUT #2, C§, D§ 100: PRINT C$ 110: PRINT D$ 120: CLOSE:END Ausfihrung RUN ABRADE" “CD,EF ABRADE" CD,EF 27
KEY FORMAT: KEY Tastennummer, Abkürzung: KE. Siehe auch: KEYNES TR T R WIRKUNG: o Zuweisung einer Buchstaben-Zeichenfolge 2\ einer programmierbaren Funktionstaste. ANMERKUNGEN: Mit KEY kennen ein Befehl und Funktionstaste zugewiesen werden. Die fing Funktionstasten Mit KEYNES, “Zeichenfolge” wird also die ~Taste in der ersten Ebene, mit KESS, “Zeichenfolge” die -Taste in der weiten Ebene programmiert, Die Zeichenfolge darf bis zu 31 Zeichen lang sein.
LEBHAFT FORMAT: Ausdruck) Abkürzung: LEF. Siehe auch: MIDI, COPYRIGHTS WIRKUNG: Gibt eine spezifizierte Anzahl von Zeichen von der linken Sekte seiner Zeichenfolge aus an. ANMERKUNGEN: LEBHAFT gibt die Anzahl von Zeichen, die durch den Ausdruck spezifiziert wurden, von der linken Seite der Zeichenfolge aus an. Der Befehl fischt z.B. zur Anzeige der 3 ersten (Finken} Buchstaben “ABC”.
LET FORMAT: LETTE numerische Variable = Ausdruck 2. LET Zeichenfolge-Variable = Zeichenfolge Abkürzung: LE. Flehe auch: WIRKUNG: LET wird benutzt, um einer Variablen einen Wert zuzuweisen, ANMERKUNGEN: Mit LET wessen Sie der angegebenen Variablen den Wert des Ausdrucks zu. Die Form des Ausdrucks muf mit der Variablen Übereinstimmen, d.h. nur numerische Ausdrucke kennen numerischen Variablen und nur Zeichenfolge-Ausdriicke kennen Zeichenfolge-Variablen zugewiesen werden.
LF P “.:D FORMAT: Ausdruck Abkürzung: Siehe trachte: WIRKUNG: Dem Befehl LF bewirkt Vorschub des Druckerpapiers (CE-515P). ANMERKUNGEN: LF Ist nur im Textmodus wirksam. Mit Format 1 erfolgt Bevorschussen un sing Zeile. o ' Mit Format 2 wird das Papier der angegebenen Zellenzahl entsprechend transportiert. Der fir den Ausdruck angegebene Wert mus zwischen 399 und 999 flehen. Bei Angabe eines positiven Werts erfolgt Papierzufuhr nach vorwarf, bel Angabe ehest negativen Werts nach dickwanstig.
-FILES o FORMAT: -FILES d: . E Abkürzung: LF. Siehe auch: FILES WIRKUNG: Druckt die Namen und Attribute der spezifizierten auf Diskette gespeicherten Datenbit. ANMERKUNGEN: Wenn der Gerätename ausgelassen wird, wird der Name angenommen, der fir die \setzte Datei bestimmt wurde. Wenn 2.B. die letzte Datei-Anweisung FILESE™" ist, wird die RAM-Diskette E als Gerätename angenommen. Bestimmen Sie einen Dateinamen, um den Namen und die Attribute nur von dieser Dattel auszudrucken.
FORMAT: LINDE [(Ausdruck 1, Ausdruck 2))= (Ausdruck 3, Faustdick { Ausdruck 51 2] Abkürzung: IN. . Siehe auch: -CURSOR, -SET WIRKUNG: Zeichnet eine Linie zwischen den bestimmten Punkten. ANMERKUNGEN: LINDE wird verwendet, um Umrisslinie engherzigen, die vor-den Koordinaten; die’ mit (Ausdruck 1, Ausdruck 2) spezifiziert wurden, zu den Koordinaten' (Artischocke 3, Ausdruck 4 fahrt. Beispiel: .
Die Optionen 8, R und X werden verwendet, um die spezifizierten Linien auf der Anzeige einzustellen, umzustellen oder umzukehren. g: Stellt eine Linie dar, indem die entsprechenden Punkte auf dem Bildschirm aktiviert werden (setz. R: Stellt eine Linie dar, indem die entsprechenden Punkte devalviert werden (stresse. Diese Option ist nichtsnutzig, um eine Linie In Umkehranzeige darzustellen oder eine bestehende Linie zu fischen. X: Stelle eine Linie dar, indem inaktivierte Punkte aktiviert bzw.
LIST =~ FORMAT: DÖSTE] e v 2, LIST 3. LIST *Etikett E S Abkürzung: [ Siehe auch: -LIST, PASS WIRKUNG: o . . Mit dem, LIST-Kommando wird ein Programm zur Anzeige gebracht, ANMERKUNGEN: Nur gilt als direkte Eingabe in der Betriebsbereit, Mit Format 1 wird dag Programm von der ersten Zeile angezeigt, bis das Display voll fst. . Mit Format 2 wird das Programm von der angegebener Zeilennummer angezeigt, bis das Display voll ist. Mit der 471 -Taste kommen Sie in die naschte Zelle der Liste.
LEINE FORMAT: LEINE [(Ausdruck 1, Ausdruck 2]) — (Ausdruck 3, Ausdruck 4) [, Ausdruck ], Ausdruck 8[, B Abkürzung: HELLING. Siehe auch: REINE, PATIN, CHLOR WIRKUNG: Verbindet zwei gegebene Punkte durch eine Linie (CE-515P). ANMERKUNGEN: LEINE ist nur im Grafikmodus wirksam und wird verwendet, um den mit (Ausdruck 1, Ausdruck 2) bestimmten Koordinatenpunkt durch eine Linie reit seinem zelten Koordinatenpunkt (Ausdruck 3, Ausdruck 4) zu verbinden.
-LIST o FORMAT: CELLIST 2.LU8T 3. -LIST [Zeilennummer 1}, [Zellennummer 2] Abkürzung: LL. Siehe auch: LIST, PASS, POPEN, KONSOLE WIRKUNG: Druckt auf dem optionalen Drucker ein Programm aus. ANMERKUNGEN: Nur talgig als direkte Eingabe in der Pro oder RUN-Betriebsart. Wann das serielle entsprechend dem Befehl POPEN geeignet ist, gibt der Befehl -LIST die Programme zum seriellen des Druckers aus. Zur Rockstellung des Programm-Druckbefehls zum Drucker (CE-126P) den Befehl LOSE ausfahren.
LORD b FORMAT: LORD CAS, COM Abkürzung: 1OA. Siehe auch: SAUE, -HAIN, MENGE, LORD? WIRKUNG: Laden eines BASIC-Programms. ANMERKUNGEN: Mit LORD wird das Programm mit dem angegebenen Dateinamen geladen. Wenn durch das Laden des Programms der Programm-Speicherbereich {überschritten wird, erfolgt ein Fehler. In diesem Fall missen unnötige Variable aus dem Datenbereich gelöscht werden.
SPRINT FORMAT: }[ Zeichenfolge Zeichenfolge Ausdruck Ausdruck ’ 2 SPRINT {Zeichenfolge} s s SPRINT SING oder o AUSHIELT | [Ausdruck s 3 SPRINT SING “Format'; {Zeichengolf H{} _] 4. SPRINT i VERSKLAVE L G Abkürzung: LP. ol missbrauche; SPRINT, SING: POPEN; KONSOLE: Hi Wirkung: Ausgabe von Daten ani den Drucker. ANMERKUNGEN: ! Wenn ein serielles mit dem POPEN-Befehl geeignet wurde, wird mit dem Listbefehl das’ Programm an ein h auserlesen abgegeben.
Mit Format 2 werden die Daten der Reihe nach linksbündig ausgedruckt. Wenn am Ende einer Anweisung ein Semikolon ;) steht, werden mit dem folgenden SPRINT-Befehl des Programms die Daten in der Reihenfolge nach den Daten des ersten SPRINT-Befehls ausgedruckt. Bel Verwendung eines seriellen wird jedes mal bei der Übertragung von Daten mit einer bestimmten Anzahl von Spalten, die durch den KONSOLE-Befen| spezifiziert wurden, sin Begrenzer-Code Übermittelt.
FORMAT:, 1. MDF (Ausdruck) 2.MDF {Ausdruck; Schwellwert-Nummer). Abkürzung: MD. Siehe auch; SING WIRKUNG: vt v Chinin o Der MD-Befehl wird benutzt, um den Wert eines Ausdrucks aufzurufenden, Caen ANMERKUNGEN: 7 A MDF ist eine Funktion, die benutzt wird, .um,den Wert eines. Ausdrucks auf die durch das SING-Kommandos angegebene Anzahl von Dezimalstellen Aufzurufenden, MDF ist nur effektiv, wenn die Anzahl der Dezimalstellen mit Hilfe des SING-Kommandos fair einen Wert definiert wurde.
MEMEL FORMAT: MEMEL Abkürzung: ME. Flehe auch; WIRKUNG: Zeigt die Konfiguration der RAM-Karte an. ANMERKUNGEN: Der Buchstabe zeigt die Zugriffssituation des Speichers an. “S1" bedeutet, daB die externe RAM-Karte nicht verwendet wird. “52' bedeutet, daB nur die externe RAM Karte verwendet wird. “B” bedeutest, daf die AM-Karte als Erweiterung zum internen Speicherplatz verwendet wird. Fair weitere Hinweise siehe 3. RAM-KARTEN".
MIDI o FORMAT: MIDI (Zeichenfolgen.m) Abkürzung: M. Flehe auch: LEBHAFT, COPYRIGHTS WIRKUNG: Holt eine Zeichenfolge von M Zeichen aus einer Zeichenfolge, beginnend beim Noten Zeichen in der Zeichenfolge. ANMERKUNGEN: 1st N gröberer als die Anzahl von Zeichen in der Zeichenfolge, wird eine Null-Zeichenfolge erstellt. Wenn N Kleiner als 1 ist, tritt ein Fehler auf, M muB zwischen 0 und 254 liegen und N muB zwischen 1 und 254 liegen. Bruchteile werden abgerundet.
NEW FORMAT: NEW Abkürzung: Siehe auch: LEAR, PASS WIRKUNG: NEW wird benutzt, um bestehende Programme oder Daten zu [&schien. ANMERKUNGEN: Das NEW-Kommando löscht alle Programme und Daten, die sich momentan im Speicher befinden. (Die mit Kennwart geschnitzten Programme kennen nicht gelöscht werden.) Die Inhalte der ER-Spelcher bleiben erhalten.
ON...GOSUB ° FORMAT: Ausdruck 1] [Ausdruck 2 ON Ausdruck GOSS {*Etikett } > } Abkürzung: O. GOS. Siehe auch: GOSS, TOTO, ON...GOTO WIRKUNG: ON...GOSUB wird benutzt, um eine der gegeben Subroutinen abgehangen vom Wert eines Kontrollausdrucks auszubreiten. ANMERKUNGEN: Bei der Ausführung von ON..GOSUB wird der Ausdruck zwischen ON und GOSS ausgewertet und auf einen ganzzahligen Wert reduziert.
POINTE b FORMAT: POINTE {Ausdruck 1, Ausdruck 2) Abkürzung: POL Flehe auch: -CURSOR, -SET, PRESST WIRKUNG: Gibt den Status eines spezifizieren Punktes an. ANMERKUNGEN: POINTE gibt 1 aus, wenn der Punkt mit den spezifizierten Koordinaten (Ausdruck 1, Ausdruck 2) eingestellt ist; 0 wird nach dem Laschen ausgegeben. Wenn der spezifizierte Punkt außerhalb des Displaybereichs liegt, wird —1 angezeigt. Die Werte fir Ausdruck 1 und 2 legen innerhalb des Bereichs von ~32768 bis 32767.
-SET o FORMAT: 1.PSET {(Ausdruck 1, Ausdruck 2) 2. -SET (Ausdruck 1, Ausdruck 2) ,X Abkürzung: PS. Siehe auch: PRESST, -CURSOR, POINTE WIRKUNG: Einstellen oder Laschen eines bestimmten Punktes auf dem Display. ANMERKUNGEN: Format 1 stellt den Punkt mit den Koordinaten {Ausdruck 1, Ausdruck 2) ein. Format 2 löscht einen bereits vorhandenen Punkt oder stellt sinne geschielten Punkt wieder ein. Die Werte fur Ausdruck 1 und 2 liegen innerhalb des Bereichs von —32768 bis 32767.
RANDOMISIER o FORMAT: RANDOMISIER Abkürzung: RA. Siehe auch: RND WIRKUNG: RANDOMISIER wird benutzt, um ine neue Startzahl fir gen Zufallsgenerator zu setzen. ANMERKUNGEN: Wenn mit der RUND-Funktion Zufallszahlen erzeugt werden, so startet der Computer bei einer vorgegebenen Startzahl. Der Randomisieren setzt diese Startzahn auf einen neuen, zufällig gewahrten Werk.
RESTOHRE «Etikett 2. RESTOHRE FORMAT: | RESTOHRE {Ausdruck} Abkürzung: RES. Siehe auch: DATA, RED WIRKUNG: RESTOHRE wird benutzt, um Werte in einer DATA-Anweisung mehrmals zu lesen oder die Reihenfolge, In der diese Werte gelesen werden sollen, 2u andern.
FORMAT: REINE (Ausdruck 1, Ausdruck 2) — (Ausdruck 7 Ausdruck 4) , Ausdruck 5[, Ausdruck 6], B] Abkürzung: RL. Y Siehe auch: LEINE, e WIRKUNG: e o obwohl ot iy Dient zum Ziehen einer Linie zwischen den beiden Punkten, festgelegt durch die relativen Koordinaten. ¥ Lo ANMERKUNGEN: .+ . . REINE ist nur in der Grafik-Betriebsart wirksam.
RND > FORMAT: RND numerischer Ausdruck Abkürzung: BN. Siehe auch: RANDOMISIER WIRKUNG: RND erzeugt eine Zufallszahl. ANMERKUNGEN: Ist der Wert des Ausdrucks Keiner als 1, aber grober oder gleich Null, so ist die Zufallszahn! keiner als 1 und grober oder gleich Null. lst der Ausdruck eine ganze Zahn, die grober oder gleich 1 ist, ist das Ergebnis eine Zufallszahl, die grober oder gleich 1 oder Kissinger oder gleich dem Ausdruck ist.
SAUE > FORMAT: SAUE CAS, COM Abkürzung: SA. Flehe auch: LORD, DISK, MENGE, SALVE, FILES WIRKUNG: Sichern ein BASIC-Programm auf ein bestimmtes Gerd. ANMERKUNGEN: Mit der SAUE-Anweisung wird ein BASIC-Programm aus dem Speicher benannt und dann in eine bestimmte Dattel geschrieben. Ein Dateiname Ist ein Name, der einem Programm oder einem Datensatz gegeben wird. Die gewünschte Datei kann vom Computer immer schnell wiedergefunden werden, wenn dieser Dateiname abnutzt wird.
SORGEN o FORMAT: SORGEN Abkürzung: SO. Siehe auch: ÖLCURSOR, LEINE, REINE WIRKUNG: Ändert den Ursprung von Koordinaten zum Zeichnen mit dem Druckkopie. ANMERKUNGEN: Dieser Befehl ist nur in der Grafik-Betriebsart wirksam und dient zur Bestimmung der derzeitigen Position des Druckkopfes als neuen Ursprung von Koordinaten. Das Aufzeichnen einer Grafik ist far den Drucker mitunter schwierig, wenn sich der Ursprung der Koordinaten am linken Ende des Papiers befinden.
TEXT ey FORMAT: TEXT Abkürzung: TE. Siehe auch: BASIC PRy WIRKUNG: Schaltet den Computer in den Textmodus,: ANMERKUNGEN: L L Nur hitzig &ils direkte Eingabe in der e Die TEXT-Funktion wird gebraucht. wegging Piktogramm in.den Computer ein: gegeben werden soll, das for einen gröberen Personal Computer geschrieben wurde. Die. Eingabe kann ausschreibe das serielle erfolgen. Daten, besiegend aus der Zeiteinnummer und Befehlen oder. Daten, werden in den Rechner eingegeben.
(3) USING##h#F" Darstellen des Vorzeichens, 2 Stellen der ganzen Zahl, des Dezimalpunktes und 2. Dezimalstellen, SING St 4" Darstellen des Vorzeichens, 4 Stellen der ganzen Zahl, eines Trennzeichens nach der 3 Stelle und des Dezimaljunkies. Bai numerischen Daten wird das Trennzeichen () als eine Stelle gezittert. Wenn die Zahn dargestellt werden soll, muB das Feld 10 Stielen haben, z.B. SING #Weihe #HH." (5) Darstellung der numerischen Daten in Exponentialfaktor mit bis zu 2 Dezimalstellen.
vAL o FORMAT: VAL Zeichenfolge Abkürzung: V. : WIRKUNG: Wandelt eine Sichergehe aus numerischen Zeichen in einen Dezimalwert urn, ANMERKUNGEN: Die OVAL-Finktion wandet Zeichenfolgen, die Bezeichner fair. Hexadezimal zahlen Ziffern. ein. Vorzeichen und exponentielle Symbole {E oder D) in numerische Werte um. lst die Zeichenfolge dezimal, muB. sie aus den Zeichen 0 bis 9 bestehen und kann einen Dezimalpunkt und ein Vorzeichen ausweiten.
WEIT FORMAT: 1. WEIT Ausdruck 2. WEIT Abkürzung: W. Flehe auch: SPRINT, SPRINT WIRKUNG: Kontrolliert die Zeitdauer der Anzeige von Informationen vor der weiteren Ausführung eines Programms. ANMERKUNGEN: Format 1 spezifiziert die Zeitdauer der Unterbrechung des SPRINT-Befehls. Das Programm wird entsprechend der angegebenen Zeitdauer kurzzeitig unterbrochen und dann automatisch wieder gestartet. Der Werk des Ausdrucks kann in einem Bereich von 0 bis 65535 angegeben werden.
KAPITEL 5 ANLANGE Fehlermeidungen Tabelle der Zeichencodes Tastenfunktionen in BASIC Fehlersuche Signale bei Verwendung des seriellen Technische Daten Verwendung von Programmen von anderen SCHAR-Computern Pflege des PC-E500 IOUMMUOTP» 339
[SEHT] + [ ] [siF] + 2] 4 [shT] [seht] + [ (] DEL Zum Laschen von Text von der gegenwärtigen Cursorposition bis zum Ende der Zelle. Zum Laschen der ganzen Zeile, auf der sich der Cursor gerade befindet. Zur Kontrolle von Kombinationen wird die -Taste gestrickt gehalten und dann eine zweite Taste gestrickt. Zur Berechnung von Potenzen. zur Spezifizierung von wissenschaftlichen Notationen fir numerische Daten fir USING-Anweisungen. Zur Eingabe von logischen Operationen bei IN-Anweisungen.
« Wenn nur der Computer verwendet wird: MAINSTREAM) ALL LEAR OK? (Y/N) Beim Drinstecken der _Taste wird der gesamte Speicherinhalt getuscht. Beim Drinstecken -Taste bleibt der Speicherinhalt erhalten. « Wenn eine RAM-Karte eingesetzt ist EUROCARD: ALL LEAR OK? (Y/N) Die Anzeige fordert zur Initialisierung der RAM-Karre auf. Die “Taste drinstecken, um die RAM-Karte zu Initialisieren. Danach fordert die Anzeige zur Initialisierung des Computers auf, Die Taste klicken, um den Computer zU initialisieren.
ANHANG F TECHNISCHE DATEN Modell: Prozessor Programmiersprache: System-ROM: Speicherkapazität: Stapelspeicher: Operatoren: Numerische Präzision: Editierfunktionen: Speichersicherung: Interface-Moglichkeiten: PC-E500 Pocken Computer (Taschencomputer) 8-Bit CMOS CPU BASIC 256 Kilobyte System intern etwa 3,8 Kilobyte Bereich der festen Variablen 312 Byte Bereich fir Programme/Daten 28600 Byte Gesamt: 145 Byte ( Subroutine: 4 Byte/Stapel FORTUNE: 21 Byte/Stapel ) Addition, Subtraktion, Multiplikation, Division,
ANHANG G VERWENDUNG VON PROGRAMMEN VON ANDEREN HOMECOMPUTERN Auf dem Computer PC-E500 kennen mit geringfügigen Modifikationen die folgenden Programme filz die folgenden Computer der SCHAR PC-Serie verwendet werden: PI-1475, PC-1401, PC-1402, PC-1450, PC-1480, PC-1425, PC-1360 Der WEIT-Befehi des PC-E500 ist auf den Wert von 0 voreingestellt. Dies bedeutet, daB die Anzeige bei Ausführung eines SPRINT-Befehis nicht kurzzeitig anhielt.
ANHANG H PFLEGE DES PC-E500 Um einen störungsfreien Betrieb dieses Computer 2u sichern, sollten die folgenden Hinweise beachtet werden: . Den Computer immer vorsichtig behandeln, da die Flüssigkristall-Anzeige aus Glas besteht. Den Computer nicht extremen Temperaturschwankungen, Feuchtigkeit oder Staub aussetzen. Im Sommer siegt die Temperatur in Fahrzeugen bei direkter Sonneneinstrahlung extrem hoch an. Langerbes Liegen bei hohen Temperaturen kann zu Beschädigungen dieses Computers fuhren.
Statistiken Berechnungen 123 Dateneingabe 124, 128 ginge Variable 124 Fehler 187 FREI-Taste 125 Regressionen 127, 132 Statuszelle 12 Stecker 11-8tff 8 15-Stift 9 T Vereitelung 109 Tastatur 8 Taste fur zweite Funktion 11 Tastenbezelchnungs-Editor 112 Tastenfunktionen 344 Technikerdsoftware 32, 48 Liste 81 Programmierung 115 Technische Daten 351 Trage-Modus 198 Trigonometrische Berechnungen 39, 168 Trigonometrische Gleichungen 67 u Umwandlungen Hexadezimal/Dezimal 46 metrische 82 polarfrechtwinklig 41, 180 Wi