Manual

LynxmotionSSC32UServoControllerBoard
ElectronicsGuide
Example2willmoveservo3toposition1600.Itwilltake1secondtocompletethemove
regardlessofhowfartheservohastotraveltoreachthedestination.
Multiple servo command (a.k.a. “Command Group”)
TheSSC32Uallowsformultiplecommandstobereceivedinthesamestring.Forservo
position,thismaylooklike:
#<ch>P<pw>S<spd>
...#<ch>P<pw>S<spd>
T<time><cr>
Commandsofdifferenttypescannotbemixedinthesamecommandgroup.Notethatthe
<time>functionshouldbeplacedattheendofthelineandisassociatedwiththeentiremove,
whereasthe<speed>commandcanbeassociatedwitheachservo.
Example1:#5P1600#10P750T2500<cr>
Theexampleabovewillmoveservo5toposition1600,servo10toposition750,anditwilltake
2500milliseconds(2.5seconds)tocompletethemove,evenifoneservohasfarthertotravel
thananother.Theservoswillbothstartandstopmovingatthesametime.Thisisavery
powerfulcommand.Forexample,bycommandingallthelegsinawalkingrobotwith“Group
Move”itiseasytosynchronizecomplexgaits.Thesamesynchronizedmotioncanbenefitthe
controlofaroboticarmaswell.
Youcancombinethespeedandtimecommandsifdesired.Thespeedforeachservowillbe
calculatedaccordingtothefollowingrules:
1. Allchannelswillstartandendthemovesimultaneously.
2. Ifaspeedisspecifiedforaservo,itwillnotmoveanyfasterthanthespeedspecified
(butitmightmoveslowerifthetimecommandrequires).
3. Ifatimeisspecifiedforthemove,thenthemovewilltakeatleasttheamountoftime
specified(butmighttakelongerifthespeedcommandrequires).
Example2:#5P1600#17P750S500#2P2250T2000<cr>
Theexampleprovides1600uSonch5,750uSonch17,and2250uSonch2.Theentiremove
willtakeatleast2seconds,butch17willnotmovefasterthan500uSpersecond.Theactual
timeforthemovewilldependontheinitialpulsewidthforch17.Supposech17startsatposition
2000.Thenithastomove1250uS.Sinceitislimitedto500uSpersecond,itwillrequireatleast
2.5seconds,sotheentiremovewilltake2.5seconds.Ontheotherhand,ifch17startsat
position1000,itonlyneedstomove250uS,whichitcandoin0.5seconds,sotheentiremove
willtake2seconds.
Important!Thefirstpositioningcommandshouldbeanormal"#<ch>P<pw>"command.
Becausethecontrollerdoesn'tknowwheretheservoispositionedonpowerup,itwillignore
speedandtimecommandsuntilthefirstnormalcommandhasbeenreceived.
25