CamBam
News:
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 24, 2019, 13:10:51 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Vertical mill to horizontal  (Read 631 times)
Garyhlucas
CNC Jedi
*****
Offline Offline

Posts: 1241


View Profile
« on: December 09, 2018, 14:38:32 pm »

My mill converts to a horizontal mill by rotating the spindle housing 90 degrees. It runs on Mach 3 with a motion card that has XYZ axis outputs. I didn’t want to electrically swap them if possible and because of the motion card it can’t be done in Mach3.

Could I create a CamBam post that swaps the Y and Z?
Logged

Gary H. Lucas

Have you read my blog?
 http://a-little-business.blogspot.com/
lloydsp
CNC Jedi
*****
Offline Offline

Posts: 7887



View Profile
« Reply #1 on: December 09, 2018, 14:55:26 pm »

Gary,
It would be VERY easy to write a VBS post-build processor to do that!

Lloyd
Logged

"Pyro for Fun and Profit for More Than Fifty Years"
lloydsp
CNC Jedi
*****
Offline Offline

Posts: 7887



View Profile
« Reply #2 on: December 09, 2018, 16:25:08 pm »

Oh... that made me remember something.

I think I wrote a VB post-build processor for someone a couple of years ago that does something like that.  Let me dig through my archives this afternoon, and I'll see what I can find.

Lloyd
Logged

"Pyro for Fun and Profit for More Than Fifty Years"
lloydsp
CNC Jedi
*****
Offline Offline

Posts: 7887



View Profile
« Reply #3 on: December 09, 2018, 19:32:32 pm »

Gary,
I have several post-build processors that will edit pretty-much anything in a line.

I don't have one that specifically changes Y and Z, but it would be easy to do.  Shucks, I MIGHT be able to do one tonight.

So, the next question:  Have you ever used a post-build processor?  Are you familiar with how to invoke one in your PP?  If not, I'll provide a sample of the invocation code in the PP as well as the source for the post-build processor.

Since I prefer to write these in Visual Basic, you'll need the VB run-time libraries on your machine in order for it to work.

Lloyd
Logged

"Pyro for Fun and Profit for More Than Fifty Years"
lloydsp
CNC Jedi
*****
Offline Offline

Posts: 7887



View Profile
« Reply #4 on: December 09, 2018, 20:55:27 pm »

Try this one.  It worked for me.

You must change it's extension from ".txt" to ".vbs" for it to work.


Lloyd

* YZ-exchange-for-Vertical-Mill.txt (2.65 KB - downloaded 36 times.)
Logged

"Pyro for Fun and Profit for More Than Fifty Years"
lloydsp
CNC Jedi
*****
Offline Offline

Posts: 7887



View Profile
« Reply #5 on: December 09, 2018, 21:50:19 pm »

David,
This might be better moved to the post-processors discussion.

Lloyd
Logged

"Pyro for Fun and Profit for More Than Fifty Years"
lloydsp
CNC Jedi
*****
Offline Offline

Posts: 7887



View Profile
« Reply #6 on: December 12, 2018, 02:35:08 am »

Or, perhaps, David, to the "dead letters" sig.  I am beginning to recall why I now tell people HOW to write stuff instead of writing it for them... <sigh>

Lloyd
Logged

"Pyro for Fun and Profit for More Than Fifty Years"
Garyhlucas
CNC Jedi
*****
Offline Offline

Posts: 1241


View Profile
« Reply #7 on: December 12, 2018, 18:22:30 pm »

Not dead letters guys, just crazy busy. I appreciate everyones suggestions. I am kind of leaning towards swapping wiring because all axis on my machine are exactly the same length and the limit switches are all in series so they don’t change. Also my machine already does lots of wire swapping for two spindles, a lathe attachment and a 3D printer head with an extruder stepper. All controlled by selector switches into a PLC. So one more selector and even CamBam should work with the same post. The last thing I need to check is will the axis directions be correct. If not that may complicate things because of the motion board.
Logged

Gary H. Lucas

Have you read my blog?
 http://a-little-business.blogspot.com/
lloydsp
CNC Jedi
*****
Offline Offline

Posts: 7887



View Profile
« Reply #8 on: December 12, 2018, 19:20:58 pm »

Ehhh... I don't know, Gary (BTW, thanks for responding).  The Post-build processor does exactly what you need, and you wouldn't need to move any connectors!

It (of course) is your choice.  But if I were you, I'd create two post-processors -- one for "vertical milling" and one for "horizontal" (with the PBP in it), and be done with having to re-wire the machine every time you wish to change modes.

After all... you're going to have DIFFERENT CB files for each mode of operation.  Since the CB file contains the Post's definition, that's all you'd need.  No wiring changes, no 'nothing' except for designing for either the horizontal or vertical modes.

Lloyd
Logged

"Pyro for Fun and Profit for More Than Fifty Years"
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.142 seconds with 20 queries.

Copyright © 2018 HexRay Ltd. | Sitemap