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:

misc reals ?


dforsythe
 Share

Recommended Posts

here is what i did and the sections modified. notice all the G187 stuff. pretty easy to set up, especially when InHouse gives you such a good base to start with(thanks InHouse):

 

beginning of post:

mr1 - High Speed

# 0 = Off

# 1 = Advanced Preview (look-ahead) control - G08 P1

# 2 = AI-NANO 2, AI(nano)CC output (Artificial Intelligence Contour Control) - G05.1 Q1

# 3 = AI-HPCC and AI-nanoHPCC (High Precision Contour Control) - G5 P10000

# 4 = Mazak Geometry Compensation/Accuracy G61.1, Mazak High Speed Machining Mode - G05 P2

# 5 = HAAS corning

#

# mr2 - Accel/Decel Value (for G05.1 Q1 and G61.1 only)

# 0 = No output

# Value = Accel/Decel coefficient

# Fanuc Notes

# 0 Least Accurate

# 10 Most Accurate

# R 0-3 Roughing

# R 4-7 Medium

# R 8-10 Fine

#

# mr3 - HAAS Smoothing Value

#

# mr4 - HAAS "P" Value - P1 = Rough, P2 = Medium, P3 = Finish

 

************************************

 

 

phsm1_on #High speed functions before G43

if opcode$ = 3 | opcode$ = 16,

[

mr1$ = 0

mr2$ = 0

]

if mr1$ = 1 & mr1_flg <> 1, #Advanced Preview (look-ahead) control - G08 P1

[

pbld, n$, "G08", "P1", e$

mr1_flg = 1

]

if mr1$ = 2, #AI-NANO 2, AI(nano)CC output (Artificial Intelligence Contour Control) - G05.1 Q1

[

pbld, n$, *sg49, e$ #Must be in G49 and remain before G43

if ipr_type > 1, ipr_type = 0 #Must be in G94

pbld, n$, sgfeed, e$

pbld, n$, "G05.1", "Q1", [if mr2$, "R", no_spc$, *mr2$], e$ #Mr2 gives accel/decel value/coefficient, usually R or P

mr1_flg = 2

]

# HPCC is working when called before G43.4 on Fanuc 31i

# if mr1$ = 3 & mr1_flg <> 3, #AI-HPCC and AI-nanoHPCC (High Precision Contour Control) - G5 P10000

# [

# if ipr_type > 1, ipr_type = 0 #Must be in G94

# pbld, n$, sgfeed, e$

# pbld, n$, "G05", "P10000", [if mr2$, "R", no_spc$, *mr2$], e$

# #pbld, n$, "G05.1", "Q2", e$ #auto arc filtering

# mr1_flg = 3

# ]

if mr1$ = 5 & mr1_flg <> 1, #HAAS highspeed corning - G187

[

pbld, n$, "G187", [if mr4$, "P", no_spc$, *mr4$], [if mr3$, "E", no_spc$, *mr3$], e$

mr1_flg = 5

]

 

******************************

 

phsm_off #High speed functions off

if mr1_flg = 1, #Advanced Preview (look-ahead) control - G08 P1

[

pbld, n$, "G08", "P0", e$

mr1_flg = 0

]

if mr1_flg = 2, #AI-NANO 2, AI(nano)CC output (Artificial Intelligence Contour Control) - G05.1 Q1

[

pbld, n$, "G05.1", "Q0", e$

mr1_flg = 0

]

if mr1_flg = 3, #AI-HPCC and AI-nanoHPCC (High Precision Contour Control) - G5 P10000

[

#pbld, n$, "G05.1", "Q0", e$ #auto arc filtering

pbld, n$, "G05", "P0", e$

mr1_flg = 0

]

if mr1_flg = 4, #Mazak Geometry Compensation/Accuracy G61.1, Mazak High Speed Machining Mode - G05 P2

[

pbld, n$, "G05", "P0", e$

pbld, n$, "G64", e$

mr1_flg = 0

convert_rpd$ = prv_convert_rpd$ #Mazak Fusion requires high feed motion only, comment out for Matrix

]

if mr1_flg = 5, #HAAS Smoothing

[

pbld, n$, "G187", e$

mr1_flg = 0

]

 

******************************************

  • Like 1
Link to comment
Share on other sites

Damian - To answer your question, mr3$ needs to be formatted.

Look at the fs2 statements for the proper output format.

 

code:

fmt 4 P mr2$ #G187 P Value

fmt 4 E mr3$ #G187 E Value

code:

pg187_postblock #Generic postblock to output G187 "P something" or "E something"

if mr2$,

[

pbld, n$, "G187", *mr2$, e$

]

if mr3$,

[

pbld, n$, "G187", *mr3$, e$

]

Link to comment
Share on other sites

Guru,

 

I formated the mr3$ and it posted the form corect

g187 p1 e0. the only problem is the e value s/b .025. that is what i have in the mr3 box inside mc.

 

Trevor,

 

thanks for all the good info. if i cant figure it out by this afternoon, i will copy and past all of your code inside my post.

 

as always, thanks for the help,

Link to comment
Share on other sites

Damian - The 4 in this statement makes the output an integer value.

 

code:

fmt 4 E mr3$ #G187 E Value

Try this for 4 place decimals.

 

code:

fmt 12 E mr3$ #G187 E Value

This is why I mentioned the fs2 statements.

 

code:

 # --------------------------------------------------------------------------

# Format statements - n=nonmodal, l=leading, t=trailing, i=inc, d=delta

# --------------------------------------------------------------------------

#Default english/metric position format statements

fs2 1 0.7 0.6 #Decimal, absolute, 7 place, default for initialize (
:)

fs2 2 0.4 0.3 #Decimal, absolute, 4/3 place

fs2 3 0.4 0.3d #Decimal, delta, 4/3 place

#Common format statements

fs2 4 1 0 1 0 #Integer, not leading

fs2 5 2 0 2 0l #Integer, force two leading

fs2 6 3 0 3 0l #Integer, force three leading

fs2 7 4 0 4 0l #Integer, force four leading

fs2 9 0.1 0.1 #Decimal, absolute, 1 place

fs2 10 0.2 0.2 #Decimal, absolute, 2 place

fs2 11 0.3 0.3 #Decimal, absolute, 3 place

fs2 12 0.4 0.4 #Decimal, absolute, 4 place

fs2 13 0.5 0.5 #Decimal, absolute, 5 place

fs2 14 0.3 0.3d #Decimal, delta, 3 place

fs2 15 0.2 0.1 #Decimal, absolute, 2/1 place

fs2 16 1 0 1 0n #Integer, forced output

 

# These formats used for 'Date' & 'Time'

fs2 18 2.2 2.2lt #Decimal, force two leading & two trailing (time2)

fs2 19 2 0 2 0t #Integer, force trailing (hour)

fs2 20 0 2 0 2lt #Integer, force leading & trailing (min)

Link to comment
Share on other sites
  • 2 years later...

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...