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


Fanuc Discuss Fanuc controllers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-30-2011, 11:44 PM
 
Join Date: Sep 2005
Location: usa
Posts: 77
positiverake is on a distinguished road
cant load macro on fanuc om

Having trouble loading a macro program from dnc, I can load programs with no problem but with a macro it will only take the (man readables) is there a parameter to allow the control to read macro programs. the machine has the macro op. turned on, I would type it in but the key pad is limited no brackets ect. its a takisawa mill with a fanuc om. thanks
Reply With Quote

  #2   Ban this user!
Old 08-31-2011, 05:22 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by positiverake View Post
Having trouble loading a macro program from dnc, I can load programs with no problem but with a macro it will only take the (man readables) is there a parameter to allow the control to read macro programs. the machine has the macro op. turned on, I would type it in but the key pad is limited no brackets ect. its a takisawa mill with a fanuc om. thanks
When you refer to DNC, are you drip feeding the program to the control, or do you simply mean that you are loading the program form a PC to the control’s memory?

If drip feeding, you will have trouble with most Macro statements, unless the statement is simply calling a Macro Program that is already stored in memory. For example, you can’t use a program loop in the program being fed to the machine, because once the code is executed, its discarded by the control. Accordingly, no block to loop back to.

Are you sure the control has the User Macro option? The majority of O series controls only had User Macro A. The A version used codes for all of the conditional and math functions, while the B series (the more user friendly of the two) used statements similar to that of BASIC.

If your control does have the User Macro option and if downloading the program from PC to control memory, then there should be no issue with this. I suspect that the problem may be with a filtering feature of the PC software being used for the file transfer. Its quite common to have settings available in the software to ignore certain characters.

You can determine if the control has User Macro by pressing the Offset button and then navigate through the various pages. If the control is equipped with User Macro you will see MACO as a soft key at the bottom of the screen.

Regards,

Bill
Reply With Quote

  #3   Ban this user!
Old 08-31-2011, 10:28 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Bill,
I agree. I know that some will not allow editing of the macros/man readables at the control but have not seen any that will not allow man readables

Stevo
Reply With Quote

  #4   Ban this user!
Old 09-01-2011, 07:33 AM
 
Join Date: Sep 2005
Location: usa
Posts: 77
positiverake is on a distinguished road

Thanks guys, yes just trying to load a program from a pc, the control alarms out with ps 004, the control has the 100-500 variables is this macro B?, im using predator software for bob cad to up/down load, the control takes the man readbles? think its coming from the pc software? must be a setting, dont know were to start?
Reply With Quote

  #5   Ban this user!
Old 09-01-2011, 11:29 AM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by positiverake View Post
Thanks guys, yes just trying to load a program from a pc, the control alarms out with ps 004, the control has the 100-500 variables is this macro B?, im using predator software for bob cad to up/down load, the control takes the man readbles? think its coming from the pc software? must be a setting, dont know were to start?
When viewing the Macro Variable page, try paging Up and Down with the Page Navigation keys to see if you have other pages of variables. User Macro B series has Local Variables that start at #1, and I'm almost certain that Series A does also, but its been a long time since I visited that version.

I’m away from my office until next week and accordingly, can’t look this error code up. Please post the description associated with that error code; you will find it in error list in the Fanuc manual.

As stated in my earlier post, series A User Macro uses codes for the Macro commands, whereas Series B uses syntax similar to Basic and Pascal. See if you’re able to download a short program containing the following:

If the # and = symbols are available via the key pad, you will also be able to enter and execute #100=1 in MDI mode, but that is unlikely with the key pad you described earlier.

%
O0001
#100=1
M00
M30
%
If the program loads OK and appear as above in the control, run it. If the machine errors when you run the program, you won’t have Macro B. If no error, check the value of Macro Variable 100 in the Macro Variable registry. If its value is 1 then you have Macro B for sure.


Regards,

Bill
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-01-2011, 05:38 PM
 
Join Date: Sep 2005
Location: usa
Posts: 77
positiverake is on a distinguished road

Ill try that tomorrow, thanks
Reply With Quote

  #7   Ban this user!
Old 09-01-2011, 10:01 PM
 
Join Date: Sep 2005
Location: USA
Age: 60
Posts: 755
Dan Fritz is on a distinguished road

Is your DNC software sending EIA code? If it's sending ISO (ASCII), then the macro characters like "#" are just normal ASCII characters. If your DNC software is sending EIA, then those characters are not even defined. There are parameters in the control to define them, but chances are those parameters are not set.

The control should accept either EIA or ISO tape code. You should use ISO if you can.
Reply With Quote

  #8   Ban this user!
Old 09-06-2011, 11:37 PM
 
Join Date: Sep 2005
Location: usa
Posts: 77
positiverake is on a distinguished road

