Toma/Proma HAL for Mesa Board -Basics
- snugglylovemuffin
- Topic Author
- Offline
- Elite Member
- Posts: 209
- Thank you received: 11
The "thc_parport.hal" file obviously shows parport pins; to switch that to the hm2, is it really as simple as just replacing these lines with the proper hm2 pin?
How do I write the dir+/- step+/- for these pins? Example below for 7i96 specifically
setp hm2_7196.0.stepgen.00.steplen <-step+?
setp hm2_7196.0.stepgen.00.stepspace <-step-?
setp hm2_7196.0.stepgen.00.dirsetup <-dir+?
setp hm2_7196.0.stepgen.00.dirhold <dir-?
Please Log in or Create an account to join the conversation.
- tommylight
- Online
- Moderator
- Posts: 19219
- Thank you received: 6440
I do have a config for Mesa 6i25/7i77 but i have added a stepper drive and motor to the parallel port, so not exactly what you need.
I would also like to know what would be the equivalent of
stepgen.2.position-cmd
stepgen.2.position-fb
so it can work with Mesa stepper and servo cards.
Please Log in or Create an account to join the conversation.
- snugglylovemuffin
- Topic Author
- Offline
- Elite Member
- Posts: 209
- Thank you received: 11
I'm willing to pay for someone to build this for me, and posterity, as long as they help troubleshoot the build.
Please Log in or Create an account to join the conversation.
Are you using a proma thc in your current hardware version?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- snugglylovemuffin
- Topic Author
- Offline
- Elite Member
- Posts: 209
- Thank you received: 11
Please Log in or Create an account to join the conversation.
Wich gui are you using? Axis with Toma pyvcp add on screen?
Please Log in or Create an account to join the conversation.
- snugglylovemuffin
- Topic Author
- Offline
- Elite Member
- Posts: 209
- Thank you received: 11
Have mercy on my soul PCW! Lol. I'll try to figure out the contextual commands and adapt them to my build.
Please Log in or Create an account to join the conversation.
I would also like to know what would be the equivalent of
stepgen.2.position-cmd
stepgen.2.position-fb
so it can work with Mesa stepper and servo cards.
Good question.
1. It can be the equivalent as : position.in + postition.offset = position.out
That is the core function of making the up and down signal possible without following errors.
In my case axis 3 is z axis.
net zpos-cmd joint.3.motor-pos-cmd stepgen.3.position-cmd
net zpos-fb stepgen.3.position-fb => joint.3.motor-pos-fb
If i want to make a component myself for thc it would be connected something like this :
net zpos-cmd joint.3.motor-pos-cmd position.in
net zpos-in position.in stepgen.3.position-cmd
net zpos-fb stepgen.3.position-fb position.out
net zpos-out position.out joint.3.motor-pos-fb
Then the calculation would be like item.1
The orginal offset component to see at man page is calculating in different way.
The component name is here for example : position
The component signal names are for example : in, out
The component variable name is for example : offset. It can have a offset value of 0-100mm for example.
If you read it other way :
position.offset = 50 (input value from thc)
g-code position = 1050
net zpos-cmd joint.3.motor-pos-cmd 1050
net zpos-in 1050 stepgen.3.position-cmd
net zpos-fb stepgen.3.position-fb 1100
net zpos-out 1100 joint.3.motor-pos-fb
For Snuggly,
Hacking into the Toma code is not a good idea to start with.
Maybe ask PCW for advise, he knows what you need to start good with Mesa.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.