PDA

View Full Version : Replacing C4 etc with my own commands?



GeneMpls
12-10-2014, 12:29 PM
I run my spindle from it's controller. Is there any good reason not to utilize
these for something useful? Thanks Gene

srwtlc
12-10-2014, 02:00 PM
If you don't use any of the OEM customs, you can use them for anything you want. If you use the manual or auto toolchange functionality and related post processor, then you'll need to keep the pertinent customs to run that. There's usually a copy of the OEM custom files, but you can always make another.

Be sure to open and read what any custom file you're thinking of replacing does first so you don't overwrite any needed ones, like C90, C91, C92, and C99.

GeneMpls
12-11-2014, 08:25 AM
Thank you Scott. I should have mentioned I am using 3.6__ so I don't
have the customizable buttons that (I think) 3.8 offers. Gene

srwtlc
12-11-2014, 10:24 AM
Gene, if I understood what you were asking correctly, you can add to or overwrite any of the custom cuts that are in your 'Cuts' menu. If you have never done this, key in CS and follow the instructions in the file that opens. This is able to be done in any version.

As far as buttons go, 3.6 does have the ability to add your own buttons to the tool bar by right clicking on the toolbar below the menu and choose customize. It takes a little to figure it out, but it works. The button program in 3.8 can be implemented in 3.6 if you install 3.8 on another computer and copy over the needed files. Here's a screenshot of my set of buttons that I use in 3.6 or 3.8.

GeneMpls
12-11-2014, 01:37 PM
That is way cool, I am going on a 3 week road trip over xmas and will have
time to catch up on my tutorials etc... and one of the things I wanted to
learn more about is SB3. I tried loading 3.8 but my setup is too old. Thanks
again Scott- if I can't figure out what you are saying I will know where to ask.
Thanks Gene

GeneMpls
12-11-2014, 04:58 PM
Scott- I have been poking around in 3.6 and 3.8 and I can see there
would be a lot of experimenting to get where you are. Is there any
documentation available or... would you be so kind as to post your
custom button file which I could modify to suit me? Thanks Gene

srwtlc
12-11-2014, 08:06 PM
Sure Gene, let me see what I can work up or put together. Are you running Win XP or 7?

GeneMpls
12-11-2014, 09:16 PM
Most of my 'puters are win7's but my control computer is still win XP.
Thanks Gene

srwtlc
12-14-2014, 01:04 AM
Here are the needed files for the button program that is in 3.8. Once in place, you should be able to start SB3 and the set of buttons I have should show up.

For Win 7...
In the zip file are some folders. The one named Buttons-PD goes in 'C:\ProgramData\ShopBot'. Delete the 'Buttons' folder if present and rename this one to 'Buttons'. The 'Buttons-VT' folder goes in 'C:\Program Files (x86)\ShopBot\Virtual Tools'. Delete the 'Buttons' folder if present and rename this one to 'Buttons'. To make the program open when starting SB3, add the line in the VirtualTools ini text.txt file to the VirtualTools.ini file. Just open the files in notepad and copy/paste the text under the section 'Optional Controls' if it's not already there. If it is there, just change the second to last value to 1 instead of 0. This should give you the small button screen shown in the included jpg. To get to the setup screen shown in the jpg, close the buttons window and then go to Tools/Buttons and when clicking on it, hold the shift key. This should open the setup screen. If it doesn't, try again to hit it just right. When you have the setup screen open, you can see what settings are used for each button by clicking on the button and also the form settings. The settings shown in the jpg are the ones that I have found to work best. Don't set 'Auto Arrange' or you'll be chasing buttons around for days and won't catch them! Be sure to check the options in how SB starts if you need/want SB3 to work in different ways when executing a buttons command. All the files associated with my buttons will not exist on your computer so you'll have to change those. You can overwrite the location (copy the path from windows explorer address bar and then the file name) or you can just use 'Create Buttons' to make a new button and use an existing one to see the settings used and then choose to 'Remove selected button'. You can use the size/location fields or the button handles to arrange and size the buttons. Change the names as desired also. With the form set to 'Sizable', you can scale the size of the form also by dragging the window edges/corner. This should get you started on your way to making your own set of buttons.

For Win XP...
The one difference is the Buttons-PD folder that goes in program data in Win 7, goes in 'C:\Documents and Settings\All Users\Application Data\ShopBot' in XP. You may also need to install or update Microsofts .net framework if it's not already installed/updated.

If you're running version 3.6, you can add these files to it to make it work with it.

GeneMpls
12-14-2014, 12:05 PM
Thank you sir. You are very generous- this should be written up as a ShopBot
document of some sort?

I don't have time to get into this today but I did anyway;). Had a normal
amount of trouble getting ,net framework to upgrade and got everything
loaded but the program is looking for 'C:\ProgramData\ShopBot\Buttons\1.0.0.0\Forms.xml' which I think is the win7 location for that file and you
had me put it in a different location for winXP. I will have to troubleshoot
this when I get back from Vaca. Looks like far beyond what I was imagining
when I asked about replacing some of the 'C' commands. Now I am *almost*
sorry to be going to San Diego for a few weeks.

Thanks again... you are a gentleman and a scholar.

srwtlc
12-14-2014, 04:01 PM
Gene, give this a try. Go into the app data folder and delete the buttons.xml file. Then try starting the program again. It should start in edit mode then. I've found XP to be a bit of a conundrum to get the program to start in edit mode again (after setting production mode) by holding the shift key. The way around this is to just edit the buttons.xml file by right click and edit and change the line <Run>1</Run> to <Run>0</Run>. Then, it will open in edit mode next time.

GeneMpls
12-15-2014, 04:35 PM
Deleting the .xml was the ticket. Now I can see some of the internal
workings so I can modify your buttons. Thank you again. Can't wait till
I can come back to this frozen wonderland after the first of the year-
then I will have time to get really involved with it.
You aren't that far from the TC area- if you get down here I would
love to talk to you. I looked up your town in WS- we went thru on Hwy
29 last fall on our way to Manitowoc to catch the ferry... and we go
to Black River Falls to my bro-in-laws river place several times a summer.

srwtlc
12-17-2014, 04:53 PM
Have a good time away Gene and enjoy the climate change! Wasn't too frozen last weekend (50º and fog thick enough to slice for days and no more snow here), but back normal now (frozen). I generally try to steer clear of the Cities ;-), but if I happen through, I'll get in touch. Yeah, you went right past/through.

GRG
01-07-2024, 11:14 AM
I realize I'm resurrecting an ancient thread but I've spent days trying to figure out how to add custom buttons like @srwtlc shows above. I have ver 3.8.92. I've right clicked myself to death all over the SP software and can't find any kind of customize menu that allows me to start adding buttons. I see the Buttons/programmed actions menu in tools and I've created buttons - I just can't figure out how to get them to appear so I can use them. Any help would be appreciated.

srwtlc
01-07-2024, 10:56 PM
Ancient indeed! 2012 called and they say it's waaaaay past time to upgrade to some better control software! 12 years past time for SB3!

That said, when the button window is open, hover your mouse on the window and hit "Shift" and it should open edit mode. If that doesn't work, the easiest way to get back into edit mode is to edit the Buttons.xml file in an editor (NotePad++ is good). The file is located at C:\ProgramData\ShopBot\Buttons\1.0.0.0.

Go back up to post #11 for what to edit, and the next time you start SB3, buttons will start in edit mode again. When done, set production mode.