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:

to post gurus


mig
 Share

Recommended Posts

Hi,

This is part of Code from my post for okuma.

----------------------------------

(PROGRAM MAX: Z.25")

(PROGRAM MIN: Z-1.98")

N1

M1

€€€€(OPERATION MAX: Z= .25")

(OPERATION MIN: Z= -1.98")

(STOCK: XY= 0.|Z= 0.)

-------------------------------------------------

got some strange symbols which I can’t take off,

Anybody new what this is and how I can take them off?

Regards

Link to comment
Share on other sites

Seems to me there is likely some ascii number or a number that creates that symbol that is erroneous in the post.

 

Never seen it before.

 

Run the post debug on and find out where that is being output from and then look in that section in the post.

 

Post Debug

 

control def >> nc output >> debugging box checked

 

I'd guess whatever it is will be rather obvious.

Link to comment
Share on other sites

.

 

Did you write that

(OPERATION MAX: Z= .25")

(OPERATION MIN: Z= -1.98")

in the "Toolchange / NC output Variable Formats" section of your post?

 

search in your post for something like this

 

fmt X 2 x_tmin # Total x_min

fmt X 2 x_tmax # Total x_max

fmt Y 2 y_tmin # Total y_min

fmt Y 2 y_tmax # Total y_max

fmt Z 2 z_tmin # Total z_min

fmt Z 2 z_tmax # Total z_max

fmt Z 2 min_depth # Tool z_min

fmt Z 2 max_depth # Tool z_max

 

and post it here.

 

.

Link to comment
Share on other sites

Hi john316,

Here you are :

fmt X 2 x_tmin # Total x_min

fmt X 2 x_tmax # Total x_max

fmt Y 2 y_tmin # Total y_min

fmt Y 2 y_tmax # Total y_max

fmt Z 2 z_tmin # Total z_min

fmt Z 2 z_tmax # Total z_max

fmt "Z= " 2 min_depth # Tool z_min

fmt "Z= " 2 max_depth # Tool z_max

Link to comment
Share on other sites

.

 

I don't know if the "Z= " has anything to do with it, but these are format statements and are used to format the post output. Take those out and try posting again.

 

The "Z= " statements can be set-up in psof$

 

if output_z = yes$ & tcnt > 1,

[

"(OVERALL MAX ", "Z= ", *z_tmax, ")", e$

"(OVERALL MIN ", "Z= ", *z_tmin, ")", e$

]

 

.

Link to comment
Share on other sites

.

 

Correction, set up your "Z= " statement in ptlchg_com

 

n$, pspc, "(", "MAX=", "Z= ", *max_depth, ")", e$

n$, pspc, "(", "MIN=", "Z= ", *min_depth, ")", e$

 

The string your using uses the *max_depth and *min_depth coomands. It looks like you changed the MAX and MIN text to OPERATION MAX and OPERATION MIN.

 

.

Link to comment
Share on other sites

Looks like "preadbuf5" cause this problem,

If I deleting this word problem disappearing, but I loosing min ,max numbers also.

Anybody know what this command does? And where is this buffer5 ?

My converted from v9 post also has this word, but working fine only match slower

Link to comment
Share on other sites

Mig,

 

Mail

 

Yes deleting that will cause a problem if you are looking to get the information it provides.

 

This is buffer 5

 

code:

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

# Buffer 5 Read / Write Routines

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

pwritbuf5 # Write Buffer 1

b5_gcode = gcode$

b5_zmin = z_min$

b5_zmax = z_max$

b5_gcode = wbuf(5, wc5)

 

preadbuf5 # Read Buffer 1

size5 = rbuf(5,0)

b5_gcode = 1000

min_depth = 99999

max_depth = -99999

while rc5 <= size5 & b5_gcode = 1000,

[

if rc5 <= size5, b5_gcode = rbuf(5,rc5)

if b5_zmin < min_depth, min_depth = b5_zmin

if b5_zmax > max_depth, max_depth = b5_zmax

]

It can be found near the bottom of the post

 

It collects all of the depth information about your toolpaths and outputs it with the appropriate tool

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