![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Fanuc Discuss Fanuc controllers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
i am using a macro to cut multiple parts from a bar and was wondering if you can see the count anywhere in the machines controller. i am using a oi-tc control the code i am using is as followed #1=15 #2=0 N1 machining code #2=#2+1 IF[#2LT#1]GOTO1 M30 |
|
#2
| |||
| |||
| Kevin…you can view them by looking at your local variables. On the Oi control (this is your Oi control?) you press the “offset/settings” hard key then press the over arrow and you will see the “macro” softkey. Press that and you can then view your local and common variables and there settings. You are looking for local variable #2. That will be your current count. It should be the first variable screen. #1 will be set to 15 right above it. Just as a tip you could have asked this question in the same thread as you asked for the program to count the parts in. It just makes it easier so you don’t have to jump thread to thread on the same topic. Unless you are going to be getting way off topic or a completely different title you can post in your original thread because that is where we were discussing this program before. Good luck, Stevo |
|
#3
| |||
| |||
| The method suggested by Steve is simple and works well. Read the following for related information which you may use elsewhere: Number of machined parts The number of parts required and the number of completed parts in the current machining session can be read or written in system variables #3902 and #3901, respectively. Part count information can also be seen/modified on the timer / part count screen, or through parameters 6713 and 6711 which store the number of parts required to be produced and the number of parts produced, respectively. The timer / part count screen also displays the total number of parts produced during the entire service time of the machine, as a read-only information. Whenever a part is completed, both the number of parts produced and the total number of parts produced are incremented by 1. While the required and the completed number of parts can be altered (through the associated system variables, parameter settings or the setting screen), as and when desired, the total number of completed parts can only be altered through parameter 6712. This information has been made available to keep a record of the total number of parts produced during the entire service time of the machine. The default setting (parameter 6700#0 = 0) of the machine increments the part count by 1 whenever M02, M30 or the M-code number specified in parameter 6710 (which normally contains 30 only, signifying M30) is executed. If it is desired to increment the part count only after the M-code specified in parameter 6710 is executed (which may be same as or different from 02 or 30, but not 0, 98 or 99), set parameter 6700#0 = 1. Finally, note that M02 or M30 must be typed with the end-of-block (EOB) symbol (i.e., as M02; or M30 , otherwise the part count will not be incremented, even though the part would be produced without any error message (the control allows missing EOB symbol at the end of the program). |
![]() |
| 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 |
| Need Help!- Probe macro to find flat on A axis | metlshpr | Haas Mills | 10 | 06-30-2009 07:30 AM |
| Need Help!- find spare part | mauromam | RC Robotics & Autonomous Robots | 0 | 10-19-2008 03:42 AM |
| Newbie- Can a 15 Amp cont. driver work with a 19A cont. motor? | maquiza | Servo Motors and Drives | 3 | 09-17-2008 03:44 PM |
| Macro for multi part | DocHod | G-Code Programing | 13 | 06-08-2007 04:59 AM |
| Help me find a part. Please. | 8man | Mechanical Calculations/Engineering Design | 0 | 01-16-2006 12:29 AM |