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 01-21-2007, 08:49 AM
 
Join Date: Sep 2005
Location: USA
Posts: 221
REVCAM_Bob is on a distinguished road
Set parameter from program....?

In our wire machine there is a parameter number 15201 , (this is an 18i ontrol
on a fanuc wire edm).

The parameter controls the reverse alarm distance. i.e. if the wire shorts out
the machine will attempt to move backwards to clear the short and then start
cutting again. If it moves beyond the distance specified in this parameter,
the machine will alarm out..

I need to be able to change the parameter from within a program.

Does anyone know how to do this?

Thanks again, you guys are great!
Reply With Quote

  #2   Ban this user!
Old 01-21-2007, 09:52 AM
 
Join Date: Sep 2005
Location: USA
Posts: 221
REVCAM_Bob is on a distinguished road
Maybe just found g10 parameter change statement..

This looks like a pretty good site for some variable... I mean valuable tips!!

allows parameter change from within a program...


http://www.machinetoolhelp.com/Appli...statement.html
Reply With Quote

  #3   Ban this user!
Old 01-21-2007, 01:01 PM
 
Join Date: Sep 2005
Location: USA
Posts: 221
REVCAM_Bob is on a distinguished road
Nope it did not work.....

the above just errored out G10L50 stuff.....

Any one have any other ideas how to set parameter values from within a program?
Reply With Quote

  #4   Ban this user!
Old 01-21-2007, 01:23 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

Bob,

Perhaps if you posted what your program looks like, and the alarm number?

According to the manual I have, it appears as if this should work:

G10L50
N15201 R1000
G11

Dave
Reply With Quote

  #5   Ban this user!
Old 01-21-2007, 01:35 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

070121-1427 EST USA

REVCAM Bob:

On a HAAS machine, these are similar to Fanuc, many parameters can be directly changed thru an associated #number variable. In HAAS this requires MACROS.

If your 15201 is actually the numeric part of a #number address, then you could do
#15201 = 2.345 or what ever
and assuming it can be changed at any time.

If not there may be some other #number address associated with this parameter.

In a few cases in HAAS changing a variable does not take immeadiate effect.

.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-21-2007, 02:48 PM
 
Join Date: Sep 2005
Location: USA
Posts: 221
REVCAM_Bob is on a distinguished road
here is actual code tried....

I tried all of the following:

G10L50
N15201 R30000
G11
==> 003 Alarm: Value exceeding maximum number of character was detected.


;then
G10L50
N15201 R00030000
G11
==> 003 Alarm: Value exceeding maximum number of character was detected.


;then
G10L50
N15201 R00030000
==> 003 Alarm: Value exceeding maximum number of character was detected.



;then
G10L50
==> 110 Alarm: Absolute value of fixed point representation exceeds allowable range.



;then
N15201 R00030000
==> 003 Alarm: Value exceeding maximum number of character was detected.


Maybe it thinks it is a line number.... ??

%
N1 O1(9 MINUTES)
N2 (R1TAB1S2S)
N3 M31 (MACHINING TIMER RESET)
N4 M15 P0 (VERTICAL CUTTING)
N5 G90 (ABSOLUTE POSITIONING)
N6 G10 P1 B0 (DO NOT SKIP LINE /1)
N7 G10 P2 B0 (DO NOT SKIP LINE /2)
N8 G10 P3 B1 (SKIP LINE /3)
N9 G10 P4 B1 (SKIP LINE /4)

N10 M45
N11 G53 Z-1.0
N12 G53 X-10.85974 Y-14.40714 (PALLET 12)
N13 G93 X0 Y0
N14 G92 X0 Y0

N15 (EDM3 A2/D2 1.500 123STRAIGHT)
N16 G10 P1 R0.00782 (REDUCED 0.0002)
N17 G10 P2 R0.00547
N18 G10 P3 R0.00515
N19 G10 P10 R0.00588

G10 L50
N15201R00030000
G11


