Changes between Version 26 and Version 27 of DevelopGuide


Ignore:
Timestamp:
Oct 3, 2008, 5:55:28 PM (16 years ago)
Author:
Frédéric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevelopGuide

    v26 v27  
    55 * [#Architecture Architecture]
    66  * [#Hardware Hardware]
     7   * [#MerlinOrionprotocole Merlin/Orion protocole]
     8   * [#MerlinOrioncommandsset Merlin/Orion commands set]
    79  * [#Model Model]
    810   * [#Custompresets Custom presets]
     
    3436==== Merlin/Orion protocole ====
    3537
    36  * Parameters:
     38The 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
     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.
     41
     42Parameters used in the documentation:
    3743  * <axe>: 1=vertical, 2=horizontal (1 ascii digit)
    38   * <pos> position coded with 24 bits (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).
     44  * <pos> position coded with 24 bits (6 ascii digits, hex). .
     45
     46||'''Parameter'''||'''What'''||'''allowed value'''||'''Format'''||'''Note'''||
     47||''<axis>''||axis to control||1 or 2||1 ascii digit||1=yaw, 2=pitch axis||
     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
     50=== Merlin/Orion commands set ===
    3951
    4052 * Read axis position:
     
    4254 command        response
    4355 :j<axe>        =<pos>
     56}}}
    4457
    4558 * Read axis status:
     59{{{
    4660 command        response
    4761 :f<axe>        =<s1><s2><s3>
     62}}}
    4863
    49 === Merlin/Orion commands ===
    50 
    51 At switch on:
     64Init (at switch on):
    5265{{{
    5366 command        response
     
    7588 :L2            =
    7689 :f2            =503
    77 }
     90}}}
    7891
    7992Drive up to xxx position: