Advanced Search

Search Results (Searched for: )

  • ffffrf
  • ffffrf
04 Apr 2025 02:53

Using a servo as a spindle and positional axis - keep getting vague errors

Category: Advanced Configuration

Hey - yes I do have the servo manual, however, it is not letting me attach it to the email as it says the attachment size exceeds the result.... Is there any other way I can send it? I would also love to ask you a couple more question on your setup if possible to learn more about how you went about making it incase I need to modify things. Do you have a discord account or something?
  • irwinger
  • irwinger
04 Apr 2025 02:16
Replied by irwinger on topic Spindle control not showing in Axis window...

Spindle control not showing in Axis window...

Category: Basic Configuration

I'm not in front of the LinuxCNC machine as I enter this - but I'm not sure I noticed any where I can change the LOCALE? Could you perhaps provide a bit more detail? I'm heading out to the shop right after I press 'Submit' to see if I can find something. Meanwhile - here are the INI and HAL files.

INI:
There was no [SPINDLE] section when I finished with the StepConf. I added the entire '[SPINDLE]' section from a response from Google Gemini.

# Generated by stepconf 1.1 at Thu Apr  3 15:12:55 2025
# If you make changes to this file, they will be
# overwritten when you run stepconf again

[EMC]
MACHINE = X90
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 = 0.10
MIN_LINEAR_VELOCITY = 0
MAX_LINEAR_VELOCITY = 1.00
CYCLE_TIME = 0.100
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/awalde/linuxcnc/nc_files
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in

[KINS]
JOINTS = 3
KINEMATICS = trivkins coordinates=XYZ

