Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Always rotate B axis


Dustin S.
 Share

Recommended Posts

Having a problem posting. If the program doesn't leave B0 the post doesn't output the lock and unlock

 

(with rotation)

code:

 M1                                                          psof$ psof$

(FACE PART) psof$ p__48:1706

N1 T1 M06 (1/2 3-FL ISCAR) psof$ p__50:1719

T3 psof$ p__49:1717

M11 (UNLOCK) psof$ p__58:1757

G00 G17 G40 G49 G90 psof$ p__58:1757

G54 X0. Y.31 B0. S10000 M03 psof$ p__58:1757

M10 (LOCK) psof$ p__58:1757

G43 H1 Z.1 psof$ p__58:1757

G01 Z0. F50. plin$ plinout

Y0. F90. plin$ plinout

Y-8.1 plin$ plinout

Y-8.41 plin$ plinout

G00 Z.1 pzrapid$ prapidout

(BILLET) pcomment$ pcomment2

(without rotation)

code:

 M1                                                          psof$ psof$

(ROUGH MILL OUTSIDE) psof$ p__48:1706

N1 T2 M06 (1/4" ISCAR 3-FLUTE ECAI) psof$ p__50:1719

T4 psof$ p__49:1717

G00 G17 G40 G49 G90 psof$ p__58:1757

G57 X.536 Y-.382 S18000 M03 psof$ p__58:1757

G43 H2 Z.11 psof$ p__58:1757

M08 psof$ p__58:1757

G01 Z-.1625 F100. plin$ plinout

G41 D2 Y-.282 F108. plin$ plinout

X0. plin$ plinout

G94 G02 X-.125 Y-.157 R.125 pcir$ pcirout1

G01 Y0. plin$ plinout

and heres the section of post it refrences

code:

 [

if lock_codes = one & not(index) & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$

pbld, n$, pgear, e$

pcan1, pbld, n$, *sgcode, sgplane, [if not(index), sgabsinc, pwcs], pfcout, strcantext, e$

if lock_codes = one & not(index) & rot_on_x & cuttype = 0, pbld, n$, *slock, slockcomm, e$

if convert_rpd$ = one,

[

gcode$ = one

feed = maxfeedpm

ipr_type = zero

]

pbld, n$, sgcode, [if gcode$ = 1, sgfeed], pfxout, pfyout, pfspindleout, [if gcode$ = 1, *feed], e$

]

else,

[

<line 1757> if lock_codes = one & not(index) & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$

pbld, n$, pgear, e$

if convert_rpd$ = one,

[

gcode$ = one

feed = maxfeedpm

ipr_type = zero

]

can anyone tell me what to edit to get it tou output the lock and unlock along with my B axis at all times?

 

Thanks

Link to comment
Share on other sites

code:

 [post_VERSION] #DO NOT MOVE OR ALTER THIS LINE# V11.00 E1 P0 T1161869177 M11.00 I0

# Post Name : MPMASTER

# Product : MILL

# Machine Name : MACHINE

# Control Name : CONTROL

# Description : IHS MASTER GENERIC MILL G-CODE POST

# 4-axis/Axis subs. : YES

# 5-axis : NO

# Subprograms : YES

# Executable : MP v11.0

# Post Revision : 11.0.06347 (MC_FULL.MC_MINOR.YYDDD)

#

# WARNING: THIS POST IS GENERIC AND IS INTENDED FOR MODIFICATION TO

# THE MACHINE TOOL REQUIREMENTS AND PERSONAL PREFERENCE.

k ill try that

Link to comment
Share on other sites

Ok I think this is it'

[

if lock_codes = one, n$, *sunlock, sunlockcomm, e$

rotretflg = 1

#if lock_codes = one & not(index) & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$

pbld, n$, pgear, e$

pcan1, pbld, n$, *sgcode, sgplane, [if not(index), sgabsinc, pwcs], pfcout, strcantext, e$

if lock_codes = one, pbld, n$, *slock, slockcomm, e$

rotretflg = 1

#if lock_codes = one & not(index) & rot_on_x & cuttype = 0, pbld, n$, *slock, slockcomm, e$

if convert_rpd$ = one,

[

gcode$ = one

feed = maxfeedpm

ipr_type = zero

]

pbld, n$, sgcode, [if gcode$ = 1, sgfeed], pfxout, pfyout, pfspindleout, [if gcode$ = 1, *feed], e$

]

else,

[

rotretflg = 0

if lock_codes = one, pbld, n$, *slock, slockcomm, e$

#if lock_codes = one & not(index) & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$

pbld, n$, pgear, e$

if convert_rpd$ = one,

[

gcode$ = one

feed = maxfeedpm

ipr_type = zero

]

 

 

I hope this makes it work, this statement is checking to see if there’s an index (if lock_codes = one & not(index) & rot_on_x,) I copied this from another place in the post where it’s not checking for an index. (if lock_codes = one, pbld, n$, *sunlock, sunlockcomm, e$

rotretflg = 1)

This is the flag, (rotretflg : 0 #Flag used for indexing lock code output) . I think if we force the flag it should work.

Link to comment
Share on other sites

quote:

the boss wants to see it in there... safety code he says make sure we are always at B0. when it is supposed to be


unless I'm not understanding what your trying to do....the lock/unlock of the B axis will not ensure it is at B0. It will clamp/unclamp the B axis at what ever angle it's set at when it encounters the M10/M11 headscratch.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...