Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Resetting incremental encoder counts back to zero
#1
Aloha,

I have a setup that uses absolute encoders for crude positioning and then incremental encoders for tracking. Maybe this is obvious, but I'm new to PMACs, how would be a command that I would issue to reset the incremental count when I'm switching between encoders?

My motors are 0 and 2 and the encoder table entries are
EncTable[1].a for incremental for motor 0.
EncTable[3].a for incremental for motor 2.

thanks
windell
Reply
#2
The motor[].pAbsPos specifies where the motor is reading its absolute position upon issuing a HOMEZ (or HMZ) command.
You can set motor[].pAbsPos temporarily to zero and issue a HMZ command. This will zero the motor position counter.
Reply
#3
(03-05-2015, 10:31 AM)Richard Wrote: The motor[].pAbsPos specifies where the motor is reading its absolute position upon issuing a HOMEZ (or HMZ) command.
You can set motor[].pAbsPos temporarily to zero and issue a HMZ command. This will zero the motor position counter.

Hmm...Maybe I'm doing something wrong. Here is what I wrote in the terminal

motor[1].pAbsPos=0
hmz

However, the counter still reads 166708408.33 ... Am I not doing something properly?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)