View previous topic :: View next topic |
Author |
Message |
JoeM Master Poster
Joined: 09 Jul 2004 Posts: 122 Location: Jackson Hole, Wyoming USA
|
Posted: Sat Dec 03, 2005 6:38 pm Post subject: Macro program problem |
|
|
I use machine HARDINGE (GE Fanuc series O-T) and I want to use PECK DRILLING MACRO program (sub-program).
Peck Drilling Macro:
---------------------------
:9135(PECK DRILLING MACRO)
IF[#2LE0]GOTO6
GOTO7
N6#2=.05
N7X0
Z#5
#23=-[3*ABS[#11]]
IF[#5LT0]GOTO8
GOTO9
N8#23=-[3*ABS[#11]+ABS[#5]]
N9IF[#23LE#6]GOTO5
#21=-[3*ABS[#11]]
IF[#5LT0]GOTO3
GOTO2
N1#21=[#21*.5]
IF[ABS[#21]LTABS[#3]]GOTO10
GOTO11
N10#21=-ABS[#3]
N11#23=[#23+#21]
IF[#23LE#6]GOTO4
N2Z[#8+ABS[#2]]
N3G1G99Z#23F#9
#8=#23
G0Z#5
G4X#1
GOTO1
N4Z[#8+ABS[#2]]
N5G1G99Z#6F#9
G0Z#5
M99
Part of program:
-------------------
(DRILL 6.5MM )
N3G0Z5.
G97S1528M13
T0101
G99
G0X0.Z.1
G65P9135J.1K-1.0769B.025H.25C.25A.5F.002
G0Z.1
T0000
G0Z5.
M01
My question is:
which parameter (#2, #5, #23, #11 ....) I may combine with letters (A, B,C ..........)? _________________ Thanks.
===================
I would rather by Fly Fishing! |
|
Back to top |
|
|
John_B Frequent Poster
Joined: 03 Jul 2004 Posts: 56 Location: Milwaukee, WI USA
|
Posted: Sat Dec 03, 2005 6:39 pm Post subject: |
|
|
If I understand your question correctly, the local user variables are assigned values thusly:
A #1
B #2
C #3
I #4
J #5
K #6
D #7
E #8
F #9
G #10 **
H #11
L #12 **
M #13 #*
N #14 **
O #15 **
P #16 **
Q #17
R #18
and so on to:
Z #26
** cannot be used to pass values
#* optionally passes a value depending on setting |
|
Back to top |
|
|
|