THC experimental

More
01 Feb 2017 19:16 #87134 by andypugh
Replied by andypugh on topic THC experimental

Can the same general thing be done by connecting a sum2 component between the axis.N.pos-cmd motion output and the PID or stepgen input?


Yes, but then you need to lie about the feedback, or you get a following-error.
To make that easier, the "offset" component exists.

However the problem with that is that axis travel limits, velocity limits and accel are not honoured. But they are with the external_offset pin.

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

More
01 Feb 2017 21:18 #87135 by rodw
Replied by rodw on topic THC experimental

Hello


rodw

have modified JT's THC so that it has pins that work directly with the Gmoccapy Plasma screen that I have modified. I have also added the arc voltage sample mode of operation to it.

John


John, I will be very interested in reviewing your sampling code. I've been a bit distracted as there is an error with homing in Gmoccappy which gets very confused if a Joint Axis exists. The most critical error is that it allows a user to home one side of a gantry without the other being moved which sounds very bad to me. I am revising Norberts code to do it properly in the hope that future upgrades don't break any changes to Gmocappy itself. You might like to check this with drive disconnected to your gantry.

Back on the experimental topic! I'm still waiting for a 64 bit ADC shield to arrive for my Arduino. I've played with the Arduino SDFAT libray and with a 16 Gb Class 10 MIcroSD card I have found it can write 512mb blocks of data at a sustained rate of 764 usec per block. That is fast enough to be able to log data during the cut for offline analysis. I was hoping this would help develop better height sampling and volt reading algorithiims.

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

More
05 Feb 2017 23:50 #87377 by BigJohnT
Replied by BigJohnT on topic THC experimental
Dewey is making progress on the external offsets branch but I've been swamped, still need to upgrade the plasma PC to Linux Mint 18 to be able to use the branch. I can't see why it won't be a winner with a PID thc component.

JT

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

More
19 Feb 2017 09:29 - 19 Feb 2017 09:32 #88240 by rodw
Replied by rodw on topic THC experimental
Well, I finally worked out how to checkout another development branch today and had a look at Dewey's experimantal code. I thought I would report on some findings for those following along but not really knowing what to do.

Anyway, if you've compiled LinuxCNC from source, getting the code is dead easy.
git checkout dgarr/external_offsets
make clean
make install
sudo make setuid

To go back to master its just a matter of doing the same above but substitute the first line for
git checkout master

This extends the motion component and adds some extra pins for each axis.

Dewey has added a couple of sims to demonstrate external offsets and the one want is
jwp_z
This opens up this axis screen that comes complete with a demo axis sim that plays with the Z axis


So run the gcode and pause it. Note you can change the offset spin box and each click of the increment or decrement buttons will move the Z up or down by the amount of the offset. You can see the white line is the commanded position, the red line is where we've travelled and that I've hit the increment button a number of times to move the Z axis up. Each time I hit the increment button, the axis moved up by the offset amount.

So can you see some similarities between this and a THC?

Dewey says:
Note: The external offset interface is
similar to the interface for wheel jogging:

Input hal pins:
  axis.L.eoffset-enable (bit)
  axis.L.eoffset-scale  (float)
  axis.L.eoffset-counts (s32)

Requested offset == counts*scale
Here is what the jog wheel docs say on this link:
linuxcnc.org/docs/html/man/man9/motion.9.html

axis.N.jog-counts IN S32
Connect to the "counts" pin of an external encoder to use a physical jog wheel.
axis.N.jog-enable IN BIT
When TRUE (and in manual mode), any change to "jog-counts" will result in motion. When false, "jog-counts" is ignored.
axis.N.jog-scale IN FLOAT
Sets the distance moved for each count on "jog-counts", in machine units.


So to build a THC component on steroids, it seems it is just a matter of what is handled by the external offsets, the THC and the PID components. I hope that description helps some followers. It has helped me get a bit of clarity on this too. I've still got a lot to get my head around myself.
Last edit: 19 Feb 2017 09:32 by rodw.

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

More
19 Feb 2017 12:24 #88254 by BigJohnT
Replied by BigJohnT on topic THC experimental
Finally got the plasma PC upgraded to Linux Mint 17.3 and built the dgarr/external-offsets branch. I've got the thc component almost done just need to sort out how to remove the offset after a cut is finished and I'm ready to test.

JT

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

More
19 Feb 2017 12:37 - 19 Feb 2017 12:38 #88258 by rodw
Replied by rodw on topic THC experimental
I look forward to seeing the results!

I saw some notes about zeroing the offset and on the very last line of
ocs/src/motion/external-offsets.txt

Dewey says
" More complex hal implementations (like eoffset_demo.ini above)
+allow zeroing offsets without requiring a 'Machine-on/Machine-off' toggle."

So the answer is in his ini file somewhere
Last edit: 19 Feb 2017 12:38 by rodw.

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

More
19 Feb 2017 12:46 #88260 by BigJohnT
Replied by BigJohnT on topic THC experimental
Thanks, I'll take a look at that in a bit when I get out to the shop. Testing another branch from Dewey on a mock up gantry for per_sec_homing down here in the beer cave :)

JT

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

More
19 Feb 2017 12:48 #88261 by rodw
Replied by rodw on topic THC experimental
Found it I think. In the same doc file, he says
script (eoffsets_monitor.tcl) to set axis.L.counts pins to zero at Machine-off

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

More
19 Feb 2017 12:55 #88262 by BigJohnT
Replied by BigJohnT on topic THC experimental
I think that is so when you power up you don't get an unexpected movement. I need to remove the offset after the cut is done either as the torch moves up (like I did in the current thc component) or at some safe Z height.

JT

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

More
19 Feb 2017 20:58 #88298 by rodw
Replied by rodw on topic THC experimental

I think that is so when you power up you don't get an unexpected movement. I need to remove the offset after the cut is done either as the torch moves up (like I did in the current thc component) or at some safe Z height.

JT


I understand, so the tricky bit will be sensing a safe height. Best of luck with it.

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

Time to create page: 0.087 seconds
Powered by Kunena Forum