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:

double output


Recommended Posts

I cannot figure out why I am getting double output from these lines.

pmaster #check to see is "Power Master" need to be turned on	if prv_masterpow = 0 & use_PM = yes$ & mi4$ = 1 , ppmON # Turn "Adaptive Control" ON    if prv_masterpow = 1 & use_PM = yes$ & mi4$ = 0, ppmOFF # Turn "Adaptive Control" OffppmON  # Turn "Power Master" mode ON (if enabled)        pbld, n$, "M102", e$        # Turn "Power Master" ON        pbld, n$, "G04", "X2.0", e$ # Dwell a bit...        masterpow = 1             # Power Master Control status (0=OFF, 1=ON)ppmOFF # Turn "Power Master" mode OFF        pbld, n$, "M101", e$  # Turn "Power Master" OFF        masterpow = 0      # Power Master Control status (0=OFF, 1=ON)

This is my output

N120 M20N130 M78 M78N140 M102 (double m102)N150 G04 X2.0N160 M80 M82 M84N170 M102 (here also)N180 G04 X2.0N190 E1541N200 M90
Link to comment
Share on other sites

What block are you calling your pmaster from?  If its the psof00$ block, this block gets called both before and after the header block.  If this is the case you will have to use some logic in it to perform the code only once.  In the code below you would initialize the variable header_ran=0.

 

psof00$

 

                if header_ran=0,

 

                    [

 

                      #place code here that will run before header

 

                    ]

 

 

                if header_ran<>0,

 

                [

                       #place code here that will run after header

                ]

 

 

pheader$        # File header

 

                header_ran=1

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