Button erstellt und er soll auch schalten Button created and he should also swit

More
11 Nov 2023 09:42 #285089 by phillc54
Vielen Dank , es gibt eine kleine Verzögerung bei den Zeitzonen, aber ich werde morgen früh einen Blick darauf werfen.

Please Log in or Create an account to join the conversation.

More
11 Nov 2023 17:58 - 11 Nov 2023 18:22 #285121 by Plasmanfm
No problem, there is a saying in Germany: in the repose is the force
" In der ruhe liegt die Kraft "
def cut_amps_pwmgen_on_clicked(self):
    print("cut_amps_pwmgen_on was clicked")

the qtplasmac_handler is without

def cut_amps_pwmgen_on_clicked(self):
    print("cut_amps_pwmgen_on was clicked")

self.w.cut_amps_pwmgn_on.clicked.connect(self.cut_amps_pwmgen_on_clicked)
 and in theqtplasmac_custom.pss
#estop,
#estop:checked:pressed,
#estop:disabled {
    color: #16160e;
    background:green;
    border-color:green }

#estop:pressed,
#estop:checked,
#estop:disabled:checked {
    color: #16160e;
    background: #ff0000;
    border-color: #ff0000 }
    
 /****** POWER BUTTON ************/
#power,
#power:checked:pressed,
#power:disabled {
    color: #16160e;
    background:#ff0000;
    border-color:#ff0000;}

#power:pressed,
#power:checked,
#power:disabled:checked {
    color: #16160e;
    background:green;
    border-color:green; }   
    
    
 /****** cut_amps_2 ************/
#cut_amps_2 {
    border: 1px solid #ffee06;
    border-radius: 4;
    margin: 0 0 0 0;
    font:32pt }
    
/****** cut amps ************/    
#cut_amps_label {
    color: #16160e;
    background: #ffee06;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px }
       
#cup_amps_frame1{
    border: 1px solid #ffee06;
    background: #16160e;
    border-radius: 4px }   
 
/****** led_cut_amps************/
#led_cut_amps{
    qproperty-flashing:on;
    qproperty-flashRate:250;
    qproperty-color:green;
    qproperty-off_color:#ff0000;
    qproperty-border_color:black;
    qproperty-diameter: 20 }

i can´t this File not attchments
linuxcnc blocket this file !

king regarde and Thank´s
Juergen
Last edit: 11 Nov 2023 18:22 by Plasmanfm.

Please Log in or Create an account to join the conversation.

More
12 Nov 2023 06:21 - 12 Nov 2023 06:30 #285148 by phillc54
Did you want to use the value from the cut_amps_2 widget to set the pwmgen value?

If so then you need a different widget, the HALLabel has an input pin, you would need an output pin like on a DoubleScale like the attached example.

I am also not sure if you need the LED as the PWMGN ON/OFF button already indicates the state.



 
Last edit: 12 Nov 2023 06:30 by phillc54.

Please Log in or Create an account to join the conversation.

More
12 Nov 2023 15:23 #285167 by Plasmanfm
Hello phillc54
A very nice solution, I really like it.
I use the button to switch off Pwmgn if necessary
Yes, the value of cut_amps_2 ( is cat_amp-f ) should be moved up or down
I think if the Pwmgn is turned off; a flashing LED will show more attention
can you send me the changed files?

I would also like to show myself appreciative in some way

king regarde and thnak´s

Juergen


 

Please Log in or Create an account to join the conversation.

More
13 Nov 2023 04:15 #285232 by phillc54
The code is attached. Just copy both files into your config directory. Use the original qtplasmac handler and ui files, this new code will automatically run and there is no need to change any of the existing original code. If you have exiting files with the same name as these then you will need to merge the code into them.
There are four hal pins created:
qtplasmac.cut_amps_pwmgn
qtplasmac.cut_amps_set-s
qtplasmac.cut_amps_set-f
qtplasmac.pwm_led
Attachments:

Please Log in or Create an account to join the conversation.

More
13 Nov 2023 12:42 - 13 Nov 2023 12:48 #285249 by Plasmanfm
    Hallo phillc54so far so good....
but not quite what
I wantthe value of cut_amps-f should be able to be changed up or down we pass the result on to the Pwmgn.
two more little things...
The button like the power button and the flashing LED in redthen everything should be perfectking regarde and thank`sjuergen


king regarde and thank´s
juergen
Attachments:
Last edit: 13 Nov 2023 12:48 by Plasmanfm.

Please Log in or Create an account to join the conversation.

More
14 Nov 2023 05:06 #285344 by phillc54

Did you want to use the value from the cut_amps_2 widget to set the pwmgen value?

Yes, the value of cut_amps_2 ( is cat_amp-f ) should be moved up or down

I think that I am a bit confused as to what you are wanting to do:
Is your pwmgen connected to the original qtplasmac.cut_amps-f or to the new cut_amps_set (which you had as cut_amps_2) ?
 

Please Log in or Create an account to join the conversation.

More
14 Nov 2023 10:03 #285355 by Plasmanfm
Hallo phillc54
My sorry
Yes, it's a bit confusing
it's also a bit difficult to translate

I connected the pwmgen to qtplasmac.cut_amps-f for testing purposes.
cut_amps_2 was the display of the value.

The displayed value should be able to be changed up or down.an example:I choose the material
( Steel 10 mm 50 amps )
the display ( cut_amps_2 )shows me 50 amps and make a cut.
I see that the result is not good.
I change the value with arrows on the display.

pwmgn get the new value and the Display show the new value.

.......and make a new cutI hope I've explained it well now

king regarde and thank`s

juergen

 
 

Please Log in or Create an account to join the conversation.

More
14 Nov 2023 10:40 #285360 by phillc54
OK, I think I have got the idea now. I will get something out for you tomorrow. 
 

Please Log in or Create an account to join the conversation.

More
14 Nov 2023 17:07 - 14 Nov 2023 17:08 #285394 by Plasmanfm
Hallo phillc54
ok
I've dealt with it
The Display starts at 65 (that`s max )
should by to start with cut_amps-f value
the min value is ok and so the max value is ok

Example´s:

If we start at 50, ( cut_amps-f value ) for example, we should then adjust it down to 0 or up to 65
The same
If we start at 40, ( cut_amps-f value ) for example, we should then adjust it down to 0 or up to 65
also when we start a completely new cut with different material


king regarde and thank´s
Juergen
Last edit: 14 Nov 2023 17:08 by Plasmanfm.

Please Log in or Create an account to join the conversation.

Moderators: snowgoer540
Time to create page: 0.175 seconds
Powered by Kunena Forum