Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

WCS - VIEW MANAGER COMMENT FOR G10 LINE


Recommended Posts

Why not just use the actual WCS numbers?

 

This can be done - I have used viewx, viewy and viewz to capture these

 

fmt " PX=" 2 viewx #X offset for Call OO88

fmt " PY=" 2 viewy #Y offset for Call OO88

fmt " PZ=" 2 viewz #Z offset for Call OO88

 

 

if prmcode$ = 15163, viewx = rpar(sparameter$, 1)

if prmcode$ = 15164, viewy = rpar(sparameter$, 1)

if prmcode$ = 15165, viewz = rpar(sparameter$, 1)

 

 

n$, "CALL OO88", *viewx, *viewy, *viewz, " PA=", *s_out, " PC=", *p_out, " PH=", *g_wcs, " PP=", *p_wcs, e$

Link to comment
Share on other sites

Thank you Greg, I did it and it only ouput only one line. I would like all of them output since I have many work offsets

 

CALL OO88 PX=0. PY=-5. PZ=0. PA= PC= PH= G0 PP= P0

G90 (WORK OFFSET LIST)

G10 L2 P0 X0 Y0 Z0 B0(G53 ZERO)

G10 L2 P1 X0 Y0 Z0 B0(G54B0.)

G10 L2 P2 X0 Y0 Z0 B0(G55B90.)

G10 L2 P3 X0 Y0 Z0 B0(G56B270.)

Link to comment
Share on other sites

Can you specify where you put these scrips? I put the

 

# --------------------------------------------------------------------------

# Toolchange / NC output Variable Formats

# --------------------------------------------------------------------------

 

fmt " PX=" 2 viewx #X offset for Call OO88

fmt " PY=" 2 viewy #Y offset for Call OO88

fmt " PZ=" 2 viewz #Z offset for Call OO88

 

pparameter$ # Run parameter table

 

if prmcode$ = 15163, viewx = rpar(sparameter$, 1)

if prmcode$ = 15164, viewy = rpar(sparameter$, 1)

if prmcode$ = 15165, viewz = rpar(sparameter$, 1)

 

 

psof$ #Start of file for non-zero tool number

"(*)", e$

n$, "CALL OO88", *viewx, *viewy, *viewz, " PA=", *s_out, " PC=", *p_out, " PH=", *g_wcs, " PP=", *p_wcs, e$

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...