Attached is a torch voltage component that will read your torch voltage to use as a setpoint when a signal (eg a delay based on ArcOK)
Before using this, you may like to look at your arc voltage wusing halscope to select a delay time. Here are some of my plots using 2mm steel and 8mm steel.
Attachment not found
Attachment not found
In both cases, it seemed that 1.5 seconds was a good time frame (eg at the white lines) so I just hardcoded a delay on ArcOk.
To use, its something like this (Example is based on the external offsets branch
Code:
loadrt timedelay names=THCdelay
net E:feedback <= thcad10.torch-volts
loadrt torchsample names=tvolts
addf tvolts servo-thread
addf THCdelay servo-thread
setp THCdelay.on-delay 1.5
setp THCdelay.off-delay 0
net E:arc-ok => THCdelay.in
net E:feedback => tvolts.voltsin
net enableTHC <= THCdelay.out
# unlink pins in the eoffset_pid setup as we need to override them.
unlinkp motion.digital-out-02
unlinkp motion.analog-out-00
net E:request => tvolts.sampledvolts
net E:feedback <= thcad10.torch-volts
Attachment not found