- User Interfaces
- Plasmac
- Button erstellt und er soll auch schalten Button created and he should also swit
Button erstellt und er soll auch schalten Button created and he should also swit
- phillc54
- Offline
- Platinum Member
- Posts: 5698
- Thank you received: 2081
Please Log in or Create an account to join the conversation.
- Plasmanfm
- Offline
- Premium Member
- Posts: 100
- Thank you received: 10
" 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
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
- Posts: 5698
- Thank you received: 2081
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.
Please Log in or Create an account to join the conversation.
- Plasmanfm
- Offline
- Premium Member
- Posts: 100
- Thank you received: 10
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.
- phillc54
- Offline
- Platinum Member
- Posts: 5698
- Thank you received: 2081
There are four hal pins created:
qtplasmac.cut_amps_pwmgn
qtplasmac.cut_amps_set-s
qtplasmac.cut_amps_set-f
qtplasmac.pwm_led
Please Log in or Create an account to join the conversation.
- Plasmanfm
- Offline
- Premium Member
- Posts: 100
- Thank you received: 10
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
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
- Posts: 5698
- Thank you received: 2081
I think that I am a bit confused as to what you are wanting to do: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
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.
- Plasmanfm
- Offline
- Premium Member
- Posts: 100
- Thank you received: 10
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.
- phillc54
- Offline
- Platinum Member
- Posts: 5698
- Thank you received: 2081
Please Log in or Create an account to join the conversation.
- Plasmanfm
- Offline
- Premium Member
- Posts: 100
- Thank you received: 10
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
Please Log in or Create an account to join the conversation.
- User Interfaces
- Plasmac
- Button erstellt und er soll auch schalten Button created and he should also swit