No PWM Output for Spindle in openloop test mode - 7i92 w 7i77/7i76

More
31 Mar 2024 22:59 #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.
Attachments:

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

More
01 Apr 2024 01:03 #297320 by PCW
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
The following user(s) said Thank You: B.Reilly01

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

More
01 Apr 2024 11:24 #297356 by B.Reilly01
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 or Create an account to join the conversation.

More
01 Apr 2024 12:00 #297362 by tommylight
The following user(s) said Thank You: B.Reilly01

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

More
01 Apr 2024 14:24 - 01 Apr 2024 14:26 #297373 by PCW
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.




 
Last edit: 01 Apr 2024 14:26 by PCW.
The following user(s) said Thank You: B.Reilly01, besriworld

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

More
03 Apr 2024 14:09 #297505 by B.Reilly01
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 or Create an account to join the conversation.

More
08 May 2024 21:50 #300160 by B.Reilly01
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 or Create an account to join the conversation.

More
08 May 2024 21:55 #300161 by PCW
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

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

More
09 May 2024 20:27 #300242 by B.Reilly01
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
The following user(s) said Thank You: tommylight

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

Moderators: cmorley
Time to create page: 0.126 seconds
Powered by Kunena Forum