[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 = X90.hal
HALFILE = custom.hal
POSTGUI_HALFILE = postgui_call_list.hal

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

[SPINDLE]
P=1.0
I=0.0
D=0.0
ENCODER_SCALE=0.0
MAX_RPM=1
MIN_RPM=0
ORIENT_PIN=
ORIENT_SPEED=0

[TRAJ]
COORDINATES =  X Y Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
DEFAULT_LINEAR_VELOCITY = 0.10
MAX_LINEAR_VELOCITY = 1.00

#*** AXIS_X *******************************
[AXIS_X]
MAX_VELOCITY = 1.0
MAX_ACCELERATION = 30.0
MIN_LIMIT = -0.01
MAX_LIMIT = 8.0

[JOINT_0]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -0.01
MAX_LIMIT = 8.0
MAX_VELOCITY = 1.0
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 37.5
SCALE = 8000.0
FERROR = 0.05
MIN_FERROR = 0.01
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = 0.050000
HOME_LATCH_VEL = 0.050000
HOME_IGNORE_LIMITS = YES
#******************************************

#*** AXIS_Y *******************************
[AXIS_Y]
MAX_VELOCITY = 1.0
MAX_ACCELERATION = 30.0
MIN_LIMIT = -0.01
MAX_LIMIT = 8.0

[JOINT_1]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -0.01
MAX_LIMIT = 8.0
MAX_VELOCITY = 1.0
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 37.5
SCALE = 8000.0
FERROR = 0.05
MIN_FERROR = 0.01
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = 0.050000
HOME_LATCH_VEL = 0.050000
HOME_IGNORE_LIMITS = YES
#******************************************

#*** AXIS_Z *******************************
[AXIS_Z]
MAX_VELOCITY = 1.0
MAX_ACCELERATION = 30.0
MIN_LIMIT = -4.0
MAX_LIMIT = 0.01

[JOINT_2]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -4.0
MAX_LIMIT = 0.01
MAX_VELOCITY = 1.0
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 37.5
SCALE = 8000.0
FERROR = 0.05
MIN_FERROR = 0.01
HOME_OFFSET = 0.0
#******************************************


HAL: (initially generated from StepConf - but significantly edited as I tested the hardware)

# Generated by stepconf 1.1 at Thu Apr  3 15:12:55 2025
# 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

addf parport.0.read base-thread
addf stepgen.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

net xstep           => parport.0.pin-01-out
setp parport.0.pin-01-out-reset 1
net yenable         => parport.0.pin-02-out
setp parport.0.pin-03-out-invert 1
net zdir            => parport.0.pin-03-out
net ydir            => parport.0.pin-04-out
net ystep           => parport.0.pin-05-out
setp parport.0.pin-05-out-reset 1
net zenable         => parport.0.pin-06-out
net xdir            => parport.0.pin-07-out
net zstep           => parport.0.pin-08-out
setp parport.0.pin-08-out-reset 1
net spindle-on      => parport.0.pin-09-out
net estop-ext       <= parport.0.pin-10-in
net min-home-z      <= parport.0.pin-11-in
net min-home-y      <= parport.0.pin-12-in
net min-home-x      <= parport.0.pin-13-in
net xenable         => parport.0.pin-14-out

setp stepgen.0.position-scale [JOINT_0]SCALE
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 0
setp stepgen.0.dirhold 70000
setp stepgen.0.dirsetup 70000
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
net min-home-x => joint.0.home-sw-in
net min-home-x => joint.0.neg-lim-sw-in

setp stepgen.1.position-scale [JOINT_1]SCALE
setp stepgen.1.steplen 1
setp stepgen.1.stepspace 0
setp stepgen.1.dirhold 70000
setp stepgen.1.dirsetup 70000
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
net min-home-y => joint.1.home-sw-in
net min-home-y => joint.1.neg-lim-sw-in

setp stepgen.2.position-scale [JOINT_2]SCALE
setp stepgen.2.steplen 1
setp stepgen.2.stepspace 0
setp stepgen.2.dirhold 70000
setp stepgen.2.dirsetup 70000
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-ext => 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

 
  • tommylight
  • tommylight's Avatar
04 Apr 2025 00:07
Replied by tommylight on topic Spindle control not showing in Axis window...

Spindle control not showing in Axis window...

Category: Basic Configuration

Upload the hal and ini files here so we can have a look.
In the meantime a stab in the dark would be to change LOCALE to UTF.8 and try making a new config, you can have multiple configs for the same machine.
  • unknown
  • unknown
03 Apr 2025 23:02
Replied by unknown on topic PCIe to ParPort - chipset PCI 60806A works?

PCIe to ParPort - chipset PCI 60806A works?

Category: Computers and Hardware

If it works it works.
Take the win :)
  • langdons
  • langdons
03 Apr 2025 22:03

PCIe - No parport registered at "0x " . This is not Always an error.Continuing.

Category: Advanced Configuration

It gets annoying after the umpteenth time.

It's just a nuisance.

