Changes between Version 27 and Version 28 of DevelopGuide
- Timestamp:
- Oct 3, 2008, 6:10:10 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevelopGuide
v27 v28 38 38 The head uses a simple ascii serial protocol; the serial line uses standard settings: 9600 8N1 (9600 bauds, 8 bits data, no parity, 1 stop bit). The head waits for incoming commands, and send response to them. The 2 axis are identical, and uses the same commands. They both wait for incoming commands; depending of the first value (see below), the command will be sent to one or the other axis. 39 39 40 A commands always starts with ':', and ends with '\r'. The head response always starts with '=', and also ends with '\r'. As TX/RX lines are wired together, the controller has to first readback its own command, before reading the head response. In the following documentation, the command readback is omitted .40 A commands always starts with ':', and ends with '\r'. The head response always starts with '=', and also ends with '\r'. As TX/RX lines are wired together, the controller has to first readback its own command, before reading the head response. In the following documentation, the command readback is omitted, as the ':', '=' and '\r' chars. 41 41 42 42 Parameters used in the documentation: … … 47 47 ||''<axis>''||axis to control||1 or 2||1 ascii digit||1=yaw, 2=pitch axis|| 48 48 ||''<pos>''||position||0 to 2²⁴-1||6 ascii digits, hex.||low byte is sent first (A35483 is read 8354A3). When switched on, read value is 800000. Right sens increments axis 1; left sens decrements it. Up sens increments axis 2; down decrements it. A complete turn (360°) increments/decrements by 0E6600 (so, the axis can make almost 9 turns before the counter overflow)|| 49 ||''<dir>''||axis direction||0 or 1||1 ascii digit||0=increments (up/right), 1=decrements (down/left)|| 49 50 50 51 === Merlin/Orion commands set === 51 52 52 * Read axis position: 53 {{{ 54 command response 55 :j<axe> =<pos> 56 }}} 53 ||'''Function'''||'''Command'''||'''Response'''||'''Note'''|| 54 ||Read axis position||j<axis>||<pos>||||| 55 ||Read axis status||f<axis>||<s1><s2><s3>|||| 56 ||Stop moving||L<axis>|||||| 57 ||Init (at switch on)||F<axis>[[BR]]F<axis>[[BR]]a<axis>[[BR]]D<axis>||[[BR]][[BR]]D3620E[[BR]]F90600|||| 58 ||Start moving||L<axis>[[BR]]G<axis>3<dir>[[BR]]I<axis>220000[[BR]]J<axis>||[[BR]][[BR]][[BR]]||220000 seems to be the divider for the speed...|| 59 ||Drive to position|| 57 60 58 * Read axis status:59 {{{60 command response61 :f<axe> =<s1><s2><s3>62 }}}63 64 Init (at switch on):65 {{{66 command response67 :F1 =68 :F2 =69 :a1 =D3620E70 :D1 =F9060071 :a2 =D3620E72 :D2 =F9060073 :D2 =F9060074 }}}75 76 Press up button in fast mode:77 {{{78 command response79 :L2 =80 :G230 =81 :I2220000 =82 :J2 =83 }}}84 85 Release up button in fast mode:86 {{{87 command response88 :L2 =89 :f2 =50390 }}}91 92 Drive up to xxx position:93 {{{94 todo95 }}}96 61 97 62 === Model ===