![]() | |
| 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
| |||
| |||
Is there one? I want to put the current spindle speed into a variable for use in a macro sub. This would be on OT, 18-T and 21i-T controls. I found where the orientation and maximum RPM parameters are, but didn't see anything in regards to reading the current spindle RPM. Google didn't turn up one either. Thanks. |
|
#3
| |||
| |||
|
Now I am thoroughly confused. This is my first attempt at programming a macro to read a system parameter. Old Hardinge deep drill (P9135) cycle used J to specifiy the retract position. Newer P9136 sets #4=#5002 at the begining of the subprogram, and uses that for the retract position. Looking at parameter #5002 yields this: WNP=0 for bit 7 LWM=1 for bit 6 LGC=1 for bit 5 LGT=0 for bit 4 bit 3 & 2 =0 and have no designation over them LGN=0 for bit 1 LD1=0 for bit zero Yet Fanuc manual lists in the table under *Current position Table 16.2(1) System variables for position information Variable number- #5001-#5008 Position Information- Block end point Coordinate system- Workpiece coordinate system Tool compensation value- Not included Read operation during movement- Enabled So how does one know that #5002 reads the block end point Z-axis position? I assume that the 8 variables have a set order since the other variables listed also have 8, but what are they reading? I would guess that #5001=X, #5002=Z, #5003=Y, but have no idea for the rest. EDIT: Solved. #4119 reads S-code. Still would like an answer on my other questions. Thanks. Last edited by g-codeguy; 09-29-2008 at 08:51 AM. |
![]() |
| 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 Hardinge spindle parameter. | g-codeguy | Fanuc | 4 | 05-09-2008 05:12 PM |
| OT parameter, spindle stops when switching, | Ztiggi | Fanuc | 4 | 11-07-2007 12:50 AM |
| dnc parameter help | shepherd | Machine Problems, Solutions , Wireless DNC, serial port | 1 | 06-27-2007 12:28 AM |
| Parameter changes | jorgehrr | G-Code Programing | 9 | 02-15-2007 08:06 PM |
| How to setting fanuc serial spindle parameter? | ning | Fanuc | 1 | 10-30-2005 02:38 PM |