Mesa 5i25 and 7i76 and encoder

More
25 Sep 2016 20:03 - 25 Sep 2016 20:38 #80911 by PCW
Replied by PCW on topic Mesa 5i25 and 7i76 and encoder
Not sure I understand

The encoder scale must be set to match your encoder or the spindle_at_speed (or tapping or threading) cannot work
Normally this is set with the INPUT_SCALE parameter in the spindle section of the INI file

Can you post your complete HAL and INI files here?
Last edit: 25 Sep 2016 20:38 by PCW.

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

More
26 Sep 2016 04:45 #80918 by finemeca
Linuxcnc the coast I think I have everything configured properly.

I have a problem with the drive:

Max spindle speed: 2500 rev / min
Speed requested by linuxcnc: 300 rev / min
Speed displayed on the LCD screen of the drive: 1500tr / min

Can you check the wiring diagram attached
Attachments:

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

More
26 Sep 2016 14:42 #80934 by PCW
Replied by PCW on topic Mesa 5i25 and 7i76 and encoder
What is the voltage between spindle-out and spindle- when you command 300 RPM?

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

More
26 Sep 2016 19:57 #80948 by finemeca
Hello,

In file attached my Ini.

For 300 tr/min i have 7,45 V in spindle - and spindle out
Attachments:

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

More
26 Sep 2016 20:37 #80951 by PCW
Replied by PCW on topic Mesa 5i25 and 7i76 and encoder
OUTPUT_SCALE = 400
is incorrect (the is the spindle analog output scaling)
this should be
OUTPUT_SCALE = 2500

Its the spindle INPUT_SCALE that should be 400 (assuming 100 line quadrature spindle encoder)

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

More
26 Sep 2016 20:53 #80953 by finemeca
Hello,

Ok but I have no INPUT_SCALE in my ini file ???

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

More
26 Sep 2016 21:01 - 26 Sep 2016 21:01 #80955 by PCW
Replied by PCW on topic Mesa 5i25 and 7i76 and encoder
Not sure why (spindle encoder not selected when you ran pncconf?) but you can certainly add it

You will probably also need to add the setp line in your hal file that sets the spindle encoder scale
Last edit: 26 Sep 2016 21:01 by PCW.

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

More
26 Sep 2016 21:03 #80956 by finemeca
ok I'll do it tomorrow.
Have you an example please?

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

More
26 Sep 2016 22:31 #80957 by PCW
Replied by PCW on topic Mesa 5i25 and 7i76 and encoder
Can you post your current hal file?

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

More
27 Sep 2016 06:25 #80968 by finemeca
In my attached file HAL.

To test I made a machine with pncconf.
In the INI, I do not have the variable INPUT_SCALE
Attachments:

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

Time to create page: 0.347 seconds
Powered by Kunena Forum