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 > Fadal


Fadal Discuss Fadal machinery here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-25-2009, 08:21 PM
 
Join Date: Jul 2009
Location: usa
Posts: 35
caddisfly is on a distinguished road
variable program

I recently was asked to create a variable program for are old fadal vmc4020.
It has an 88hs fadal control and is using format2.
In the program the operator has to set a couple variable such as the size of the stock and finish size needed.
The stock is a plate that is mounted to an indexer and the tools move to fixed position and mill the plate diameter to the disired diameter as the plate rotates.
The plates are very large and otherwise wouldnt be able to be machined on the this machine.
I haven't dealt with this machine in atleast 10 years and have written a number of variable programs for this machine back then with no problems.
The problem I have now is I am getting an illegal address alarm when the operator starts up the program.

Any help would be appreciated on what could be the problem with the syntext or format that could be causing the program to fail. Im sure its a simple issue that I just am not seeing.




%
O1000(vAR 0D MAIN)
(T8 7DEG TAPER)
(T9 750 RGH ENDMILL)
(T7 DOVETAIL CHMF TOOL)
()
L100(VARIABLE ROUTINE)
(THESE ARE THE VARIABLES YOU WILL CHANGE)
(FOR DIF SIZE dia plates)
(INSERT VALUES FOR V1,V2 IN **DIA VALUES**)
#V1=0(ENTER **DIA** OF COVER BLANK)
#V2=0(ENTER FIN **DIA** OF COVER)
()
()
()
(VARIABLE CONSTANTS)
(ONCE THESE VALUES ARE SET CORRECTLY)
(DO NOT CHANGE THEM WHEN RUNNING DIF DIA COVERS)
#V2=V2/2
#V3=.375(RAD OF .75 EM)
#V4=.375(PROGRAM RAD OF 7DG EM)
#V5=.375(PROGRAM RAD OF CHAMF TOOL)
#V6=.500(ST PT CLEARANCE OFF PART 7DG TOOL)
#V7=.500(ST PT CLEARANCE OFF PART CHMF TOOL)
#V8=.0553(7DG TOOL ADJ AT .45 DPTH INCR)
()
()
(***PROGRAM CALCULATIONS DO NOT CHANGE****)
()
(RGH OD CALCS)
#R1=V2+V3 (X OD FIN SIZE PLUNGE ST POINT)
()
(7DG CALCS)
#R2=V2+V4+V6(START PT 7DG TOOL W/ V6 CLEAR)
#R3=V3+V4 (1ST FIN X FEED TO PT 7DG TOOL )
#R4=V3+V4-V8 (2ND FIN X)
#R5=V3+V4-V8-V8 (3RD FIN X)
()
(CHMF CALCS)
#R6=V2+V5+V7(START PT CHMF TOOL W/ V7 CLEAR)
#R7=V2+V5 (FIN X FEED TO PT CHMF TOOL )
()
()
M17
M30
(MAIN)
G0G17G40G49G69G80G90
L101 (READ VARIABLES)
T9M6 (ROUGH OD CYCLE)
S1125M3
E1G0X+R1Y0
Z1.0H9
G1Z.5F25.
Z-1.25F10.
M66(START INDEXER ROTATION)
G0Z1.0
G80M5M9
G0Z10.0
M01
(7DG ANGLE)
T8M6
S875M3
G0X+R2Y0 (RAP TO X CLEAR PT)
Z1.0H8
Z-.45
G1X+R3F2.0 (FEED TO PT)
M66(START INDEXER ROTATION)
G0X+R2 (RAP OUT PT)
Z-.9
G1X+R4F2.0 (FEED TO PT)
M66(START INDEXER ROTATION)
G0X+R2 (RAP OUT PT)
Z-1.35
G1X+R5F2.0 (FEED TO PT)
M66(START INDEXER ROTATION)
G0X+R2 (RAP OUT PT)
G0Z1.0
G80M5M9
G0Z10.0
M01
(BOTTOM CHAMFER)
T7M6
S1000M3
G0X+R6Y0 (RAP TO CLEAR PT)
G0Z1.0H7
Z-1.14 (DEPTH ADJ IF NEEDED)
G1X+R7F8.0 (FEED IN TO PT)
M66(START INDEXER ROTATION)
G0X+R6 (RAPID OUT PT)
G0Z1.0
G80M5M9
G0Z10.0
X0.0Y0.0
M6T9
M0
G53Y9.90
M30
%





thanks
Caddisfly

Last edited by caddisfly; 08-25-2009 at 09:11 PM.
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 08-25-2009, 10:08 PM
 
Join Date: Nov 2007
Location: usa
Posts: 77
FastFieros is on a distinguished road

I dont know much about sub routines variable calls, but it is calling L101 instead of L100 looks like to me..

L101 (READ VARIABLES)

Last edited by FastFieros; 08-26-2009 at 01:04 AM.
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 08-26-2009, 12:14 AM
fizzissist's Avatar  
Join Date: Apr 2006
Location: USA
Posts: 2,203
fizzissist is on a distinguished road