Like mosquitoes (where I live there's no malaria).
  • Cherna
  • Cherna
03 Apr 2025 21:52 - 03 Apr 2025 21:55
Replied by Cherna on topic PCIe to ParPort - chipset PCI 60806A works?

PCIe to ParPort - chipset PCI 60806A works?

Category: Computers and Hardware

The first command came up empty, so effectively no parports to be found.

And the complete log for the second command:
0000-03af : PCI Bus 0000:00
  0000-001f : dma1
  0020-0021 : pic1
  0040-0043 : timer0
  0050-0053 : timer1
  0060-0060 : keyboard
  0061-0061 : PNP0800:00
  0062-0062 : PNP0C09:00
    0062-0062 : EC data
  0064-0064 : keyboard
  0066-0066 : PNP0C09:00
    0066-0066 : EC cmd
  0070-0071 : rtc0
  0080-008f : dma page reg
  00a0-00a1 : pic2
  00c0-00df : dma2
  00f0-00ff : PNP0C04:00
    00f0-00ff : fpu
  0290-029f : pnp 00:01
03b0-03df : PCI Bus 0000:00
  03c0-03df : vga+
03e0-0cf7 : PCI Bus 0000:00
  0400-0453 : pnp 00:04
    0400-0403 : ACPI PM1a_EVT_BLK
    0404-0405 : ACPI PM1a_CNT_BLK
    0408-040b : ACPI PM_TMR
    0420-042f : ACPI GPE0_BLK
    0430-0433 : iTCO_wdt.0.auto
      0430-0433 : iTCO_wdt
    0450-0450 : ACPI PM2_CNT_BLK
  0454-0457 : pnp 00:05
  0458-047f : pnp 00:04
    0460-047f : iTCO_wdt.0.auto
      0460-047f : iTCO_wdt
  04d0-04d1 : pnp 00:03
  0500-057f : pnp 00:04
0cf8-0cff : PCI conf1
0d00-ffff : PCI Bus 0000:00
  1180-119f : pnp 00:04
  b000-bfff : PCI Bus 0000:0b
    b000-b00f : 0000:0b:00.0
      b000-b00f : ahci
    b010-b013 : 0000:0b:00.0
      b010-b013 : ahci
    b020-b027 : 0000:0b:00.0
      b020-b027 : ahci
    b030-b033 : 0000:0b:00.0
      b030-b033 : ahci
    b040-b047 : 0000:0b:00.0
      b040-b047 : ahci
  c000-cfff : PCI Bus 0000:09
    c000-cfff : PCI Bus 0000:0a
      c000-c007 : 0000:0a:00.0
      c010-c017 : 0000:0a:00.0
        c010-c017 : serial
  d000-dfff : PCI Bus 0000:06
    d000-d01f : 0000:06:00.0
      d000-d01f : ahci
    d020-d023 : 0000:06:00.0
      d020-d023 : ahci
    d030-d037 : 0000:06:00.0
      d030-d037 : ahci
    d040-d043 : 0000:06:00.0
      d040-d043 : ahci
    d050-d057 : 0000:06:00.0
      d050-d057 : ahci
  e000-efff : PCI Bus 0000:01
    e000-e07f : 0000:01:00.0
  f000-f01f : 0000:00:1f.3
    f000-f01f : i801_smbus
  f020-f03f : 0000:00:1f.2
    f020-f03f : ahci
  f040-f05f : 0000:00:19.0
  f060-f063 : 0000:00:1f.2
    f060-f063 : ahci
  f070-f077 : 0000:00:1f.2
    f070-f077 : ahci
  f080-f083 : 0000:00:1f.2
    f080-f083 : ahci
  f090-f097 : 0000:00:1f.2
    f090-f097 : ahci
[/code]

Effectively, I have no idea why it doesn't mention a parallel port anywhere.

Edit: Just to add, it works flawlessly, I have been using the machine to cut some plywood, and it works like with the previous computer, not a single issue.
  • unknown
  • unknown
03 Apr 2025 21:44
Replied by unknown on topic PCIe to ParPort - chipset PCI 60806A works?

PCIe to ParPort - chipset PCI 60806A works?

Category: Computers and Hardware

what does
sudo dmesg | grep parport
&
sudo cat /proc/ioports

report ?

Sorry should have added these to begin with.

I had a look at a driver package for the card, bit of research came up with the correct PCI ID, and there was a utility for setting up the card, but it appeared to be a very very binary. Look if it works it works, but it would be interesting to know why lspci doesn't show a parallel port.

As Todd mentioned support gets added as the kernel matures.
  • unknown
  • unknown
03 Apr 2025 21:37

Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!

Category: Installing LinuxCNC

Look for the ethercat thread, process is the same for as for the amd64 platform.

I have gone through the installation process and it completes without any errors.
  • unknown
  • unknown
03 Apr 2025 21:35

PCIe - No parport registered at "0x " . This is not Always an error.Continuing.

Category: Advanced Configuration

A switch when loading the driver regarding the message, have the message on for debugging and another to just log the message ?

Honestly, as I said in my first post is it that hard to click on the message or just leave it popped up ?
  • langdons
  • langdons
03 Apr 2025 21:33

PCIe - No parport registered at "0x " . This is not Always an error.Continuing.

Category: Advanced Configuration

I wasn't aware any log even existed.

Don't rely on logs, they are too often ignored and forgotten.

Prompts are good, but annoying.

Maybe the prompt could have a checkbox for "suppress this warning forever"

Maybe stepconf should just have a little checkbox that says "notify user if port not detected".
  • Masiwood123
  • Masiwood123's Avatar
03 Apr 2025 21:16
Replied by Masiwood123 on topic bandit controller retrofit

bandit controller retrofit

Category: General LinuxCNC Questions

Thank you very much,i managed to move the motors, I don't have any cards or PC at the moment with Mesa and linuxcnc so I tried it via Mach3 and it works great, according to your suggestion, i just have to put in a stronger DC power supply like 80v and limit the drivers to 4a because of the bipolar connection. video in the attachment`` Cheers

www.instagram.com/reel/DH_4KRPKSii/?utm_source=ig_web_copy_link
  • irwinger
  • irwinger
03 Apr 2025 20:40

Spindle control not showing in Axis window...

Category: Basic Configuration

Coming back to my CNC wood router after a good year off (controller PC hard drive died and I got busy renovating my house). I have a new hard drive, doubled the memory (16G), fresh and latest install downloaded last week from here (linuxcnc.org) and I have everything back 'moving and stopping'... except the spindle.

I have an old TB6560 3-axis, chinese controller board (Wantai) driven from my parallel port. It has the outputs for the 3 axes (yes - that is plural for axis - I looked it up) and a spindle on/off control output that I use to control a relay that switches the 120VAC to the Dewalt router.

Back in the 'old days' (when this system worked), there was a section just below the jog/home/tool touchoff buttons where I could turn the spindle on and off. It's not there any more. I've been trying to use Google Gemini and ChatGPT for help (and they are surprisingly helpful if the question is worded well), but I'm just not getting it to work.

I'm using steppers and configured my pins using StepConf. I set the pin for the spindle as parallel port pin 9. But I'm not seeing a [SPINDLE] section in the .ini file nor am I seeing any spindle references in the .HAL file. I can't control the spindle speed (it's a router), only whether it's on or off.

