Advanced Search

Search Results (Searched for: )

  • garthnoakes
  • garthnoakes
24 May 2024 16:45

Hot wire foam cutter - mapping Z and A axes to U and V

Category: Basic Configuration

My ini and hal files look like this (this is the latest version of Linuxcnc - 2.9.2)

I added to the ini file but have not changed the hal file yet (I can't see where to change it)

ini

# Generated by stepconf 1.1 at Tue May 21 18:01:10 2024
# If you make changes to this file, they will be
# overwritten when you run stepconf again

[EMC]
MACHINE = garthfoam
DEBUG = 0
VERSION = 1.1

[DISPLAY]
DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
ARCDIVISION = 64
GRIDS = 10mm 20mm 50mm 100mm 1in 2in 5in 10in
MAX_FEED_OVERRIDE = 1.2
MIN_SPINDLE_OVERRIDE = 0.5
MAX_SPINDLE_OVERRIDE = 1.2
DEFAULT_LINEAR_VELOCITY = 2.50
MIN_LINEAR_VELOCITY = 0
MAX_LINEAR_VELOCITY = 25.00
CYCLE_TIME = 0.100
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/garth/linuxcnc/nc_files
INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm
GEOMETRY = XYUV

[KINS]
JOINTS = 4
KINEMATICS = trivkins coordinates=XYUV

[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
PROGRAM_EXTENSION = .nc,.tap G-Code File
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python

[TASK]
TASK = milltask
CYCLE_TIME = 0.010

[RS274NGC]
PARAMETER_FILE = linuxcnc.var

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
BASE_PERIOD = 100000
SERVO_PERIOD = 1000000

[HAL]
HALFILE = garthfoam.hal
HALFILE = custom.hal
POSTGUI_HALFILE = postgui_call_list.hal

[TRAJ]
COORDINATES = X Y U V
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
DEFAULT_LINEAR_VELOCITY = 2.50
MAX_LINEAR_VELOCITY = 25.00

[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl

#*** AXIS_X *******************************
[AXIS_X]
MAX_VELOCITY = 25.0
MAX_ACCELERATION = 750.0
MIN_LIMIT = -60000.0
MAX_LIMIT = 60000.0

[JOINT_0]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -60000.0
MAX_LIMIT = 60000.0
MAX_VELOCITY = 25.0
MAX_ACCELERATION = 750.0
STEPGEN_MAXACCEL = 937.5
SCALE = 320.0
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 0.0
#******************************************

#*** AXIS_Y *******************************
[AXIS_Y]
MAX_VELOCITY = 25.0
MAX_ACCELERATION = 750.0
MIN_LIMIT = -60000.0
MAX_LIMIT = 60000.0

[JOINT_1]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -60000.0
MAX_LIMIT = 60000.0
MAX_VELOCITY = 25.0
MAX_ACCELERATION = 750.0
STEPGEN_MAXACCEL = 937.5
SCALE = 320.0
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 0.0
#******************************************

#*** AXIS_U *******************************
[AXIS_U]
MAX_VELOCITY = 25.0
MAX_ACCELERATION = 750.0
MIN_LIMIT = -60000.0
MAX_LIMIT = 60000.0

[JOINT_2]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -60000.0
MAX_LIMIT = 60000.0
MAX_VELOCITY = 25.0
MAX_ACCELERATION = 750.0
STEPGEN_MAXACCEL = 937.5
SCALE = 320.0
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 0.0
#******************************************

**********************

#*** AXIS_V *******************************
[AXIS_V]
MAX_VELOCITY = 25.0
MAX_ACCELERATION = 750.0
MIN_LIMIT = -60000.0
MAX_LIMIT = 60000.0

[JOINT_3]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -60000.0
MAX_LIMIT = 60000.0
MAX_VELOCITY = 25.0
MAX_ACCELERATION = 750.0
STEPGEN_MAXACCEL = 937.5
SCALE = 320.0
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 0.0
#******************************************

#******************************************

hal

# Generated by stepconf 1.1 at Tue May 21 18:01:10 2024
# If you make changes to this file, they will be
# overwritten when you run stepconf again
loadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS
loadrt hal_parport cfg="0 out"
setp parport.0.reset-time 5000
loadrt stepgen step_type=0,0,0
loadrt pwmgen output_type=1

addf parport.0.read base-thread
addf stepgen.make-pulses base-thread
addf pwmgen.make-pulses base-thread
addf parport.0.write base-thread
addf parport.0.reset base-thread

addf stepgen.capture-position servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf stepgen.update-freq servo-thread
addf pwmgen.update servo-thread

net spindle-cmd-rpm => pwmgen.0.value
net spindle-on <= spindle.0.on => pwmgen.0.enable
net spindle-pwm <= pwmgen.0.pwm
setp pwmgen.0.pwm-freq 100.0
setp pwmgen.0.scale 1166.6666666666665
setp pwmgen.0.offset 0.11428571428571428
setp pwmgen.0.dither-pwm true
net spindle-cmd-rpm <= spindle.0.speed-out
net spindle-cmd-rpm-abs <= spindle.0.speed-out-abs
net spindle-cmd-rps <= spindle.0.speed-out-rps
net spindle-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-at-speed => spindle.0.at-speed
net spindle-cw <= spindle.0.forward

net estop-out => parport.0.pin-01-out
net xstep => parport.0.pin-02-out
setp parport.0.pin-02-out-reset 1
net xdir => parport.0.pin-03-out
net ystep => parport.0.pin-04-out
setp parport.0.pin-04-out-reset 1
net ydir => parport.0.pin-05-out
net zstep => parport.0.pin-06-out
setp parport.0.pin-06-out-reset 1
net zdir => parport.0.pin-07-out
net astep => parport.0.pin-08-out
setp parport.0.pin-08-out-reset 1
net adir => parport.0.pin-09-out
net spindle-cw => parport.0.pin-14-out
net spindle-pwm => parport.0.pin-16-out
net xenable => parport.0.pin-17-out

setp stepgen.0.position-scale [JOINT_0]SCALE
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 0
setp stepgen.0.dirhold 37000
setp stepgen.0.dirsetup 37000
setp stepgen.0.maxaccel [JOINT_0]STEPGEN_MAXACCEL
net xpos-cmd joint.0.motor-pos-cmd => stepgen.0.position-cmd
net xpos-fb stepgen.0.position-fb => joint.0.motor-pos-fb
net xstep <= stepgen.0.step
net xdir <= stepgen.0.dir
net xenable joint.0.amp-enable-out => stepgen.0.enable

setp stepgen.1.position-scale [JOINT_1]SCALE
setp stepgen.1.steplen 1
setp stepgen.1.stepspace 0
setp stepgen.1.dirhold 37000
setp stepgen.1.dirsetup 37000
setp stepgen.1.maxaccel [JOINT_1]STEPGEN_MAXACCEL
net ypos-cmd joint.1.motor-pos-cmd => stepgen.1.position-cmd
net ypos-fb stepgen.1.position-fb => joint.1.motor-pos-fb
net ystep <= stepgen.1.step
net ydir <= stepgen.1.dir
net yenable joint.1.amp-enable-out => stepgen.1.enable

setp stepgen.2.position-scale [JOINT_2]SCALE
setp stepgen.2.steplen 1
setp stepgen.2.stepspace 0
setp stepgen.2.dirhold 37000
setp stepgen.2.dirsetup 37000
setp stepgen.2.maxaccel [JOINT_2]STEPGEN_MAXACCEL
net zpos-cmd joint.2.motor-pos-cmd => stepgen.2.position-cmd
net zpos-fb stepgen.2.position-fb => joint.2.motor-pos-fb
net zstep <= stepgen.2.step
net zdir <= stepgen.2.dir
net zenable joint.2.amp-enable-out => stepgen.2.enable

net estop-out <= iocontrol.0.user-enable-out
net estop-out => iocontrol.0.emc-enable-in

loadusr -W hal_manualtoolchange
net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
  • MarkoPolo
  • MarkoPolo
24 May 2024 16:43
Replied by MarkoPolo on topic Error in tool_offsetview.py

Error in tool_offsetview.py

Category: Qtvcp

Great. I tested it and everything works fine. Thanks

One more thing needs to be fixed and qtdragon will be completely usable...
  • PCW
  • PCW's Avatar
24 May 2024 16:36 - 24 May 2024 16:50
Replied by PCW on topic PNCconf 7i92H and 7i76

PNCconf 7i92H and 7i76

Category: PnCConf Wizard

Repeating a post from a month ago:

The 13 ms ping delay is not caused by a power issue (the 7I92 cannot
restart in 13 ms, if it loses power it will take about 1 second to recover),
The delay is most likely caused by some power management running on the host PC.
If this cannot be discovered and changed on the host PC it may be that that
PC is not suitable for real time use.
 
  • tommylight
  • tommylight's Avatar
24 May 2024 16:27
Replied by tommylight on topic PID Autotuning

PID Autotuning

Category: Deutsch

P=1000 <- das erscheint mir aber ziemlich viel!

Furh die stepgen feedback das muss 1000 sein, for die encoder feedback sool mit 30 or 50 einfangen.
  • tommylight
  • tommylight's Avatar
24 May 2024 16:25 - 24 May 2024 17:17
Replied by tommylight on topic PNCconf 7i92H and 7i76

PNCconf 7i92H and 7i76

Category: PnCConf Wizard

--- 10.10.10.10 ping statistics ---
320933 packets transmitted, 320933 received, 0% packet loss, time 320998ms
rtt min/avg/max/mdev = 0.044/0.055/13.566/0.042 ms, pipe 2

That 13.566 is really bad, but no idea why and what is causing it.
Did you try to use a USB-LAN adapter?

Edit, removed info about power supply as it is not relevant to this case.

Sorry for maybe repeating stuff, but we read everything on this forum, so it is hard to keep exact track of info.
  • tommylight
  • tommylight's Avatar
24 May 2024 16:18
Replied by tommylight on topic fixing a mess i made, probably...

fixing a mess i made, probably...

Category: General LinuxCNC Questions

Simplified:
- logic level low on base (via a resistor): Transistor is "off" and current does not flow from C to E. "The switch is open"
- logic level high on base (via a resistor): Transistor is "on" and current flows from C to E. "The switch is closed"

That is correct and nicely explained, thank you.
And the base of the transistor does need a resistor, something like 100-470 OHm should do just fine, otherwise the base will draw to much current for the PWM output and most probably will not work at all without it.
  • garja
  • garja
24 May 2024 16:14
Replied by garja on topic Hardware latency tests, used PC's

Hardware latency tests, used PC's

Category: Computers and Hardware

Thanks Tommy... I'll give it a try.
  • tommylight
  • tommylight's Avatar
24 May 2024 16:13 - 24 May 2024 16:15

Would anyone be interested in a parallel port to mini driver board

Category: Driver Boards

Nice idea, and if it ends up in the 20-30$ range with cheap drives, might just be good to have some.
Using those small drives with good Nema23 motors and some reduction can move some pretty hefty machines, any plasma machine with about 20-25Kg gantry and a motor on each side should still be very usable and safely do 10m/m moves, should also be enough for most desktop mills and lathes, so a very good starting point.
BTW, those thinking of using TMC drives with stealth chop and spread cycle case angular misalignment or something like that, so might not be the best choice for mills and lathes if those features are enabled (they can be disabled), should be ok for plasma.
  • stonebite
  • stonebite
24 May 2024 16:08
Replied by stonebite on topic PNCconf 7i92H and 7i76

PNCconf 7i92H and 7i76

Category: PnCConf Wizard

... some background information is required.
I learn with background information and it's always good for my brain ;o)

1. what computer hardware are you using?
We have already discussed the hardware in great detail in this thread.
Please see my post ...
forum.linuxcnc.org/39-pncconf/52373-pncc...7i76?start=30#298972
... Of course, Debian/LinuxCNC is now installed instead of Linux Mint.

2. what is the result of the command
cat /proc/cmdline

The result is ...
cnc@cnc:~$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-6.1.0-18-rt-amd64 root=UUID=13bd3f25-3c9e-441a-9516-77e2bae79354 ro quiet

3. what is the result of the following commands?
ping -i .2 -c 4 10.10.10.10

ping -i .2 -c 4 10.10.10.10
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
64 bytes from 10.10.10.10: icmp_seq=1 ttl=64 time=0.144 ms
64 bytes from 10.10.10.10: icmp_seq=2 ttl=64 time=0.134 ms
64 bytes from 10.10.10.10: icmp_seq=3 ttl=64 time=0.133 ms
64 bytes from 10.10.10.10: icmp_seq=4 ttl=64 time=0.128 ms

--- 10.10.10.10 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 609ms
rtt min/avg/max/mdev = 0.128/0.134/0.144/0.005 ms

sudo chrt 99 ping -i .001 -q 10.10.10.10

sudo chrt 99 ping -i .001 -q 10.10.10.10
[sudo] Password for cnc:
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
^C
--- 10.10.10.10 ping statistics ---
320933 packets transmitted, 320933 received, 0% packet loss, time 320998ms
rtt min/avg/max/mdev = 0.044/0.055/13.566/0.042 ms, pipe 2

4. have you disabled all power management options in the BIOS?
Are Hyperthreading and AMT (if available) disabled?

I can't really answer that as this topic has not been dealt with further in the thread either. We got stuck on the disassembly of the PC at the time.
I disassembled the Barbone PC, applied new thermal paste and made modifications that significantly improved the cooling. After that, the issue remained unaddressed. As I don't know the terms and the effects in the BIOS, I don't screw around without the support of cracks ;o)
forum.linuxcnc.org/39-pncconf/52373-pncc...7i76?start=10#298822
  • garthnoakes
  • garthnoakes
24 May 2024 16:04

Hot wire foam cutter - mapping Z and A axes to U and V

Category: Basic Configuration

Good point, I have already started wondering about adding a weight to tension the wire, which would enable tapered cuts. So I am going to try Tommy's settings now
  • cmorley
  • cmorley
24 May 2024 16:00
Replied by cmorley on topic Error in tool_offsetview.py

Error in tool_offsetview.py

Category: Qtvcp

Dragon loading progressbar should be fixed now.

[DISPLAY]
GRAPHICAL_MAX_FILE_SIZE = -1

Should allow maximize usage of  the memory for graphical display.
or set it to any integer MB of system memory (default would be 20 MB)
Should work with Qtvcp/GMoccapy/AXIS

Pushed to master

Chris
  • tommylight
  • tommylight's Avatar
24 May 2024 15:49
Replied by tommylight on topic PNCconf 7i92H and 7i76

PNCconf 7i92H and 7i76

Category: PnCConf Wizard

Gentlemen, did you realise that from my photo on page 9?

Yes.
  • tommylight
  • tommylight's Avatar
24 May 2024 15:38
Replied by tommylight on topic Hardware latency tests, used PC's

Hardware latency tests, used PC's

Category: Computers and Hardware

I had those Fujitsu, 4 versions of them, all worked perfectly latency wise, so
-disable hyperthreading
-disable TPM
-disable virtualization
-disable power savings, all
-disable turbo
Not sure what else, it was a few years back, but try those first.
Fujitsu uses very good thermal compound so if the processor has not been removed, it should be OK.
  • tommylight
  • tommylight's Avatar
24 May 2024 15:21

Hot wire foam cutter - mapping Z and A axes to U and V

Category: Basic Configuration

Very little difference between having 2 axis/4joints and having 4 axis/4joints as far as editing goes, so i decided to do the 4 version as it leaves the possibility of doing plane wings ! :)
  • tommylight
  • tommylight's Avatar
24 May 2024 15:16
Replied by tommylight on topic New set of problems

New set of problems

Category: Plasmac

Voltage to low = torch goes up
voltage to high = torch goes down.
Displaying 25861 - 25875 out of 26525 results.
Time to create page: 0.463 seconds
Powered by Kunena Forum