Mesa 7i95t and THCAD pncconf screen
- kworm
- Offline
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 10
24 Jun 2025 19:57 - 24 Jun 2025 22:25 #330815
by kworm
Mesa 7i95t and THCAD pncconf screen was created by kworm
Hi,
I added support for the Mesa 7i95t to the pncconf wizard (private_data.py with changes attached) and it seems to work ok other than needing to rename the inm to inmux pins for the 7i95t. However, the THCAD configuration screen doesn't appear even though I assign an encoder input to arc voltage. I must be missing something in looking at the code but I don't find where self.d._arcvpin that is used to control the display of the THCAD screen is ever set to anything other than None. I have QTPlasmaC selected as the gui. Any help is appreciated.
Solved: Attached updated files with the THCAD tab working. The pages.py and private_data.py go in /usr/lib/python3/dist-packages/pncconf and the pncconf.txt should be renamed to /usr/bin/pncconf.
I added support for the Mesa 7i95t to the pncconf wizard (private_data.py with changes attached) and it seems to work ok other than needing to rename the inm to inmux pins for the 7i95t. However, the THCAD configuration screen doesn't appear even though I assign an encoder input to arc voltage. I must be missing something in looking at the code but I don't find where self.d._arcvpin that is used to control the display of the THCAD screen is ever set to anything other than None. I have QTPlasmaC selected as the gui. Any help is appreciated.
Solved: Attached updated files with the THCAD tab working. The pages.py and private_data.py go in /usr/lib/python3/dist-packages/pncconf and the pncconf.txt should be renamed to /usr/bin/pncconf.
Last edit: 24 Jun 2025 22:25 by kworm. Reason: Update Info/files
The following user(s) said Thank You: phino
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18775
- Thank you received: 5187
24 Jun 2025 20:34 #330819
by PCW
Replied by PCW on topic Mesa 7i95t and THCAD pncconf screen
Did you also chose QTPlasmaC as the GUI?
(maybe that matters also)
(maybe that matters also)
The following user(s) said Thank You: kworm
Please Log in or Create an account to join the conversation.
- kworm
- Offline
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 10
24 Jun 2025 21:00 #330821
by kworm
Replied by kworm on topic Mesa 7i95t and THCAD pncconf screen
Sorry I should have had that in my initial post...yes I have QTPlasmaC selected as GUI.
Please Log in or Create an account to join the conversation.
- phino
- Away
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
24 Jun 2025 21:05 #330822
by phino
Replied by phino on topic Mesa 7i95t and THCAD pncconf screen
Nice effort! How would one apply the changes to get 7i95t support in pncconf?
What are pros/cons of using pncconf vs mesa CT? github.com/jethornton/mesact
What are pros/cons of using pncconf vs mesa CT? github.com/jethornton/mesact
Please Log in or Create an account to join the conversation.
- kworm
- Offline
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 10
24 Jun 2025 21:15 #330823
by kworm
Replied by kworm on topic Mesa 7i95t and THCAD pncconf screen
You can just replace the private_data.py file in /usr/lib/python3/dist-packages/pncconf with the private_data.py that is attached to my post. I would backup the original file first just in case.
Well MesaCT doesn't support QTPlasmaC at the moment. I have done some work on supporting it but haven't heard from JT if he's interested in bringing those changes in if I make a pull request.
Well MesaCT doesn't support QTPlasmaC at the moment. I have done some work on supporting it but haven't heard from JT if he's interested in bringing those changes in if I make a pull request.
The following user(s) said Thank You: phino
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18775
- Thank you received: 5187
24 Jun 2025 21:23 #330826
by PCW
Replied by PCW on topic Mesa 7i95t and THCAD pncconf screen
This is the only place I noticed it set true:
# for encoder pins
elif widgetptype == _PD.ENCA:
#print"\nptype encoder"
halsignallist = 'hal_encoder_input_names'
humansignallist = _PD.human_encoder_input_names
addsignalto = self.d.halencoderinputsignames
relatedsearch = [_PD.ENCA,_PD.ENCB,_PD.ENCI,_PD.ENCM]
relatedending = ["-a","-b","-i","-m"]
customindex = len(humansignallist)-1
# check for a thcad encoder
if "Arc Voltage" in pinchanged:
self.d._arcvpin = pin
elif self.d._arcvpin == pin:
self.d._arcvpin = None
if self.d._arcvpin and self.d.frontend == _PD._QTPLASMAC:
self.p.page_set_state('thcad', True)
else:
self.p.page_set_state('thcad', False)
# for encoder pins
elif widgetptype == _PD.ENCA:
#print"\nptype encoder"
halsignallist = 'hal_encoder_input_names'
humansignallist = _PD.human_encoder_input_names
addsignalto = self.d.halencoderinputsignames
relatedsearch = [_PD.ENCA,_PD.ENCB,_PD.ENCI,_PD.ENCM]
relatedending = ["-a","-b","-i","-m"]
customindex = len(humansignallist)-1
# check for a thcad encoder
if "Arc Voltage" in pinchanged:
self.d._arcvpin = pin
elif self.d._arcvpin == pin:
self.d._arcvpin = None
if self.d._arcvpin and self.d.frontend == _PD._QTPLASMAC:
self.p.page_set_state('thcad', True)
else:
self.p.page_set_state('thcad', False)
The following user(s) said Thank You: kworm
Please Log in or Create an account to join the conversation.
- kworm
- Offline
- Senior Member
-
Less
More
- Posts: 45
- Thank you received: 10
24 Jun 2025 22:27 #330829
by kworm
Replied by kworm on topic Mesa 7i95t and THCAD pncconf screen
Yes, I overlooked the /usr/bin/pncconf in my search. The problem was that the pin number for the 7i95t first encoder port was 0 which caused "if self.d._arcvin ..." to evaluate to false. I fixed it by using "if self.d._arcvin != None ...".
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.083 seconds