Commands, Protocol syntax – RMS Technologies R325P DRIVER User Manual

Page 13

Advertising
background image

8. COMMANDS

Protocol Syntax

Command Format:

#<Address><Command><value><CR><LF>

Example:

#AHT1000<CR><LF>

Sets the Hold Timeout for Driver A to 1000

To query a command use the following format

Query Format: #<Address><Command><CR><LF>

Example:

#AFR<CR><LF>

Queries Driver A for the current Firmware Revision

The response would be in the following format

Response Format:

*<Address><value>

Example:

*AFR325100

R325P firmware revision 1.00

<CR><LF> stand for "Carriage Return" and "Line Feed" respectively. These are NOT characters to

be typed in. For direct keyboard users, these values are executed when the "Return" key is

pressed. For programmers, a "Carriage Return" and "Line Feed" (also known as a "New Line")

command needs to be executed after each command.

Command

(Case Sensitive)

Operand

Example

Description

HT 100 -5000 #AHT100

Sets the Hold

Timeout to 100

mS

Hold Timeout - Command or Query, Default = 500

- Reads or sets the time interval in milliseconds after any motor

movement, before the motor current is changed from Run Current

to Hold Current.

PF 0 - 3

#APF1

Sets Mixed

Mode damping

to 48%

Percent Fast Decay - Command or Query, Default = 2

- Allows the Damping Mode of the driver IC to be set.

0 = Slow Decay

1 = Mixed Mode 15%

2 = Mixed Mode 48%

3 = 100% Fast Decay

The optimum setting will vary with motor inductance and step rate;

however the default Mixed Mode setting will work with most motors

FR -

#AFR

Firmware Revision - Query Only

- Returns 3 digit part code followed by 3 digit firmware revision.

Reply: *AFR325100 //R325P firmware revision 1.00

SD -

#ASD

Save Data – After all desired changes have been made, type #ASD in

order to save the data to memory.

LD -

#ALD

Load Default Settings – Used to revert back to default settings.

TI -

#ATI

Test Inputs – Query Only

- This command will return a value which corresponds to the

ON/OFF sequence of all 3 inputs

R325P User Manual

Page 13 of 20

5/29/2013 Version 1.01

Advertising