windell747 Posted March 4, 2015 Share Posted March 4, 2015 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 More sharing options...
Richard Naddaf Posted March 5, 2015 Share Posted March 5, 2015 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. Link to comment Share on other sites More sharing options...
windell747 Posted April 6, 2015 Author Share Posted April 6, 2015 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 More sharing options...
Recommended Posts