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 08-16-2007, 01:42 PM
 
Join Date: Aug 2007
Location: USA
Posts: 7
KARD is on a distinguished road
Camsoft error

Has anyone had a Camsoft Error: Run Time error '5'.
Invalid Procedure call or Argument

I get this error when trying to Mid Program Start in the MDI Editor window. This error causes my camsoft program to shutdown every time I get it.
Reply With Quote

  #2   Ban this user!
Old 08-16-2007, 07:04 PM
Karl_T's Avatar  
Join Date: Mar 2004
Location: Dassel,MN,USA
Posts: 1,318
Karl_T is on a distinguished road

Are you using the MIDPROGRAM command to pick your start line out?


MIDPROGRAM
This command is similar to CYCLESTART except it will prompt the user for an N block number to begin at. There will be a prompted option to either run the program up to this point with the axis locked to pick up tool offsets, fixture offsets, tool changes and M codes or begin the program immediately at this block number and provide the option of entering in extra G, X, Y, Z, F, S, T and M codes as needed to do a midprogram start. This command contains three optional parameters. The first optional parameter is used for providing an N block to resume cutting at. If omitted or is zero, a prompt will appear asking the N block to begin at. The second optional parameter is for inserting extra G code before the cut begins. If omitted, a prompt will appear asking for the extra G code. The third optional parameter is MOUSEPICK, which allows the user to go to the midprogram start window and graphically pick a position with their mouse or touchscreen as to where they want to start midway through the program. This parameter only works in wireframe mode.The MOUSEPICK option is not recommended for use with TOOLCOMP or SMARTPATH. If you have TOOLCOMP or SMARTPATH in use, then you may use either the MIDPROGRAM command without MOUSEPICK or the MDI window to restart midway through the part program.
EXAMPLE: MIDPROGRAM 100;G90 F300 S1000 M03
MIDPROGRAM MOUSEPICK
Reply With Quote

  #3   Ban this user!
Old 08-16-2007, 07:11 PM
Karl_T's Avatar  
Join Date: Mar 2004
Location: Dassel,MN,USA
Posts: 1,318
Karl_T is on a distinguished road

QUESTION 193
How can we better control the MIDPROGRAM restart feature?

The MIDPROGRAM command has these options:

(1) Parameter to enter the extra G&M codes or axes positions you need before a restart begins.

(2) Option to read quickly through the G code program from the beginning to automatically pick up tool changes and M codes for such items as Spindle On, Laser On or Flame On plus read tool, part and fixture offsets. It will then ask you to press Cycle Start when you are ready.

(3) CNC Professional even has a MOUSEPICK option to graphically select the restart position with the mouse pointer even midway along a long move.

(4) If you want more control over what happens before the restart, then take a look at the following example. Let's say you need to suppress the M codes from triggering a tool or spindle gear change while the program is scanning quickly in memory to pick up all the previous axes positions and offsets. Then, just before you get the prompt to press Cycle Start, you want all the M codes to resume normal actions plus turn on the Spindle, Laser or Flame. Keep in mind that you can add the commands you need before the program scans in memory and also just before Cycle Start is pressed. In this example we will suppress all M code functions while scanning and then re-activate the M codes plus turn on the spindle.

SUSPEND MCODE 'Suppress all M code functions
SUSPEND RESPOND 'Suppress all I/O relays
MIDPROGRAM MOUSEPICK 'Execute graphically restart
-----M100


SAY PRESS CYCLE START 'Talk out of the speakers to operator
MESSAGE Press CYCLE START when Ready
RESUME 'Re-activate M codes and I/O relays
[SPINDLE ON] 'Spindle ON Macro
CYCLESTART
-----M199
Reply With Quote

  #4  
Old 08-16-2007, 09:18 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

I'm running an older version 14.6 CNC professional, but I think it works alright from within the MDI window for me.

What I might suggest is to make sure that you have properly ended all motion commands that might be in the command buffer. To check this hit ESC before you open the MDI window. If all motion commands have been terminated, you should see a dialog about shutting down the program. You can hit cancel if this is the case.

However, if you see the other dialog come up with 3 choices about aborting the current move, etc, then that means the command buffer is still active. Terminate the current move is what you should do.

Then open the MDI window and try the midprogram restart.

I don't know what else. I actually made a button for my GUI that is dedicated to 'abort program'. Basically, this does what an M30 does for ending the current program, and sets everything back to readiness for a new run at the program. I felt that the ESC button method was not capable of a real clean abort under all circumstances. Of course, I have lots of logic flags that need to be kept track of.
__________________
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

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
tl-2 program integrity error and program data error alarm #'s 212 250 need help CNChelp Haas Mills 12 03-14-2010 08:19 PM
CamSoft.CBK HillBilly Machine Problems, Solutions , Wireless DNC, serial port 1 12-10-2009 05:15 AM
camsoft G1,G2,G3, DARYL CamSoft Products 9 06-22-2006 03:38 PM
What's new at Camsoft Karl_T CamSoft Products 0 03-31-2006 08:33 PM
Using Camsoft with DC motors? murphy625 CamSoft Products 2 02-10-2005 11:00 PM




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