Rev 80 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 80 | Rev 81 | ||
---|---|---|---|
Line 20... | Line 20... | ||
20 | unsigned volatile char SendeBuffer[MAX_SENDE_BUFF]; |
20 | unsigned volatile char SendeBuffer[MAX_SENDE_BUFF]; |
21 | unsigned volatile char RxdBuffer[MAX_EMPFANGS_BUFF]; |
21 | unsigned volatile char RxdBuffer[MAX_EMPFANGS_BUFF]; |
22 | unsigned volatile char NeuerDatensatzEmpfangen = 0; |
22 | unsigned volatile char NeuerDatensatzEmpfangen = 0; |
23 | unsigned volatile char UebertragungAbgeschlossen = 1; |
23 | unsigned volatile char UebertragungAbgeschlossen = 1; |
24 | unsigned char MeineSlaveAdresse; |
24 | unsigned char MeineSlaveAdresse; |
25 | unsigned char MotorTest[4] = {0,0,0,0}; |
25 | unsigned char MotorTest[6] = {0,0,0,0,0,0}; |
26 | unsigned volatile char AnzahlEmpfangsBytes = 0; |
26 | unsigned volatile char AnzahlEmpfangsBytes = 0; |
Line 27... | Line 27... | ||
27 | 27 | ||
Line 94... | Line 94... | ||
94 | { |
94 | { |
95 | serPacketCounter = 0; |
95 | serPacketCounter = 0; |
96 | } |
96 | } |
97 | else |
97 | else |
98 | { |
98 | { |
99 | if(++serPacketCounter == MotorAdresse) // (1-4) |
99 | if(++serPacketCounter == MotorAdresse) // (1-6) |
100 | { |
100 | { |
101 | SIO_Sollwert = SioTmp; |
101 | SIO_Sollwert = SioTmp; |
102 | SIO_Timeout = 200; // werte für 200ms gültig |
102 | SIO_Timeout = 200; // werte für 200ms gültig |
103 | } |
103 | } |
104 | else |
104 | else |