gcode take a look at 3708 bit#3
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.
gcode take a look at 3708 bit#3
If you can ENVISION it I can make it
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 09:51 AM.