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:

Dynamic Offset


msf24
 Share

Recommended Posts

You program it just like any other machine, but maybe I just don't understand what you are asking for.

Dynamic offset makes programmers job much easier since you could make the program using one work offset.

Are you asking about post processing, toolpath creation or understanding how dynamic offset works?

We have a couple of Variaxis 730 machines here, so I am a little familiar with them.

Link to comment
Share on other sites

Trying to understand how Dymanic Offset works. So you know how a Variaxis works, everything works off of center of rotation.

 

I can not change my G54, but every part is not in the same location. I would like to prob each part, but how does that work with Dymanic Offset?

Link to comment
Share on other sites

1st and most important you have to make sure that your machine is callibrated correctly.

Then you need to know where your pivot point is on the machine and assign it to a work offset.

Your S5X, S5Y and S12Z parameters must have EXACT same values as the pivot point XYZ values.

Your dynamic offset is the distance from the pivot point. You could have up to 8 dynamic work offsets.

 

See my program sample below where

 

G54.1P1 is the distance from XYZ0. to the pivot point

G54.2P1 is the dynamic offset that I am using

Do not forget to turn off dynamic offset @ the end with G54.2P0

 

 

()

()

N41 T03 M6

#3901 = #4114

G80 G17 G40 G49 G94 G98 G90 G20

G0 G91 G28 Z0.0

G28 X0.0 Y0.0 C0.0

G28 A0.0

G90

M46 (A-AXIS UNCLAMP)

M43 (C-AXIS UNCLAMP)

(T3 - T03_.500_ENDMILL-.030_CR)

()

(******)

(******)

M33 (LASER ON)

/7 G65 P9862 B1. T3 S3000

G4

#162000=0

G4

G65 P9862 B2. D2000 I[0.5000/2] E.01 S3000

G4

#162000=0

G4

G65 P9863 B1. T3 H-.010 S3000 (TOOL LENGTH CHECK)

M34 (LASER OFF)

G91 G28 Z0.

G90

(******)

(******)

M1

(N41_ROUGH_CONTOUR)

S764 M3

()

(.060 STK)

()

G0 G54.1 P1 X-.0338 Y-1.1999 A-66. C175.6745

G54.2 P1

G43 Z14.4833 H3

G0 G90 X-.0338 Y-1.1999 A-66. C175.6745

M8

Z12.1833

G1 G93 Z12.1078 F64.78

X.0423 Y-1.1061 Z12.0754 F39.115

X.0657 Y-1.0711 Z12.0642 F112.221

X.0825 Y-1.0324 Z12.0533 F112.199

X.0923 Y-.9912 Z12.043 F112.191

X.0945 Y-.9487 Z12.0338 F112.222

X.0893 Y-.9062 Z12.0257 F112.188

X.0768 Y-.865 Z12.0192 F112.205

X.0573 Y-.8263 Z12.0144 F112.218

X.0314 Y-.7913 Z12.0114 F112.199

X0.0 Y-.7612 Z12.0103 F112.199

Y-.7195 C175.9503 F73.923

Y-.6576 C176.2762 F56.36

Y-.5896 C176.5626 F56.485

Y-.5163 C176.807 F56.523

Y-.4385 C177.0063 F56.601

Y-.3573 C177.1578 F56.849

Y-.2739 C177.2618 F57.059

Y-.189 C177.3184 F57.089

Y-.1032 C177.3275 F56.98

Y-.0252 C177.2925 F62.502

Y-.0095 C177.281 F308.502

Y.0654 C177.2051 F64.093

Y.1457 C177.0762 F58.179

Y.223 C176.9031 F58.083

Y.3004 C176.6817 F55.261

Y.3083 C176.6914 F602.33

Y.3112 C176.6976 F1557.018

Y.3777 C176.8368 F68.136

Y.4538 C176.9496 F61.714

Y.5316 C177.0206 F61.9

Y.6103 C177.0496 F61.942

Y.6894 C177.0362 F61.834

Y.7681 C176.9797 F61.523

Y.8454 C176.8795 F61.274

Y.92 C176.7375 F61.32

Y.9911 C176.5565 F61.39

Y1.058 C176.3384 F61.323