N20 G10P1(A2/D2 1.500 123STRAIGHT)K1X11Y4Z31U6V140W23I13J6A130C10E13Q0L165
N21 G11P1Y12X1Z1U500V3W2
N22 G10P2(A2/D2 1.500 123STRAIGHT)K2X11Y6Z6U2V90W64I2J0A170C13E6Q0L362
N23 G11P2Y12X1Z1U1000V1W2
N24 G10P3(A2/D2 1.500 123STRAIGHT)K3X12Y8Z0U2V80W30I0J0A170C13E4Q1L441
N25 G11P3Y3X1Z1U1000V0W2
N26 G10P20(REDUCED FLOW)K1X11Y4Z31U6V140W23I13J6A130C10E4Q0L165
N27 G11P20Y12X1Z1U500V3W2
N28 G10 P9998 R0.0000 (CLEARANCE)
N29 #101=#5023
N30 #103=#5024
N31 #102=#101+0.00000
N32 #104=#103+0.00000

etc....................
Reply With Quote

  #7   Ban this user!
Old 01-21-2007, 02:50 PM
 
Join Date: Sep 2005
Location: USA
Posts: 221
REVCAM_Bob is on a distinguished road

I tried #15201=5000 and it also caused an alarm ;(
Reply With Quote

  #8   Ban this user!
Old 01-21-2007, 03:13 PM
 
Join Date: Feb 2006
Location: United States
Posts: 273
dpuch is on a distinguished road

First find out what the current value is in N15201 then try changing it by -1 to see if it works.
With fanuc macros enabled you can MDI
#15201=#15201-1;

Otherwise something like what you tried earlier, but try a smaller number...
G10L50
N15201 R30
G11

The error ==> 003 Alarm: Value exceeding maximum number of character was detected.
looks like your just trying to put too large a number in. You would have to check the manual for the max value allowed.

Dale
Reply With Quote

  #9   Ban this user!
Old 01-21-2007, 10:07 PM
 
Join Date: Sep 2005
Location: USA
Age: 60
Posts: 755
Dan Fritz is on a distinguished road

I've never heard of a method for changing parameters from a program on a Fanuc. If there is such a feature, it's not documented.
Reply With Quote

  #10   Ban this user!
Old 01-21-2007, 10:48 PM
 
Join Date: Feb 2006
Location: United States
Posts: 273
dpuch is on a distinguished road

Changing variables is well documented under custom macros.
Note the system variables 1000+

See the page from the fanuc 16i manual attached.
Attached Thumbnails
Click image for larger version

Name:	macrovariables.jpg‎
Views:	111
Size:	127.3 KB
ID:	30102  
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-22-2007, 01:29 AM
 
Join Date: Dec 2006
Location: Indiana
Posts: 84
codyst is on a distinguished road

If the parameter number you are changing controls more than one axis, you have to specify the axis number you want to change.

G10L50 (programable parameter entry ON)
N15201 P Axis number R setting value (1=X, 2=Y, 3=Z...etc)
G11 (programmable paremeter entry OFF)

Also, some values can not be changed with a G10 statement due to the way the software controls that action. If you change it from the parameter screen and it throws an alarm for power down, you obviously won't be able to change it in cycle. If you are putting a decimal point in the setting value, it won't like it either.

I've never heard of a method for changing parameters from a program on a Fanuc. If there is such a feature, it's not documented.
It's documented, just not very well, as it's not recommended.

Last edited by codyst; 01-22-2007 at 06:05 AM. Reason: Spelling
Reply With Quote

  #12   Ban this user!
Old 01-22-2007, 05:12 AM
 
Join Date: Sep 2005
Location: USA
Age: 60
Posts: 755
Dan Fritz is on a distinguished road

codyst: Thanks for the tip. I stand corrected.
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
0TC parameter for more memory? jani Fanuc 32 01-16-2010 04:44 PM
Rapid to (# set by Parameter) What's yours? Scott_bob G-Code Programing 8 07-13-2009 07:05 AM
parameter list Drye-123 Fanuc 4 06-16-2008 11:56 PM
L50 parameter write Bluesman General CNC (Mill and Lathe) Control Software (NC) 0 02-09-2006 05:49 AM
Anyone got any basic examples of a program using a subroutine/program? Darc CamSoft Products 11 10-08-2005 11:45 PM




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