Plasma THC

More
03 Aug 2018 19:23 #115543 by snugglylovemuffin
Plasma THC was created by snugglylovemuffin
Looking for some examples, information, regarding the integration of a THC (Proma 150) into a mesa ethernet context.

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

More
03 Aug 2018 19:45 #115546 by rodw
Replied by rodw on topic Plasma THC
There is a component designed to work with a proma. Its not specific to mesa and should be simple to install
linuxcnc.org/docs/html/man/man9/thcud.9.html

BigJohnT may have an example gui on his web site
gnipsel.com/shop/plasma/plasma.xhtml
The following user(s) said Thank You: snugglylovemuffin

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

More
11 Aug 2018 16:28 #115895 by snugglylovemuffin
Replied by snugglylovemuffin on topic Plasma THC
I adapted Tommylight's plasma config to my purposes. Went smoother, but I'm still getting about a thousand errors still. "joint.3.pos-cmd" (in the THC hal) already linked to "z-pos-cmd" (in machine hal)

Comment out the z-pos-cmd and then I get a ddt.0 pin "does not exist"

This is ridiculous; I appreciate where I was going wrong before, but as I stated this takes a much deeper appreciation for the function of the individual functions.

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

More
11 Aug 2018 18:08 #115900 by Grotius
Replied by Grotius on topic Plasma THC
Hi David,

The Toma code is designed for parport stepper motor control.
This is i think the reason Tommylight still uses a z axis stepper motor control with this Toma code.

So it's important to use the orginal Toma code, otherwise it will not work. In the installation example you see how to couple
the z axis, normally parport pin 6 and 7. You can try to change this into your mesa config, but let the Toma code untouched.
Change only the parport signal into what you want.
The following user(s) said Thank You: tommylight, snugglylovemuffin

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

More
11 Aug 2018 18:17 #115902 by tommylight
Replied by tommylight on topic Plasma THC

This is i think the reason Tommylight still uses a z axis stepper motor control with this Toma code.


That is true, this is the only reason why i use stepper motors for Z axis on servo machines. Never got the time to make it work with servo motors.
The following user(s) said Thank You: Grotius, snugglylovemuffin

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

More
11 Aug 2018 18:33 - 11 Aug 2018 18:57 #115906 by Grotius
Replied by Grotius on topic Plasma THC
If i look at this piece of Toma code :
net StepZ stepgen.2.step => parport.0.pin-06-out
net DirZ  stepgen.2.dir  => parport.0.pin-07-out

The Toma architecture is based on stepgen. This is stepper motor control.
Maybe there is a trick to make from stepgen a servo controlled z axis. A sort of conversion step will do the work.
But this step is outside the Toma code !!!!

The working solution can be looking like this :
net Conversion_StepZ_in   stepgen.2.step       => Servo_Z_step_in
net Conversion_DirZ_in      stepgen.2.dir          => Servo_Z_dir_in

//So here in the middle the conversion step from stepper to servo will take place.
//It's a component that will do the work.

net Conversion_StepZ_out  Servo_Z_step_out  =>  stepgen.2.step 
net Conversion_DirZ_out     Servo_Z_step_out  =>  stepgen.2.dir

A more usefull code design :
net 1   stepgen.2.step => servo_Z_step_in
net 2   stepgen.2.dir => servo_Z_dir_in
net 3   servo_Z_step_out => stepgen.2.step 
net 4   servo_Z_step_out => stepgen.2.dir

The second code design, is a conversion from stepper to servo signal.
Maybe PCW knows a solution.
I can help to write a short component, because my time is limited.
Last edit: 11 Aug 2018 18:57 by Grotius.

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

More
11 Aug 2018 19:52 - 11 Aug 2018 19:54 #115912 by Grotius
Replied by Grotius on topic Plasma THC
Sorry, i missed something :
net 1   stepgen.2.step => servo_Z_step_in
net 2   stepgen.2.dir => servo_Z_dir_in
net 3   servo_Z_step_out => Mesa ....  
net 4   servo_Z_dir_out => Mesa ....
Or it can be reduced to one, Mesa output signal to connect. This is depending on how easy it is to give the Mesa servo a step & dir command.
net 1   stepgen.2.step => servo_Z_step_in
net 2   stepgen.2.dir => servo_Z_dir_in
net 3   servo_Z_step_dir_out => Mesa ....  
Last edit: 11 Aug 2018 19:54 by Grotius.

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

More
11 Aug 2018 20:15 - 11 Aug 2018 20:16 #115913 by PCW
Replied by PCW on topic Plasma THC
There is no access to the step/dir signals with a hardware step generator.
All controls must be at a higher level, for example stepgen commanded velocity and stepgen position feedback. There 's no reason this cannot be done but it requires someone to understand how the Toma control operates and replace the low level bit fiddling with higher level commands. This also applies to position and velocity mode servos.
Last edit: 11 Aug 2018 20:16 by PCW.

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

More
11 Aug 2018 20:30 - 11 Aug 2018 20:35 #115914 by snugglylovemuffin
Replied by snugglylovemuffin on topic Plasma THC
@ Grotius: I'm using nema 23 steppers with DM542A drivers, does maintain the stepgen heading?

@PCW: Pretty much what I expected; apparently it was naive of me to expect that it would work.

So do I have to sacrifice a virgin to Linus Torvald?

Of the links that rodw posted, one was "under conctruction" and the other was vague and wasn't quite what I was looking for.
Last edit: 11 Aug 2018 20:35 by snugglylovemuffin.

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

More
11 Aug 2018 20:54 - 11 Aug 2018 21:02 #115916 by Grotius
Replied by Grotius on topic Plasma THC
David,

Hmm, i am thinking about pcw :

but it requires someone to understand how the Toma control operates


I don't ever tried Mesa my own, so i can only talk about steppers and stepper compatible servo systems at this moment.
I have ordered a FPGA development board last week, maybe this will bring happyness.

Can i choose in the linuxcnc stepconfig wizard your configuration setup?

I can make a conversion from the stepgenerator input to servo output if i know what the servo system needs.
I can also insert a component into the existing toma code. Last week i published the schematics of this Toma code, done with dot.py
I insterted a Mux4 component into the Toma code to avoid probing each time. But better is to leave the Toma code untouched.
I will be better of in C programming style, it works must faster, and i can write it from beginning to end by myself. Much better.

So do I have to sacrifice a virgin to Linus Torvald?

Haha, if you order a chinese stepper board, 5 dollar, you are ready to go with Toma.
Last edit: 11 Aug 2018 21:02 by Grotius.
The following user(s) said Thank You: snugglylovemuffin

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

Time to create page: 0.082 seconds
Powered by Kunena Forum