Y1.1201 C176.0848 F61.113

Y1.1764 C175.7975 F60.83

Y1.2258 C175.4805 F60.813

Y1.2363 C175.3953 F244.336

X.0002 Y1.2468 Z12.0123 C175.3102 F241.493

Y1.2678 Z12.0129 C175.1402 F122.062

Y1.2699 Z12.013 C175.1178 F980.285

Y1.2721 Z12.0131 C175.0954 F980.298

X.0003 Y1.204 Z12.022 A-66.3446 C175.0504 F480.815

Y1.23 Z12.0202 A-66.2619 C174.9608 F245.371

Y1.2819 Z12.0166 A-66.0961 C174.7816 F122.693

Y1.287 Z12.0162 A-66.0801 C174.7582 F983.108

Y1.292 Z12.0159 A-66.0641 C174.7349 F983.125

Y1.302 Z12.0151 A-66.0321 C174.6882 F491.575

Y1.3221 Z12.0137 A-65.968 C174.5948 F245.799

Y1.3624 Z12.0107 A-65.8393 C174.4083 F122.912

Y1.3695 Z12.0101 A-65.8168 C174.3601 F491.507

Y1.3765 Z12.0096 A-65.7943 C174.312 F491.527

Y1.3907 Z12.0085 A-65.7491 C174.2158 F245.778

X.0002 Y1.4191 Z12.0063 A-65.6583 C174.0235 F122.903

Y1.4353 Z12.005 A-65.6068 C173.8259 F121.974

Y1.4516 Z12.0037 A-65.5547 C173.6285 F121.994

Y1.458 Z12.0032 A-65.5343 C173.1627 F52.176

Y1.4445 Z12.0042 A-65.5771 C172.9302 F104.087

Y1.4314 Z12.0053 A-65.6192 C172.6977 F104.102

Y1.424 Z12.0059 A-65.6428 C172.6406 F416.706

X.0001 Y1.4166 Z12.0065 A-65.6663 C172.5835 F416.717

Y1.4019 Z12.0076 A-65.7132 C172.4693 F208.367

Y1.3727 Z12.0099 A-65.8065 C172.2408 F104.191

Y1.3671 Z12.0103 A-65.8245 C172.2131 F831.746

Y1.3614 Z12.0107 A-65.8425 C172.1854 F831.753

Y1.3501 Z12.0116 A-65.8786 C172.1299 F415.882

Y1.3276 Z12.0133 A-65.9505 C172.0188 F207.946

Y1.2827 Z12.0165 A-66.0938 C171.7966 F103.978

Y1.276 Z12.017 A-66.1149 C171.7733 F943.558

Y1.2694 Z12.0175 A-66.1361 C171.7499 F943.562

Y1.2561 Z12.0184 A-66.1785 C171.7031 F471.783

Y1.2296 Z12.0202 A-66.2631 C171.6095 F235.894

X0.0 Y1.2673 Z12.0129 A-66. C171.4222 F117.943

Y1.2608 Z12.0127 C171.3451 F291.554

Y1.2596 C171.3189 F909.828

Y1.2595 C171.2922 F912.234

Y1.2601 C171.2721 F1202.552

Y1.2607 C171.2521 F1202.558

Y1.262 Z12.0128 C171.212 F601.284

Y1.2162 Z12.0212 A-66.3059 C170.766 F53.537

Y1.2472 Z12.019 A-66.2071 C170.2599 F47.91

C169.7518 F47.959

X-.0001 Y1.2161 Z12.0212 A-66.306 C169.2455 F47.897

Y1.262 Z12.0128 A-66. C168.7992 F53.489

Y1.2594 Z12.0127 C168.7189 F300.11

Y1.2596 C168.6923 F917.329

Y1.2607 C168.6663 F915.082

Y1.2615 C168.6566 F2324.218

Y1.2624 Z12.0128 C168.6469 F2324.215

Y1.264 C168.6276 F1162.105

Y1.2673 Z12.0129 C168.5889 F581.051

Y1.2828 Z12.0165 A-66.0935 C168.2135 F58.865

Y1.2884 Z12.0161 A-66.0757 C168.1856 F829.648

