![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
i have a toyoda fh-100 with fanuc controls and no bolt circle g-code option .i understand some of what macro commands are about but don't know where to start with this one.anybody know where i can find an example(besides the manual) or maybe something else?thanks! |
|
#2
| |||
| |||
| 070516-0727 EST USA Can you do this: G54 G52 (to set x=0 and y=0 at the center of the bolt circle) Assume first hole is on the X-axis, bolt circle radius is Rad, and angle between holes is Theta #500 = Rad #501 = Theta in degrees First hole is at #502 = #501 * 0 #100 = #500 cos #502 #101 = #500 sin #502 G0 X #100 Y #101 Do hole Second hole #502 = #501 * 1 #100 = #500 cos #502 #101 = #500 sin #502 G0 X #100 Y #101 Do hole Repeat as many times as needed incrementing the multiplier on #501 each time. All this can be done in a loop. , |
|
#4
| |||
| |||
| 070516-1843 EST USA Here is a possibility: Assume the bolt circle center is at the coordinate system zero. You may have to adjust useage of decimal point. First hole location is defined by the value in #502 for start angle, #500 for the radius, and the above assumption of coordinate system zero. Following this all holes proceed in a counterclockwise direction. Note: by using the integer multipler #504 there is no cumulative position error. #500 = Radius #501 = Number of holes #502 = Angle from X-axis to first hole. + is counterclockwise from X-axis. #503 = Angle between holes #504 = Hole count. A number incremented to identify the hole being processed. #503 = 360./#501 #504 = 0 (initialize hole count to 0) (first hole has an index number of 0) N100 #510 = #502 + [503 * #504] #100 = #500 cos #510 #101 = #500 sin #510 G0 X #100 Y #101 Do hole #504 = #504 + 1. IF [#504 GE #501] GOTO 200 GOTO 100 N200 Done See if I made any logic mistakes. You may need some minor modifications to run on your machine. . Last edited by gar; 05-17-2007 at 10:04 AM. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| RFQ: Aluminum Bolt Pin | warpedmephisto | Employment Opportunity | 13 | 08-07-2007 02:22 PM |
| I Need Help G Coding A Bolt Circle | capitalv | G-Code Programing | 14 | 02-25-2007 03:41 PM |
| bolt hole circle | sanddrag | Employment Opportunity | 5 | 01-23-2007 06:52 AM |
| Cheap Cam Bolt | Jimmy Southern | CNC Wood Router Project Log | 8 | 07-01-2005 05:11 PM |