I haven't done macros in Format 2, so this is new to me....but I don't see a clear register command at the beginning, and the parenthesis within the macro line could be the problem? In Format 1 a comment should follow an apostrophe.....

A comment should be (example):
N16#V11=SQR((V8*V8)-(V10*V10)) ‘Y CENTER OF BLEND

It'd help if you could post a program that works for you.
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 08-26-2009, 07:02 AM
 
Join Date: Apr 2008
Location: USA
Posts: 495
SBC Cycle is on a distinguished road

I'll try to confirm that with the manual when I get in to work but I agree, the control is expecting a math operation of some kind if you use ( ) with #

I stared at that a long time without spotting that. Good eye.
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 08-26-2009, 07:03 AM
 
Join Date: Jul 2009
Location: usa
Posts: 35
caddisfly is on a distinguished road

Originally Posted by FastFieros View Post
I dont know much about sub routines variable calls, but it is calling L101 instead of L100 looks like to me..

L101 (READ VARIABLES)

FF

L101 calls sub L100 1 time. L102 would execute it 2 times.

caddisfly
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-26-2009, 07:09 AM
 
Join Date: Jul 2009
Location: usa
Posts: 35
caddisfly is on a distinguished road

Originally Posted by SBC Cycle View Post
I'll try to confirm that with the manual when I get in to work but I agree, the control is expecting a math operation of some kind if you use ( ) with #

I stared at that a long time without spotting that. Good eye.
SBC Cycle, fizzissist,

That could be. I am looking at some old programs that worked years back and I'm not finding any comments using () on lines with #.

I will have to make the changes and give it a try.

Thanks
caddisfly
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 08-26-2009, 09:38 AM
 
Join Date: Apr 2008
Location: USA
Posts: 495
SBC Cycle is on a distinguished road

Originally Posted by fizzissist View Post
I haven't done macros in Format 2, so this is new to me....but I don't see a clear register command at the beginning, and the parenthesis within the macro line could be the problem? In Format 1 a comment should follow an apostrophe.....

A comment should be (example):
N16#V11=SQR((V8*V8)-(V10*V10)) ‘Y CENTER OF BLEND

It'd help if you could post a program that works for you.
You are on the money.

18.2.5 COMMENTS Comments are very important part of Macro programming. They explain the program to
others, and remind the programmer why they wrote it the way they did. Comments on a
macro line begin with an apostrophe ( ‘ ), and can extend to a total line length of 63
characters.
N3 # V100=1.2345 ‘V100 IS THE LENGTH OF THE PART 2
I didn't know about the apostrophe thing. That's good to know, thank you.
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 08-26-2009, 09:49 AM
 
Join Date: Feb 2008
Location: USA
Posts: 505
scadvice is on a distinguished road
Thumbs up

Let us know what you come up with. This is a great post! I didn't see anything wrong first time through either. I haven't done any variables since I bought my CADCAM. A good refresher problem!!
Steve
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 08-26-2009, 11:00 AM
fizzissist's Avatar  
Join Date: Apr 2006
Location: USA
Posts: 2,203
fizzissist is on a distinguished road

Mastercam doesn't do O-ring grooves the way I like 'em, and Fadal doesn't have a canned cycle for them...so I wrote a macro that does 'em the way I like..(well, almost..I'll refine it as I have time)

Comments are the only thing that save my butt. Even as often as I use my own program, I still need to be reminded of what something does...and if I want to edit later it's invaluable.
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 08-26-2009, 12:23 PM
 
Join Date: Jul 2009
Location: usa
Posts: 35
caddisfly is on a distinguished road

After reading the posts ,I started digging around for the programming manual and found the same comment rule ( ' ) on the macro lines.
Makes sense that ( ) would not work on a macro line.

I'm confident enough it will work now. I'll find out later today.


Thanks again,
caddisfly
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 08-26-2009, 02:58 PM
Neal's Avatar  
Join Date: Mar 2003
Location: Chatsworth, Ca
Posts: 889
Neal is on a distinguished road
Unhappy

Caddisfly--
OOOPPPPS, fat finger syndrome!
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 08-26-2009, 03:01 PM
Neal's Avatar  
Join Date: Mar 2003
Location: Chatsworth, Ca
Posts: 889
Neal is on a distinguished road
Talking

Caddisfly--
The main issue I see with out running the program is that the comments must be separated by an apostrophe and not an open paren. The Parens are mathmatical operators in the Quick Basic computer language.
Remove the open and close paren and in put the apostrophes where needed and then try running the program to find any further possible bugs. Let me know if I can help.

Neal
Tweet this Post!Share on Facebook
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
Variable changes TNorbut Controller & Computer Solutions 0 07-23-2008 08:16 AM
EMC2 variable pitch / variable diameter threading. samco General Metalwork Discussion 0 03-09-2008 02:40 PM
vARIABLE #3006 marrieche G-Code Programing 4 03-31-2007 09:31 AM
IF variable = bla THEN do this ELSE do that ? iMisspell G-Code Programing 21 07-30-2006 11:57 PM
Anyone got any basic examples of a program using a subroutine/program? Darc CamSoft Products 11 10-09-2005 12:45 AM




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