Jump to content
OMRON Forums

Resetting incremental encoder counts back to zero


windell747

Recommended Posts

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

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...

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?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

×
×
  • Create New...