This is the alarm Im getting (004 ps alarm a numeral or the sighn "-" was input with out an address at the beginning of the block) ? what do you think? it wont take even the # sign from the pc. any help? the pc software is sending ISO. do you know what paramaters to change so the control can define the code anyway? or should I look at the pc side a bit deeper, sorry I never seen this problem before. like I said the control has the macro soft key and the 100-500 variables? one other thing(not to open up pandoras box) but if I hold down any key on the control and then the key with the ; / # i can get the # on the screen but it will have the 1st key before it? say I hold the M down while I press the ;/# key it will look like this on the screen M# not sure what this is all about. thanks again for the help

Last edited by positiverake; 09-07-2011 at 12:02 AM.
Reply With Quote

  #9   Ban this user!
Old 09-07-2011, 06:57 AM
 
Join Date: Sep 2005
Location: USA
Age: 60
Posts: 755
Dan Fritz is on a distinguished road

The control is not reading the program correctly. I would suspect that there is something wrong on the DNC side. You might have a typo in the program if it always stops at the same spot, but if it's happening randomly, I would suspect a mis-setting on the DNC side.
Reply With Quote

  #10   Ban this user!
Old 09-07-2011, 07:10 AM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by positiverake View Post
This is the alarm Im getting (004 ps alarm a numeral or the sighn "-" was input with out an address at the beginning of the block) ? what do you think? it wont take even the # sign from the pc. any help? the pc software is sending ISO. do you know what paramaters to change so the control can define the code anyway? or should I look at the pc side a bit deeper, sorry I never seen this problem before. like I said the control has the macro soft key and the 100-500 variables? one other thing(not to open up pandoras box) but if I hold down any key on the control and then the key with the ; / # i can get the # on the screen but it will have the 1st key before it? say I hold the M down while I press the ;/# key it will look like this on the screen M# not sure what this is all about. thanks again for the help
You will find that the one key is the input for a number of characters, for example, the key that you have identified as ;/# . You don't have to hold down another key to access the other characters, just press the same key repeatedly and you will cycle through the various characters associated with that key. Once the desired character has been obtained it can be registered in the program by using the Insert key.

Write a short program containing #1=100, or #100=100 and run the program. Look for the variable you used in your program in the Macro Variable register; you should find that its value is 100.

Regards,

Bill
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-07-2011, 08:05 AM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by positiverake View Post
This is the alarm Im getting (004 ps alarm a numeral or the sighn "-" was input with out an address at the beginning of the block) ? what do you think? it wont take even the # sign from the pc. any help? the pc software is sending ISO. do you know what paramaters to change so the control can define the code anyway? or should I look at the pc side a bit deeper, sorry I never seen this problem before. like I said the control has the macro soft key and the 100-500 variables? one other thing(not to open up pandoras box) but if I hold down any key on the control and then the key with the ; / # i can get the # on the screen but it will have the 1st key before it? say I hold the M down while I press the ;/# key it will look like this on the screen M# not sure what this is all about. thanks again for the help
You can only set the number of Stop Bits, Baud Rate, the type of External device you wish to communicate with and whether the code format is EIA or ISO. The Data Bits should be set to 2. Check on the Setting Page of your control; you will see there if the control is set to EIA or ISO.

If any data at all is able to be transfered, then its unlikely to be a cable problem, but just to be sure, the cable configuration for Xon Xoff handshaking is as follows:

Machine side---------------------------------PC Side
DB25 Male Connector----------------DB9 Female-----------DB25 Female
1-------Shield Ground-------------Not Connected--------Not Connected
2--------------------------------------2----------------------3
3--------------------------------------3----------------------2
4
| Bridged
5

6
|
8 All Bridged
|
20

7--------------------------------------5----------------------7

The settings in the PC software sould be as follows:
1. Handsahke Method = Xon Xoff (software handshaking)
2. Baud Rate = Same as Control Setting. Setting 10 at the Control is 4800 baud, so set 4800 at PC if 10 is used. Setting 11 = 9600 baud rate
3. Data Bits = 7
4. Stop Bits = 2
5. Parity Bit = Even

Regards,

Bill
Reply With Quote

  #12   Ban this user!
Old 09-07-2011, 09:16 AM
 
Join Date: Aug 2010
Location: USA
Posts: 99
hitachibos is on a distinguished road

to get rid of your 004 alarm you need to have "custom macro B' option custome macro A will not allow # symbols or math to be done.
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!- Macro for spindle Load monitoring stoddgopats Fanuc 1 05-05-2012 05:09 PM
Need Help!- Macro staments for Tool life and %load o_smith Haas Mills 4 12-15-2009 07:22 PM
Testing program for Macro (Fanuc Macro B) NickDP Fanuc 2 03-27-2009 03:15 PM
Convert Fanuc Macro to Fadal Macro bfoster59 Fadal 1 11-08-2007 11:41 PM
Fanuc 0M PMC load ETNOM Fanuc 4 05-27-2006 02:21 PM




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