30 likes | 184 Views
Start expert move 1mm. Local mode? UPS on mains? Stepper drive powered? Vacuum? System idle?. read atmel status. atmel referenced?. set atmel-was-unreferenced bit. toggle atmel reference. toggle reference cmd returns ok?. read atmel status. atmel referenced?. relative move: 1mm.
E N D
Start expert move 1mm Local mode? UPS on mains? Stepper drive powered? Vacuum? System idle? read atmel status atmel referenced? set atmel-was-unreferenced bit toggle atmel reference toggle reference cmd returns ok? read atmel status atmel referenced? relative move: 1mm atmel-was-unreferenced bit set? toggle atmel reference toggle reference cmd returns err? set toggle-reference-fault read stepper read resolver Start expert move 1mm
Begin of read atmel status send ‘s’ command start 2 second timer received reply? timeout? stop timer return value == ‘?’ (=unknown cmd) Not implemented set atmel status read error return value == “<status>!” or “<status>?” convert <status> string to hex End of read atmel status
Begin of read stepper send ‘p’ command start 2 second timer received reply? timeout? stop timer return == <value>‘?’ Change to Set error if string contains ‘?’ return == “<value>!” set atmel stepper read error convert <value> string to decimal End of read stepper