P. 1
Dual ChannelHigh PowerDigital MotorController

Dual ChannelHigh PowerDigital MotorController

|Views: 43|Likes:
Published by Bank

More info:

Published by: Bank on Dec 26, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/10/2011

pdf

text

original

Description:
Set one or both counters to zero or a user-defined value. The value is a signed 32 bit num-
ber that may range from -2,147,836,648 to +2,147,836,647 (Hexadecimal format of value
80000000 to 7FFFFFFF respectively.

156

AX2550 Motor Controller User’s Manual

Version 1.9b. June 1, 2007

While resetting is a single step command, setting the counters to a non-zero value requires
two steps: 1- load a 4 byte buffer (32-bit) with the desired value. 2- Transfer the buffer’s
content to the counter(s). Loading the buffer can be done using the commands described
in “Read / Modify Encoder Module Registers and Parameters” on page158. The buffer will
also be altered after a Counter Read command, in which case it will contain the last read
counter value.

Syntax:

!q or !Qn

Where n=

0: Reset Encoder 1 counter
1: Reset Encoder 2 counter
2: Reset both Encoder counters

4: Set Encoder 1 counter with value in buffer
5: Set Encoder 2 counter with value in buffer
6: Set both Encoder both counters with value in buffer

7: Set Encoder 1 destination register with value in buffer
8: Set Encoder 2 destination register with value in buffer

Reply:

+ if command was properly received and executed
- if an error occurred

Examples:

!Q2

Reset both counters

!Q5

Load value contained in buffer into counter 2

?Q0, followed by
!Q1

Read counter 1 and copy its value into counter 2

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->