Karl@CP PISTONS
-
Posts
300 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Store
eMastercam Wiki
Blogs
Gallery
Events
Posts posted by Karl@CP PISTONS
-
-
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
-
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.
-
Check out Harvey Tool company. They have a large selection of small / long reach tools.
- 2
-
The format statement did the trick! Sorry but the cut and paste did not show the indention properly.
Thanks a million
-
More for simplicity I think. This is for a classroom environment and with the misc text it describes what to input, seems to be easier to relate P10 with a mi5 = 10 rather then work offset #15.
-
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
-
I've always used the Create - Next Menu - Add-ins - McamVB. This opens a dialog where you can Create a new script or Edit an existing script or Run an existing script. There are lots of example scripts in the mcam9\VB folder.
Karl
-
Thanks rocheey1,
Do you know if there is some documentation as to all the mastercam toolpath types that available?
Karl
-
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
-
rocheey1,
Thanks for the help. I took what you posted and it worked as advertised......
Like always this forum Rocks.....
Karl
-
Thanks for the reply. I was looking for something using mastercam VBA but maybe this can be made to work. I'll try to massage this and if I come up with anything I'll post here.
Karl
-
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
-
hey Karl, where did you make wheels at? I worked at a wheel house on my first job out of school..
I did 6 years with Budnik Wheels here in SoCal. Now making Pistons for mostly Race cars and Boats..... Where did you make wheels at?
Karl
-
When I was turning wheels we used a lot of iscar face grooving tools. The depth and diameter of the cut is critical to selecting the correct tool. Here is a link:
Karl
-
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
-
Sorry Roger, These are mastercam VBA scripts. Some of them use the CreateObject("Scripting.FileSystemObject") and CreateObject("ADODB.Connection"). That is what got me thinking that windows version might cause some difficulties.
Karl
-
Our it dept is asking questions that I have no idea how to answer. We have some scripts that are critical to our day to day operation. Question is these scripts were developed using X4 and X5 under windows XP. Will these transfer into windows 7 64 bit without incident? Anything I need to look out for specifically?
Karl
-
Thanks guys. wow another Karl spelling his name right even lol
You are welcome. There are not to many of of who spell their names correct!
-
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
-
Thanks Roger,
I will use the resume next instead.
VBScript does not support Try Catch that’s a VB.NET statement.
This is about as close as you will get with VBS
On Error Resume Next
' code
' catch your errors and act accordingly
On Error Goto 0
-
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
-
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
-
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
-
I'd try www.Harveytool.com If they do not stock it as standard they will make it for a reasonable price. They Specialize in small tools like this.
Karl
KVM Switching
in Industrial Forum
Posted
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