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:

Okuma post


Jack K
 Share

Recommended Posts

I want to place a misc real value in side of a coment area in my okmua post. We use a indexer and right now we we edit in comments at the M182 line so the setup guys can program the indexer at the machine. See last line of sample.

 

G90G80G40G0

N101

T4M6( .125 MILL )

G15H01

G0G90X-.312Y-2.2105

S4000M3

G56H4Z1.M8

G71Z1.

G81X-.312Y-2.2105Z-.128R.1F2.5M53

Y-2.7105

G80

M9

G30P1M5

G15H0X-4.Y10.

M182(INDEX, mr6 )

%

 

I want the post to read the mr6 in that last line.

 

Any ideas would be great!!!!

 

Thanks,

Jack

Link to comment
Share on other sites

after the M182,

 

edit------------------------------------------

Probably have to format a variable too

fmt 2 set_angle

 

 

set_angle = mr6

pbld, "M182", "(" set_angle, "DEGREES", ")", e

 

Something like that Jack?

 

[ 05-22-2006, 12:55 PM: Message edited by: John Paris @ Kevlin Microwave ]

Link to comment
Share on other sites

John,

I this is it poseted when I made that change.

G30P1M5

G15H0X-4.Y10.

M182

M182(mr6DEGREES)

 

This what my post looks like

peof #End of file for non-zero tool

pretract

pbld, "G15", "H0", "X-4.", "Y10.", protretinc, e

comment

#Remove pound character to output first tool with staged tools

#if stagetool = one, pbld, *first_tool, e

if mi6=0, "M30", e

if mi6=1, "M182", e

pbld, "M182", "(" mr6, "DEGREES", ")", e

 

Jack

Link to comment
Share on other sites

John,

 

Where do I put the format?

fmt 2 set_angle

this is where i put it and got an error.

cdelta : 0 #Calculation for angle change

rev : 0 #Calculation for deg/min

sav_rev : 0 #Saved revolution counter

indx_out : c9k #Rotation direction calculation

fmt 16 indx_mc #Rotation direction calculation

fmt 2 set_angle

 

 

Thanks,

Jack

Link to comment
Share on other sites

Up in the begining of the posts, you'll see all the fmt statements, end off the drill sections should be OK, make sure to note what it is so you can find it if need be.

 

Don't forget to back your post too

and BTW don't forget to back up your post too.

Link to comment
Share on other sites

Must be doing something not right!

this is the result.

 

(PROGRAM NAME - TTT)

(DATE= 22-05-06 TIME= 12:48)

G90G80G40G0

N101

T4M6( .125 MILL )

G15H01

G0G90X-.312Y-2.2105

S4000M3

G56H4Z1.M8

G71Z1.

G81X-.312Y-2.2105Z-.128R.1F2.5M53

Y-2.7105

G80

M9

G30P1M5

G15H0X-4.Y10.

M182(set_angleDEGREES)

%

 

this is my post.

 

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

fmt Q 2 peck1 #First peck increment (positive)

fmt Q 2 shftdrl #Fine bore tool shift

fmt R 2 refht_a #Reference height

fmt R 2 refht_i #Reference height

fmt Z 2 initht #Initial height

fmt 2 set_angle

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

peof #End of file for non-zero tool

pretract

pbld, "G15", "H0", "X-4.", "Y10.", protretinc, e

comment

#Remove pound character to output first tool with staged tools

#if stagetool = one, pbld, *first_tool, e

set_angle = mr6

if mi6=0, "M30", e

if mi6=1, pbld, "M182", "(" set_angle, "DEGREES", ")",

 

 

Thanks,

Jack

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