Post with Absolute I and J

Post with Absolute I and J

Anonymous
Not applicable
2,593 Views
6 Replies
Message 1 of 7

Post with Absolute I and J

Anonymous
Not applicable
I have a 2D mill, (no Z) with an older Centroid controller.
It requires the I & J values to be absolute not incremental.
I can deal with manually removing all the Z code and inserting pauses for raising/lowering the Z axis.

Is there a post included with HSMXpress that provides absolute I & J values?

Is it as simple as changing this code in the .cps file?

// circular output
var iOutput = createReferenceVariable({prefix:"I", force:true}, xyzFormat);
var jOutput = createReferenceVariable({prefix:"J", force:true}, xyzFormat);
var kOutput = createReferenceVariable({prefix:"K", force:true}, xyzFormat);

What do I change it to?

Thanks for any help
0 Likes
Accepted solutions (1)
2,594 Views
6 Replies
Replies (6)
Message 2 of 7

fonsecr
Alumni
Alumni
The generic HURCO post uses absolute arc centers so the code has to look the same.


var iOutput = createVariable({prefix:"I", force:true}, xyzFormat);
var jOutput = createVariable({prefix:"J", force:true}, xyzFormat);
var kOutput = createVariable({prefix:"K", force:true}, xyzFormat);


In onCircular() you need to use:
iOutput.format(cx)
jOutput.format(cy)
kOutput.format(cz)

Instead of:
iOutput.format(cx - start.x, 0)
jOutput.format(cy - start.y, 0)
kOutput.format(cz - start.z, 0)

René Fonseca
Software Architect

0 Likes
Message 3 of 7

Anonymous
Not applicable
I would like to try this option (absolute) at HEIDENHAIN. We found the code to:
http://forum.hsmworks.com/index.php?topic=7.0, but the code is more than a year old.
It is thus still relevant or need to be adjusted differently?
It would be possible to add HEIDENHAIN switch, similar to fanuc incremental.cps http://forum.hsmworks.com/index.php?topic=96.0?
0 Likes
Message 4 of 7

fonsecr
Alumni
Alumni
This forum post is not about absolute versus incremental coordinates. Maybe this needs to go in a separate post. Heidenhain doesn't use an equivalent for G90/G91.

René Fonseca
Software Architect

0 Likes
Message 5 of 7

Anonymous
Not applicable
Accepted solution
Rene, thanks so much for your help.

I got it to work by leaving the //circular output as:

var iOutput = createReferenceVariable({prefix:"I", force:true}, xyzFormat);
var jOutput = createReferenceVariable({prefix:"J", force:true}, xyzFormat);
var kOutput = createReferenceVariable({prefix:"K", force:true}, xyzFormat);

and changing the onCircular() references to:

iOutput.format(cx,0)
jOutput.format(cy,0)
kOutput.format(cz,0)

This outputs X, Y and I, J as absolute. Hooray!

While I have your attention, do you have any posts that are 2D only, (no z references)?
0 Likes
Message 6 of 7

fonsecr
Alumni
Alumni
Not a Centroid one.

In onOpen() add:
zOutput.disable();

This will take care of most Z output. Next look for any additional "Z" references and comment them out (e.g. machine retracts).

René Fonseca
Software Architect

0 Likes
Message 7 of 7

scottmoyse
Mentor
Mentor

@Anonymous wrote:
Rene, thanks so much for your help.

I got it to work by changing the onCircular() references to:

iOutput.format(cx,0)
jOutput.format(cy,0)
kOutput.format(cz,0)


Legend! Thanks. I was staring at those values wondering if that was the difference between incremental and absolute, but not really understanding the math. This is spot on. Cheers.


Scott Moyse
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature


RevOps Strategy Manager at Toolpath. New Zealand based.

Co-founder of the Grumpy Sloth full aluminium billet mechanical keyboard project

0 Likes