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 08-20-2010, 07:02 AM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road
Another insane request

Hi all,

Have been fiddling with the timer/clock macros to monitor efficiency (lack of).

I know there are system parameters that store cycle time/cutting time but as far as I am aware these cannot be read/manipulated at the control via macro programming - so I have (eventually) got to grips with custom macros #3001-#3002, #3011-#3012 and its spewing out the info I want.

Wasn't until I'd got it sorted that I realised an issue - an M00 or an M01 halts the program, but timer #3002 is still ticking over as the green button light (STL) remains on. This is not what I want, as the machine may stop over lunch time, for instance, adding more cycle time when in fact nothing is happening.

Is there any way to alter the behaviour of the control via system parameters or maybe a macro pgm at an M0/M1 to get around this? Some sort of 'one shot single block' command or 'programmable feed hold' to cut the cycle signal?


Cheers,

DP
Reply With Quote

  #2   Ban this user!
Old 08-20-2010, 01:08 PM
samu's Avatar  
Join Date: Feb 2007
Location: quebec
Posts: 216
samu is on a distinguished road

Strange that the green light remains on when M0 or M01 or feed hold is commanded!

Suppose that the following macro is called By M0:

#1=#3002
M0
#3002=#1
M99

After the pause, #3002 is set to it's value before the pause. It should work
Reply With Quote

  #3   Ban this user!
Old 08-21-2010, 12:47 AM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road
More ridiculous schemes...

Yeah the big green aircraft beacon at the top of the pole turns off, but #3002 isn't watching that, its watching the cycle start button, which is only switched off when cycle 'state' is altered by reset, single block or feed hold. This is also the case with the system parameter cycle timer, yes it seems odd that M0/M1 doesn't stop these timers...

I was thinking about a 'non-physical' way to get the same effect as 'feed hold'/single block mode -
- but the more I think about it, the more the assigned macro to measure the pause seems like the better option.

I will try a slightly different format, the macro will simply store the timer value and immediately return to main program. This will mean that the main program will always be displayed and guard against reset before time capture.

Our 'running job' program format always calls a standard macro that sets up our pallet/offsets etc at every restart sequence number, so I'll get this one to reset the timer to the saved value.

Doing it this way should also help stop the actual cycle times being polluted by any manual operation or MDI commands (I can't remember ever using M0/M1 in MDI).

How will the M1 behave when I assign a macro to it ie will the macro only be called if opt stop is active?

If opt stop IS active will the macro be called before or after the stop? Obviously if the macro isn't called first the time will not be captured should a reset occur...

Cheers,

DP
Reply With Quote

  #4   Ban this user!
Old 08-21-2010, 02:47 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

When you redefine M1, it will have nothing to do with optional stop status. The assigned macro would always be called. Once inside the macro, the M1 code used there would become a normal M-code with usual behavior.
Reply With Quote

  #5   Ban this user!
Old 08-21-2010, 06:14 AM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road

So if optional stop is active the control should pause once it returns to main program? Or have I been thwarted again? There will be no M1 in the called macro.

DP
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-21-2010, 06:41 AM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road
Aw, bugger....

I am clutching at straws here aren't I? I'm going to need to pause within the M1 macro, or redefine a completely new M-code at the end of each process and make it part of our standard program format....
Reply With Quote

  #7   Ban this user!
Old 08-23-2010, 02:03 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

You need to use M1 inside the macro called by M1. Effectively, it would be the original M1 with some added feature.
The same thing, however, cannot be done with M0. When you wish to call a macro/subprogram by an M-code, the associated M-code number has to lie between 1 and 99,999,999.
So, do not use M0 if it does not stop timer.
Reply With Quote

  #8   Ban this user!
Old 08-23-2010, 07:54 AM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road

Cheers for the advice - will probably go for an extra M-code at the end of each process - our current format looks like this: -

N5 (Milly Vanilly);
G65 <PARAMETERS>;
G123 D1 R0; This is the auto setup macro that performs pallet changes and B-axis/offset rotations - I will add to this to time those events and start timing the tool call sequence.
T#101 M6 (Fork); <--------I will add a bit to tool call to finish timing the tool call sequence and start timing axis motions.
/T#102 (Spoon);
G0 G90 X Y blah blah blah;
G91 G28 Z0 M9;
M5;
<---------------------------Will add my new M-code here to update time for that tool and stop timing
M1/M0;
;
etc

A seperate new M-code as part of our standard program format will work out best for me as it will keep the cycle timing seperate from any manual intervention - of course, if the program is stopped/restarted mid-cycle it may all go tits up - unless I can get macro to detect an unfinished/rerun process and reset time accordingly

The general idea is to seperate the component pieces of a proven cycle on this machine to gauge its performance more accurately against the smaller, faster machines, this will also give us better estimates when jobs proven on another machine come onto this one, I hope...

If only I could decide on a number for my M-code...

DP
Reply With Quote

  #9   Ban this user!
Old 08-23-2010, 08:28 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Originally Posted by christinandavid View Post
If only I could decide on a number for my M-code...
I've always liked using M123 for these types of situations because it sticks out.

Stevo
Reply With Quote

  #10   Ban this user!
Old 08-23-2010, 08:31 AM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road

Well I already use G123 for my setup macro, cause it makes things easy as 123 - I need something else - maybe the number of the beast...
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 08-23-2010, 08:46 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Oh boy don’t get the demons in the machines all stirred up. They will mess with your timers until you go crazy

Stevo
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
RFO (request for opinion) Shanghyd Employment Opportunity 3 11-19-2008 12:50 PM
A request for help from the forumites Cold Fusion CNCzone Club House 0 12-03-2007 11:50 AM
Strange Request? ALANMAC General CNC (Mill and Lathe) Control Software (NC) 7 11-24-2006 03:54 PM
Being driven insane by an offset problem! Cold Fusion General CAM Discussion 15 09-11-2004 10:39 PM
Am I insane for being here? kcoaks DIY-CNC Router Table Machines 9 04-03-2004 09:53 AM




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