Die Schnittstelle

Die Dateien nc.tmp, s.tmp und deren möglicher Inhalt :

Fragen zur Schnittstelle ?


0 ENDE 0000 0000 1 byte
1 byte
-----------------------------------------------------------------------------------
1 LINIE 0000 0001 1 byte
+0 Status 1 byte
~~~~ ~~~0 nach rechts +X
~~~~ ~~~1 nach links -X
~~~~ ~~0~ nach hinten +Y
~~~~ ~~1~ nach vorne -Y
~~~~ ~0~~ nach oben +Z
~~~~ ~1~~ nach unten -Z
~~00 0~~~ relativ
~~00 1~~~ absolut X
~~01 0~~~ absolut Y
~~10 0~~~ absolut Z
+1 Präzision 2 byte
+3 X-Schritte 4 byte
+7 Y-Schritte 4 byte
+11 Z-Schritte 4 byte
16 byte
-----------------------------------------------------------------------------------
2 LINIEX 0000 0010 1 byte
+0 Status 1 byte
~~~~ ~~~0 nach rechts +X
~~~~ ~~~1 nach links -X
~~~~ 0~~~ relativ
~~~~ 1~~~ absolut
+1 X-Schritte 4 byte
6 byte
-----------------------------------------------------------------------------------
3 LINIEY 0000 0011 1 byte
+0 Status 1 byte
~~~~ ~~0~ nach hinten +Y
~~~~ ~~1~ nach vorne -Y
~~~~ 0~~~ relativ
~~~~ 1~~~ absolut
+1 Y-Schritte 4 byte
6 byte
-----------------------------------------------------------------------------------
4 LINIEZ 0000 0100 1 byte
+0 Status 1 byte
~~~~ ~0~~ nach oben +Z
~~~~ ~1~~ nach unten -Z
~~~~ 0~~~ relativ
~~~~ 1~~~ absolut
+1 Z-Schritte 4 byte
6 byte
-----------------------------------------------------------------------------------
5 KREIS 0000 0101 1 byte
+0 kreisdev 1 byte
~~~~ ~~00 um die Z-Achse
~~~~ ~~01 um die Y-Achse
~~~~ ~~10 um die X-Achse
~~~~ ~~11 -
~~~~ ~0~~ linksrum
~~~~ ~1~~ rechtrum
~~00 0~~~ Sektor 1
~~00 1~~~ Sektor 4
~~01 0~~~ Sektor 8
~~01 1~~~ Sektor 5
~~10 0~~~ Sektor 2
~~10 1~~~ Sektor 3
~~11 0~~~ Sektor 7
~~11 1~~~ Sektor 6
+1 Präzision 2 byte
+3 kreis-xy 4 byte
+7 kreis-yz 4 byte
+11 Radius 4 byte
+15 Schritte 4 byte
20 byte
-----------------------------------------------------------------------------------
6 ELLIPSE 0000 0110 1 byte
+0 ellipsdev 1 byte
~~~~ ~000 längs X um Z
~~~~ ~001 längs Y um Z
~~~~ ~010 längs X um Y
~~~~ ~011 längs Z um Y
~~~~ ~100 längs Y um X
~~~~ ~101 längs Z um X
~~~~ ~110 -
~~~~ ~111 -
~~~~ 0~~~ linksrum
~~~~ 1~~~ rechtrum
~000 ~~~~ Sektor 1
~001 ~~~~ Sektor 4
~010 ~~~~ Sektor 8
~011 ~~~~ Sektor 5
~100 ~~~~ Sektor 2
~101 ~~~~ Sektor 3
~110 ~~~~ Sektor 7
~111 ~~~~ Sektor 6
+1 Präzision 2 byte
+3 ellips-xy 4 byte
+7 ellips-yz 4 byte
+11 Innenradius 4 byte
+15 Außenradius 4 byte
+19 Schritte 4 byte
24 byte
-----------------------------------------------------------------------------------
7 WARTE 0000 0111 1 byte (auf Return)
1 byte
-----------------------------------------------------------------------------------
8 STEUERUNG 0000 1000 1 byte (Externe Steuerung über Tastatur)
1 byte
-----------------------------------------------------------------------------------
9 SPIEL 0000 1001 1 byte
+0 Spiel X 1 byte
+0 Spiel Y 1 byte
+0 Spiel Z 1 byte
4 byte
-----------------------------------------------------------------------------------
10 KREISFUNKTION 0000 1010 1 byte
+0 kreisdev 1 byte
~~~~ ~~00 um die Z-Achse
~~~~ ~0~~ linksrum
~~~~ ~1~~ rechtrum
~~00 0~~~ Sektor 1
~~00 1~~~ Sektor 4
~~01 0~~~ Sektor 8
~~01 1~~~ Sektor 5
~~10 0~~~ Sektor 2
~~10 1~~~ Sektor 3
~~11 0~~~ Sektor 7
~~11 1~~~ Sektor 6
+1 Präzision 2 byte
+3 kreis-xy 4 byte
+7 kreis-yz 4 byte
+11 Radius 4 byte
+15 Schritte 4 byte
20 byte
-----------------------------------------------------------------------------------
11 ELLIPSENFUNKTION 0000 1011 1 byte ( Ergebnis = enum Deltaellips( x, y )
+0 ellipsdev 1 byte
~~~~ ~000 längs X um Z
~~~~ ~001 längs Y um Z
~~~~ 0~~~ linksrum
~~~~ 1~~~ rechtrum
~000 ~~~~ Sektor 1
~001 ~~~~ Sektor 4
~010 ~~~~ Sektor 8
~011 ~~~~ Sektor 5
~100 ~~~~ Sektor 2
~101 ~~~~ Sektor 3
~110 ~~~~ Sektor 7
~111 ~~~~ Sektor 6
+1 Präzision 2 byte
+3 ellips-x 4 byte
+7 ellips-y 4 byte
+11 Innenradius 4 byte
+15 Außenradius 4 byte
+19 Schritte 4 byte
24 byte
-----------------------------------------------------------------------------------
SCHLEIFE{
- - - - - - - - -
12 }SCHLEIFE 0000 1100 1 byte ENDE
+0 Wiederholungen 4 byte
+4 Bytes zurück 4 byte
9 byte
-----------------------------------------------------------------------------------
13 DELTAKREIS 0000 1101 1 byte
+0 Status 1 byte
~~~~ ~~00 Addiere zum
~~~~ ~~01 Subtrahiere vom
~~~~ ~~10 Setzte als
~~~~ ~~11 Setzte mit Richtungsänderung als
~~~~ ~1~~ nächsten X-Wert
~~~~ 1~~~ nächsten Y-Wert
~~~1 ~~~~ nächsten Z-Wert
000~ ~~~~ verkleinere nächsten Krei/Ellipse
001~ ~~~~ vergrößere nächsten Krei/Ellipse
010~ ~~~~ verkleinere nächsten Außenradius /Ellipse
011~ ~~~~ vergrößere nächsten Außenradius /Ellipse
100~ ~~~~ verkleinere nächsten Innenradius /Ellipse
101~ ~~~~ vergrößere nächsten Innenradius /Ellipse
2 byte
-----------------------------------------------------------------------------------
14 DELTAELLIPS 0000 1110 1 byte
+0 Status 1 byte
~~~~ ~~00 Addiere zum
~~~~ ~~01 Subtrahiere vom
~~~~ ~~10 Setzte als
~~~~ ~~11 Setzte mit Richtungsänderung als
~~~~ ~1~~ nächsten X-Wert
~~~~ 1~~~ nächsten Y-Wert
~~~1 ~~~~ nächsten Z-Wert
000~ ~~~~ verkleinere nächsten Krei/Ellipse
001~ ~~~~ vergrößere nächsten Krei/Ellipse
010~ ~~~~ verkleinere nächsten Außenradius /Ellipse
011~ ~~~~ vergrößere nächsten Außenradius /Ellipse
100~ ~~~~ verkleinere nächsten Innenradius /Ellipse
101~ ~~~~ vergrößere nächsten Innenradius /Ellipse
2 byte
-----------------------------------------------------------------------------------
15 VORSCHUB 0000 1111 1 byte
+0 Delay Vorschub in [10^-6 s/Schritt] 4 byte
5 byte
-----------------------------------------------------------------------------------
16 DELTALINEAR 0001 0000 1 byte
+0 Status 1 byte
~~~~ ~~00 Addiere zum
~~~~ ~~01 Subtrahiere vom
~~~~ ~~10 Setzte als
~~~~ ~~11 Setzte mit Richtungsänderung als
~~~~ ~1~~ nächsten X-Wert
~~~~ 1~~~ nächsten Y-Wert
~~~1 ~~~~ nächsten Z-Wert
000~ ~~~~ verkleinere nächsten Krei/Ellipse
001~ ~~~~ vergrößere nächsten Krei/Ellipse
010~ ~~~~ verkleinere nächsten Außenradius /Ellipse
011~ ~~~~ vergrößere nächsten Außenradius /Ellipse
100~ ~~~~ verkleinere nächsten Innenradius /Ellipse
101~ ~~~~ vergrößere nächsten Innenradius /Ellipse
+1 Delta 4 byte
6 byte
-----------------------------------------------------------------------------------
17 WERKZEUGWECHSEL 0001 0001 1 byte
+0 Werkzeug Nr. zu der Gewechselt wird 4 byte
5 byte
-----------------------------------------------------------------------------------
18 MEMO 0001 0010 1 byte
+0 Länge Anzahl Zeichen 2 byte
+2 Text beliebig [text] byte
3+[text] byte
-----------------------------------------------------------------------------------
19 BESCHLEUNIGUNG 0001 0011 1 byte
+0 BWert Delay nach dem 1. Schritt
4 byte
5 byte
-----------------------------------------------------------------------------------
20 WRP 0001 0100 1 byte
+0 Status 1 byte
~~~~ ~~~0 X bleibt unverändert
~~~~ ~~~1 X wird gesetzt
~~~~ ~~0~ Y bleibt unverändert
~~~~ ~~1~ Y wird gesetzt
~~~~ ~0~~ Z bleibt unverändert
~~~~ ~1~~ Z wird gesetzt
+1 X-neu 4 byte
+5 Y-neu 4 byte
+9 Z-neu 4 byte
14 byte
-----------------------------------------------------------------------------------
21 SCHLEIFENSATZ 0001 0101 1 byte wenn Schleife = 0 -> Schleifenende
+4 Bytes vor 4 byte
5 byte
-----------------------------------------------------------------------------------
22 SPRINGE 0001 0110 1 byte
+1 nach Position, Dateizeiger 4 byte
5 byte
-----------------------------------------------------------------------------------
23 FRAGE 0001 0111 1 byte Bei Eingabe [J] wird gesprungen , bei anderen Tasten nicht..
+0 Position Dateizeiger 4 byte
+4 Frage Anzahl Zeichen 2 byte
+6 Text [Text] byte
7+[Text] byte
-----------------------------------------------------------------------------------
24 BEDINGUNG 0001 1000 1 byte Fuehrt den nachfolgenden Befehl bedingt aus.
+0 Bedingung 1 byte
~~~~ ~000 [>] groesser
~~~~ ~001 [<] kleiner
~~~~ ~010 [=] gleich
~~~~ ~011 [>=] groesser gleich
~~~~ ~100 [<=] kleiner gleich
+1 Wert1 Dateizeiger Schleifenwert 4 byte
+5 Wert2 Vergleichswert 4 byte
10 byte
-----------------------------------------------------------------------------------



Free Web Hosting