- Posts: 3410
- Thank you received: 0
Parallel Port Configuration Tool
5 years 3 months ago #215515
by BigJohnT
Replied by BigJohnT on topic Parallel Port Configuration Tool
I even have it making the ini file, the rest should fall in line shortly or longer...
JT
Attachment not found
JT
Please Log in to join the conversation.
5 years 3 months ago #215521
by Clive S
Replied by Clive S on topic Parallel Port Configuration Tool
JT
I am sure you are aware that for homing and squaring a gantry machine needs the 2 sync joints needs to be the same -ve number ie. HOME SEQUENCE = -2 if that can be done with your config tool.
Thanks for the big effort you are putting in.
I am sure you are aware that for homing and squaring a gantry machine needs the 2 sync joints needs to be the same -ve number ie. HOME SEQUENCE = -2 if that can be done with your config tool.
Thanks for the big effort you are putting in.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 4
5 years 3 months ago #215528
by tommylight
Replied by tommylight on topic Parallel Port Configuration Tool
Also, parallel port needs a base period, seen missing in the picture ... oh i know it's gone for a swim !
Please Log in to join the conversation.
5 years 3 months ago #215542
by BigJohnT
Thanks for the support.
JT
Replied by BigJohnT on topic Parallel Port Configuration Tool
Yes, I'm aware of that and it's quite fun to sort all this out. I'm sure this tool will be a step above Stepconf in flexibility and features.JT
I am sure you are aware that for homing and squaring a gantry machine needs the 2 sync joints needs to be the same -ve number ie. HOME SEQUENCE = -2 if that can be done with your config tool.
Thanks for the big effort you are putting in.
Thanks for the support.
JT
Please Log in to join the conversation.
5 years 3 months ago #215543
by BigJohnT
JT
Replied by BigJohnT on topic Parallel Port Configuration Tool
Well the base period is in the GUI and is now in the buildini.py file, thanks for pointing that out. With you guys help we can make this a great tool! I am adapting this from my 7i96 configuration tool so some things need sorting out. Still working out how to load the inputs/outputs from the ini file as they are a qpushbutton with a menu added to get the choices which makes for some fun programming but I think an easier to navigate GUI I hope.Also, parallel port needs a base period, seen missing in the picture ... oh i know it's gone for a swim !
JT
Please Log in to join the conversation.
5 years 3 months ago #215684
by BigJohnT
Replied by BigJohnT on topic Parallel Port Configuration Tool
Made some good progress while on vacation and figured out how to set the I/O when loading the ini file. It was quite interesting to do because if you set the port for in or out the number of outputs and inputs changed. I pushed a fresh deb if anyone wants to look at it. Now I can fix the rest of the configuration tools to load the smart serial I/O properly.
if anyone is curious this is how I solved the puzzle.
JT[/code]
if anyone is curious this is how I solved the puzzle.
Code:
if config.has_option('PARAPORT_1', 'PARAPORT_1_TYPE'):
for i in range(len(parent.p1inBtns)):
button = parent.p1inBtns.get(f'p1InPB_{i}')
button.setText(config['PARAPORT_1'][f'PORT_1_IN_{i}'])
for i in range(len(parent.p1outBtns)):
button = parent.p1outBtns.get(f'p1OutPB_{i}')
button.setText(config['PARAPORT_1'][f'PORT_1_OUT_{i}'])
Attachment not found
JT[/code]
Please Log in to join the conversation.
5 years 3 months ago #215787
by BigJohnT
Replied by BigJohnT on topic Parallel Port Configuration Tool
Made more progress this morning and uploaded a deb. The configuration tool will make a configuration that loads without error but no axes are programmed yet... tomorrow.
JT
JT
Please Log in to join the conversation.
5 years 3 months ago #215856
by BigJohnT
Replied by BigJohnT on topic Parallel Port Configuration Tool
Made more progress this morning and the configuration tool will build and load the ini file. There may be a few things missing in the ini, but I can't spot them. On to the hal file now.
JT
JT
Please Log in to join the conversation.
5 years 3 months ago #216039
by BigJohnT
Replied by BigJohnT on topic Parallel Port Configuration Tool
I finally figured out how to handle the joints and a gantry by selecting the joint if the output pin is an axis. If the output is not an axis the combo box is disabled to avoid confusion. Pressing F1 on any tab brings up help for that tab.
JT
Attachment not found
JT
Please Log in to join the conversation.
5 years 3 months ago #216076
by BigJohnT
Replied by BigJohnT on topic Parallel Port Configuration Tool
Kinda slow here today so I got the invert check boxes added and cleaned up the code a bit. The inputs and outputs are build on the fly when you select the port type. It will make a config that does not have an error still working on the axes and joints part of the hal file, but getting close. The goal is easy to use and able to make a gantry configuration.
JT
Attachment not found
Attachment not found
JT
Please Log in to join the conversation.
Time to create page: 0.112 seconds
