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 > General CNC (Mill and Lathe) Control Software (NC)


General CNC (Mill and Lathe) Control Software (NC) General Discussion of CNC (Mill and Lathe) control software here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 04-11-2008, 03:15 PM
 
Join Date: Apr 2008
Location: United States
Posts: 4
gj83 is on a distinguished road
help with macros

I need to determine for sure whether or not my machines are capable of using macros.
I tried putting the statement #501=#501+1 into all of the controls and it worked on some and not on others. I know this would be how a fanuc control would read in a macro since I've done the most programming on a fanuc but I'm not sure about the others. Should this statement work in most controls?

The machines I have (and thier controls):
Horizontal MCs:
OKK KCH-500 (OKK Neomatic)
Mazak Mazatech H-400 (Mazatrol M32)
Cincinati 10HCR (Vickers Acramatic 2100)
Enshu JE80S (Fanuc Series 18i-MB)
Vertical MCs:
Cincinati Lancer (Cincinati Milacron Acramatic 2100)
Cincinati Arrow (Cincinati Milacron Acramatic 2100)
Horizontal Lathes:
OKUMA LB15C (OSP5020L)
OKUMA LB15U (OSP5020L)
OKUMA Cadet (OSP700L)
OKUMA L470M (OSP-P200L)
Gantry Style MC:
Okuma MCM-B (Okuma OSP7000M)

Thanks for any help you can provide!
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 04-11-2008, 08:38 PM
CNCRim's Avatar  
Join Date: Feb 2006
Location: usa
Posts: 944
CNCRim is on a distinguished road
well simple test just type in #100 in MDI and start, if you don't get an alarm then machine has macro option. However double check with your manual, because some machine has difference format. For example, Fadel is v1=xxx and for Seimen @K1=xx so check your manual for further detail.

I havn't use Okuma before, so I don't know.......
__________________
The best way to learn is trial error.
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 04-11-2008, 09:42 PM
broby's Avatar  
Join Date: Apr 2006
Location: Australia
Age: 48
Posts: 575
broby is on a distinguished road
All Okuma machines have what is called "User task 1"
This gives you basic "macro" style programming abilities but can be a little bit restrictive at times.
Most of the Okuma machines I have worked with have had "User Task 2" as a added option, thus giving access to more features.
I can not remember what the differences are off the top of my head, but depending on what it is you wish to do I do not think it should be too much of a problem. If I remember I will find out for you.
Okuma does not use the #100 type of construct for its variables, it uses "common varaibles" by way of V1..V32 for variable 1 through to V32 (this being on the lathes that we have) and VC1..VC200 on the mills. One older mill only has VC1..VC128 but that is more than enough anyway.
You can also use user created variable names within your program if you do not need to "keep" your variables after the program has run.
User defined names can be no longer than 4 characters long and mus start with an Alpha character not a number. i.e. TEST is fine but 1TXT is not.
There is a few other things with naming variables that also put a stop to the system real quick, like starting variables with the letter "O", there are others but I do not recall the list at home here.
Passing variables into a sub routine is very easy, returning results is not.
If I need to return a value I usually use a common variable to do so.
User variable names are only "visible" within the program that is using it at the time same as for subroutines, i.e. the variable SIZE in the main program can be different to the the variable "SIZE" in a subroutine. Thus you can pass a value into a sub program like
N100 SIZE=100.25 (CREATE AND SET A VARIABLE CALLED SIZE)
N102 CALL OMILL SIZE=SIZE and the sub program variable is passed the information from the calling program.
Mind you, you can also call the sub like this:
N100 CALL OMILL SIZE=100.25 and this would be the same.
Use of the Common Variables is simple.
Assumming you have a number set in the parameter page for the common variables on Variable 1 then you can position the machine thus:
G0 X=VC1 or G0 X=V1 (depending on your machine)
All the usuall maths functions are available within the Okuma User Task language, but I seem to recall that Trig functions are only available in User Task 2. Easy to test tho... in MDI type in VC1=SIN[30] press write and cycle start and see what comes up in VC1 if the machine does not alarm out you are in luck... otherwise?
Hope this helps
Brian.
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
Need Help!- macros bob@apc Mazak, Mitsubishi, Mazatrol 2 02-04-2008 12:42 PM
Help with macros afterburn25 Haas Mills 4 04-09-2007 09:19 AM
Macros cncfreak General CAM Discussion 24 05-06-2005 06:04 PM
macros toyoda General CAM Discussion 0 05-30-2004 05:56 AM
Macros MachineSMM General CAM Discussion 2 06-20-2003 01:41 PM




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