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:

G10 line posting


spade117
 Share

Recommended Posts

is there a way to get only the work offsets that I'm using instead of getting all of them when i post a program? I can get it to just post one but i still use other offsets in these programs, and i get the same thing with my g10 line cutter comps:

 

(WORK OFFSETS)

G90 G10L2P1 (G54) X0.Y0.Z0.B0.

G90 G10L2P2 (G55) X0.Y0.Z0.B0.

G90 G10L2P3 (G56) X0.Y0.Z0.B0.

G90 G10L2P4 (G57) X0.Y0.Z0.B0.

G90 G10L2P5 (G58) X0.Y0.Z0.B0.

G90 G10L2P6 (G59) X0.Y0.Z0.B0.

(CUTTER COMPS)

G90 G10P61R0. (TOOL - 1)

G90 G10P62R0. (TOOL - 2)

G90 G10P63R0. (TOOL - 3)

G90 G10P64R0. (TOOL - 4)

G90 G10P65R0. (TOOL - 5)

 

 

or it will give me one offset - whatever one is the first one used in the program.i used some logic in the pst file to get it to post like this:

(WORK OFFSETS)

G90 G10L2P3 (G56) X0.Y0.Z0.B0.

 

but i am also using a g57 in the program so that isn't right either confused.gif

 

thanks in advance for any help

Link to comment
Share on other sites

Posted code:

G00 G90 G54 X0. Y0.

(CUSTOM PROBE CYCLE)

(C1-SETS CURRENT WORK OFF)

G10L50

N20R1

N21R1

G11

 

X0Y0

(X)G65P9110 R5.25 X0Y0Z-.2U11.5C1.S0W0Q0.0002F0

(Y)G65P9110 R2.75 X0Y0Z-.2U12.5C1.S0W0Q0.0002F0

(Z)G65P9130 Z0. I0J0K.5S0Q0.0002F0

 

G10L50

N20R5

N21R5

G11

 

 

(CUSTOM PROBE CYCLE)

(C1-SETS CURRENT WORK OFF)

G10L50

N20R1

N21R1

G11

 

X0Y0

(X)G65P9110 R5.25 X0Y0Z-.2U11.5C1.S0W0Q0.0002F0

(Y)G65P9110 R2.75 X0Y0Z-.2U12.5C1.S0W0Q0.0002F0

(Z)G65P9130 Z0. I0J0K.5S0Q0.0002F0

 

G10L50

N20R5

N21R5

G11

___________________________________________

 

 

From my post:

 

pwcs, "X0Y0"

 

"(X)G65P9110", *stck_ht , "X0Y0Z-.2U11.5C1.S0W0Q0.0002F0"

 

"(Y)G65P9110", *stck_wdth , "X0Y0Z-.2U12.5C1.S0W0Q0.0002F0"

 

"(Z)G65P9130", *stck_z_min , "I0J0K.5S0Q0.0002F0" ,e

 

__________________________________

 

I'm using my job setup info to set probe values.

Probably not the easiest way but it should do the job.

 

 

PEACE biggrin.gif

Link to comment
Share on other sites

i have offsets in the beginning of my programs not on an offset page so when it posts out all you have to do is change the # in the g10 line. i just wanna know if there is a way so the post will only spit out the offsets that i'm using in that specific program. banghead.gif

Link to comment
Share on other sites

Are you using the same basic number of offsetts?

The way I do it is;

code:

p6X14TOMB2PCsetup # two parts on a tombstone

p6X14TOMB2PC = 1

35, no_spc, "7001=0", "(FIXTURE OFFSET X G54P1)", e

35, no_spc, "7002=0", "(FIXTURE OFFSET Y G54P1)", e

35, no_spc, "7003=", no_spc, 35, no_spc, "921", "(FIXTURE OFFSET Z G54P1)", e

35, no_spc, "7004=0","(FIXTURE OFFSET B G54P1)", e

35, no_spc, "7021=0", "(FIXTURE OFFSET X G54P2)", e

35, no_spc, "7022=0", "(FIXTURE OFFSET Y G54P2)", e

35, no_spc, "7023=", no_spc, 35, no_spc, "921", "(FIXTURE OFFSET Z G54P2)", e

35, no_spc, "7024=180","(FIXTURE OFFSET B G54P2)", e

35, no_spc, "524=1", e

code:

p14SQUTOMB4PCsetup # four parts on a tombstone

p14SQUTOMB4PC = 1

35, no_spc, "7001=0", "(FIXTURE OFFSET X G54P1)", e

35, no_spc, "7002=0", "(FIXTURE OFFSET Y G54P1)", e

35, no_spc, "7003=", no_spc, 35, no_spc, "921", "(FIXTURE OFFSET Z G54P1)", e

35, no_spc, "7004=0","(FIXTURE OFFSET B G54P1)", e

35, no_spc, "7021=0", "(FIXTURE OFFSET X G54P2)", e

35, no_spc, "7022=0", "(FIXTURE OFFSET Y G54P2)", e

35, no_spc, "7023=", no_spc, 35, no_spc, "921", "(FIXTURE OFFSET Z G54P2)", e

35, no_spc, "7024=90","(FIXTURE OFFSET B G54P2)", e

35, no_spc, "7041=0", "(FIXTURE OFFSET X G54P3)", e

35, no_spc, "7042=0", "(FIXTURE OFFSET Y G54P3)", e

35, no_spc, "7043=", no_spc, 35, no_spc, "921", "(FIXTURE OFFSET Z G54P3)", e

35, no_spc, "7044=180","(FIXTURE OFFSET B G54P3)", e

35, no_spc, "7061=0", "(FIXTURE OFFSET X G54P4)", e

35, no_spc, "7062=0", "(FIXTURE OFFSET Y G54P4)", e

