![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
Hi everybody Is it possible to have a macro as a sub program that counts parts and turn machine off after it reaches an specific number. Any samples????? please. Any other idea to shut off machine to avoid cutting air will be appreciated. Bar feeder switch (out of stock light) is not working, waiting for parts. Thank you in advance. Jorge |
|
#3
| ||||
| ||||
| Ohhh...you are right, I messed up. I wanted the machine to stop after an specific number of pieces, so the operator sees a red light and can restock the machine, out of stock switch is not working, new one will take two weeks. So I wrote at the end of the program: #500=#500+1 IF[#500EQ85]GOTO10 M30 N10#500=0 M00 (MACHINE WILL STOP HERE AFTER I MADE 85 PIECES) M00 display a red light in the panel, so we know is out of stock. May not be the right way to do it, but is working. Regards Jorge |
|
#4
| ||||
| ||||
__________________ The best way to learn is trial error. |
![]() |
| 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 |
| RS-232 Setup for Miyano w/Fanuc OT | JerryH | Fanuc | 17 | 01-20-2012 07:17 AM |
| Need Help!- Miyano JNC-35 Lathe Parameters | MildBill | General Metal Working Machines | 1 | 12-18-2008 09:22 AM |
| Convert Fanuc Macro to Fadal Macro | bfoster59 | Fadal | 1 | 11-08-2007 11:41 PM |
| Macro for Boring lathe Jaws - Fanuc 21i-T | CNCSport | General Metal Working Machines | 5 | 10-17-2007 05:07 PM |
| Miyano lathe with Fanuc 3T Controller | engineerbill | General Metal Working Machines | 0 | 04-10-2007 08:22 AM |