![Page 1: Calculate new Zero Point on Trunnions with Macro](https://reader036.vdocuments.us/reader036/viewer/2022082818/56812e02550346895d936224/html5/thumbnails/1.jpg)
Calculate new Zero Point on Trunnions with Macro
![Page 2: Calculate new Zero Point on Trunnions with Macro](https://reader036.vdocuments.us/reader036/viewer/2022082818/56812e02550346895d936224/html5/thumbnails/2.jpg)
Programcode
G254 A-30. B60. S54. T59. (X0.) (Y0.) (Z0.)
• G254 G – Function• A-30. A – Axis in Position -30° • B60. B – Axis in Position 60° • S54. Origin Zero Point • T59. Work offset• X0. X Displacement• Y0. Y Displacement• Z0. Z Displacement
![Page 3: Calculate new Zero Point on Trunnions with Macro](https://reader036.vdocuments.us/reader036/viewer/2022082818/56812e02550346895d936224/html5/thumbnails/3.jpg)
Offset – Centerline + Offset G54• G154 P99 Z-zero is centerline of A-axis rotation.
To set G54 Z zero, measure the distance from face of the fixture to centerline of A-axis rotation. To do this, rotate to G154 P99 A+90. and pick-up face of fixture with an edge finder and note the Y-axis position. Rotate to G54 A-90. and pick-up face of fixture again. The difference between the two readings, divided by two, is the distance from face of the fixture to centerline of A-axis rotation.
• Enter the distance from face of the fixture to centerline of A-axis rotation in G154 P99 Z-axis offset. This value will be a negative on Trunnion units.
G54 is the Origin Point on the Part. There can be a Edge or a hole.Set X Y and Z as you do this without Trunnion
![Page 4: Calculate new Zero Point on Trunnions with Macro](https://reader036.vdocuments.us/reader036/viewer/2022082818/56812e02550346895d936224/html5/thumbnails/4.jpg)
Overview
• The Control is reading G254 A-30. B60. S54. T59. • First the Z-Axis travel to G00 G53 Z0 (change this in the
Macro)• The values from Origin Zero Point G54. ( S54) will be
calculate with the Rotation Point ( G154 P99) and with the values in A and B-Axis.
• The calculated values become in the workoffset G59. (T59)
• The control activates position itself the work zero and the A- and B axis newly. (A-30. B60.)
![Page 5: Calculate new Zero Point on Trunnions with Macro](https://reader036.vdocuments.us/reader036/viewer/2022082818/56812e02550346895d936224/html5/thumbnails/5.jpg)
Note
• The Tool Change Position in Z-Axis can change in the Macro G00 G53 Z0. It is the highest Point in Z.
• Check the Trunnion of correct rotation
• Check the Parameter
![Page 6: Calculate new Zero Point on Trunnions with Macro](https://reader036.vdocuments.us/reader036/viewer/2022082818/56812e02550346895d936224/html5/thumbnails/6.jpg)
Demo ProgramO04717 (DATUM 05-02-10 12:19 ) (ERSTELLT MIT MASTERCAM)G00 G17 G40 G94 G80 G90 T4 M06 S8000 M03 G17 G90 G55 M11 M13 G254 A-45. B-180. S55 T59 X-80. Y-80. Z0. M10 M12 G00 X7.5 Y2.121 G00 G43 H04 Z10. G00 Z-0.121 G01 Z-2.121 F1000. G01 X0. F2000. G01 X-80. G01 X-87.5 G00 Z10. M11 M13 G254 A0. B0. S55 T59 X0. Y0. Z0. M10 M12 M30 %
![Page 7: Calculate new Zero Point on Trunnions with Macro](https://reader036.vdocuments.us/reader036/viewer/2022082818/56812e02550346895d936224/html5/thumbnails/7.jpg)