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:

nc missing work offset


STANDARD_63
 Share

Recommended Posts

When I post the .MCX file about half of the program will have my work offset at tool changes or axis rotations. Then for some reason the rest of the program is missing the work offset at tool changes or axis rotations. I'm not sure if this is a problem with my post or maybe even Machine Definition. Can anyone help me fix this?

Link to comment
Share on other sites

IF you look at code below you can see tools 11 and 1 are using work offsets G57 and G58. But the rest of the tool have no workoffset. T14 should use G57, T22 should use G57, T18 should use G58 AND G59.

 

%

O1894(PROGRAM NAME )

N100 G20

 

#146=16.( Z SAFETY DISTANCE )

#114=180.( ROTARY AXIS SHIFT )

#124=1.( NUMBER OF ROTARY AXIS SHIFTS )

#134=0.( INITIALIZE SHIFT COUNTER )

 

N101 G0 G17 G40 G49 G80 G90

( 9/32 DRILL, 15-04-018 )

( REV- )

( DRILL CLEAR FOR SIDE HOLES )

N102 T11

N103 G0 G91 G30 X0 Y0 Z0 M6

N104 T1 M01

WHILE [#134 LE #124] DO 1

N105 G90 G00 B[0.+[#134*#114]]

N106 M8

N107 G0 G90 G58 X.455 Y10.856 S4753 M3

N108 G43 H11 Z#146

N109 G08 P1

N110 G98 G83 Z.54 R1.36 Q.1969 F35.7

N111 Y7.356

N112 Y3.176

N113 Y-.324

N114 G80

N115 Z#146

#134 = #134 + 1

END 1

#134 = 0

N116 M09

( 3/4 DIA. 2 FLUTE STUBBY E.M., 9-06-012 )

N117 G08 P0

( REV- )

( MILL THICKNESS )

N118 T1

N119 G0 G91 G30 X0 Y0 Z0 M6

N120 T14 M01

WHILE [#134 LE #124] DO 1

N121 G90 G00 B[90.+[#134*#114]]

N122 M8

N123 G0 G90 G57 X.1428 Y11.841 S12000 M3

N124 G43 H1 Z#146

N125 G08 P1

N126 Z1.025

N127 G1 Z.925 F200.

N128 Y11.391 F96.

N129 Y-.859

N130 Y-1.309

N131 G0 Z1.075

N132 X.7678

N133 Z1.025

N134 G1 Z.925 F200.

N135 Y-.859 F96.

N136 Y11.391

N137 Y11.841

N138 G0 Z1.075

N139 Z#146

#134 = #134 + 1

END 1

#134 = 0

N140 M09

( 1/4 X 45 DEG CHAMFER MILL, 13-06-061 )

N141 G08 P0

( REV- )

( MILL .03 X .03 CHAMFERS )

N142 T14

N143 G0 G91 G30 X0 Y0 Z0 M6

N144 T22 M01

WHILE [#134 LE #124] DO 1

N145 G90 G00 B[90.+[#134*#114]]

N146 M8

N147 G0 G90 X-.1422 Y5.994 S12000 M3

N148 G43 H14 Z#146

N149 G08 P1

N150 Z.975

N151 G1 Z.885 F200.

N152 X-.0073 F60.

N153 X.0927

N154 X.2278

N155 G0 Z1.075

N156 X.6827 Y6.307

N157 Z.975

N158 G1 Z.885 F200.

N159 X.8177 F60.

N160 X.9177

N161 X1.0528

N162 G0 Z1.075

N163 Z#146

#134 = #134 + 1

END 1

#134 = 0

N164 M09

( 1/8 X .03 CORNER ROUNDING E.M. )

N165 G08 P0

( REV- )

( MILL .03 RADII )

N166 T22

N167 G0 G91 G30 X0 Y0 Z0 M6

N168 T18 M01

WHILE [#134 LE #124] DO 1

N169 G90 G00 B[90.+[#134*#114]]

N170 M8

N171 G0 G90 X-.0798 Y6.7693 S12000 M3

N172 G43 H22 Z#146

N173 G08 P1

N174 Z.64

N175 G1 Z.56 F200.

N176 G41 D22 Y6.6968 F60.

N177 X-.0073

N178 X.0927

N179 X.1653

N180 G40 Y6.7693

N181 G0 Z1.075

N182 X.7452

N183 Z.64

N184 G1 Z.56 F200.

N185 G41 D22 Y6.6968 F60.

N186 X.8177

N187 X.9177

N188 X.9902

N189 G40 Y6.7693

N190 G0 Z1.075

N191 Z#146

#134 = #134 + 1

END 1

#134 = 0

N192 M09

( #2 CENTER DRILL )

N193 G08 P0

( REV- )

( SPOT 4X .155 +.002/-.000 DIA. HOLES ON B00 )

N194 T18

N195 G0 G91 G30 X0 Y0 Z0 M6

N196 T6 M01

WHILE [#134 LE #124] DO 1

N197 G90 G00 B[0.+[#134*#114]]

N198 M8

N199 G0 G90 X.455 Y10.856 S4500 M3

N200 G43 H18 Z#146

N201 G08 P1

N202 G98 G81 Z.3881 R.575 F18.

N203 Y7.356

N204 Y3.176

N205 Y-.324

N206 G80

( REV- )

( SPOT 4X .155+.002/-.000 DIA. HOLES ON B180 )

N207 G90 G00 B[180.+[#134*#114]]

N208 X-.455 Z3.92

N209 G98 G81 Z2.7981 R2.985 F18.

N210 Y3.176

N211 Y7.356

N212 Y10.856

N213 G80

N214 Z#146

#134 = #134 + 1

END 1

#134 = 0

N215 M09

N255 G08 P0

N256 G0 G91 G30 X0 Y0 Z0

N257 G28 B0.

N258 M30

%

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