Welcome, Guest
Username Password: Remember me
  • Page:
  • 1

TOPIC: How is motor addressing handled on the SmartMotor™

How is motor addressing handled on the SmartMotor™ 7 years, 6 months ago #6

How is motor addressing handled on the SmartMotor™?
How can a command be sent to a specific motor or group of motors?

Every motor has an address register: upon power up or reset, the value of this register is zero. The value stored in this register can be changed by a SADDR# command arriving from the host or from a command executed from within a stored user program. Valid addresses range from 0 to 100.

The SmartMotor scans incoming RS232 communications for high order ASCII bytes (values between 100 - 128). When such a byte is received, the SmartMotor evaluates - 128 to get the address number. If the address number is 0 or equal to the value of the motor address register, subsequent commands are accepted. If neither condition is true, all commands are ignored until an appropriate high order ASCII byte is received.

Also available are motor unique states of SLEEP and WAKE. In the SLEEP state, all commands are ignored until a properly addressed WAKE command arrives. This allows global addressing techniques to be directed at specific sub-sets of motors in an application.

Re: How is motor addressing handled on the SmartMotor™ 5 years, 1 month ago #135

animatics wrote:

The value stored in this register can be changed by a SADDR# command arriving from the host...


What I don't understand is if every motor in the chain starts with address = 0, how do you set the address register in each particular motor individually? You can only address the motors using address 0, so all motors are going to accept the command to change the address, so when you say SADDR1, why don't all the motors become motor No. 1?

Chris

Re: How is motor addressing handled on the SmartMotor™ 5 years, 1 month ago #136

  • csearcy
  • OFFLINE
  • Posts: 480
  • Karma: 23
You have to put motors to Sleep after you address them.

From the Terminal Window... you can type the following.
Note: 0 is 128, 1 is 129 etc.

0SADDR1
1ECHO
1SLEEP
0SADDR2
2ECHO
2SLEEP
0SADDR3
3ECHO
0WAKE
The following user(s) said Thank You: Chris Dancer

Re: How is motor addressing handled on the SmartMotor™ 5 years, 1 month ago #137

Ah, got it. The key to it is the ECHO command. Motors don't echo characters by default so when you first send out a command you are only talking to the first motor in the chain. So you set the address of that motor then tell it to echo so you can talk to the second one... etc.

I found the relevent section in the user guide:
"The ECHO and ECHO_OFF commands toggle the echoing of data input.
Because the motors do not echo character input by default, consecutive
commands can be presented, configuring them with unique addresses, one
at a time."
  • Page:
  • 1
Moderators: hsummer, csearcy
Time to create page: 0.41 seconds