CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > G-Code Programing


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-07-2010, 11:11 PM
 
Join Date: Jan 2007
Location: USA
Posts: 36
Jake E. is on a distinguished road
Exclamation Maatsura MC-600V-DC with Yasnac MX3

We have 4 of these machines in house and trying to wrk on an interchangable system between each machine.

I have found the code for setting the G54 - G59 (J1) offsets (G10 Q2 P1-5 X# Y# Z#) but what is the code for setting offsets J2-J4?

Also how can I write the Tool Offsets in as we use a presetter from Elbo Controlli / Lyndex Nikken for setting all of our tools.

Any help would be appreciated.

Jake Enger
Setup Specialist
MaTech, Inc.
Salisbury, MD 21801
410-543-1627
Reply With Quote

  #2   Ban this user!
Old 01-08-2010, 01:09 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

Add a J2 - J5 to the G10 block:

G10 Q2 P1 X# Y# Z# (SET G54 J1)
G10 Q2 P1 J2 X# Y# Z# (SET G54 J2)
G10 Q2 P4 J2 X# Y# Z# (SET G57 J2)
G10 Q2 P6 J5 X# Y# Z# (SET G59 J5)

I would suggest you punch out the offsets to your PC to be sure of the correct format (the book shows spaces where you wouldn't expect spaces).

%
H01 X -14.2454
H02 X - 10.9335
D21 X 0.5
%
Reply With Quote

  #3   Ban this user!
Old 01-08-2010, 01:43 AM
 
Join Date: Jan 2007
Location: USA
Posts: 36
Jake E. is on a distinguished road

Originally Posted by dcoupar View Post
Add a J2 - J5 to the G10 block:

G10 Q2 P1 X# Y# Z# (SET G54 J1)
G10 Q2 P1 J2 X# Y# Z# (SET G54 J2)
G10 Q2 P4 J2 X# Y# Z# (SET G57 J2)
G10 Q2 P6 J5 X# Y# Z# (SET G59 J5)

I would suggest you punch out the offsets to your PC to be sure of the correct format (the book shows spaces where you wouldn't expect spaces).

%
H01 X -14.2454
H02 X - 10.9335
D21 X 0.5
%
The work shift callouts work, but hte tool length callout just moves the z axis. is there a way to write it into the offset page?

Also when I output the offsets, I have the following:

%
H01 X 4.0780
H02 X 3.7686
H03 X 3.4360
%

Last edited by Jake E.; 01-08-2010 at 02:03 AM.
Reply With Quote

  #4   Ban this user!
Old 01-08-2010, 08:31 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

Are you in the OFS function when you load the offsets?

Select EDIT mode
Press RESET
Press OFS
Press IN
Send the offset file from the PC.

Also, according to the manual you can use H or D when inputting offsets. I suppose it only punches H.
Reply With Quote

  #5   Ban this user!
Old 01-11-2010, 06:50 PM
 
Join Date: Jan 2007
Location: USA
Posts: 36
Jake E. is on a distinguished road

Originally Posted by dcoupar View Post
Are you in the OFS function when you load the offsets?

Select EDIT mode
Press RESET
Press OFS
Press IN
Send the offset file from the PC.

Also, according to the manual you can use H or D when inputting offsets. I suppose it only punches H.

I am trying to do it as a macro, similar to the workshifts. This was originally done so we can run a check program to ensure proper tool length is set so we dont have crashes. Many of our tool holders come within .020" of the fixture so we limit the length to +/-.005 to avoid collisions.

Below is an example of what we do with the Fanuc programming.


O3776(RAIL.NC)
(PALLET B)
G90G10L2P1X-13.1640Y-7.6980Z-17.6116(STAGE 1 G54)
G90G10L2P2X-22.4000Y-5.0460Z-15.8410(STAGE 2 G55)
G90G10L2P3X-19.2385Y-5.0450Z-11.1346(STAGE 3 G56)
G90G10L2P4X-14.3990Y-5.0460Z-14.1550(STAGE 4 G57)
G90G10L2P5X-13.2815Y-10.9312Z-17.5455(STAGE 5 G58)
G90G10L2P6X-15.7710Y-14.4484Z-16.3856(STAGE 6 G59)
M99




O3777(RAIL.NC)
G90
(TOOL LENGTHS)
G10L1P1R5.9210
G10L1P2R6.6841
G10L1P3R6.7853
G10L1P4R4.0670
G10L1P5R7.3700
G10L1P6R5.3505
G10L1P7R5.2850
M99


O8775(RAIL.NC)
(TOOL LENGTH COMPARISON MACRO PROGRAM)
IF[ABS[#2001-5.9207]GT.005]GOTO1001
IF[ABS[#2002-6.6834]GT.005]GOTO1002
IF[ABS[#2003-6.7855]GT.005]GOTO1003
IF[ABS[#2004-4.0670]GT.005]GOTO1004
IF[ABS[#2005-7.3746]GT.005]GOTO1005
IF[ABS[#2006-5.3490]GT.005]GOTO1006
IF[ABS[#2007-5.2878]GT.005]GOTO1007

GOTO9999

N1001#3000=101(H1 OUT OF RANGE)
N1002#3000=102(H2 OUT OF RANGE)
N1003#3000=103(H3 OUT OF RANGE)
N1004#3000=104(H4 OUT OF RANGE)
N1005#3000=105(H5 OUT OF RANGE)
N1006#3000=106(H6 OUT OF RANGE)
N1007#3000=107(H7 OUT OF RANGE)
N9999

M99





O8777(RAIL.NC)
(INSP PROG FOR PALLET B)

(WORK SHIFTS X)
IF[ABS[#5221+13.1640]GT.010]GOTO1001(X G54)
IF[ABS[#5241+22.4000]GT.010]GOTO1002(X G55)
IF[ABS[#5261+19.2370]GT.010]GOTO1003(X G56)
IF[ABS[#5281+14.4010]GT.010]GOTO1004(X G57)
IF[ABS[#5301+13.2840]GT.010]GOTO1005(X G58)
IF[ABS[#5321+15.7710]GT.010]GOTO1006(X G59)


(WORK SHIFTS Y)
IF[ABS[#5222+7.6980]GT0.01]GOTO1007(Y G54)
IF[ABS[#5242+5.0460]GT0.01]GOTO1008(Y G55)
IF[ABS[#5262+5.0450]GT0.01]GOTO1009(Y G56)
IF[ABS[#5282+5.0468]GT0.01]GOTO1010(Y G57)
IF[ABS[#5302+10.9340]GT0.01]GOTO1011(Y G58)
IF[ABS[#5322+14.4460]GT0.01]GOTO1012(Y G59)


(WORK SHIFTS Z)
IF[ABS[#5223+17.6116]GT0.01]GOTO1013(Z G54)
IF[ABS[#5243+15.8410]GT.010]GOTO1014(Z G55)
IF[ABS[#5263+11.1326]GT0.01]GOTO1015(Z G56)
IF[ABS[#5283+14.1550]GT.010]GOTO1016(Z G57)
IF[ABS[#5303+17.5451]GT0.01]GOTO1017(Z G58)
IF[ABS[#5323+16.3856]GT.010]GOTO1018(Z G59)
GOTO9999

(PALLET OUT OF RANGE X)
N1001#3000=120(X G54 OUT OF RANGE)
N1002#3000=120(X G55 OUT OF RANGE)
N1003#3000=120(X G56 OUT OF RANGE)
N1004#3000=120(X G57 OUT OF RANGE)
N1005#3000=120(X G58 OUT OF RANGE)
N1006#3000=120(X G59 OUT OF RANGE)


( OUT OF RANGE Y)
N1007#3000=120(Y G54 OUT OF RANGE)
N1008#3000=120(Y G55 OUT OF RANGE)
N1009#3000=120(Y G56 OUT OF RANGE)
N1010#3000=120(Y G57 OUT OF RANGE)
N1011#3000=120(Y G58 OUT OF RANGE)
N1012#3000=120(Y G59 OUT OF RANGE)

( OUT OF RANGE Z)
N1013#3000=120(Z G54 OUT OF RANGE)
N1014#3000=120(Z G55 OUT OF RANGE)
N1015#3000=120(Z G56 OUT OF RANGE)
N1016#3000=120(Z G57 OUT OF RANGE)
N1017#3000=120(Z G58 OUT OF RANGE)
N1018#3000=120(Z G59 OUT OF RANGE)

N9999

M99

Last edited by Jake E.; 01-11-2010 at 06:50 PM. Reason: typo
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-11-2010, 08:06 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

G90 G10 P# R#

Sets offset #P (1-99) to value R
Reply With Quote

  #7   Ban this user!
Old 01-11-2010, 08:36 PM
 
Join Date: Jan 2007
Location: USA
Posts: 36
Jake E. is on a distinguished road

Originally Posted by dcoupar View Post
G90 G10 P# R#

Sets offset #P (1-99) to value R
Thanks, will try that tomorrow.
Reply With Quote

  #8   Ban this user!
Old 01-13-2010, 02:59 AM
 
Join Date: Jan 2007
Location: USA
Posts: 36
Jake E. is on a distinguished road

OK
The different gcodes are working so we will be able to write the offsets in from the program for both the tools and the workshifts. Thanks very much for your help dcoupar.

Next problem is trying to figure out the GOTO command ( keep gettting an error when using GOTO, looking for an address) and the parameters for the tool lengths to use for our inspection macros (see previous post).
Reply With Quote

  #9   Ban this user!
Old 01-13-2010, 01:03 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Originally Posted by Jake E. View Post
Next problem is trying to figure out the GOTO command ( keep gettting an error when using GOTO, looking for an address) and the parameters for the tool lengths to use for our inspection macros (see previous post).
What alarm are you getting and at what specifc GOTO statment is it alarming out at?

Stevo
Reply With Quote

  #10   Ban this user!
Old 01-13-2010, 08:31 PM
 
Join Date: Jan 2007
Location: USA
Posts: 36
Jake E. is on a distinguished road

Anytime I write a GOTO command, when I enter it the control seperates the G from GOTO and an alarm comes up as stating "invalid address".
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-13-2010, 10:46 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

Isn't there an alarm number?
Reply With Quote

  #12   Ban this user!
Old 01-13-2010, 10:57 PM
 
Join Date: Jan 2007
Location: USA
Posts: 36
Jake E. is on a distinguished road

yeah, I will get it in a few, working on a fixture program at the moment for a Makino
Reply With Quote

Reply

Tags
mx-3, mx3, tool offset, yasnac




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yasnac mx1 vs. mx5 Brian FRF General Metal Working Machines 0 06-09-2009 11:32 PM
Yasnac help cncwhiz General Metal Working Machines 12 03-25-2009 06:48 PM
Need Help!- how to dnc a yasnac mx1 matosjulio G-Code Programing 1 02-06-2009 03:26 PM
Need Help!- Yasnac LX3 inthedark General Metalwork Discussion 2 08-07-2008 05:03 AM
Yasnac I80 Gitanes General CNC (Mill and Lathe) Control Software (NC) 0 11-23-2005 11:00 PM




All times are GMT -5. The time now is 12:26 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361