All i-Motors boot up without an address. A program or user can then use the SADDR command to address each i-Motor to be a unique node in the chain. But it is not quite this easy.
All i-Motor address prefixes use extended ASCII characters instead of 1, 2, etc. These characters start at Decimal 129 or Hex 81 for address 1 and end at Decimal 249 of Hex F9 for address 120.
So, to set the velocity to 1000 on motor number 5 you would transmit the following:
(Dec133) V=1000{CR}
In the above example you would send the ASCII equivalent to Decimal 133, then a V=1000 and a carriage return.
To receive the current position from motor number 2 you would transmit the following:
(Dec130) PP{CR}
Again, with this example, you would send the ASCII equivalent of Decimal 130, then PP and finally a carriage return.
Add Comment