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:

Cropsprayer

Members
  • Posts

    2
  • Joined

  • Last visited

Cropsprayer's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks MillmanI will try this out. Makes logic sense to me now. You're right, I do get the staggering of values. I basically keeps on offsetting each time. Thanks again
  2. Hi Guys FANUC 18I-MB5 CONTROL Not sure if I'm on the right thread here. I need some advice on origin shift after I probed my part with a Renishaw probe. I'll try to explain what I would like to do. I have a flat composite part with stiffeners glued onto it. The stiffeners are T-shaped with the T-leg basically standing upright. Holes need to be drilled through the stiffeners from the top in the Z- direction. Before I can do that, I need to determine the correct position of each stiffener. The only way for me to do that is by using a Renishaw probe. If you look in the program below, I basically probed certain positions in the X- direction. That actual value gets saved on the control from variable #111 onwards. That is after the calculation was made with the stylus size etc. All of that is working very well. Each position that I probe gets saved in the next variable number. i.e. #112, #113, #114, etc. (See blocks N28; N40; N52) Here's an extract from my program to show how the probing works. I only copied the first 3 probing positions as an example: N1 G92.1 X0 Y0 Z0 B0 C0 N2 G5P0 N3 G52 X0 Y0 Z0 N4 (*****************) N5 G55 N6 ( 6 MM PROBE) N7 G53 G90 G00 G49 Z0 H0 N8 T15 M6 N9 G55 N10 G0 B0. C0. N11 H15 N12 G359 N13 M5 N14 G91 G43 H15 Z0 N16 G90 N16 G0 X-91.52 Y110.282 B0. C0. N17 Z62. N18 ( TP015 - PROBE STIFFENERS) N19 ( PROBE CYCLE) N20 M46 N21 G4 X2. N22 G0 X-91.52 Y110.282 Z62. B0. C0. M81 N23 G31 G1 Z27. F300. N24 G31 X-111.52 N25 G4 X0.5 N26 G91 X10. N27 G90 G31 X-111.52 F60 N28 #111=#5061 N29 G0 X-91.52 N30 Z62. N31 #100=#4111 N32 #101=#[#100+13000]+#[#100+12000] (PROBE RADIUS) N33 #111=#111-#101-[-101.52] N34 G0 Y254.4 N35 G31 G1 Z27. F300. N36 G31 X-111.52 N37 G4 X0.5 N38 G91 X10. N39 G90 G31 X-111.52 F60 N40 #112=#5061 N41 G0 X-91.52 N42 Z62. N43 #100=#4111 N44 #101=#[#100+13000]+#[#100+12000] (PROBE RADIUS) N45 #112=#112-#101-[-101.52] N46 G0 Y553.4 N47 G31 G1 Z27. F300. N48 G31 X-111.52 N49 G4 X0.5 N50 G91 X10. N51 G90 G31 X-111.52 F60 N52 #113=#5061 N53 G0 X-91.52 N54 Z62. N55 #100=#4111 N56 #101=#[#100+13000]+#[#100+12000] (PROBE RADIUS) N57 #113=#113-#101-[-101.52] The problem comes in where I would like to shift the drill positions now. (See extract below of where I want to call an offset variable each time) I have an exact point where I would like to drill the first hole according to the part model. Because the stiffeners can be glued out of position slightly, I have to probe their actual position. Now I would like to shift that drill point with the deviation I determined with the probe. Hope this all makes sense. How do I do that? For instance, if the hole that I would like to drill first is closest to variable #111, I would like to offset my X- value with the value that was written in #111 and so forths. When ever I call a variable at a hole, that X- value for that specific hole must be shifted with the value in the variable. By the way, in my CAM software I can tell the probe whether I want to probe in the X- or Y- direction. In this case all the probe points were done in the X- direction. If you look at the next program extract: N167 ( 2.7 DIA TWIST DRILL) N168 G49 N169 G53 G90 G00 G49 Z0 H0 N170 T14 M6 N171 G55 N172 G0 B0. C0. N173 H14 N174 G359 N175 S8230 M3 N176 G05P10000R10 N177 G43.4 H14 N178 G0 X113.4 Y1439.808 B0. C0. N179 Z62. N180 G49 N181 G5P0 N182 G52 X[#117] Y0 N183 G43.4 H14 N184 ( TP001 - DRILL 2.7 PILOT HOLES) N185 ( DRILL CYCLE) N186 X113.4 Y1439.808 Z80.22 N187 X113.4 N188 M80 N189 ( DEEPHOLE DRILL) N190 X113.4 N191 Z12.22 N192 G1 Z8.22 F494. N193 G0 Z12.22 N194 Z9.72 N195 G1 Z4.22 N196 G0 Z12.22 N197 Z5.72 N198 G1 Z0.22 N199 G0 Z12.22 N200 Z1.72 N201 G1 Z-2.253 N202 G0 Z51.968 N203 ( DEEPHOLE DRILL) N204 X92.6 N205 Z12.22 N206 G1 Z8.22 N207 G0 Z12.22 N208 Z9.72 N209 G1 Z4.22 N210 G0 Z12.22 N211 Z5.72 N212 G1 Z0.22 N213 G0 Z12.22 N214 Z1.72 N215 G1 Z-2.253 N216 G0 Z80.22 N217 G49 N218 G5P0 N219 G52 X[#116] Y0 N220 G43.4 H14 N221 ( TP001 - DRILL 2.7 PILOT HOLES STIFFENERS) N222 ( DRILL CYCLE) N223 X-92.6 Y1439.808 Z80.22 N224 X-92.6 N225 ( DEEPHOLE DRILL) N226 X-92.6 N227 Z12.22 N228 G1 Z8.22 N229 G0 Z12.22 N230 Z9.72 N231 G1 Z4.22 N232 G0 Z12.22 N233 Z5.72 N234 G1 Z0.22 N235 G0 Z12.22 N236 Z1.72 N237 G1 Z-2.253 N238 G0 Z51.968 N239 ( DEEPHOLE DRILL) N240 X-113.4 N241 Z12.22 N242 G1 Z8.22 N243 G0 Z12.22 N244 Z9.72 N245 G1 Z4.22 N246 G0 Z12.22 N247 Z5.72 N248 G1 Z0.22 N249 G0 Z12.22 N250 Z1.72 N251 G1 Z-2.253 N252 G0 Z80.22 N253 G49 N254 G5P0 Block N178 is where the first hole position is. Block N182 calls for the X- offset. (Using the variable saved in #117) The shift does actually happen there. The machine physically moves with the amount that was saved in #117. It ads the difference to X113.4 value that is at block N178. The problem comes in where the machine hits the next X- value and the next and the next. I would like to drill a set of holes around variable #117 for instance. I want it to keep that offset for each X- value until I call a different variable. When it gets another X- value like block N186, it moves to that exact value. Completely ignoring the offset that it just used. My whole explanation is about this. I want the control to use that #111 or #112 or #113, etc. for each X- value until I change the variable number or when it reaches a tool change which will clear all offsets. Is there a way that one can program it in such a way? I was thinking at one point to add the variable to each and every X- value myself, in order for the shift to take place. The control does not accept my format. I keep on getting an alarm that says "No value after address". Here is what I was thinking of doing. At each X- value, just add #111 or #112 to that value. Can it be done and how? Can I not change block N186 like this? X113.4+[#117] Y1439.808 Z80.22 or [X113.4+#117] Y1439.808 Z80.22 or X113.4+#[#117] Y1439.808 Z80.22 I don't have any clues left. This would have make logic sense to me. Just add the little bit of offset to your X- or Y- value and then drill the hole. Hope someone can shed some light on this. Thanks

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