Changes between Version 27 and Version 28 of DevelopGuide


Ignore:
Timestamp:
Oct 3, 2008, 6:10:10 PM (16 years ago)
Author:
Frédéric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevelopGuide

    v27 v28  
    3838The 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.
    3939
    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.
     40A 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.
    4141
    4242Parameters used in the documentation:
     
    4747||''<axis>''||axis to control||1 or 2||1 ascii digit||1=yaw, 2=pitch axis||
    4848||''<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)||
    4950
    5051=== Merlin/Orion commands set ===
    5152
    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||
    5760
    58  * Read axis status:
    59 {{{
    60  command        response
    61  :f<axe>        =<s1><s2><s3>
    62 }}}
    63 
    64 Init (at switch on):
    65 {{{
    66  command        response
    67  :F1            =
    68  :F2            =
    69  :a1            =D3620E
    70  :D1            =F90600
    71  :a2            =D3620E
    72  :D2            =F90600
    73  :D2            =F90600
    74 }}}
    75 
    76 Press up button in fast mode:
    77 {{{
    78  command        response
    79  :L2            =
    80  :G230          =
    81  :I2220000      =
    82  :J2            =
    83 }}}
    84 
    85 Release up button in fast mode:
    86 {{{
    87  command       response
    88  :L2            =
    89  :f2            =503
    90 }}}
    91 
    92 Drive up to xxx position:
    93 {{{
    94  todo
    95 }}}
    9661
    9762=== Model ===