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


Fanuc Discuss Fanuc controllers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 12-22-2006, 03:42 PM
 
Join Date: Nov 2005
Location: Only the USA
Posts: 213
theemudracer is on a distinguished road
Macro alarm "009 ILLEGAL ADDRESS INPUT"

First I want to thank everyone who helped me get this far but apparently I am missing something. I am trying to engrave on the O.D. of a piece of 2." round stock on my Lathe.

Have a look at the macro prg. below and that part prg. and tell me if you guys see whats wrong.

It gives me a "009 ILLEGAL ADDRESS INPUT" ALARM.

I am trying to take the Y values in my prg and convert them to C-Axis moves in degress with the macro.


Macro prg below....
%
O9100(2.00 DIA MACRO CALL)

G01C[#25*.0174]

M99
%





Part prg below.....


%
O1569(OVAL)
N2#501=2.00
N3#502=[501+.1]
N4G10L2P01X0.Z-23.4684
N5G10L2P02X0.Z-3.0123
N6G10L2P03X0.Z-20.4684
N7G10L2P04X0.Z-12.1784
N8G10L2P05X0.Z-5.3333
N9G11
N10/2M98P9998
N12M118
N13G28U0
N14G28B0
N16G99
N17G54M54
N18
N19(CHAMFER)
N20G50G99
N21S3000
N22T1010G54
N23G0G96S1000M3
N24Z0M8
N25X2.1
N26G1X-.07F.006
N27G0W.05X1.7069
N28G42G1Z0.F.006
N29G3X1.7634Z-.0117R.04
N30G1X1.9766Z-.1183
N31G3X2.0Z-.1466R.04
N32G1G40X2.1
N33G28U0M9
N34G97
M05
M01



T1213
G98
G54
G0X0.Z.1
M69
G04P0500
G01Z4.0F500.
M68
G4P0500
G0W.1
G28U0.




G98
N39T0505(BALL END MILL)
N40M43
N41G56G0C0.
N42G97S4000M13
N43G0Z0.
G0X2.1
G01X2.F20.


G66P9100Z.0002Y.0117 This is where it alarms out....


N56Z.0007Y.0233
N57Z.0017Y.0349
N58Z.003Y.0466
N59Z.0046Y.0582
N60Z.0067Y.0698
N61Z.0091Y.0814
N62Z.0118Y.0929
N63Z.015Y.1044
N64Z.0185Y.1159
N65Z.0223Y.1274
N66Z.0266Y.1388
N67Z.0312Y.1502
N68Z.0361Y.1615
N69Z.0414Y.1728
N70Z.0471Y.184
N71Z.0531Y.1952
N72Z.0595Y.2063

The prg goes on for another 1600 lines....

thanks Jon Thee
Reply With Quote

  #2   Ban this user!
Old 12-22-2006, 09:18 PM
CNCRim's Avatar  
Join Date: Feb 2006
Location: usa
Posts: 947
CNCRim is on a distinguished road

Originally Posted by theemudracer View Post
G66P9100Z.0002Y.0117 This is where it alarms out....

I don't think you can use the letters that use as machine command address like G O Z Y X H few others.
__________________
The best way to learn is trial error.
Reply With Quote

  #3   Ban this user!
Old 12-22-2006, 09:25 PM
CBNDude's Avatar  
Join Date: Nov 2004
Location: U.S.
Posts: 56
CBNDude is on a distinguished road

Have you tried it this way?

%
O9100(2.00 DIA MACRO CALL)
#503=[#25*.0174]
G01C#503
M99
%
Reply With Quote

  #4   Ban this user!
Old 12-22-2006, 09:32 PM
CBNDude's Avatar  
Join Date: Nov 2004
Location: U.S.
Posts: 56
CBNDude is on a distinguished road

Missed read program to start so skip me first post..


Question- Are wanting the Z and Y to feed at same time as C?
If so The Z and Y move needs to be on same line as C.

G01C[#25*.0174]Z.0002Y.0117
Reply With Quote

  #5   Ban this user!
Old 12-22-2006, 10:19 PM
 
Join Date: Nov 2005
Location: Only the USA
Posts: 213
theemudracer is on a distinguished road

Originally Posted by CBNDude View Post
Missed read program to start so skip me first post..


Question- Are wanting the Z and Y to feed at same time as C?
If so The Z and Y move needs to be on same line as C.

G01C[#25*.0174]Z.0002Y.0117

My lathe only has Z, X and C with a sub spindle B.

I am wanting to take the Y axis moves in the prg and feed C axis in degress in its place.

thanks Jon
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-23-2006, 09:53 AM
 
Join Date: Sep 2005
Location: USA
Age: 60
Posts: 755
Dan Fritz is on a distinguished road

The Y address may not be permitted on a lathe. For the purpose of calling a macro, you can use any other address that permits decimal points, like "A".

Also, CBNDude is right. If you want the Z axis to move also, you've got to make it move in the macro. The G66 macro call will just pass the numbers to the macro, and it won't move the axes at all. Try this to call the macro:

G66P9100Z.0002A.0117

Then, inside macro 9100, move both the Z and the C axes with a single G01 command, like so:

G01C[#1*.0174]Z#26

There should be a chart in the front of your operator's manual that will tell you the legal addresses, and it will also tell you which addresses can use decimal point formatted numbers and which ones are simple integers. For example, an address X, Y, Z, U, V, U, or A, B, or C should accept decimals. The addresses M, T, S, etc. are integers. Your lathe may not permit the addresses Y, B, or V because this axis doesn't exist on your machine.

Just a guess ...
Reply With Quote

  #7   Ban this user!
Old 12-23-2006, 10:31 AM
 
Join Date: Nov 2005
Location: Only the USA
Posts: 213
theemudracer is on a distinguished road

ok that makes sense now.

I will report back after christmas.

thanks again
Jon
Reply With Quote

  #8   Ban this user!
Old 12-26-2006, 09:57 AM
 
Join Date: May 2006
Location: Sweden
Posts: 265
M-man is on a distinguished road

I dont think it is possible to do this on a fanuc 18IT.. Mabe it is possible to scale one axis (c-axis) (mabe scale it in the text producing prg).and change the Y to C in a simple text editor..
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:34 PM.





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