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:

X-style coolant output


Henk
 Share

Recommended Posts

I have put the X-Style coolant from the Mpmaster  in my .set setup sheet.

The output is done by:

Quote

# Output coolant type
      pcan, pcan1, pcan2, strcantext,

The output is fine, exept one situation:

If there is no coolant selected there is no output, but there i want an waring.

First i tried without success:

Quote

# --------------------------------------------------------------------------
# WARNING NO COOLANT SELECTED:
# --------------------------------------------------------------------------
      if strcantxt = "",
        [
        " ", e$
        sepline2, e$  
        "WARNING: ", e$
        "Operation #", op_num, ": NO COOLANT SELECTED", e$
        sepline2, e$
        " ", e$
        ]

Then i read the parameters

Quote

#Coolant variables for X style coolant
bld          : 0    #Block delete active
sav_coolant  : 0    #Coolant saved
cant_pos     : 0    #Read from current canned text (cant_pos1 - cant_pos20)
coolant_bin  : 0    #Binary value for current coolant command
coolant_on   : 0    #Binary value holding the sum of all coolants currently on
coolantx     : 0    #Selector variable for coolant string selector
local_int    : 0    #Local variable for output of coolant off commands
result2      : 0    #Return value for functions
suppress     : 0    #Flag used to suppress redundant coolant on commands
all_cool_off : 0    #First coolant off command shuts off ALL coolant options
sblank       : ""
strtextno    : ""
strcantext   : ""
coolchk      : ""    #Coolant Check
scool1       : ""    #Coolant 1
scool2       : ""    #Coolant 2
scool3       : ""    #Coolant 3
scool4       : ""    #Coolant 4
scool5       : ""    #Coolant 5
scool6       : ""    #Coolant 6

# --------------------------------------------------------------------------
# WARNING NO COOLANT SELECTED:
# --------------------------------------------------------------------------
      pscool1, e$
      if scool1 = 0 & scool2 = 0 & scool3 = 0 & scool4 = 0 & scool5 = 0 & scool6 = 0 ,
        [
        " ", e$
        sepline2, e$  
        "WARNING: ", e$
        "Operation #", op_num, ": NO COOLANT SELECTED", e$
        sepline2, e$
        " ", e$
        ]

pparameter$      #Read operation parameters

      if prmcode$ = 12727, sholder_name = ucase(sparameter$)      #Toolholder name
      if prmcode$ = 15240, op_num = rpar(sparameter$, 8)          #Operation number
      if prmcode$ = 15845, scool1 = sparameter$                   #Coolant 1
      if prmcode$ = 15846, scool2 = sparameter$                   #Coolant 2
      if prmcode$ = 15847, scool3 = sparameter$                   #Coolant 3
      if prmcode$ = 15848, scool4 = sparameter$                   #Coolant 4
      if prmcode$ = 15849, scool5 = sparameter$                   #Coolant 5
      if prmcode$ = 15850, scool6 = sparameter$                   #Coolant 6

Also no success,

Now i'm lost. ideas??

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