- Posts: 172
- Thank you received: 0
No PWM Output for Spindle in openloop test mode - 7i92 w 7i77/7i76
- B.Reilly01
- Topic Author
- Offline
- Elite Member
-
Less
More
2 years 6 months ago #297313
by B.Reilly01
So I'm in PNCConf and I have my linear motors moving in open loop test mode, but when I go to open loop test mode on the Spindle tab, I get no DC Voltage output on the 7i77 Analog output 5. HAL shows an output, but the multimeter shows nothing. Attached are my 2 hal files and my ini. Also is there a way to have a different max linear speed for my Z axis? The head is heavy and the motor is tired, doesn't want to move it at 300ipm, but the x and y have no problem.
Please Log in to join the conversation.
2 years 6 months ago #297320
by PCW
Replied by PCW on topic No PWM Output for Spindle in openloop test mode - 7i92 w 7i77/7i76
I would set the spindle speed to 1/2 full scale (3000)
(MDI)
M3S3000
and see if these make sense
hm2_7i92.0.7i77.0.1.analogout5
hm2_7i92.0.7i77.0.1.spinena
Then check the analog 5 output
(MDI)
M3S3000
and see if these make sense
hm2_7i92.0.7i77.0.1.analogout5
hm2_7i92.0.7i77.0.1.spinena
Then check the analog 5 output
Please Log in to join the conversation.
- B.Reilly01
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 172
- Thank you received: 0
2 years 6 months ago #297356
by B.Reilly01
Replied by B.Reilly01 on topic No PWM Output for Spindle in openloop test mode - 7i92 w 7i77/7i76
Right now I can't get to MDI as the encoders are giving me fits, I can only move in "Open Loop" test mode in PNCConf. Once I get my encoders sorted, I'll try this, but right now I have zero response in PNCConf.
Please Log in to join the conversation.
- tommylight
-
- Online
- Administrator
-
Less
More
- Posts: 22009
- Thank you received: 3
2 years 6 months ago #297362
by tommylight
Replied by tommylight on topic No PWM Output for Spindle in openloop test mode - 7i92 w 7i77/7i76
Maybe this helps
forum.linuxcnc.org/10-advanced-configura...ning-detailed-how-to
forum.linuxcnc.org/10-advanced-configura...ning-detailed-how-to
Please Log in to join the conversation.
2 years 6 months ago #297373
by PCW
Replied by PCW on topic No PWM Output for Spindle in openloop test mode - 7i92 w 7i77/7i76
Also I'm not sure if pncconf's open loop test can really access much other than
the axis analog outputs. A better test might be a very minimal hal file:
loadrt hostmot2
loadrt hm2_eth board_ip=10.10.10.10
loadrt threads
addf hm2_7i92.0.read thread1
addf hm2_7i92.0.write thread1
start
loadusr halshow
And then run this file with:
halcmd -f testfile.hal
or just
halcmd -kf
and enter the lines by hand or copy-paste
At this point you should be able to set and view pins
with halshow
When done you will need to run:
halrun -U
To unload the drivers.
the axis analog outputs. A better test might be a very minimal hal file:
loadrt hostmot2
loadrt hm2_eth board_ip=10.10.10.10
loadrt threads
addf hm2_7i92.0.read thread1
addf hm2_7i92.0.write thread1
start
loadusr halshow
And then run this file with:
halcmd -f testfile.hal
or just
halcmd -kf
and enter the lines by hand or copy-paste
At this point you should be able to set and view pins
with halshow
When done you will need to run:
halrun -U
To unload the drivers.
Please Log in to join the conversation.
- B.Reilly01
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 172
- Thank you received: 0
2 years 6 months ago #297505
by B.Reilly01
Replied by B.Reilly01 on topic No PWM Output for Spindle in openloop test mode - 7i92 w 7i77/7i76
Thanks for all the help - I'm 1 failed encoder away from being able to use MDI to test the spindle. I may try that simple HAL file if I get time.
Please Log in to join the conversation.
- B.Reilly01
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 172
- Thank you received: 0
2 years 5 months ago #300160
by B.Reilly01
Replied by B.Reilly01 on topic No PWM Output for Spindle in openloop test mode - 7i92 w 7i77/7i76
Finally got my encoders in, MDI S2000m3 and I get no response. Probing the analog 5 output, I see voltage (3.3v approx), which is what is expected. Probing my spindle enable output (7i76 Output 5), I see 0v. Checkng hal config, the LED is "on" for the 7i76 Output 5. If I apply 24v directly to this output pin I get spindle activity. I do not have a spindle encoder hooked up yet.
Please Log in to join the conversation.
2 years 5 months ago #300161
by PCW
Replied by PCW on topic No PWM Output for Spindle in openloop test mode - 7i92 w 7i77/7i76
Do you mean 7I77 analog enable?
If so, this is a switch, not a voltage source
so you would need to wire:
+24V --> 7I77 ENA5+
7I77 ENA5- --> SPINDLE ENABLE IN
If so, this is a switch, not a voltage source
so you would need to wire:
+24V --> 7I77 ENA5+
7I77 ENA5- --> SPINDLE ENABLE IN
Please Log in to join the conversation.
- B.Reilly01
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 172
- Thank you received: 0
2 years 5 months ago #300242
by B.Reilly01
Replied by B.Reilly01 on topic No PWM Output for Spindle in openloop test mode - 7i92 w 7i77/7i76
Found it, I thought I had commented out the invert line in my hal, I had not:
# --- SPINDLE-ENABLE ---
net spindle-enable => hm2_7i92.0.7i76.0.3.output-05
setp hm2_7i92.0.7i76.0.3.output-05-invert true
# --- SPINDLE-ENABLE ---
net spindle-enable => hm2_7i92.0.7i76.0.3.output-05
setp hm2_7i92.0.7i76.0.3.output-05-invert true
Please Log in to join the conversation.
Time to create page: 0.094 seconds
