Last modified by Eric Nantel on 2024/09/06 14:52

From version < 9.1 >
edited by Coleman Benson
on 2023/06/26 14:48
To version < 11.1 >
edited by Coleman Benson
on 2023/06/26 15:03
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,6 +1,8 @@
1 1  {{warningBox warningText="More information coming soon"/}}
2 2  
3 3  
4 +
5 +
4 4  (% class="wikigeneratedid" id="HTableofContents" %)
5 5  **Page Contents**
6 6  
... ... @@ -14,17 +14,36 @@
14 14  
15 15  = Action Commands =
16 16  
17 -<div class="cmdcnt"><div class="cmdpad"></div><div class="cmdtxt">
18 -Action commands tell the servo, within that session, to do something (i.e. "take an action"). The types of action commands which can be sent are described below, and they cannot be combined with other commands such as queries or configurations. Only one action command can be sent at a time. Action commands are session-specific, therefore once a servo is power cycled, it will not have any "memory" of previous actions or ~[~[virtual positions>>||anchor="HVirtualAngularPosition"]] (described below). Action commands are sent serially to the servo's Rx pin and must be sent in the following format:<div class="wikimodel-emptyline"></div>
19 +Action commands tell the servo, within that session, to do something (i.e. "take an action"). The types of action commands which can be sent are described below, and they cannot be combined with other commands such as queries or configurations. Only one action command can be sent at a time. Action commands are session-specific, therefore once a servo is power cycled, it will not have any "memory" of previous actions or [[virtual positions>>||anchor="HVirtualAngularPosition"]] (described below). Action commands are sent serially to the servo's Rx pin and must be sent in the following format:
19 19  
20 -~1. Start with a number sign ~*~*#~*~* (Unicode Character: U+0023) 
21 -~1. Servo ID number as an integer (assigning an ID described below)
22 -~1. Action command (one or more letters, no whitespace, capital or lowercase from the list below)
23 -~1. Action value in the correct units with no decimal
24 -~1. End with a carriage return ~*~*&#92;r~*~* or ~*~*&lt;cr&gt;~*~* Unicode Character (U+000D)
21 +1. Start with a number sign **#** (Unicode Character: U+0023)
22 +1. Servo ID number as an integer (assigning an ID described below)
23 +1. Action command (one or more letters, no whitespace, capital or lowercase from the list below)
24 +1. Action value in the correct units with no decimal
25 +1. End with a carriage return **\r** or **<cr>** Unicode Character (U+000D)
25 25  
26 -~(~(~(
27 -Ex: #5D1800&lt;cr&gt;<div class="wikimodel-emptyline"></div>
27 +(((
28 +Ex: #5D18000<cr>
28 28  
29 29  This sends a serial command to all servo's RX pins which are connected to the bus and only servo(s) with ID #5 will move to a position (1800 in tenths of degrees) of 180.0 degrees. Any servo on the bus which does not have ID 5 will take no action when receiving this command.
31 +
32 +== Modifiers ==
33 +
34 +{{html clean="false" wiki="true"}}
35 +<div class="cmdcnt"><div class="cmdpad"></div><div class="cmdtxt">
36 +Modifiers can only be used with certain **action commands**. The format to include a modifier is:<div class="wikimodel-emptyline"></div>
37 +
38 +1. Start with a number sign **#** (Unicode Character: U+0023)
39 +1. Servo ID number as an integer
40 +1. Action command (one to three letters, no spaces, capital or lowercase from a subset of action commands below)
41 +1. Action value in the correct units with no decimal
42 +1. Modifier command (one or two letters from the list of modifiers below)
43 +1. Modifier value in the correct units with no decimal
44 +1. End with a carriage return **&#92;r** or **&lt;cr&gt;** Unicode Character (U+000D)
45 +
46 +Ex: #5D1800T1500&lt;cr&gt;<div class="wikimodel-emptyline"></div>
47 +
48 +This results in the servo with ID #5 rotating to a position (1800 in tenths of degrees) of 180.0 degrees in a time ("T") of 1500 milliseconds (1.5 seconds).<div class="wikimodel-emptyline"></div>
30 30  <div class="wikimodel-emptyline"></div></div></div>
50 +{{/html}}
51 +)))
Copyright RobotShop 2018