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! > MetalWorking Machines > CNC Swiss Screw Machines


CNC Swiss Screw Machines Discuss CNC Swiss Screw Machines here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-08-2010, 09:37 PM
 
Join Date: Mar 2010
Location: usa
Posts: 8
jmichaud1 is on a distinguished road
Citizen A220 sub-programs

Has any out there running a Citizen A220 experienced problems getting a sub-program to work. I load the main program and the sub-program in the control. I call the sub-program up in the main program with a M98 P1162. I have the sub-program,O1162, loaded in the control, but when the program gets to M98 P1162 it alarms out saying the file doesn't exist. The information in the sub-program is only in $1 and I wrote it using WIN-CNC. W doesn't my program see the sub-program?

Main programsection)

(LETTERING-1ST SEGMENT)
M5
M18C0.
M80 S3=4500
T909(1/32 BALL)
G50 W-.5905
G98
M98 P1162
G50 W.5905
M82
G99


Sub-program:
O1162(C)
(C)G0C-23.291Z.6394
H11.6455W.0833
G1X.3075F5.
H-11.6455F2000.
H11.6455
H-11.6455W-.0208
W-.0416F5.
H11.6455W-.0208F2000.
H23.291
H11.6455W.0208
W.0416F5.
H-11.6455W.0208F2000.
G0X.4075
M99
Reply With Quote

  #2   Ban this user!
Old 08-09-2010, 06:38 AM
 
Join Date: Jun 2010
Location: United States
Posts: 36
g-code_junkie is on a distinguished road
sub prg

I do not see it in the posted example but man readables at the end of the m98p line sometimes cause the machine to see it as part of the program name that you are trying to call up.Precent signs in the wrong place can cause issues as well.I have opened the program in notepad and found characters not shown in win-cnc.Also I have seen multiple asteriks in man readables that have caused issues as well.
Good luck
Reply With Quote

  #3   Ban this user!
Old 08-09-2010, 08:49 AM
 
Join Date: Oct 2008
Location: UK
Posts: 31
UK-Engineer is on a distinguished road

You could try using simple macro command and use a subroutine rather than loading external subprogram. This way all data is kept in one program - eg

(LETTERING-1ST SEGMENT)
M5
M18C0.
M80 S3=4500
T909(1/32 BALL)
G50 W-.5905
G98

#500=0 - Set up variable argument
GOTO100 - Jump to line N100
N200 - After subroutine is run machine jumps back to here

G50 W.5905
M82
G99


End of $1 program

N100
(C)G0C-23.291Z.6394
H11.6455W.0833
G1X.3075F5.
H-11.6455F2000.
H11.6455
H-11.6455W-.0208
W-.0416F5.
H11.6455W-.0208F2000.
H23.291
H11.6455W.0208
W.0416F5.
H-11.6455W.0208F2000.
G0X.4075

IF[#500EQ0]GOTO200 - We set #500 to 0 earlier so argument is correct

If you see macro softkey under offset page you have macro option enabled

good luck
Reply With Quote

  #4   Ban this user!
Old 08-10-2010, 01:09 PM
 
Join Date: Mar 2010
Location: usa
Posts: 8
jmichaud1 is on a distinguished road

Thanks for the response to my problem. What are "man readables"? I think there is something the machine sees that I do not see on the screen. I do need to add a percent sign at the end of the sub-program that WIN-CNC outputs. I talked to the distributer aplications engineer and he doesn't see a problem with the code but experienced the same problem on his machine when I sent him my programs. He loaded my programs on his machine, physically deleted the M98 P line and rewrote the code on the machine and it worked fine. I don't want to have to do that everytime I want to run a sub-routine. If the code looks good on the computer, it should work on the machine.
Reply With Quote

  #5   Ban this user!
Old 08-10-2010, 01:19 PM
 
Join Date: Mar 2010
Location: usa
Posts: 8
jmichaud1 is on a distinguished road

Thank UK-Engineer,

I ended up writing the programs like you had suggested and it worked good. The sub-programs are text that change all the time and I don't want to have to keep editing the main program. For now the program is working fine but I really want to know why my machine won't read a simple M98 command. Sometimes it works and sometimes it doesn't. There must be something behind the scene that I'm not seeing. Thanks again for your help.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-11-2010, 02:50 AM
 
Join Date: Oct 2008
Location: UK
Posts: 31
UK-Engineer is on a distinguished road

Typical A20 inch machining data - raw data viewed in windows notepad or similar (you won't see #016,#020 on screen only values in mc data screen)

D
#016=0000007500 - Bar size
#020=0000001000 - Tool pos pnt
#024=0000015000 - Mc Length
#028=0000001000 - Pcs per chuck
#032=0000001000 - Cut off tool
#036=0003000000 - Cut off rpm
#040=0000000020 - Cut off feed
#044=-000000800 - Cut off end point
#076=0000000000 - Front mc holder name
#048=0000005000 - Back drill holder
#052=0000004000 - Back spindle
#060=0000601000 - Back chuck extend length
#064=0000201000 - Back work extend length
#068=0000000000 - Unused

the control on your machine is quite intolerant if some of the above data is incorrect.

If i was to hazard a guess as to your M98 problem i'd say it was some of this data was in wrong format or even missing from your subprogram
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
Citizen A220 External M Code Relays danrudolph CNC Swiss Screw Machines 4 05-21-2010 09:16 AM
Need Help!- Citizen L20 Tornos100 CNC Swiss Screw Machines 1 04-24-2010 12:52 AM
Need Help!- Citizen L20 humbertocnc2007 CNC Swiss Screw Machines 7 04-16-2010 06:55 AM
Need Help!- Citizen L20,L25 humbertocnc2007 CNC Swiss Screw Machines 6 02-18-2010 06:17 AM
Citizen E32J Fanuc 6T sample programs championfine CNC Swiss Screw Machines 3 01-14-2010 10:07 AM




All times are GMT -5. The time now is 07:55 AM.





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