output WCS name in "coordinate system" not working for axis substitution

output WCS name in "coordinate system" not working for axis substitution

sevenfive85
Advocate Advocate
1,990 Views
9 Replies
Message 1 of 10

output WCS name in "coordinate system" not working for axis substitution

sevenfive85
Advocate
Advocate
Hi,

I would like to output WCS name exactly as shown in "COORDINATE SYSTEM" but for whatever reason it would work for standard toolpath but not when i am using axis substitution. What am i missing in my Post Processor that is preventing this from happening? PLEASE HELP.
0 Likes
1,991 Views
9 Replies
Replies (9)
Message 2 of 10

Laurens-3DTechDraw
Mentor
Mentor
mapsymap wrote:

Hi,

I would like to output WCS name exactly as shown in "COORDINATE SYSTEM" but for whatever reason it would work for standard toolpath but not when i am using axis substitution. What am i missing in my Post Processor that is preventing this from happening? PLEASE HELP.


I think because you override the WCS with an axis.

Laurens Wijnschenk
3DTechDraw

AutoDesk CAM user & Post editor.
Found out the hard way is the best way to win.


0 Likes
Message 3 of 10

sevenfive85
Advocate
Advocate
Hi lauren,

Is there any way that we can tell it to use WCS in the job folder?
0 Likes
Message 4 of 10

Laurens-3DTechDraw
Mentor
Mentor
Depends on what you want.
Do you want it to output different WCS names for different operations or do you always want the Folder WCS?

Laurens Wijnschenk
3DTechDraw

AutoDesk CAM user & Post editor.
Found out the hard way is the best way to win.


0 Likes
Message 5 of 10

sevenfive85
Advocate
Advocate
I just want the folder WCS all the time.

thank you for the quick response. 🙂
0 Likes
Message 6 of 10

sevenfive85
Advocate
Advocate
If anybody have any knowledge on making these changes PLEASE HELP
0 Likes
Message 7 of 10

Anonymous
Not applicable

I am also looking for the same thing...

0 Likes
Message 8 of 10

Anonymous
Not applicable

The main ideea is to avoid doing countless folders for every workoffset change.

 

For everyday use, especially on horizontals it's no easy feat, and it's easy to get lost with the folders.

 

The tool orientation along with SW coordinate systems (named G54, G55 according to different sides) would be a great ideea. 

Both for horizontals and verticals (while doing different setups for the sides).

 

With mapWorkOrigin = false; the only thing missing is to add somehow the wcs-name from dump to the post processor.

It's easy to cancel the original work offsets from the post, and just add the ones from the dump file.

 

Maybe someone could enlighten me on how to add wcs-name to the post processor. I got it working with the post, but it doesn't output anything, even if the dump file confirms the presence of the named wcs (SW coordinate systems).

 

SolidWCS = getParameter('hsmworks:wcs-name');
writeBlock(SolidWCS);

 

Thank you,

 

0 Likes
Message 9 of 10

Laurens-3DTechDraw
Mentor
Mentor

Worked flawless for me when I tried it like this:

var SolidWCS = getParameter('hsmworks:wcs-name');
writeBlock(SolidWCS);

Laurens Wijnschenk
3DTechDraw

AutoDesk CAM user & Post editor.
Found out the hard way is the best way to win.


0 Likes
Message 10 of 10

Anonymous
Not applicable

Thank you for your reply.

 

I've mannaged it like this:

var Swcs=""; //SolidWorks WCS
if (hasParameter("hsmworks:wcs-name")) {
Swcs = getParameter("hsmworks:wcs-name");

 

The problem that I have now, is that it will output the Solidworks WCS everytime. 

I would like to differentiate the output based on the presence or absence of the tool orientation using:

 

From dump

('operation:overrideToolView', 1) This one can be 1 or 0.

or

onParameter('operation:viewSelection', 'coordinateSystem') This one can be 'coordinateSystem' or 'useWCS'.

 

I would like to add a condition.

 

It would simplify the code, and it would be able to handle retracts.

At this moment, everytime it changes the workoffset, I have to be carefull and add a Z200 prior.

 

My condition doesn't work:

var Swcs=""; //SolidWorks WCS
if (hasParameter("hsmworks:wcs-name")) {
Swcs = getParameter("hsmworks:wcs-name");

if (hasParameter("operation:viewSelection")){
writeBlock("G0G90", Swcs, "G43H#7D#7", xOutput.format(initialPosition.x), yOutput.format(initialPosition.y), "Z100", sOutput.format(tool.spindleRPM), mFormat.format(tool.clockwise ? 3 : 4)); // G54->G59);

 

I believe if recognises the tool orientation present, and that's it. I am able to get the presence of the parameters, but not the values. I need the values in order to make a condition.

 

Tried it also with getCurrentSection but it doesn't work.

 

I know that this doesn't obey the true programming laws, but so far it worked, and I am not a programmer.

 

Thank you,

Best regards,

Mihai

 

 

 

0 Likes