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:

Karl@CP PISTONS

Verified Members
  • Posts

    300
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Karl@CP PISTONS

  1. Update:

    Received a StarTec KVM switch. It has Dual Monitor switching + 4 port USB hub switching and audio switching.

    I put My Mastercam dongle on it and it works pretty well. As long as I do not have Mastercam running it will switch very well. If I forget to close mastercam when it switches running copy will of course report that the sim has been disconnected. Even after I switch back it will not recognize the sim until I restart.

    Wireless Mouse switches no problem.

    If I had to find something to complain about it would be the cable nightmare. Was like wrestling a greased octopus.

     

    Karl

  2. Hey all,

         IT department is going to get  a KVM switch to use dual computers here at work.  Anybody have any experience in putting the masterCam dongle on it. Will it switch correctly and allow me to use Mastercam on either computer? I understand it will not run both at the same time. Also will a wireless mouse also work?  It has a usb receiver that will need to be switched.

    Karl

  3. Worst was BRAND NEW horizontal, Forman ran 6" face mill into tombstone at full rapid. Hit so hard the tombstone was knocked over inside the machine. Had to get the forklift to lift it off before any repairs we even started. Just about every piece underneath the tombstone had to be replaced. I heard it was $80,000 + in 1990 dollars. Everybody in the shop thought it was a car crashing into the shop.

  4. I am trying to have the mi variables work to set the extended offset if needed. This is a modified HAAS post.

    I have the misc page set up with additional text correctly (see screen shot attached). I can't seem to remember what I need to get the mi5 to output correctly;(

     

    Here is what I have in the post:

     

    if mi4$ = 1, #use extended offset

    [

    extoffsetnum = mi5$

    "G154 P", extoffsetnum #output extended offset

    ]

     

    and here is the output :

    N120 T116 M6

    N130 G0 G90 G154 P extoffsetnum 10. X2.0359 Y.5566 S6000 M3

    N140 G43 H116 Z.25

     

    I would like it to just output "G154 P10" or whatever number is in mi5

     

    Thanks

    Karl

    post-930-0-85511800-1385058236_thumb.jpg

  5. Hi All,

    If I have an array of all operations in the operation manager, What method or function is there to detirmine if the operation is a contour, circlemill, pocket, surface rough etc.... I'm looking for something like this:

     

    If MyOperation(1) = pocket then

     

    Do Something here like change pocket depth

     

    Elseif Myoperation(1) = Contour then

     

    Do something else like change tool number

     

    End if

     

     

    Using vb.net (express version)

     

    Thanks

     

    Karl

  6. Hi All, I have the following snippet:

     

    bRet = AskExcelValue(strCellF, dblBarrelPosition)' Grab barrel Position (Z Value for the Lathe)

    If bRet = False Then ' Exit clean if value in column F is not a valid input

    ShowString(" Incorrect Value in cell " & strCellF )

    Exit Do

    End If

     

    Question is Is there any way to get a value from the a specific sheet? the excel file will have 4 different sheets that I need to retrieve values from. I will have the name of the sheet already

     

    Thanks

    Karl

  7. I havent had any problems here; using MCX5.1, Windows 7 64bit, and some of my OLE code is old-fashioned LATE BINDING stuff.

    However, you may well have to update the source for incompatibility if the parent apps are updated, to Win7 versions.

     

    Thanks for the info. It is good to know that the it dept is thinking of moving us up and out of the XP world.

    Karl

  8. First you need to change the actual material in mastercam. Do this by going to the machine group properties and selecting the Tool Settings tab. Make sure that The Feed Calculation is set to From material. Then change material to correct material.

    Right click on one or more operations select from the menu - Edit selected operations - Recalculate feeds/speeds.

    Rebuild and verify the new feed and speeds.

     

    If you know what speed / feed you want you could edit all the operations at once by selecting the ops. Right clicking select edit selected operations / edit common parameters

     

    Karl

  9. Roger,

    Thanks for the reply but it is still not working. It's funny that the editor will highlight as blue the try and catch so the editor "knows" about try/catch. If I remove the end sub I get this error when script is ran:

     

    Microsoft VBScript compilation error

    Expected 'Sub'

    IActiveScriptSite:OnScriptError()

    Line: End Catch

     

     

     

     

    Try

    Set sqlJobLookup = objCn.Execute("SELECT * FROM [Job Order Entry] WHERE JobID = " & JobNumber)

    Catch

    Call DisplayUserMessage("Error connecting to the Database!")

    End Sub

    End Catch

     

    maybe? -->

     

    Try

    Set sqlJobLookup = objCn.Execute("SELECT * FROM [Job Order Entry] WHERE JobID = " & JobNumber)

    Catch

    Call DisplayUserMessage("Error connecting to the Database!")

    End Catch

     

    End Sub

  10. I am having an error when I run a script using the try / catch / end catch features. The MC Script Editor correctly highlights the lines but the script will not run with these lines. If I remove the try/catch all is well until the Set sqlJobLookup has an error.

     

    Here is the offending code:

    Try

    Set sqlJobLookup = objCn.Execute("SELECT * FROM [Job Order Entry] WHERE JobID = " & JobNumber)

    Catch

    Call DisplayUserMessage("Error connecting to the Database!")

    End Sub

    End Catch

     

    Is the Try / Catch not implemented in mastercam?

     

    Thanks

     

    Karl

  11. From the MC macro help page:

     

    Use this dialog box to create, edit, and delete macros. This utility is limited to certain uses.

     

    How do I actually edit a recorded macro? There does not seem to be any way except to re-do the macro.

     

    Karl

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