|
Post by Fastest1 on Sept 8, 2011 12:52:41 GMT -8
The way I understand it, in Mach 3 I would have to edit the button script for the "ref all". Can someone explain the exact steps to acheive this? Open Mach 3 Select the"Operator" Select "edit button" Select the "ref all" button At this point a window opens that says HiddenScript-VB Mach 3 editor. It has 1 line of information as follows:#expand <Masters\Scripts\All-RefAllHome> However if I select the "edit" and then "expand" button an entire page of script appears? I am not sure what this all really is but it does have info that looks familiar to what the forums say to edit. However at the top of this whole page it says this:'#Expand Start of #expand <Masters\Scripts\All-RefAllHome> ## Option Explicit '********DO NOT remove or change the expand line or the included file contents****************** ' MachStdMIll license terms REQUIRE that the copyright and License terms remain a part of this source file '#Expand Start of #Expand <Masters\Headers\CopyRightAndLicenseNotice> ## ' Copyright © 2009-2011 Calypso Ventures, Inc. All Rights Reserved. ' This Source file is part of the MachStdMill software. ' For terms and conditions of use by End Users, refer to the MachStdMill End User License Agreement document. ' '#Expand End of #Expand <Masters\Headers\CopyRightAndLicenseNotice> ## Does this mean I am not suposed to change it? Or not to change the master file? I file like I am about to rip the tag off of a mattress! Sneaking around and all.
|
|
|
Post by DaveCVI on Sept 8, 2011 14:06:31 GMT -8
Hi, No sneaking around required You certainly can customize the actions of MSM buttons. A key part of the "mattress tag" that is relevent here is the line that says: " For terms and conditions of use by End Users, refer to the MachStdMill End User License Agreement document." Essentially, as a licensed end user you have the rights under the MSM license necessary to make customizations. However, to learn how to do so, I don't recommend trolling thru the mach forums... the info there will only be relevant to the old style 1024 stock screen set buttons... which is not of as much help as you might think since MSM uses newer Mach facilities and therefore is structured differently that the old screen sets. While the mach forum is full of well meaning folks, there just are not very many mach users that have experience with the newer Mach script interfaces (even though they have been around for close to 2 years now). The info you need is in the MSM user manual - please see chapter 15 - that covers how to customize MSM. I think you may find section 15.7.4 of particular interest... since that is an example which just happens to use the RefAllHome action and shows you how to change the exact button you asked about.... ;D Dave
|
|
|
Post by Fastest1 on Sept 8, 2011 15:03:56 GMT -8
Dave, Thanks for the response. I hope it is simple!
|
|
|
Post by Fastest1 on Sept 8, 2011 15:10:13 GMT -8
Dave, I am back. What am I missing. My manual (v1.1.x april 2011) only goes to Chapter 14.9.4 or to page 252. Am I missing something?
|
|
|
Post by DaveCVI on Sept 8, 2011 15:17:43 GMT -8
Sorry, The chapter #s got reorganized a couple of revs ago - 15 is the chapter in the 1.1.11 manual. But the info has been in the manual for a long time - look for the chapter titled "customizing MachStdMill"
Or you can download the current manual from the CVI web site download page.
Dave
|
|
|
Post by Fastest1 on Sept 9, 2011 4:43:35 GMT -8
Dave, First let me say I understand very little about code (even after reading the manual). I was able to copy the All-RefHome to the custom folder and can see it if I open that file (this is the test quote you suggest) however when I actually press the "Ref All", it starts homing. If I go thru the "operator/edit button/expand I can see that it is still looking in the Masters file. Shouldnt it be looking in the "customs" file?
|
|
|
Post by DaveCVI on Sept 9, 2011 9:30:31 GMT -8
Hi, I suspect you only looked at the instructions in section 15.7.4 for the RefAllHome button customizations.
You also need to create a customized MSM set file, alter it to use the custom RefAllHome button code instad of the master code version and load up MSM using the customized .Set file. W/o those steps you will still be using the Master versions of MSM code. Please refer to section 15.1 thru 15.6 of the manual.
I'm sorry if I sound a bit short on this topic. Please understand that as soon as one ventures into customizing the software, you have to become much more on your own - CVI simply can't afford to "do for you/tech how/debug/support" user customizations.
Dave
|
|
|
Post by DaveCVI on Sept 9, 2011 22:06:37 GMT -8
Hi, I got a break this evening and decided to create a capture of the steps I used to customize the ref all button - I did this and just captured the images as I went along. I'm hoping that this helps - Please let me know if this is easier to follow - if so, I may rework the example in the user manual when I get a chance. Dave Attachments:
|
|
|
Post by Fastest1 on Sept 10, 2011 5:28:43 GMT -8
Dave, Thank you so much. For a man who was short on time I was not expecting such a thorough reply. I am very visual (or reading comprehension challenged?) and that works very well. I will walk thru the steps. I just reviewed it briefly as I was downloading it. Will "All" buttons and dros have to be remapped or can just the "RefAllHome" be changed alone? Again thank you so much!
|
|
|
Post by DaveCVI on Sept 10, 2011 6:10:50 GMT -8
No need to change any buttons other than the one(s) you want to customize. Dave
|
|
|
Post by Fastest1 on Sept 10, 2011 6:15:16 GMT -8
No need to change any buttons other than the one(s) you want to customize. Dave That is great news, I didnt think you would have to rebuild the whole thing but it was looking like it briefly.
|
|
|
Post by Fastest1 on Sept 10, 2011 13:57:57 GMT -8
Dave, Sorry to be a PIA. I have got the screen cloned onto a xml I duplicated for this test. From all I can tell it works in every way except now when I select "Ref All Home" it pops up the message posted in your example. I expected that, however if I were to want simultaneous homing. Would the custom (script) macro/m1.s I had created for the "RefAllHome" button be the only one that needs editing or are there a bunch of steps? I dont mind posting on Mach 3 or somewhere else to get specific info. You have at least led me to where none of my working profiles are in jeopardy. Thanks again, John
|
|
|
Post by DaveCVI on Sept 10, 2011 19:10:14 GMT -8
Hi John, You are down to the easy part Just replace the line in the example that says "msgbox "......" with what ever code you want that button to do. In this case the mach calls that do homing of all axes simultaneously. Now that you know how to customize the button - there is a 2nd "ref all" button on teh main run page - so you need to point it to the new script also. I think those are the only two ref all button in MSM. Dave
|
|
|
Post by Fastest1 on Sept 15, 2011 15:15:43 GMT -8
Well today realizing that all of my profiles were sharing the same homing script. I tried copying and loading screens and managed to F everything up so far in more than 1 profile.
|
|