spindle control
- jefsaro
- Topic Author
- Away
- Premium Member
Less
More
- Posts: 98
- Thank you received: 3
07 Jan 2021 06:48 #194324
by jefsaro
spindle control was created by jefsaro
hello friends, now the fanuc starts to run, i have a problem with the spindle speed, with m3 no problem, but with m4 it runs directly at 6000 tr, with any speed i put, i run with a hitachi wj200 vfd and spindle senses with gpio.
any ideas ?
any ideas ?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19488
- Thank you received: 6536
09 Jan 2021 16:20 #194605
by tommylight
Replied by tommylight on topic spindle control
Did you manage to fix this ?
Please Log in or Create an account to join the conversation.
- chris@cnc
- Offline
- Platinum Member
Less
More
- Posts: 529
- Thank you received: 139
09 Jan 2021 19:12 #194637
by chris@cnc
Replied by chris@cnc on topic spindle control
Hi,
your spindel section in hal looks strange. How does you power on the spindle?
first:
second:check where your spindle is connect and correct this lines.
your spindel section in hal looks strange. How does you power on the spindle?
first:
net spindle-output => hm2_5i25.0.7i76.0.0.spinout
net spindle-enable => hm2_5i25.0.7i76.0.0.spinena
#net spindle-ccw => hm2_5i25.0.7i76.0.0.spindir
second:
# --- SPINDLE-CW ---
net spindle-cw hm2_5i25.0.7i76.0.0.output-00
# --- SPINDLE-CCW ---
net spindle-ccw hm2_5i25.0.7i76.0.0.output-01
Please Log in or Create an account to join the conversation.
- jefsaro
- Topic Author
- Away
- Premium Member
Less
More
- Posts: 98
- Thank you received: 3
10 Jan 2021 06:49 #194687
by jefsaro
Replied by jefsaro on topic spindle control
if i comment
net broche-sortie => hm2_5i25.0.7i76.0.0.spinout
net spindle-enable => hm2_5i25.0.7i76.0.0.spinena
the spindle don't turn
net broche-sortie => hm2_5i25.0.7i76.0.0.spinout
net spindle-enable => hm2_5i25.0.7i76.0.0.spinena
the spindle don't turn
Please Log in or Create an account to join the conversation.
- chris@cnc
- Offline
- Platinum Member
Less
More
- Posts: 529
- Thank you received: 139
10 Jan 2021 11:12 #194707
by chris@cnc
Replied by chris@cnc on topic spindle control
How do you power on the spindle. Did you connect analog spindle control?
if yes delete this lines
and try this way
if yes delete this lines
# --- SPINDLE-CW ---
net spindle-cw hm2_5i25.0.7i76.0.0.output-00
# --- SPINDLE-CCW ---
net spindle-ccw hm2_5i25.0.7i76.0.0.output-01
and try this way
net spindle-output => hm2_5i25.0.7i76.0.0.spinout
net spindle-enable => hm2_5i25.0.7i76.0.0.spinena
net spindle-ccw => hm2_5i25.0.7i76.0.0.spindir
Please Log in or Create an account to join the conversation.
- jefsaro
- Topic Author
- Away
- Premium Member
Less
More
- Posts: 98
- Thank you received: 3
10 Jan 2021 16:07 - 10 Jan 2021 16:21 #194737
by jefsaro
Replied by jefsaro on topic spindle control
i forgot this message from andy forum.linuxcnc.org/38-general-linuxcnc-q...itaachi-w200?start=0
Last edit: 10 Jan 2021 16:21 by jefsaro.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4861
11 Jan 2021 00:43 #194830
by andypugh
Replied by andypugh on topic spindle control
I think that the problem is PID windup in reverse, as you have closed-loop spindle control.
You need to be careful when the encoder and linuxcnc understand negative speed requests, but the spindle drive does not.
You might need to pass the pid.s.out through an abs component before passing it to the spinout pin.
Then use the abs.0.is-negative and is-positive pins to control the spindle direction.
Sorry to be so vague, but I am fuzzy on quite how the 7i76 spindle interface works (ie spindir and the physical pins)
You need to be careful when the encoder and linuxcnc understand negative speed requests, but the spindle drive does not.
You might need to pass the pid.s.out through an abs component before passing it to the spinout pin.
Then use the abs.0.is-negative and is-positive pins to control the spindle direction.
Sorry to be so vague, but I am fuzzy on quite how the 7i76 spindle interface works (ie spindir and the physical pins)
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7778
- Thank you received: 2075
11 Jan 2021 01:14 - 11 Jan 2021 01:15 #194838
by cmorley
Replied by cmorley on topic spindle control
Ya I bet you set in pncconf +-10 volt and the 7i76 doesn't support +-10 volt.
If you redo pncconf without the +-10 set It will change the signal to use the absolute version and properly set the output scales in the INI
If you redo pncconf without the +-10 set It will change the signal to use the absolute version and properly set the output scales in the INI
Last edit: 11 Jan 2021 01:15 by cmorley.
Please Log in or Create an account to join the conversation.
- alkabal
- Offline
- Platinum Member
Less
More
- Posts: 476
- Thank you received: 52
11 Jan 2021 01:22 #194840
by alkabal
Replied by alkabal on topic spindle control
Hi
I have try to write that for this user, can you check quicly ?
forum.linuxcnc.org/38-general-linuxcnc-q...ient?start=20#194807
I have try to write that for this user, can you check quicly ?
forum.linuxcnc.org/38-general-linuxcnc-q...ient?start=20#194807
Please Log in or Create an account to join the conversation.
- jefsaro
- Topic Author
- Away
- Premium Member
Less
More
- Posts: 98
- Thank you received: 3
11 Jan 2021 05:30 #194848
by jefsaro
Replied by jefsaro on topic spindle control
non j'ai regler en 0 +10v car le vfd hitachi ne prend pas en charge - 10
Please Log in or Create an account to join the conversation.
Time to create page: 0.100 seconds