Servo4 (Revision C) Programming Table This is the programming table for the Servo4 (Rev. C) module.

Servo4 (Revision C) Programming Table

Command
Name
Action Bit Description
8 7 6 5 4 3 2 1 0
Quick_Set Send 0 0 p p p p p s s Set servo {ss} to position {ppppp}, where {ppppp}=0b corresponds to .75mS and {ppppp}=31b corresonds to 2.25mS. {ss} must be between 0b and 3b inclusive. It is up to the user to shift {ppppp} to the left by two bits and or in {ss}.
Short_High_Low_Set Send 0 1 0 0 0 0 0 s s Set servo {ss} to {hhhhhlll} where each increment corrsponds to 6.40uS of pulse width. {ss} mush be between 0b and 3b inclusive.
Send 0 h h h h h l l l
High_Low_Set Send 0 1 0 0 0 0 0 s s Set servo {ss} to {hhhhhhhhllllllll} where each increment corresponds to .20uS. As usual {ss} must be between 0b and 3b inclusive. {hhhhhhhhllllllll} should be between 500s and 15000s.
Send 0 h h h h h h h h
Send 0 l l l l l l l l
Low_Set Send 0 1 0 0 0 1 0 s s Set low byte of servo {ss} to {llllllll}
Send 0 l l l l l l l l
High_Set Send 0 1 0 0 0 1 1 s s Set low byte of servo {ss} to {hhhhhhhh}
Send 0 l l l l l l l l
Enables_Set Send 0 1 0 0 1 e e e e Set servo enable bits to {eeee}. 0=disabled and 1=enabled.
High_Get Send 0 1 0 1 0 0 0 s s Get high byte of {ss}.
Receive 0 h h h h h h h h
Low_Get Send 0 1 0 1 0 0 1 s s Get low byte of servo {ss}.
Receive 0 l l l l l l l l
Enables_Get Send 0 1 0 1 0 1 0 0 0 Get servo enable bits. 0=disabled and 1=enabled.
Receive 0 0 0 0 0 e e e e

Copyright (c) 2009 by Wayne C. Gramlich. All rights reserved.