35, no_spc, "7063=", no_spc, 35, no_spc, "921", "(FIXTURE OFFSET Z G54P4)", e

35, no_spc, "7064=270","(FIXTURE OFFSET B G54P4)", e

35, no_spc, "524=1", e

and outputs;

2 parts

code:

#7001=0 (FIXTURE OFFSET X G54P1)

#7002=0 (FIXTURE OFFSET Y G54P1)

#7003=#921 (FIXTURE OFFSET Z G54P1)

#7004=0 (FIXTURE OFFSET B G54P1)

#7021=0 (FIXTURE OFFSET X G54P2)

#7022=0 (FIXTURE OFFSET Y G54P2)

#7023=#921 (FIXTURE OFFSET Z G54P2)

#7024=180 (FIXTURE OFFSET B G54P2)

#524=1

four parts;

code:

#7001=0 (FIXTURE OFFSET X G54P1)

#7002=0 (FIXTURE OFFSET Y G54P1)

#7003=#921 (FIXTURE OFFSET Z G54P1)

#7004=0 (FIXTURE OFFSET B G54P1)

#7021=0 (FIXTURE OFFSET X G54P2)

#7022=0 (FIXTURE OFFSET Y G54P2)

#7023=#921 (FIXTURE OFFSET Z G54P2)

#7024=180 (FIXTURE OFFSET B G54P2)

#7041=0 (FIXTURE OFFSET X G54P3)

#7042=0 (FIXTURE OFFSET Y G54P3)

#7043=#921 (FIXTURE OFFSET Z G54P3)

#7044=0 (FIXTURE OFFSET B G54P3)

#7061=0 (FIXTURE OFFSET X G54P4)

#7062=0 (FIXTURE OFFSET Y G54P4)

#7063=#921 (FIXTURE OFFSET Z G54P4)

#7064=180 (FIXTURE OFFSET B G54P4)

#524=1

I have several of these in my post for whatever type of fixturing I need.

Note: this is setting up my probing routine. My system origin (wcs system view top) is also my machine zero point.

Link to comment
Share on other sites

This is how my post looks:

 

code:

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

# Start of File and Toolchange Setup

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

psof0 #Start of file for tool zero

psof

 

psof #Start of file for non-zero tool number

pcuttype

toolchng = one

#"%", e

#*progno, "(", sprogname, ")", e

#"(DATE=DD-MM-YY - ", date, " TIME=HH:MM - ", time, ")", e

"() " , e

pbld, *smetric, e

pbld, *sgcode, *sgplane, "G40", "G49", "G80", *sgabsinc, "G98", e

sav_absinc = absinc

#if mi1 <= one, #Work coordinate system

[

absinc = one

pbld, sgabsinc, *sg28ref, "Z0.", e

absinc = sav_absinc

]

[

"(WORK OFFSETS) ", e

if workofs = 0, pbld, *sgabsinc,"G10L2P1","(G54)", "X0.Y0.Z0.B0.", e

if workofs = 1, pbld, *sgabsinc,"G10L2P2","(G55)", "X0.Y0.Z0.B0.", e

if workofs = 2, pbld, *sgabsinc,"G10L2P3","(G56)", "X0.Y0.Z0.B0.", e

if workofs = 3, pbld, *sgabsinc,"G10L2P4","(G57)", "X0.Y0.Z0.B0.", e

if workofs = 4, pbld, *sgabsinc,"G10L2P5","(G58)", "X0.Y0.Z0.B0.", e

if workofs = 5, pbld, *sgabsinc,"G10L2P6","(G59)", "X0.Y0.Z0.B0.", e

"(CUTTER COMPS) ", e

pbld, *sgabsinc,"G10P61R0.","(TOOL - 1)", e

pbld, *sgabsinc,"G10P62R0.","(TOOL - 2)", e

pbld, *sgabsinc,"G10P63R0.","(TOOL - 3)", e

pbld, *sgabsinc,"G10P64R0.","(TOOL - 4)", e

pbld, *sgabsinc,"G10P65R0.","(TOOL - 5)", e

"() ", e

], e

pcom_moveb

c_mmlt #Multiple tool subprogram call

"M01", e

and this is what the heading of my program will look like:

 

%

O0000 ( DRILL HOLES.NC )

( HORIZONTAL PROGRAM )

()

( TOOL - 1 - 1/4 DRILL )

()

G20

G0 G17 G40 G49 G80 G90 G98

G91 G28 Z0.

(WORK OFFSETS)

G90 G10L2P1 (G54) X0.Y0.Z0.B0.

G90 G10L2P2 (G55) X0.Y0.Z0.B0.

G90 G10L2P3 (G56) X0.Y0.Z0.B0.

G90 G10L2P4 (G57) X0.Y0.Z0.B0.

G90 G10L2P5 (G58) X0.Y0.Z0.B0.

G90 G10L2P6 (G59) X0.Y0.Z0.B0.

(CUTTER COMPS)

G90 G10P61R0. (TOOL - 1)

G90 G10P62R0. (TOOL - 2)

G90 G10P63R0. (TOOL - 3)

G90 G10P64R0. (TOOL - 4)

G90 G10P65R0. (TOOL - 5)

()

M01

 

 

I'm only using g54 in the program but it still spits out g10 lines for all 6 offsets. its easy to change manually after the program is posted but i was just trying to find a way around itso it would post out like this:

 

%

O0000 ( DRILL HOLES.NC )

( HORIZONTAL PROGRAM )

()

( TOOL - 1 - 1/4 DRILL )

()

G20

G0 G17 G40 G49 G80 G90 G98

G91 G28 Z0.

(WORK OFFSETS)

G90 G10L2P1 (G54) X0.Y0.Z0.B0.

()

M01

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...