Anyone out there with a good idea of where to start?

Thanks
Arden
  • atrex77
  • atrex77's Avatar
03 Apr 2025 20:11

Developing a Raspberry Pi Pico-based I/O Board for LinuxCNC

Category: General LinuxCNC Questions

Houston, we have a problem, i ordered the io port expander (mcp23017) in wrong package so28 instead of ssop28, and the zener diodes is missing from the order, and i missed the i2c port pullup resistors from the design this need a littlebit of workaround, but the outputs are working now (tbd 62783). Tested with 5v and 24v without load, i messed up 1 of the w5100s-evb-pico-s usb port by pulling the whole microusb inside out but now this programmed trough the SWD debug port, the positive side is i do not need to printing debug info in the usb serial port.
  • tommylight
  • tommylight's Avatar
03 Apr 2025 18:56

New CNC machine with RS232 (plain serial) connection to PC!!!

Category: Show Your Stuff

Feast your eyes and marvel at the modern stupidity i was faced off with today, a new (2024) CNC plasma cutting machine using RS232 or plain old serial at 19200 baud to communicate with the PC, running windows 11 while machine controller running in 32 bit mode!!!
Hypertherm PowerMAX 65 attached to the same box as the PC, with the same DB9 connectors that were inadvertently plugged into the wrong places. Plain simple stepper drives and motors, THC with Ohmic probing, toroidal transformer, etc, or the usual.
RS232 is very flaky at the best of times, but today besides the win s#it, it worked after setting the baud rate and stop bit and flow control.
Considering myself lucky! :)
-




Displaying 1111 - 1125 out of 26686 results.
Time to create page: 0.338 seconds
Powered by Kunena Forum