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:

Where is this colon coming from


Recommended Posts

I am trying to get this to output:

 

%
O0001(CCS1004-50-5-1P SHEET 1 OP 2 FLIP)

 

but this is what is outputting:

 

%
O:0001(CCS1004-50-5-1P SHEET 1 OP 2 FLIP)

 

i can't figure out where the ":" is coming from. Running debugger hasn't isolated it for me.

 

This is what I think is the relevant section in my post:

"%", e$      !spaces$, spaces$ = 0      "O", if progno$ = zero, progno$ = one

Any ideas?

 

 

Link to comment
Share on other sites

"%", e$
      !spaces$, spaces$ = 0
      "O", if progno$ = zero, progno$ = one

 

^^^

That letter O with the parenthesis is a forced output and should be removed... you don't need it... it is redundant.

 

The progno$ is what is outputting the colon character and that is proper for some controllers.

 

If you want to change the : to a letter O, you need to look at your fmt section of code and there you can change the colon to a letter O

  • Like 1
Link to comment
Share on other sites

I am trying to get this to output:

 

%

O0001(CCS1004-50-5-1P SHEET 1 OP 2 FLIP)

 

but this is what is outputting:

 

%

O:0001(CCS1004-50-5-1P SHEET 1 OP 2 FLIP)

 

i can't figure out where the ":" is coming from. Running debugger hasn't isolated it for me.

 

This is what I think is the relevant section in my post:

"%", e$      !spaces$, spaces$ = 0      "O", if progno$ = zero, progno$ = one

Any ideas?

 

Yeah someone hacked that post to add the O which was not needed in the post there are 2 ways to define the program number one with an O and one with a Colon. Remove the # sign in front of the one with the O defining the program number and put it in front of the one defining : as the program number and should be good from there. Normally looks like this in a standard post.

# --------------------------------------------------------------------------
#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  "O" 7  sub_prg_no$ #Program number
#fmt ":" 7   sub_prg_no$  #Program number
  • Like 2
Link to comment
Share on other sites

 

Yeah someone hacked that post to add the O which was not needed in the post there are 2 ways to define the program number one with an O and one with a Colon. Remove the # sign in front of the one with the O defining the program number and put it in front of the one defining : as the program number and should be good from there. Normally looks like this in a standard post.

# --------------------------------------------------------------------------
#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  "O" 7  sub_prg_no$ #Program number
#fmt ":" 7   sub_prg_no$  #Program number

It was me, I hacked that post needlessly :blushing:

Thanks guys, imma keep plugging at this.

Link to comment
Share on other sites

 

Yeah someone hacked that post to add the O which was not needed in the post there are 2 ways to define the program number one with an O and one with a Colon. Remove the # sign in front of the one with the O defining the program number and put it in front of the one defining : as the program number and should be good from there. Normally looks like this in a standard post.

# --------------------------------------------------------------------------
#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  "O" 7  sub_prg_no$ #Program number
#fmt ":" 7   sub_prg_no$  #Program number

That works much better! Thanks Ron & Reko

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