X-.0002 Y1.294 Z12.0157 A-66.0578 C168.1578 F829.639

Y1.3052 Z12.0149 A-66.022 C168.102 F414.812

Y1.3276 Z12.0133 A-65.9503 C167.9906 F207.399

Y1.3727 Z12.0099 A-65.8064 C167.768 F103.692

Y1.38 Z12.0093 A-65.7832 C167.7107 F415.788

Y1.3873 Z12.0088 A-65.7599 C167.6534 F415.774

Y1.4019 Z12.0076 A-65.7133 C167.5389 F207.876

Y1.4313 Z12.0053 A-65.6194 C167.3099 F103.927

Y1.4444 Z12.0043 A-65.5775 C167.077 F103.919

Y1.4578 Z12.0032 A-65.5348 C166.8441 F103.9

X-.0003 Y1.4512 Z12.0037 A-65.5558 C166.3785 F52.205

Y1.435 Z12.005 A-65.6077 C166.1818 F122.421

Y1.4189 Z12.0063 A-65.659 C165.9849 F122.396

Y1.3626 Z12.0106 A-65.8387 C165.6013 F61.648

Y1.3576 Z12.011 A-65.8548 C165.578 F984.41

Y1.3525 Z12.0114 A-65.8708 C165.5547 F984.392

Y1.3425 Z12.0122 A-65.9028 C165.5081 F492.182

Y1.3224 Z12.0137 A-65.9669 C165.4149 F246.077

Y1.2824 Z12.0166 A-66.0945 C165.2282 F123.024

Y1.2759 Z12.017 A-66.1153 C165.2058 F980.203

Y1.2694 Z12.0175 A-66.1361 C165.1834 F980.191

Y1.2564 Z12.0184 A-66.1775 C165.1385 F490.087

X-.0004 Y1.2304 Z12.0202 A-66.2604 C165.0488 F245.034

X-.0002 Y1.2679 Z12.0129 A-66. C164.869 F122.027

Y1.2666 C164.8583 F1944.551

Y1.2653 C164.8477 F1944.547

Y1.2626 Z12.0128 C164.8264 F972.27

Y1.2574 Z12.0126 C164.7837 F486.132

Y1.2468 Z12.0123 C164.6983 F243.062

X0.0 Y1.2258 Z12.0103 C164.5274 F121.03

Y1.176 C164.2083 F60.41

Y1.1195 C163.9193 F60.544

Y1.0575 C163.6648 F61.062

Y.9907 C163.4465 F61.372

Y.9197 C163.266 F61.497

Y.8452 C163.1248 F61.438

Y.7678 C163.0249 F61.249

Y.6889 C162.9678 F61.373

Y.6098 C162.9539 F61.755

Y.5311 C162.9828 F61.958

Y.4534 C163.0539 F61.989

Y.3775 C163.1668 F61.852

Y.3111 C163.306 F68.222

Y.3082 C163.3122 F1557.422

Y.2997 C163.3211 F564.228

Y.2964 C163.3164 F1433.28

Y.2908 C163.2995 F751.296

Y.2894 C163.2953 F2994.195

Y.223 C163.0997 F63.98

Y.1457 C162.9261 F58.052

Y.0653 C162.7967 F58.156

Y-.0095 C162.7204 F64.101

Y-.0252 C162.7088 F308.406

Y-.1032 C162.6734 F62.461

Y-.1891 C162.6822 F56.909

Y-.2743 C162.7388 F56.965

Y-.3579 C162.8433 F56.872

Y-.4393 C162.9959 F56.633

Y-.5173 C163.1957 F56.514

Y-.5905 C163.44 F56.594

Y-.6583 C163.7262 F56.607

Y-.7199 C164.0521 F56.493

Y-.7746 C164.4153 F56.23

Y-.8213 C164.8121 F56.021

Y-.8592 C165.2355 F56.046

Y-.888 C165.6794 F56.103

Y-.9074 C166.1388 F56.064

Y-.9167 C166.6076 F56.046

Y-.9158 C167.0778 F56.208

Y-.905 C167.5429 F56.371

Y-.8843 C167.9981 F56.362

