Driving a charge pump with a Mesa 5i25 stepgen

More
4 years 8 months ago - 4 years 8 months ago #234313 by dbotos
I went back and edited the pncconf-generated INI file as follows:

-commented out these lines:

#HALFILE = custom.hal
#POSTGUI_HALFILE = postgui_call_list.hal
#SHUTDOWN = shutdown.hal

-changed [KINS] and [TRAJ] coordinates to XYZY (were XYYZ)
-put joint 3 as Y2 and joint 2 as Z
-made step scale value for Y2 negative

And edited the pncconf-generated HAL file as follows :

-changed stepgen.04.position-scale and stepgen.04.velocity-cmd values to fix charge pump frequency
-removed toolchange, coolant, probe, HALUI, and home / limit switch sections (tried commenting out each section one at a time so I could see the effect)

The PID stuff is apparently important - if you comment that out, LinuxCNC will start up fine, the charge pump works, and you can home the axes, but the second you go to jog, it faults.  So that stuff should be left alone in the INI and HAL files.  The "closed loop stepper signals" sections in the HAL file should be left alone too.  Working INI and HAL files attached.

Once I was able to jog and issue MDI commands, there was only one thing left to check - the "spindle".  Grabbed my laser safety googles (and respirator) and was able to turn it on and off via MDI.  I loaded up an old nc file that I had for a wooden bracket and ran that on some scrap cardboard, which came out swimmingly.  See attached pic.

Lesson of the day is don't delete stuff you're not really sure about and if you are going to delete stuff, trying commenting one thing or section out at a time.

Thanks again for your help, Peter!
Last edit: 4 years 8 months ago by dbotos.

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

More
4 years 8 months ago - 4 years 8 months ago #234325 by dbotos
P.S. Other changes to the INI file that I forgot to list:

-got rid of kinstype=BOTH callout in [KINS] section
-added HOME_SEQUENCE values in each [JOINT_#] section:

joint 0 (X) --> 0
joint 1 (Y1) --> -2
joint 2 (Z) --> 1
joint 3 (Y2) --> -2

Negative for the Ys keeps them from being jogged independently in joint mode.  More info in section 8.3.6.10 of the 2.8.2 documentation .
Last edit: 4 years 8 months ago by dbotos.

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

  • HaroldH
  • New Member
  • New Member
More
4 years 8 months ago #234466 by HaroldH
Thank you for interesting post

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

More
3 years 10 months ago #258819 by COFHAL
I have a question: with the parallel port, can the frequency be generated with a stepgen, for Driving a charge pump?

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

More
3 years 10 months ago #258821 by PCW
Yes, you can run a stepgen in velocity mode to generate a square wave at a
selectable frequency.

man stepgen

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

More
3 years 10 months ago #258828 by COFHAL
Thanks for your answer, could you post a general example of how to do it?

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

Moderators: PCW, jmelson
Time to create page: 0.064 seconds
Powered by Kunena Forum