Removing Jog panel

If you created a new screenset and want to share it with others then please post it here. You can talk about screens here.

Re: Removing Jog panel

Postby TadasM » Mon Nov 14, 2016 7:57 pm

Thank You Gents for your help. I will test the new code tomorrow morning :)

Another question regarding jog panel. Is it possible to make panel positioned from bottom of the screen, not from top (current jog panel dimensions are 300x400) ?

Jog panel.JPG
Question reg. jog panel


p.s. I finally got working jog panel buttons. It is bit different from Homing buttons for eg as they maintain the current state (not only when pressed) :)

STEP_DIST_001_UP.png
0.001 step distance buttons state UP
STEP_DIST_001_UP.png (1.67 KiB) Viewed 11404 times

STEP_DIST_001_DOWN.png
0.001 step distance buttons state DOWN
STEP_DIST_001_DOWN.png (2.46 KiB) Viewed 11404 times
TadasM
 
Posts: 64
Joined: Thu Oct 27, 2016 10:00 am
Location: Lithuania

Re: Removing Jog panel

Postby TadasM » Mon Nov 14, 2016 8:58 pm

Robertspark wrote:Think you need an exclamation mark before the buttonstate within the if statement

If (!buttonstate){ // ie if NOT true, then make it true,
...
}
else // if true, then make if false.



Robertspark, Gerry,

thank you, it works now :)

Code: Select all
bool buttonstate = AS3.Getbuttonstate(20001);

if (!buttonstate)
    {
   AS3.Switchbutton(true,20001);   
   exec.Setoutpin(2, 5);
    }
else

    {
    AS3.Switchbutton(false,20001);
    exec.Clroutpin(2, 5);
    }
TadasM
 
Posts: 64
Joined: Thu Oct 27, 2016 10:00 am
Location: Lithuania

Re: Removing Jog panel

Postby Robertspark » Mon Nov 14, 2016 9:04 pm

TadasM wrote:Another question regarding jog panel. Is it possible to make panel positioned from bottom of the screen, not from top (current jog panel dimensions are 300x400) ?


I don't think it is possible as there are only 2 parameters associated with the jog panel (X & Y), hence no offset from 0,0 (top left hand corner co-ordinate position).
Robertspark
 
Posts: 1892
Joined: Sat Sep 03, 2016 4:27 pm

Re: Removing Jog panel

Postby ger21 » Mon Nov 14, 2016 11:14 pm

I had an idea, but tried it and it didn't work.
So no, it doesn't appear that you can.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2663
Joined: Sat Sep 03, 2016 2:17 am

Previous

Return to Custom Screensets

Who is online

Users browsing this forum: No registered users and 6 guests