Y-.8542 C168.4384 F56.201

Y-.8358 C168.6336 F120.472

Y-.8478 C168.8454 F119.087

Y-.8648 C169.3043 F56.351

Y-.8733 C169.7686 F56.543

C170.2348 F56.608

Y-.8648 C170.6991 F56.544

Y-.8478 C171.158 F56.354

Y-.8359 C171.3696 F119.185

Y-.8541 C171.564 F120.957

Y-.8844 C172.0037 F56.257

Y-.905 C172.4594 F56.29

Y-.9159 C172.9264 F56.142

Y-.9167 C173.4 F55.807

Y-.9072 C173.8713 F55.746

Y-.8877 C174.3307 F56.052

Y-.8588 C174.7728 F56.279

Y-.8209 C175.1933 F56.362

Y-.7743 C175.5876 F56.297

Y-.7612 C175.6745 F235.262

X-.0361 Y-.7367 Z12.0113 F112.193

X-.0756 Y-.7187 Z12.0143 F112.224

X-.1175 Y-.7077 Z12.0191 F112.194

X-.1604 Y-.704 Z12.0255 F112.211

X-.2031 Y-.7077 Z12.0335 F112.193

X-.2442 Y-.7188 Z12.0428 F112.206

X-.2825 Y-.7368 Z12.053 F112.22

X-.3169 Y-.7613 Z12.0639 F112.205

X-.3462 Y-.7915 Z12.0752 F112.198

X-.4222 Y-.8854 Z12.1075 F39.118

Z12.1626 F88.805

G0 Z14.4626

M5 M9

M1

G0 G91 G28 Z0.0

G90

G54.2 P0

(******)

(LASER CHECK FOR BROKEN TOOL)

(******)

/6 M33 (LASER ON)

/6 G65 P9863 B1. T3 H-.010 S3000 (TOOL LENGTH CHECK)

/6 M34 (LASER OFF)

G91 G28 Z0.

G90

(******)

M1

G91 G28 X0.0 Y0.0 C0.0

G28 A0.0

G90

M47 (A-AXIS CLAMP)

M44 (C-AXIS CLAMP)

M01

()

()

Link to comment
Share on other sites

Rob ,have you used this much on complex simutaneous 5-axis movements? The Mazak regional tech center in our area has reccommended not using this method for simultaneous 5-axis. They were of the opinion that in some cases the control can't caluculate the positions fast enough. Have you run into that problem at all?

Link to comment
Share on other sites

Robk, I also have variaxis 730's and I was shown a little different method and I was just curious if your method had advantages over mine:

 

I set me my part zero in G54 wherever I want it to be and my center of rotation to G59. G54-G59 goes in my g10 line below. In my 3 axis toolpaths I simply call G54, 3+2 or 5-axis I call G59 and G54.2.

 

G10 G90 L21 P1 X-0.0000 Y-0.0000 Z-0.0000 B-0.000 C-0.000

G00 G17 G20 G40 G49 G80 G90

G54.2 P0 G53 Z0.

G91 G28 Z0.

G28 Y0.

G30 X0.

M43 (C-AXIS UNLOCK)

M46 (A-AXIS UNLOCK)

G28 A0. C0.

N1(ROUGH SLOTS 1)

(TOOLPLANE NAME - TOP)

T21 M06 ( 3/16 BULL ENDMILL 0.03R)

G91 G28 Z0.

(MAX - Z2.)

(MIN - Z.05407)

G59

G00 G90 A0. C0.

M44 (C-AXIS LOCK)

M47 (A-AXIS LOCK)

M08

M131

G17 X.07204 Y-7.61368 S2241 M03

Z18.

G54.2 P1

G43 H21 Z2.

G94 Z1.2

G61.1 ,K0

G01 Z.05407 F50.

 

....

 

G00 Z2.

G64

M09

M05

G54.2 P0 G53 Z0.

G91 G00 G28 Z0.

G28 Y0.

G30 X0.

M43 (C-AXIS UNLOCK)

M46 (A-AXIS UNLOCK)

G28 A0. C0.

M44 (C-AXIS LOCK)

M47 (A-AXIS LOCK)

G90

M30

Link to comment
Share on other sites

