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 > Parametric Programing


Parametric Programing (custom macro b, fadal macro, okuma user task)


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-17-2011, 09:18 AM
 
Join Date: Jan 2011
Location: USA
Posts: 14
springer82 is on a distinguished road
H#107 ???

Hi Everyone,

I am doing a program that will pick one of 5 drills and reamers. I am almost done. Only one more problem to deal with. I have set my program to pick the right drill and reamer. When it comes to the TLO I am having a problem.
We set our tools off a 2" touch off block from the table of the machine. All tool lengths are "negative". In normal G code programming this is not a problem. Now using H#107 as a call it is a problem. I have used G43 and G44 with no luck. ??????? I get a #006 alarm. "Illegal use of negative sign". Sign "." input error,, sign "-" was input after an address with which it cannot be used. Or two or more "-" signs were input. I set #107 from #10003. I see when it goes into #107 it has a few "0" in front of the number (#107=-0013.5286). Can this be a problem?? I do not understand why there is a problem setting the H. Can some one put me on the right path!! Thanks for your time.
Reply With Quote

  #2   Ban this user!
Old 03-17-2011, 11:40 AM
beege's Avatar  
Join Date: Feb 2008
Location: USA
Posts: 518
beege is on a distinguished road

Let's see,

If you program G43 H1, you get an offset from offset #1 in the table, which will affect your tool length by a negative value. If you program G43 H-1, the control doesn't know what to do with that negative number, because -1 isn't a spot in the table. You don't program the H with a direct numerical value. If needed to use the offset value from the table, you'd use it directly, without the G43 or G44, as in: Z[0+#107]. Any clearer?
Reply With Quote

  #3   Ban this user!
Old 03-17-2011, 07:50 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

What model control are you using this on?

Having a few 0 in front of the number should not matter. What matters is the placement of the . decimal.

Any chance you could post the code where the error is happening?

It sounds like Beege may be on the right path to your problem but without seeing the code we can only speculate.

Also what is alarm #006? Is there any prefix to the alarm like PS, EX, etc?

Stevo
Reply With Quote

  #4   Ban this user!
Old 03-17-2011, 08:46 PM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

I'm with Beege and Steve seperately... Got part of the problem idea.....
Here's what I see....


Your problem is this:

If #107 = -13.5286 and you use this:
G43H#107

You just told the machine to use height offset number "-13.5286". If you can find that offset number (tool number, pocket number, etc) then you would be good but you're not going to find it.

G43 reads from the offset tables meaning a variable string (H in this case) needs to be a valid number you have on the tool offset table which is a whole number (1, 2, 3, 25, etc). In otherwords, "H#107 needs to be able to look up a number on the offset page (#107=1, #107=2, etc...).

