Dual X Servo

More
30 Apr 2013 20:09 #33438 by juwi
Replied by juwi on topic Dual X Servo
Solution in a short:

1. remove ALL axis.x.?????????? from the slave axis
2. set pid.SLAVE.commanded from the master axis
3. add a diff2 for the maximum slave / master axis position difference and make the result to estop
4. add the possibility to reset both encoders, because the slave encoder is filled with random data every reboot.

ist is not that simple, but working now. I'll upload my config her later.

best regards

Please Log in or Create an account to join the conversation.

More
30 Apr 2013 21:30 - 30 Apr 2013 21:44 #33447 by PCW
Replied by PCW on topic Dual X Servo

4. add the possibility to reset both encoders, because the slave encoder is filled with random data every reboot.


Are you saying one encoder position is not cleared when launching LinuxCNC?
If so this is a bug. AFAIK and in my experience, all encoders are cleared at linuxcnc startup
(That is will all read 0 at whatever random position the machine was left in)
Last edit: 30 Apr 2013 21:44 by PCW.

Please Log in or Create an account to join the conversation.

More
30 Apr 2013 22:35 #33452 by juwi
Replied by juwi on topic Dual X Servo
hm2_5i25.0.encoder.02.position and hm2_5i25.0.encoder.01.position differ randomly after each restart.

some mor info -> Topic:
__________________________________________________________________________________
gantry-ferror:

#load near function
loadrt near
#add to thread
addf near.0 servo-thread

#y1-pos-fb is hm2_5i25.0.encoder.01.position
net y1-pos-fb near.0.in1
#y2-pos-fb is hm2_5i25.0.encoder.02.position
net y2-pos-fb near.0.in2

#permit 0.1 machineunits sheering
setp near.0.difference 0.10

net ferror-gantry <= near.0.out



__________________________________________________________________________________
encoder reset:

net reset_y_encoder gladevcp.hal_button1

net reset_y_encoder hm2_5i25.0.encoder.01.reset
net reset_y_encoder hm2_5i25.0.encoder.02.reset

Please Log in or Create an account to join the conversation.

More
30 Apr 2013 22:42 #33454 by PCW
Replied by PCW on topic Dual X Servo
I can see that they may have a small error until homed

Do you see a difference in the encoder positions after startup and estop cleared (before drives are enabled)? this would be a bug.

Please Log in or Create an account to join the conversation.

Time to create page: 0.192 seconds
Powered by Kunena Forum