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:

Sub Program Numbers


Recommended Posts

On a Haas, sub programs can be at the bottom of the main program with "N" numbers and called with G97, but my post outputs with "O"

I thought that I could change the sub program numbers from "O" to "N" in this section

of my post by the only place it works is on the line for progno$

 

#Move comment (pound) to output colon with program numbers

fmt "O" 7 progno$ #Program number

#fmt ":" 7 progno$ #Program number

fmt "O" 7 main_prg_no$ #Program number

#fmt ":" 7 main_prg_no$ #Program number

fmt "N" 7 sub_prg_no$ #Program number

#fmt ":" 7 sub_prg_no$ #Program number

fmt "X" 2 sub_trnsx$ #Rotation point

fmt "Y" 2 sub_trnsy$ #Rotation point

fmt "Z" 2 sub_trnsz$ #Rotation point

 

Any help would be greatly appreciated!!

 

Ed

Link to comment
Share on other sites

On a Haas, sub programs can be at the bottom of the main program with "N" numbers and called with G97, but my post outputs with "O"

I thought that I could change the sub program numbers from "O" to "N" in this section

of my post by the only place it works is on the line for progno$

 

#Move comment (pound) to output colon with program numbers

fmt "O" 7 progno$ #Program number

#fmt ":" 7 progno$ #Program number

fmt "O" 7 main_prg_no$ #Program number

#fmt ":" 7 main_prg_no$ #Program number

fmt "N" 7 sub_prg_no$ #Program number

#fmt ":" 7 sub_prg_no$ #Program number

fmt "X" 2 sub_trnsx$ #Rotation point

fmt "Y" 2 sub_trnsy$ #Rotation point

fmt "Z" 2 sub_trnsz$ #Rotation point

 

Any help would be greatly appreciated!!

 

Ed

 

Need to search the post for a forced O output in the sub area of the program. Over protective post writers will force things in certain areas and it can be a pain trying to sort out why and where they forced it.

Link to comment
Share on other sites

Found it:

 

Address string stro

 

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

#String and string selector definitions for NC output

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

#Address string definitions

strm : "M"

strn : "N"

stro : "N"

strp : "P"

srad : "R"

srminus : "R-"

sblank : ""

 

Thanks for responding Ron.

Link to comment
Share on other sites

Found it:

 

Address string stro

 

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

#String and string selector definitions for NC output

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

#Address string definitions

strm : "M"

strn : "N"

stro : "N"

strp : "P"

srad : "R"

srminus : "R-"

sblank : ""

 

Thanks for responding Ron.

 

Sorry that post was setup wrong. The defining place for that format was listed in your 1st response. The fact you have the change string characters to get the change you needed mean someone is messing up with posts in my humble opinion. That and $.02 and you got a negative balance of $999.98 to my account. Glad you got it going in the right direction. I would shoot an email to your dealer making them aware of the hoops you had to jump through for such a simple fix.

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