![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| General Metalwork Discussion Discuss everything relating to metal work. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Asked this in Parametric Programming section, but there is little traffic there so am asking here also. I've looked in the Fanuc manual and in Peter Smid's book for Fanuc Macro B programming, but can't find an example. Both say that the output value is 1 if true, and 0 if false. Not much help. I have to assume these values aren't stored anywhere, or one of the books would have mentioned that little fact. Can I use AND in IF[...AND...]GOTO or IF[,,,AND...]THEN type of statements? Thanks. |
|
#2
| ||||
| ||||
| There was a thread on cnczone about this a while back. Seemed that there was a parameter that affected how the controller processed the second "IF" In the default mode, if the first IF was false, further processing of that line of logic did not occur. This can make bug testing the code indicate some flakey execution just when you think you've got it perfect ![]() With the correct parameter, the control would go on and continue to process additional statements in the line.
__________________ 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) |
|
#3
| |||
| |||
| Thanks HFD. I am looking to use only one statement at this time. Guess the most practical thing to do is program it and give it a test run. I will try a search, but don't usually get the results I am looking for whenever I try searching. Must be my computer illiteracy showing up. |
|
#4
| ||||
| ||||
| Here was that thread I was thinking of: Is this a valid statement...IF[#19NE1]OR[#13NE1]GOTO3000??
__________________ 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) |
|
#5
| |||
| |||
| WOW!!!! Read some of this thread before. Quite a few more posts on it now. It seems I need to turn on a parameter in order to do what I want to try. The parameter was given for the Oi series controls. I mostly program for OT, 18T and 21i-T controls. All lathes. Can I call Fanuc for the parameter since all our lathes have the Macro B option, or is this something the company will have to pay for? I ask because I know the company wouldn't pay for it at this time. Work is way down plus I am suppose to be doing all my programs in MasterCam. However I still like to use macro subprograms. It is easier. AND more fun to write. ![]() Still haven't followed any of the links provided in that thread. Understood most of it better than the first time as I am further along with my macro programming now. However, there are still things in the thread that are Greek to me. Saw the term "modulo" (sp?). Never heard or saw it before. What does it mean? Also 'gar' was using binary code. No idea how to use it, or if it is even something that could be of use on a lathe. |
| Sponsored Links |
|
#6
| |||
| |||
| Tried a couple formats. Got 114 ERROR. Called Fanuc. Traded emails with a tech. Seems what I would like to do is impossible with Fanuc controls. Can do this: #1=#2 AND 8 Tech gave me the output for this when I replied asking what the answer would be if #2=.155. Seems it doesn't do well with decimal points. He gave me the answer when #2=155, but I am not at work. Will start another thread about using binary bits. Who knows. Maybe I can learn something new. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
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 09:19 PM |
| Mazatrol Program into a G Code Program | fuzzman | Mazak, Mitsubishi, Mazatrol | 14 | 02-08-2010 04:55 PM |
| Program Restart in mid program? | Donkey Hotey | Haas Lathes | 16 | 03-18-2008 03:19 PM |
| Looking For a Old Program | automizer | General CAM Discussion | 3 | 01-11-2006 07:53 PM |
| Anyone got any basic examples of a program using a subroutine/program? | Darc | CamSoft Products | 11 | 10-09-2005 12:45 AM |