You do have a tool offset page right? (If you're pulling from #10003 then you have at least 3 tool offsets!) You can skip all this just simply by putting your tool offsets right to the offset page and then using straight H calls like G43H1, G43H10, G43H6.......
__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

  #5   Ban this user!
Old 03-18-2011, 05:20 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Therefore, have -13.5286 in H-geometry column of row number 3 (for example), and command G43 H03.

#10000 and #11000 series can be either for geometry or for wear offset, depending on parameter 6000#3.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-18-2011, 08:36 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Wow…ok it is plain as day now. You are correct Psycho that is the problem. Can’t believe that I missed that last night

Didn’t you know that all the new machines are coming standard with 13.5286 in the tool offset tables?

Stevo
Reply With Quote

  #7   Ban this user!
Old 03-18-2011, 12:52 PM
 
Join Date: Jan 2011
Location: USA
Posts: 14
springer82 is on a distinguished road

Hi Everyone,
I would like to start by telling you that H3 and #10003 hold the same numbers. That would be "-13.5286". As for controls I have a Fanuc 16i-M on a Kitty with 30 pods. Beege,,, I had hopes for the arithmetic way you posted. SORRY.. all I get is alarm #006. I tried many different way to do it too. Still no good. I posted the alarm on my first post. Here it is again: alarm #006= "Illegal use of negative sign". Sign "." input error,, sign "-" was input after an address with which it cannot be used. Or two or more "-" signs were input". That is straight out of the manual. Here is the code from the drill.

(#100=27 FOR SMALL POSTS)
(#100=28 FOR LARGE POSTS)

(#101=1 FOR .0952 I/D)
(#101=2 FOR .1157 I/D)
(#101=3 FOR .1383 I/D)
(#101=4 FOR .1540 I/D)
(#101=5 FOR .1792 I/D)


#100=28 (POST SIZE)
#101=5 (I/D SIZE)

(TOOL LENGTH FOR DRILLS)
N5IF[#101NE1.]GOTO6
#107=#10003
GOTO20
N6IF[#101NE2.]GOTO7
#107=#10011
GOTO20
N7IF[#101NE3.]GOTO8
#107=#10012
GOTO20
N8IF[#101NE4.]GOTO9
#107=#10013
GOTO20
N9IF[#101NE5.]GOTO9900
#107=#10014

( OPERATION 3 HOLES )
( RGH DRILL FOR REAMER)
N300
G0G17G40G49G98G90G80
S1800M3
G90G54G0X-1.55Y-.19
T4M106
G43Z.35H#107M8
Z.1

Now,, here is my question. Because H3 and #10003 are the same,, and they are both "-" what is the problem. I look at the tool page like a spreed sheet that the machine company give us as easy access to the variable page. Yes you can change the numbers on the tool page but they are stored in a separate variable. For me it is H3 and #10003. I might be way out in left field. ??? That is why I am here. In standard G code programming I use "-" numbers all day every day. The tool page is ALL "-" numbers. That is the way it is. When I program "G43 Z.1 H3" it is calling a "-" number. When I program "G43 Z.1 H#107" it is calling a "-" number. The same number. I have tried H#107, H[#107], H[0+#107] and, and,,,,, In macro programming this should not be a problem. I'm sure it is a simple fix that is right in front of me. I just can not see it. I still think part of the problem is in the way #10003 sets itself as -0013.5286. I know from reading sinha's book sometimes you have to change a parameter to get things to work???? Maybe?????? Once again,,, Thanks for all your help!!! ;-)
Reply With Quote

  #8   Ban this user!
Old 03-18-2011, 01:06 PM
chucker's Avatar  
Join Date: Nov 2007
Location: USA
Posts: 133
chucker is on a distinguished road

not sure if I grasp what your doing but heres a shot at it. call your tool change and your H some thing like I have it and leave it out in the lower part of your program




(TOOL LENGTH FOR DRILLS)
N5IF[#101NE1.]GOTO6
T1M6 (ADD TOOL CHANGE)
H1 (Delete the #107=#10003)
GOTO20
N6IF[#101NE2.]GOTO7
T2M6
H2
GOTO20
N7IF[#101NE3.]GOTO8
T3M6
H3
GOTO20
N8IF[#101NE4.]GOTO9
T4M6
H4
GOTO20
N9IF[#101NE5.]GOTO9900


( OPERATION 3 HOLES )
( RGH DRILL FOR REAMER)
N20
G0G17G40G49G98G90G80
S1800M3
G90G54G0X-1.55Y-.19
G43Z.35M8 (LEAVE OUT THE H)
Z.1
Reply With Quote

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

Yes it is a simple problem right in front of you. As Psycho has already stated there is a difference between what you are setting.

When you use G43H3 it is “looking” for a value in the table under tool 3, it is not setting G43H-0013.5286. It does not care what that value is. If you were to program G43H7 it is “looking” for the value under tool 7.

So when you program G43H#107 it is actually G43H-0013.5286 and it is looking for tool number -0013.5286 which is “not” in your tool table.

You can only use a value in the H() that is in your tool table ex 1-? however many tools you have. If you need to offset by the value of tool 1 you need to program H1. If you want to offset by the value in tool 10 you need to program H10.

Stevo
Reply With Quote

  #10   Ban this user!
Old 03-18-2011, 02:06 PM
 
Join Date: Jan 2011
Location: USA
Posts: 14
springer82 is on a distinguished road

Originally Posted by stevo1 View Post
Yes it is a simple problem right in front of you. As Psycho has already stated there is a difference between what you are setting.

So when you program G43H#107 it is actually G43H-0013.5286 and it is looking for tool number -0013.5286 which is “not” in your tool table.

Stevo
This answer sounds more reasonable. I still think that G43H#7 is the same as G43H3. They are both -13.5286. BUT,,, if in fact it is looking for tool number -13.5286,,, then it is a lost cause. If the "H" designation starts more then just calling up a number then I need to find a different way to do this.
Thanks for your help. And rewording.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-18-2011, 02:41 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

For the sake of having to reread, what exactly are you trying to do?

I understand the philosophy of what you are trying to do but not the reasoning behind it. I do the same thing in all of my tool change macro programs. I use G43H#20. This ensures that I am using the current tool that is in the spindle.

I think you are looking at this too much. When G43 is used it needs to know what offset value to grab. So you have to tell it where to look for the offset value. If you tell it H3 it is going to look at the value in tool 3 offset table it is not setting H=-0013.5286.

So with all of that said if you put the proper offset value for tool 3 in the offset table as you have -0013.5286 and then program G43H3 your offset is active and you are good to go. If you are trying to use a variable to accomplish this then you have to set the variable to 3 not to the value of what is in tool 3. So #107=3. Mod your program like so.

(TOOL LENGTH FOR DRILLS)
N5IF[#101NE1.]GOTO6
#107=3
GOTO20
N6IF[#101NE2.]GOTO7
#107=11
GOTO20
N7IF[#101NE3.]GOTO8
#107=12
GOTO20
N8IF[#101NE4.]GOTO9
#107=13
GOTO20
N9IF[#101NE5.]GOTO9900
#107=14

I hope this helps.
Forget answering my first question as I now see what you are trying to do.

Stevo
Reply With Quote

  #12   Ban this user!
Old 03-18-2011, 06:37 PM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

I still think that G43H#7 is the same as G43H3. They are both -13.5286.
No, they are not.

Bottomline, your thought process is saying this:
G43 H-13.5286

That is not a valid command
__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

Reply




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





All times are GMT -5. The time now is 01:04 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