- Posts: 73
- Thank you received: 0
THC for Hypertherm 45XP based on DT-115 / LM393 comparator
- radek_marko
- Topic Author
- Offline
- Senior Member
-
On the product panel I can see the pierce height, cut height etc and I do not see any info re ARC current or ARC voltage.
I'm guessing it does work auto-magically, but what's the source of the magic?
Please Log in to join the conversation.
Please Log in to join the conversation.
- radek_marko
- Topic Author
- Offline
- Senior Member
-
- Posts: 73
- Thank you received: 0
Please Log in to join the conversation.
- radek_marko
- Topic Author
- Offline
- Senior Member
-
- Posts: 73
- Thank you received: 0
From THCAD FO+ to parallel port input, set that input as the encoder A input in hal.
My board arrived and I've connected both sides of the board but I'm struggling with HAL.
My FO+ wire is connected to LPT2 IN PIN 15 (parport.1.pin-15-in), Hypertherm is set to 20:1 voltage divider.
I would appreciate some help or even an example of HAL file with THCAD-10 connected.
I have added my plasma_connections.hal below. I've removed existing UP/DOWN move inpus from my non-functioning DT-115 THC.
# net plasmac:move-up parport.1.pin-13-in => plasmac.move-up
# net plasmac:move-down parport.1.pin-12-in => plasmac.move-down
I have the following questions:
1. Where do I need to connect FO- signal from THCAD-10 board (currently not connected)
2. I was expecting to find ENCODER A commented out in hall file, but I do not see it - where can I find example?
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22010
- Thank you received: 3
- a base period set as low as it can go without having latency error displayed
- based on that value and the max steps the port can read a calculated decision can be made to use the 1/32 or 1/64 or 1/128 divider on THCAD
- loadrt for the encoder
- addf for the encoder
- Encoder mode
- encoder phase A wired in hal to parallel port input
Attached is a working configuration, but the important parts are in the torchud.hal file.
Please Log in to join the conversation.
You need to load an encoder component to use the THCAD's frequency output
with a parallel port
for example:
loadrt encoder
addf encoder.update-counters base-thread
addf encoder.capture-position servo-thread
setp encoder.N.counter-mode true
net enca encoder.N.phase-A parport.1.pin-15-in
Please Log in to join the conversation.
- radek_marko
- Topic Author
- Offline
- Senior Member
-
- Posts: 73
- Thank you received: 0
I was searching for the phrase ENCODER and found the following in the documentation:
Then I have spotted the sticker at the bottom of THCAD boardThe limit is in the range of 10KHz to 50KHz, depending on the computer speed and other factors
Attachment not found
Attachment not found
and now with Tommylight's comment
based on that value and the max steps the port can read a calculated decision can be made to use the 1/32 or 1/64 or 1/128 divider on THCAD
It makes perfect sense! I need to find which parameter in the config reflects F/32, F/64 or F/128.
So, I will modify my .ini file to add new torchud.hal - a copy of Tommylight's. In the hal file I will change the input port.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22010
- Thank you received: 3
And theradek_marko wrote: So, I will modify my .ini file to add new torchud.hal - a copy of Tommylight's. In the hal file I will change the input port.
Final version should look like this:Code:loadrt motmod base_period_nsec=100000 loadrt encoder num_chan=1 addf encoder.update-counters base-thread addf encoder.capture-position servo-thread net enc-phase-a <= parport.1.pin-15-in setp encoder.0.counter-mode 1 net enc-phase-a encoder.0.phase-A
encoder.0.velocity
has to be added into PlasmaC configurator when setting it up.
Please Log in to join the conversation.
- radek_marko
- Topic Author
- Offline
- Senior Member
-
- Posts: 73
- Thank you received: 0
I'm trying to get my head around voltage-offset and voltage-scale.
I've created my calculation for everyone to use if required: docs.google.com/spreadsheets/d/1dGBwp7ia...UeY/edit?usp=sharing
Attachment not found
If I apply frequency divider as F/64 then I'm getting voltage-offset close to one from your config file, but my voltage-scale is way off.
I'm guessing your voltage divider at plasma output must be different than mine (I'm using 1:20).
Please let me know if my logic and calculations are correct.
Please Log in to join the conversation.
Please Log in to join the conversation.
