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 > CamSoft Products


CamSoft Products Discuss Camsoft PC based CNC controller products here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-25-2005, 07:28 AM
 
Join Date: Sep 2005
Location: usa
Posts: 67
howling60 is on a distinguished road
MDI & t & s issues?

So, I have run into a complication recently. Pretty sure it is not in my code as i'm not able to find anywhere this might happen.. but, figured i would post up, as it's over 3 hours before the guys are into the office over @ camsoft.... darn this whole "being on the east coast" thing..

anyway...

my issue:
was running my machine in a self-made jog routine to face off a part, was no need for a full program. opened up the MDI window, issued S300 M3, spindle turned on, no prob.. I then opened the MDI window again and issued an M8 to turn on my coolant, and the spindle shut off??

So, i did it again, only i ran a log file. In my timer file, i set a variable \13=s and then did a logwrite \13. placed this in several places just to make sure I captured what was going on. Now, from what my log file generated, as soon as the MDI window was "run" with my M8 code, the s variable was set to 0. I know that my code does not touch this variable, not directly anyway.

I believe this is also occuring with my t variable, as i've been trying to troubleshoot my new tool change logic, and have been finding my t variable at zero, after having given it a tool number.

I don't believe the other control packages we have running here @ our shop act this way, and I am pretty stumped on what's going on here. Any thoughts, ideas, confirmations?

Thanks gang!

-Nate
Reply With Quote

  #2  
Old 10-25-2005, 08:43 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

Nate,
The way I understand how it works (frome experience only, not really knowing what is underneath), is that whatever is in the MDI window actually represents the same thing as a full fledged program running.

So I suppose that for safety sake they simply re-initialize several important variables every time time you press "Run" in MDI.

The reason I think this is as follows: in CNC (Pro ver14.7), if you edit a program in MDI and press RUN, then Camsoft runs that program as a new program. If you forget to press "Save", then the edits you made in the MDI program will be lost on shutdown, because Camsoft is not running from the saved edition of the file on your hard disk, but rather from the MDI temporary file. I think you can find this file somewhere, should you actually need to rescue an edit, but it gets overwritten with each new iteration of MDI + Run.

Thus, when editing a program, press Save in the MDI window, then go and reload the newly saved program from its location on the hard disk.
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #3  
Old 10-25-2005, 09:07 AM
Gold Member
 
Join Date: Sep 2003
Location: USA
Posts: 530
HillBilly is on a distinguished road

Originally Posted by HillBilly

I can tell you from personal experience this control will run the same program different depending if you are in auto, singlestep or MDI mode.

In MDI mode if I do not enter the current FEED, SPEED and TOOL with each line they are returned to ZERO. I made this macro to overcome this but is must be in every G or M code used.

[[MDI]]
t=\79 'Always make T variable 79
IFs=0THENs=\82 'If S has been cancelled reissue it
IFf=0THENf=\83 'If F has been cancelled reissue it
\82=s 'If S has changed set variable 82 to it
\83=f 'If F has changed set variable 83 to it
DISPLAY1 t
DISPLAY4 f
DISPLAY5 s

Darek
This was from a previous post.
Reply With Quote

  #4   Ban this user!
Old 10-25-2005, 09:24 AM
Karl_T's Avatar  
Join Date: Mar 2004
Location: Dassel,MN,USA
Posts: 1,318
Karl_T is on a distinguished road

FWIW,

I just tried this on my Pro control. It works as expected, not as you describe. Not much help, but it indicates it must be in your logic. I'm curious what it is.

Karl
Reply With Quote

  #5  
Old 10-25-2005, 09:40 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

Nate,

If Karl is correct, I was going to suggest that you look at your InputIO.fil for logic pertaining to a coolant pushbutton, but I see from reading your post, you must not have a manual coolant button?

Have you exhausted all available buttons in your GUI? It might be a thought to transfer control of coolant to a function key, just to save the aggravation of having to turn it on and off in MDI. Just take it as a suggestion, not a solution for this problem.
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

Sponsored Links
  #6  
Old 10-25-2005, 09:41 AM
Gold Member
 
Join Date: Sep 2003
Location: USA
Posts: 530
HillBilly is on a distinguished road

Originally Posted by Karl_T
FWIW,

I just tried this on my Pro control. It works as expected, not as you describe. Not much help, but it indicates it must be in your logic. I'm curious what it is.

Karl
If you are not using +/-10v for spindle speed control, issuing the M8 will not turn your spindle off. If you MDI "G1 X2.0 F10" then MDI "X3.0" your feed will not stay modul.

Darek
Reply With Quote

  #7   Ban this user!
Old 10-25-2005, 10:19 AM
 
Join Date: Apr 2003
Location: United States
Posts: 279
camsoft is on a distinguished road

Hello Group,

Both HuFlungDung and Karl hit this right on the head. Their advice is correct.

Both Feedrates and Spindle speed are initialized to zero upon each time you enter a new session of MDI with out saving.

However, once in MDI it runs the same as any normal program and the feedrate and spindle speed are modal and do not need to be re-entered. The guidelines in MDI for modal are the same for a normal G code program.

M8 will turn off your spindle, if your tell it to, but M5 is usually set up for spindle off instead of M8. M8 is usually coolant off.

The advise given by HuFlungDung for coolant on/off was good. The best approach for coolant on/off or any on/off switch is to select between one of the provided Function Key, Click in bitmap of switch, Touch Screen button or Physical button on a hand held or mounted pendant.

Tech Support
CamSoft Corp.
(951) 674-8100
support@camsoftcorp.com
www.cnccontrols.com
__________________
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #8   Ban this user!
Old 10-25-2005, 10:43 AM
 
Join Date: Sep 2005
Location: usa
Posts: 67
howling60 is on a distinguished road

my m8, is actually calling up external coolant, not being used as a spindle stop. I have also made an on-screen button for coolant purposes, just used an m8 @ that point, kinda glad i had, as it brought this question up. HuFlung, Karl, Hillbilly, thanks a whole bunch for your thoughts & advice, Camsoft, thanks for the confirmation. It is all much appreciated. Till the next issue arises! Have a good day!

-Nate
Reply With Quote

  #9   Ban this user!
Old 02-24-2006, 10:27 AM
 
Join Date: Sep 2005
Location: usa
Posts: 67
howling60 is on a distinguished road

HillBilly:

i'm gonna go and plop that macro into my control.. if you dont' mind. As i've been becoming increasingly frustrated by the resetting to zero of those variables. I know it was put in as a safety, and i can understand that.. but it's interferring with how i want this retro to run :P

and, thank you all for input.. as always it helps in some way.. even if its not how it was intended

-nate
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:36 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