I have tried using as3.select layer and this works if I press the hotkey twice, first press goes to whichever probe tab I was previously on (eg "page 2), second press changes to setup tab. i tried repeating the 3 lines in the macro and this didn't help, I still had to press the hotkey twice.
- Code: Select all
// Call Probe Setup page
AS3.selectlayer(5);
AS3.selectlayer(26);
AS3.selectlayer(30);
I tried changing to your suggestion, and this does not work with the below error:
CS1061 | in line: 13 | error text: 'UCCNC.Executer' does not contain a definition for 'selectlayer' and no extension method 'selectlayer' accepting a first argument of type 'UCCNC.Executer' could be found (are you missing a using directive or an assembly reference?)
CS1061 | in line: 14 | error text: 'UCCNC.Executer' does not contain a definition for 'selectlayer' and no extension method 'selectlayer' accepting a first argument of type 'UCCNC.Executer' could be found (are you missing a using directive or an assembly reference?)
CS1061 | in line: 15 | error text: 'UCCNC.Executer' does not contain a definition for 'selectlayer' and no extension method 'selectlayer' accepting a first argument of type 'UCCNC.Executer' could be found (are you missing a using directive or an assembly reference?)
- Code: Select all
// Call Probe Setup page
exec.selectlayer(5);
exec.selectlayer(26);
exec.selectlayer(30);
In regard to probing, i probe directly on metal jobs, and with a mobile plate on non conductive jobs. With the previous version using A-Camera's probe screen, this called parameters such as plate thickness, probe diameter, fast probe speed, and slow probe speed. My thinking is that all of these parameters are in the new build so this could be handled internally using the below macro: which works exactly as I need except for the mist on and off not working (see previous above in regard to what i have tried) and the macro not working as m6 which you've explained won't work.
After using the below macro, and using then probing at the fixed position everything is reference and I hope that after I manually change the tool, the macro will handle moving back to the fixed probe position, turn on mist to clear any chips and then probe to adjust tool length.
- Code: Select all
// Initial Z Probe for stock
if(!exec.GetLED(56)||!exec.GetLED(57)||!exec.GetLED(58)) // If machine was not homed then it is unsafe to move in machine coordinates, stop here...
{
MessageBox.Show("The machine was not yet homed, home the machine before run to parking position!");
exec.Stop();
return;
}
exec.Callbutton(801); // select tool probe mode
exec.Callbutton(840); // select touch probe mode
exec.Callbutton(850); // Ref current as workpiece
exec.Miston();; //Turn Mist On
exec.Callbutton(821); // start probing
exec.Stopcoolant(); // Turn Mist Off
I have also attached my old m6 macro, which calls the parameters from A_Camera's probing screen for reference.
Thank you again, I hope that i have explained this well enough, i don't often explain things clearly.