![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Okuma Discuss Okuma machines here. |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Hiya, will the MB56VA recognise a command such as G10 Pn Rn? where P is the offset number and R is the multiplier. In other words will the control add n to offset n everytime it is read? So if I was doing four parts to a cycle the control would count four each time the cycle stops. I hope this makes sense.... |
|
#3
| |||
| |||
| Excellent, can the same be done using a diameter offset rather than length offset? |
|
#5
| |||
| |||
| Thanks for the advice, I figured out the diameter one after asking. I tried both on the machine but it would not add to the counter each time it was read. It would only set the counter to 2, so an absolute rather than incremental value. |
| Sponsored Links |
|
#8
| |||
| |||
|
Yeah I was thinking along this line but I have never used macros or variables so wouldn't know where to start. |
|
#9
| |||
| |||
| I was just trying to replicate this on an Okuma. |
|
#10
| |||
| |||
| Ok Now I see there are a few options here 1 - Write a little loop program DEF WORK[1] DIREC V ORIGIN H1 CYLNDR 2P,[-50,-50],[50,50],-20,0 CYLNDR 0H,[0,0],38,-20,0 END DRAW T10 M6 VC1=0 G15H1 Z100G56H=VATOL NLOOP X0Y0S100M3F1000 Z10 G1G41D=VATOLX20Y0 G3 I-20 Z2 G3 I-20 Z4 G3 I-20 Z6 G3 I-20 Z8 G3 I-20 Z10 G0 Z10 VC1=VC1+1 VTOFD[10] = VTOFD[10]+1 IF [VC1 LT 4] NLOOP G90G0G40X0Y0 Z100 M2 2 - COPY function may also be usefull DEF WORK[1] DIREC V ORIGIN H1 CYLNDR 2P,[-50,-50],[50,50],-20,0 CYLNDR 0H,[0,0],38,-20,0 END DRAW T1 M6 G15H1 Z100G56H1 X0Y0S100M3F1000 Z-20 G1G41X20Y0D1 COPY Q10 G91 G3I-20 Z2 COPYE G90G0G40X0Y0 Z100 M2 Last edited by budgieW; 07-15-2009 at 08:07 PM. |
| Sponsored Links |
|
#12
| |||
| |||
| Hey thanks but I was after purely a counter. It appears what you have posted is a 'subprogram' to repeat a section of the program. I often use the copy command but I've not seem the NLOOP command before, but then I've not long started using Okuma. |
![]() |
| 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 |
| What is important part count or utilization | chrisryn | General Metalwork Discussion | 31 | 07-15-2009 04:06 AM |
| encoder count recomendation | johnscnc | Viper Servo drives | 10 | 04-06-2009 09:30 AM |
| 320 encoder count max ? | LUCKY13 | Gecko Drives | 10 | 04-04-2009 06:11 AM |
| Encoder Count | Billiam | Servo Motors and Drives | 1 | 03-16-2009 10:20 AM |
| Britain's Big Bug Count | WallCrawler | CNCzone Club House | 0 | 06-04-2004 02:15 PM |