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 04-10-2007, 11:13 AM
 
Join Date: Jun 2003
Location: Graham, Washington
Posts: 13
jakk100 is on a distinguished road
Macro to read machine "power on"

Fanuc control.
Looking for a macro to read the “power on” info from the operators panel.
And a macro to read cut time and auto time from same operators panel.
Yes..it can be done by timing an event and storing that time in a variable.
I thought there might be an easier way. Such as reading parameter #6750 into a variable?
I cant figure how to read parameters?
Thanks.
__________________
Faster is better...
Reply With Quote

  #2   Ban this user!
Old 04-10-2007, 12:16 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

070410-1204 EST USA

jakk100:

I can not help with the addresses in Fanuc.

In HAAS #3020 is the Power on timer (read only). See the HAAS on-line manual.

This can be used as follows:

DPRNT [ #3020[42] Power on time ] (I do not know what format to used because I am home and can not experiment to see how this time display is structutred.)

#1 = #3020

Now use some means to view #1.

If there is some variable that is displayed on the screen, like a counter, and if you can write to that variable, and do not care about its content, then you could copy #3020 (or whatever your address is) to that variable and view it on the screen.

.
Reply With Quote

  #3   Ban this user!
Old 04-11-2007, 10:29 AM
 
Join Date: May 2003
Location: Romeo, MI - USA
Posts: 75
psevin is on a distinguished road

Originally Posted by jakk100 View Post
Fanuc control.
I cant figure how to read parameters?
Thanks.
To the best of my knowledge, there is no way to read parameters into macro variables on a Fanuc control. Timing an event and storing it in a variable may be the easiest and most cost effective method.
__________________
Paul Sevin - Ovation Engineering, Inc.
http://www.ovationengineering.com
Reply With Quote

  #4  
Old 04-11-2007, 10:52 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,539
Al_The_Man is on a distinguished road
Buy me a Beer?

The only reason I can think of wanting to read a Parameter is if you have a program for several machines of the same model and the parameter may be different between them.
Otherwise the parameter value never changes, so If it is for a dedicated machine, just record the value of the parameter and load in a variable.
AFAIK The only other Variables you can read in a macro is the system variables these can be always changing, as the machine runs.
What model Fanuc is this?
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #5   Ban this user!
Old 04-11-2007, 11:04 AM
 
Join Date: Nov 2006
Location: USA
Posts: 364
jetski is on a distinguished road

I once wrote a delayed start warm up program that read the internal clock on a 160I fanuc. It can be done with macro b programing. I still have the program I think. It was used on a high speed grapite machine (Okada). You could fire it from a M115 comand at the end of your program or the last command MDI at night when you left. The Okada had a 20 min warm up cycle it needed to run to warm up the spindle bearings. So I wrote an M code to watch the internal clock and a 6 am it would fire up and only run 3 full times and then shut off till the next day. The tool shop opened at 7:00 am. If the program would help you out I could send it to you.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-11-2007, 11:18 AM
 
Join Date: Jun 2003
Location: Graham, Washington
Posts: 13
jakk100 is on a distinguished road

Fanuc 18-M
Parameter #6750 stores the same info as the power on in the operators panel. I also want parameter #6751, #6753, & #6757. All this info is displayed on the operators panel under settings. Yes, again, I could write a macro to time the events. But that is a lot of work, especially for #6753, accumulated cut time. I am trying to add a little snippet of code(MACRO) to existing machine part programs to output machine events to a PC.
Thanks.
__________________
Faster is better...
Reply With Quote

  #7  
Old 04-11-2007, 11:46 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,539
Al_The_Man is on a distinguished road
Buy me a Beer?

What about system var #3002? 'Period of the Cycle start light on' Could that be used?
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #8   Ban this user!
Old 04-11-2007, 01:47 PM
 
Join Date: May 2003
Location: Romeo, MI - USA
Posts: 75
psevin is on a distinguished road

Originally Posted by Al_The_Man View Post
What about system var #3002? 'Period of the Cycle start light on' Could that be used?
Al.
"System variable 3002 functions as a timer that counts in 1–hour increments
when the cycle start lamp is on. This timer preserves its value even when the power is turned off. When 9544.371767 hours is reached, the value of this timer returns 0"
__________________
Paul Sevin - Ovation Engineering, Inc.
http://www.ovationengineering.com
Reply With Quote

  #9   Ban this user!
Old 04-11-2007, 02:50 PM
 
Join Date: Jun 2003
Location: Graham, Washington
Posts: 13
jakk100 is on a distinguished road

Yes. Thank you for the reply.
Yes #3002 will get the accumulative operation time.
What I need is the Power on time (on operator panel & parameter # 6750)
And the cut time ( cut time is anytime machine is in a G1, G2, G3, G33. Also found on operator panel & parameter # 6753)
Thus the need to read a parameter into a variable so I don’t have to add more macro than necessary for every part program.
Thanks.
__________________
Faster is better...
Reply With Quote

  #10   Ban this user!
Old 04-12-2007, 09:15 AM
 
Join Date: Dec 2006
Location: Indiana
Posts: 84
codyst is on a distinguished road

It's possible but would require a ladder change. You would have to tie an input to your MCR on, tie it to a counter function, move that counter to D-Data, and then write your D-Data back to your Macro variables. On the SW machines I used to install, we would write the D-data value from program memory to Macro variables 989/990, so if you had a 1 in 989 and 2 in 990, when the A table would come into the machining area, it would call program 1, and program 2 when the B table came into the machining area. We also used the counter function that I mentioned to track how long the machine sat ilde waiting on the robot to load. I have some examples at home and will try and get it on here so you can see it.
Reply With Quote

Sponsored Links
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
Tube Bending Machine Capable of 2"x4" Rectangular Tubing morribi Bending, Forging,Extrusion... 9 06-27-2010 10:47 AM
Macro alarm "009 ILLEGAL ADDRESS INPUT" theemudracer Fanuc 7 12-26-2006 09:57 AM
"A" Axis Substitution Macro Programming For Fanuc xleng G-Code Programing 5 12-08-2006 01:52 PM
Questions on building small (18" x 24" x 3") machine bikedude880 DIY-CNC Router Table Machines 4 07-31-2006 09:04 PM
Relocate "mark forums read" pminmo Suggestions for the CNCzone.com site. 1 02-18-2006 12:27 PM




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