-
Posts
11 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
eMastercam Wiki
Blogs
Gallery
Events
Posts posted by tobee1
-
-
Correction:
The B angle is calculated per planer definition through a series of custom postblocks (pxyzcout and 'bout).
-
The B angle is calculated per planer definition through a series of custom postblocks (pxyzcout).
This issue was not present with X5. (We updated directly from X5 to X7 / All post updating was performed correctly)
-
PS
I have created the custom lathe tool by level and file with no avail.
-
Machine: Mazak Integrex w/Matrix control
Post/X7 issue: The vertical position (B90.) for custom lathe tools is not being read.
There is no issue with the non-custom lathe tools.
Post code from lathe tool change (ltlchg$)/tool call section only:
ptoolcall
[
if synch_flg & vert, pbld, n$,"G0 B90. W-15.",e$
else,
if vert, pbld, n$,"G0 B90.",e$
if not(vert) & spindle_no$ = 0,pbld, n$,"G0 B0.",e$
if not(vert) & spindle_no$ = 1,pbld, n$,"G0 B180.",e$
]
Post code for tool call:
ptoolcall
if posttype$ <> 2,
[
if cuttype = 2, tdircode = 0.01
if abs(cuttype) = 3 | cuttype = 4, tdircode = 0.01
if cuttype = -2,tdircode= 0.01
if cuttype > 5, tdircode = 0.01 # use .0 for all 5-axis except when 5-axis with 4-axis output
if cuttype = 5 & not(mr3$), tdircode = 0.01
if cuttype = 5 & mr3$ & mill5$ = 1,
[
if fmtrnd(babs) = 90, tdircode = 0.01
else, tdircode = 0.02
]
if lturret$ = 0, tdircode = .7575
]
if posttype$ = 2 & vert, #vertical tools
[
if orient$ = 1, tdircode = 0.02 #unrotated mill spindle
if orient$ = 5, tdircode = 0.02
if orient$ = 2, tdircode = 0.05 #rotated mill spindle
if orient$ = 6, tdircode = 0.05
]
if posttype$ = 2 & not(vert) & spindle_no$ = 0, #horizontal tools on main
[
if orient$ = 4, tdircode = 0.01 #unrotated mill spindle
if orient$ = 8, tdircode = 0.01
if orient$ = 1, tdircode = 0.04 #rotated mill spindle
if orient$ = 5, tdircode = 0.04
]
if posttype$ = 2 & not(vert) & spindle_no$ = 1, #horizontal tools on sub
[
if orient$ = 5, tdircode = 0.03 #unrotated mill spindle
if orient$ = 8, tdircode = 0.03
if orient$ = 6, tdircode = 0.06 #rotated mill spindle
if orient$ = 7, tdircode = 0.06
]
if mi6$ > 0, tdircode = mi6$/10 # Override #entered as integer
if mi6$ > 9, tdircode = mi6$/100 # Override
if mr2$ & sav_tdircode = 0,
[
sav_tdircode = tdircode
tdircode = 0
]
toolno = int(t$)
#suffix = ((t$/100) - toolno) / 100
if tcode_sw = 0,
toolno = toolno + tdircode #4-Digit T-Code
result = newfs(21,toolno)
#if lturret$ = 0, result = newfs(24,toolno)
if toolchng, pbld, n$, *toolno,next_tool$,"M6",tloffno$, e$
else, pbld, n$, toolno, e$
The tool path code in the posted program for the custom tool is correct for a lathe tool at B90. However, the B on the main spindle outputs B0. and the sub spindle outputs B180. If I manually change the B to B90. in the program there is no issue. Non-custom lathe tools will output correctly.
Sample tool path code:
N1
(Custom Vert lathe tool)
G28 U0. Y0.
G28 W0.
M901
M202
T17.04 T17 M6 D17
G0 B0. – Should read B90.
G53.5
G18
G50 S2000 R1 (MAIN)
G96 S100 M03 R1 (MAIN)
**removed tool path code**
-
I have an mplmaster post. This is the code I have:
pthrg92_1$ #G92 threading
if thdpass$ = one, pthrg92_11
pthrg92_11 #G92 threading
comment$
gcode$ = zero
lrapid$
prv_feed = m_one
prv_zabs = c9k
prv_thdtype$ = m_one
pthrg92_2$ #G92 threading
pthrg92_3$ #G92 threading
copy_x = vequ (x$)
pcom_moveb
pcan1, pbld, n$, psgfeed, sthdgcode, pfxout, pyout, pzout, pcout,
[if thdrdlt & thdpass$ = one, *thdrdlt], pfr, strcantext, e$
pcom_movea
prv_gcode$ = m_one
pthrg92_4$ #G92 threading
This is the output:
G97 S1000 M03
G0 Z-.2 M8
X.575
G92 X.3633 Z-2.3 F.11111
G0 X.575 Z-.1444
G92 X.3633 Z-2.3 F.11111
X.3542
X.3542
X.3464
X.3464
X.3395
X.3395
X.3333
X.3333
X.3275
X.3275
X.3221
X.3221
X.3171
X.3171
X.3123
X.3123
X.3077
X.3077
X.3034
X.3034
X.2992
X.2992
X.2992
X.2992
X.2992
X.2992
X.2992
X.2992
X.2992
X.2992
X.2992
X.2992
G0 X.575
M9
This is what I want:
G97 S1000 M03
G0 Z-.2 M8
X.575
G92 X.3633 Z-2.3 F.11111
X.3542
X.3464
X.3395
X.3333
X.3275
X.3221
X.3171
X.3123
X.3077
X.3034
X.2992
X.2992
X.2992
X.2992
X.2992
X.2992
G0 X.575 Z-.1444
G92 X.3633 Z-2.3 F.11111
X.3542
X.3464
X.3395
X.3333
X.3275
X.3221
X.3171
X.3123
X.3077
X.3034
X.2992
X.2992
X.2992
X.2992
X.2992
X.2992
G0 X.575
M9
What code do I need?
-
forget it. i'll get myself. thanks anyway.
-
is there an easy way to insert operation comments (gcode$ 1008) into the header?
-
i use 'n'no's and comment$ for subs for easy restart finding. i want to post the comment$ at the top of program while still being located at toolpath position. i'm probably brainfarting but i've done it before in a different post but applying the same logic with mplmaster seems to be puzzling me.
-
why yes it is but when its put in pheader it takes out of the path and puts in in the header.
-
i have mx2 and for some reason i cant get the comments in toolpath to post in header and at the path location. if it matters, i'm on integrexes with a heavily modified mplmaster post.
Custom vertical lathe tools
in Post Processor Development Forum
Posted
X7 backplots and verifies correctly for custom vertical lathe tool.