Jeremy, I believe that we're getting the same result in the end. My programming method might be different then yours since I don't use Mastercam. I use NX and I have 2 posts for the machine-- One for 3 axis moves and one for 5 axis.

 

 

This whole section of my code is to set the TLO with the laser as well as to make sure that the operator put in a correct Ø tool in the spindle. All the 162000 variable does is reset the dia. geometry offset back to 0... Matrix on our Variaxis' as well as all our Integfrexs' have quirks that they will crap out if there is any value in the in the dia. geometry offset priot to probing the tool for dia.

 

 

M33 (LASER ON)

/7 G65 P9862 B1. T3 S3000

G4

#162000=0

G4

G65 P9862 B2. D2000 I[0.5000/2] E.01 S3000

G4

#162000=0

G4

G65 P9863 B1. T3 H-.010 S3000 (TOOL LENGTH CHECK)

M34 (LASER OFF)

 

 

When I prob my part G54 being center of rotation how will it caculate the distance to the G54.2P1, is this were the macro comes into play?

 

 

Do you have a copy of the manuals for your machine?

You could just write some simple math logic to subtract/add values into your dynamic offset variables.

 

1st axis 2nd axis . . . 16th axis

G54.2P1 #5521 #5522 . . . . . #5536

G54.2P2 #5541 #5542 . . . . . #5556

G54.2P3 #5561 #5562 . . . . . #5576

G54.2P4 #5581 #5582 . . . . . #5596

G54.2P5 #5601 #5602 . . . . . #5616

G54.2P6 #5621 #5622 . . . . . #5636

G54.2P7 #5641 #5642 . . . . . #5656

G54.2P8 #5661 #5662 . . . . . #5676

Link to comment
Share on other sites

Oh, and this little guy helps out the operators @ the machine by using the parts counter to search for sequence #'s... It takes a little bit to get used to, but my operators love it.

 

Make this your very 1st line of the program

 

GOTO#3901(USE PART COUNTER TO SEARCH FOR SEQUENCE NUMBERS)

 

Then put this line immediately after your sequence #

 

#3901 = #4114

 

 

Now all the operator has to do is punch in the sequence # into the part counter to get to that sequence.

Link to comment
Share on other sites
  • 2 weeks later...

We have been playing with the Dynamic offset, here is a sample that Mazak sent us. We understand most of it but having trouble with the [#135*1.].

We are trying to probe a part and have the distance sent into the G54.2P1 from G54 (G54 being center of rotation). Can anybody help us?

 

 

 

( PROBE FOR DYNAMIC COMP OFFSET )

T40 (PROBE)

N100 #24=0. (X POSN WRT G54)

#25=1. (Y POSN WRT G54)

#26=7.3 (Z POSN WRT G54)

#21=7.75 (X DIM OF BLOCK)

#22=5.38 (Y DIM OF BLOCK)

(-------------------------)

N200 M200

G00G91G28Z0

G54 (*** OFFSET AT CENTER OF ROTARY AXES ***)

G90G00A0.C0.

T40M06

N300G00X#24 Y#25 (CENTER OF MATERIAL STOCK ON FIXTURE)

G65P9810 Z[#26+1.] F150. (TOP OF BLOCK + 1.0)

G65P9811Z#26 Q.3

#5523=[#137*1.]-.05 (G54.2P1 Z = MEASURED Z )

#5813=[#137*1.]-.05 (G54.4P1 Z = MEASURED Z )

M01

 

G65P9810 X#24 Y#25 Z[#26+.4] F150.

G65P9812 Z[#26-.3] Y#22 R.5 (BLOCK Y DIMENSION)

#5522=[#136*1.] (G54.2P1 Y = MEASURED Y CENTER )

#5812=[#136*1.] (G54.4P1 Y = MEASURED Y CENTER )

M01

 

G65P9812 Z[#26-.3] X#21 R.5 (BLOCK X DIMENSION)

#5521=[#135*1.] (G54.2P1 X = MEASURED X CENTER )

#5811=[#135*1.] (G54.4P1 X = MEASURED X CENTER )

M01

 

N9000 G00G91G28Z0

G90

M01

(M99)

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