Multi Setup Posts -which function for start of setup?

Multi Setup Posts -which function for start of setup?

lindsay.fowler
Advocate Advocate
5,255 Views
22 Replies
Message 1 of 23

Multi Setup Posts -which function for start of setup?

lindsay.fowler
Advocate
Advocate

Hi All 🙂

I am busy building a post processor for my CNC machine.

I based it on a post processor for a generic 3 axis CNC.

 

All is pretty much as you would expect and quite fun:

I generate opening g-code using onOpen() for the beginning of the file, onClose() to create any customised ending  g-code, I used onToolChange() to write customised code for my tool changes.

 

Except for this:

Why is there no function for beginning a setup? Something like onBeginSetup() is what I am needing.

Perhaps it is not needed if you are posting out just one setup, but I post multiple setups in one file because I need to flip parts halfway through and the flipped setup has a different coordinate system.

 

So how can I write code that switches off my spindle and moves it out of the way, so my part can be flipped, at the start of the second setup?

 

Thanks All 🙂

 

0 Likes
Accepted solutions (3)
5,256 Views
22 Replies
Replies (22)
Message 21 of 23

parobillard
Advocate
Advocate
Accepted solution

Hi

 

In Inventor HSM Post:

 

function onParameter(name, value) {
	if (name == "job-description") {
	//this mean new setup
	}
}
0 Likes
Message 22 of 23

lindsay.fowler
Advocate
Advocate

Thanks. Where is Job Description entered. Or where do you specify the Job Description?

0 Likes
Message 23 of 23

parobillard
Advocate
Advocate

It is the name of your "Setup". As I said it work for Inventor HSM, I think it is not the same in other software like hsmwork.

0 Likes