Advanced Search

Search Results (Searched for: stepper spindle)

27 Jul 2024 11:34 - 27 Jul 2024 11:37

Summing Z axis on bridgeport

Category: General LinuxCNC Questions

Ok the last two posts are really useful additions & I'm moving along on this now finally although its been awhile (life issues...). I'm tired of cranking the knee manually. I'd like to modify my machine to implement gmouer's method.

I measured the torque to move the knee up and it takes 7nm on my machine with the table laden with the 4th axis spindle and a vice, so I'm going to use a 12nm closed loop stepper, and run it at 3:1 with a 72t htd5 pulley on the end of the knee screw and matching 24t htd pulley on the stepper, with a 133t belt between the two.
On the knee, I was investigating the physical side , and on my interact1 series1 there's a service hatch cover & window behind to enable you to get at the knee crank gear, which is perfect for both replacing the bevel gear which rotates the screw with a pulley, and also for a belt to come out the side of the knee to mount a stepper on there. I think if i unscrew the nut at the top through this, and lock & block up the knee in its highest position, I can crank the screw down enough to put the pulley on without disassembling it all. I will investigate taking the pedestal off and replace the knee elevation screw with a ballscrew.
I read some other comment about the knee on a series1 not being designed to move often etc, so I was surprised to see the machine automatic oiler manifold feeding oil to the knee leadscrew nut and z slideways so I think it could work as a full time axis without wear.


 
19 Jul 2024 14:50

Reconnect to Mesa ethernet card

Category: General LinuxCNC Questions

I have separate power controls for PC, MESA, Steppers & Spindle, if I'm going to be a away for a bit I just turn the Stepper & Spindle power off. And the way I have the relays that control the contactors if the mains goes & comes back on nothing energizes. To an outsider it may seem I have too many separate power supplies.
15 Jul 2024 22:29

Please help me with my ground wiring for my sherline lathe - running into issues

Category: Turning

Hey everyone, I am having an issue where isolated analog output is failing to control my sherline spindle. This issue started after I added a spindle encoder. However, there are other issues going on that make me think there is a serious issue in my ground circuitry. I did a crappy job and there are probably lots of ground loops. Despite removing the encoder, I still get spindle control issues. As it stands, both axis work fine. At one point prior to encoder, everything worked fine.

What makes me suspect a (Dangerous) ground issue - is that moving around my isolated DC power brick (Which hooks into spin- and spin+ to get me my 0-10v range) can sometimes cause the spindle to turn on.

Currently, both axis work fine.

Therefore, I am planning on redoing my wiring, particularly when it comes to ground circuitry. I made a diagram of the new proposed ground circuit and wanted to see if anyone could verify this should work correctly.

My biggest question for this is: Does step- and dir- connect to GND on the steppergen of my 7i96s, or to the ground bar that connects to the sherline frame?

 
13 Jul 2024 04:20 - 13 Jul 2024 06:52

Sorry, Another 'Which Mesa?' Post. (Yes, I read Spumco's magnificient guide)

Category: Driver Boards

A 7I96S would do as it has the 0-10V VFD output  and 5 step/dir axis
and support MPG encoders. You might run out of inputs however.

What signal levels are the Z (Index) outputs?

Another possibility is a 7I95T but its likely overkill

 


Hi again, 
So, I attached some screenshots from the Delta servo manual a few posts above but don't know if they answer your question about the Z pulse signal levels.

Also, I tried to do an updated IO list below. Kinda worst case scenario for now, though. But given the list, which daughter card would you recommend?

Out
  • 4 axis, step/dir
  • 1 spindle via VFD 
    For mist coolant (fancy setup with a peristaltic pump):
  • 1 enable for the peristaltic pump (stepper with its own driver board with a range of speed settings)
  • 1 solenoid for air (I could run them on the same pin, I guess but it would be nice to also have the option of only running air) 

In
  • 1 4-axis MPG with axis select and increment knobs
  • 1 tool setter 
  • 1 probe 
  • 6 limit switches.I don’t know if these should be connected in series and what the impact would be, except for saving on pins. But I could also feed limit switches to the servo drivers and not the Mesa. 
  • 1 “home switch” for rotary homing together with Z pulse 
  • 4  Z pulse from the servo drives for homing (rotary axis at some point in the future) 
  • 3-4 Servo Enables (I can also program the servos to enable by default as the drives power on) 
  • 3-4 Servo Alarms (not sure it’s needed) 
  • 3-4 Servo Alarm Resets (not sure it’s needed) 
  • 3-4 Servo COMs (not sure it’s needed) 
  • 3-4 E-stop to servo drives (Not really needed but may be nice to have the drives stop the servos?)

Again, this is my first CNC, so I am not sure what’s prudent nor practical. Maybe it’s ok to run all limit switches in series and maybe the servo enables, alarms and resets, too? Also, no hard buttons at all on that list and I may have forgotten something. But it sure starts looking like some more IOs would be nice.
12 Jul 2024 03:43

Sorry, Another 'Which Mesa?' Post. (Yes, I read Spumco's magnificient guide)

Category: Driver Boards

Hi all, 
Looong time lurker but finally signed up and first post here. 
Quick background, I've wanted a CNC mill/router for years and was intending to have a custom granite frame made and put on good, used hardware but a cast iron 3040 (cm) Chinese machine came up and I jumped on that. It came with a standalone, Chinese controller that I know I will have to ditch as I want a nicer GUI and also, it can't do probing. Finally, I am over my 'Linux is too hard for me' phase, so here I am:) 

Apologies if my lingo is off or I am missing some electronical know how, but I will do my best. 

Anyways, from reading a bunch of posts, I am leaning towards a 7i96s board but I am not sure of whether I need a daughterboard and if so, which one? E.g. I am not sure I can attach an MPG to the 7i96s? I recall someone mentioning that perhaps one of the step/dir banks could be used for it? 
Would it be ok if I do description of the machine below and maybe one of you can judge which daughterboard I'd need, if any?

4 Axis/ 4 Servos
Three axis, one servo on each but I see a rotary in my future, so let's call it four. 
I can set the Delta servos up to enable as soon as they boot (I hope that's not bad practice) so that saves a pin, each. But I would need to read, at least, the Z pulse for homing. Also, not sure what else is common without going overboard, maybe an alarm and alarm reset?

Spindle
I guess I will be running 0-10V to the VFD. (The VFD is also a Delta)

Limit Switches
The router will have Delta servos on it (came with steppers, but I have the servos already). It has cheap proximity limit switches on both ends of each axis and I intend to home the machine via the Z pulse of the servo. 

Mist Coolant
The machine will run mist only, no flood. Would be great to have this hooked up to the board. 

ATC
No ATC, none planned, either.

Pendent/MPG
I have a cheap one with the encoder wheel and two knobs (axis and increments) that I would like to use. But I could also get the wireless WHB04B-4 down the road. I guess that works with a USB dongle - so maybe it doesn't take up any IOs on the board...?

Tool Setter and Probe
I'd like to have a tool setter on the table and then also a probe.

I would love to just be able to give you a total of IO counts, but I am actually not sure how many the servos will eat up and honestly, I am sometimes still confused about what needs analog vs. dig signals. 

Anyhow, sorry for the long write up. If you made it this far, I am basically asking whether the 7i96s can run an MPG and if it has enough IOs or if I need a daughterboard and if so, which one would be a good one?
11 Jul 2024 15:50

Appreciation to the Mesa board

Category: Driver Boards

Hey I'm so happy rite now I just have to show my appreciation for what I've got!  First off I want to thank PCW for being a genius and creating the Mesa board.  I also want to thank TommyLight for the inspiration to make a goal of fixing my machine.  It originally had a spindle issue and sucked at properly functioning as a PMW based VFD.  So replaced it with a T6 from StepperOnline threw it in the case and slapped a Mesa 7i96 to in and it fired rite up with no issues what so ever!  Anyways I'm so proud of this and want to let everyone at LinuxCNC know that I really appreciate all this!  

If there's anything I can do to help or contribute to the awesome CNC movement let me know.


Lol, a quick question.  How do I speed up the homing function on each axis?  Thanks




 
10 Jul 2024 14:18

Getting started with 6i25+7i75+7i85s

Category: PnCConf Wizard

Dear gods, I've got the cards mentioned in the subject, and my purpose is to run a lathe with:
- STEP/DIR steppers for x and z axes
- quadrature linear encoders for x and z axes
- Argon servo drive to run the dc spindle motor
- a stepper, a solenoid and an absolute encoder for a tool carousel (although this one might be easier to control with a separate microcontroller?)
- relays for coolant and lubrication pumps

I've found that PncConf does not have the firmware option for my selection of cards, and now I have little clue as to how to proceed.
Why I'm in such a pickle is that I had a friend pick those boards for me, but later, he has become too busy to help me with setting them up.

So, I suppose my question is what should I do? Money or sunken costs are really not an issue. If I should buy new cards that are easier to setup, or pay someone to guide me, then I will.
Oh, and I do also have a 7i73, but no panel or pendant built or even planned yet, so I'm not so worried about that one. For now, I will be a happy man if I can just get the machine to run at all.
04 Jul 2024 18:22 - 04 Jul 2024 18:40

Updated linuxcnc 2.7 -> 2.9, now parallel port card not working with sherline

Category: General LinuxCNC Questions

So... I recently got a sherline lathe, and opted to download linuxcnc 2.7 to my dell optiplex 7010. I used a startech pcie to parallel port card and followed the instructions but kept getting errors, however, towards the end, I realized the computer did detect it via lspci -v, and set up stepconf with the lathe and got everything to work.

Now, I eventually plan to use a mesa ethernet board with the lathe so I thought in the meantime to upgrade to the newest linuxcnc version and set up the lathe the same way.

However, it is not working. In stepconf when I test my axis they work, but when I compile, the software no longer moves the axis. When I do sudo lspci -v I do see my parallel port at the address e010 just as i did on linux 2.7. However, when I open up linuxcnc and type in a g code like g01 Z5 F100, I get "no parport registered at e010 (or 0xe010)" and nothing happens. I do not always get "no parport registered at e010 (or 0xe010)" when I restart linuxcnc but regardless the axis do not move.

I am at a loss on what to do as this is the exact same hardware I have been using. I tried clicking on the sherline pins in stepconf as I think that inverts them but nothing has worked. 

In stepconf the axis works, and the steppers are energized. If I change the parport address to anything other than e010 or 0xe010, the axis no longer work in stepconf, so I know it is the right address


SHERLINE INI, HAL and terminal
# Generated by stepconf 1.1 at Thu Jul  4 12:14:30 2024
# If you make changes to this file, they will be
# overwritten when you run stepconf again

[EMC]
MACHINE = sherline
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/maksym/linuxcnc/nc_files
INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm
LATHE = 1

[KINS]
JOINTS = 2
KINEMATICS = trivkins coordinates=XZ

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

[TRAJ]
COORDINATES =  X Z
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 = 23.75
MAX_ACCELERATION = 750.0
MIN_LIMIT = -0.001
MAX_LIMIT = 200.0

[JOINT_0]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -0.001
MAX_LIMIT = 200.0
MAX_VELOCITY = 23.75
MAX_ACCELERATION = 750.0
STEPGEN_MAXACCEL = 937.5
SCALE = 400.0
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 0.0
#******************************************

#*** AXIS_Z *******************************
[AXIS_Z]
MAX_VELOCITY = 23.75
MAX_ACCELERATION = 750.0
MIN_LIMIT = -100.0
MAX_LIMIT = 0.001

[JOINT_1]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -100.0
MAX_LIMIT = 0.001
MAX_VELOCITY = 23.75
MAX_ACCELERATION = 750.0
STEPGEN_MAXACCEL = 937.5
SCALE = 400.0
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 0.0
#******************************************



SHERLINE HAL:

[code]# Generated by stepconf 1.1 at Thu Jul  4 12:14:30 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="0xe010 out"
setp parport.0.reset-time 5000
loadrt stepgen step_type=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 35000
setp stepgen.0.dirsetup 35000
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 35000
setp stepgen.1.dirsetup 35000
setp stepgen.1.maxaccel [JOINT_1]STEPGEN_MAXACCEL
net zpos-cmd joint.1.motor-pos-cmd => stepgen.1.position-cmd
net zpos-fb stepgen.1.position-fb => joint.1.motor-pos-fb
net zstep <= stepgen.1.step
net zdir <= stepgen.1.dir
net zenable joint.1.amp-enable-out => stepgen.1.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




TERMINAL:

[code]02:00.0 Serial controller: Asix Electronics Corporation Device 9105 (prog-if 02 [16550])
    Subsystem: Asix Electronics Corporation (Wrong ID) Device 1000
    Flags: fast devsel, IRQ 16, IOMMU group 10
    I/O ports at e020
[size=8]    Memory at f7c03000 (32-bit, non-prefetchable)
=4K%    Memory at f7c02000 (32-bit, non-prefetchable)
=4K%    Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+
    Capabilities: [78] Power Management version 3
    Capabilities: [80] Express Legacy Endpoint, MSI 00
    Capabilities: [100] Virtual Channel
    Capabilities: [800] Advanced Error Reporting

02:00.2 Parallel controller: Asix Electronics Corporation AX99100 PCIe to Multi I/O Controller (prog-if 03 [IEEE1284])
    Subsystem: Asix Electronics Corporation (Wrong ID) Parallel Port
    Flags: bus master, fast devsel, latency 0, IRQ 3, IOMMU group 10
    I/O ports at e010
[size=8]    I/O ports at e000
[size=8]    Memory at f7c01000 (32-bit, non-prefetchable)
=4K%    Memory at f7c00000 (32-bit, non-prefetchable)
=4K%    Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+
    Capabilities: [78] Power Management version 3
    Capabilities: [80] Express Legacy Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting




 [/size][/size][/size]
[/code][/code]
04 Jul 2024 00:13 - 04 Jul 2024 01:21

sherline ballscrew lathe moving 0.99mm for each 1mm...linux or machine issue?

Category: General LinuxCNC Questions

I am running linuxcnc 2.7 for a sherline ballscrew lathe that I just received. They had a disc that came with linux 2.6 but I opted to set things up on my own with stepconf and a parallel port adapter. I hooked everything up and got it all working but am getting a puzzling issue...For ever 1mm I move in Gcode, the machine moves 0.99mm. This means if I move it 5mm it end sup at 4.95, and if I move it 10mm it ends up at 9.9 and so on and so forth. I am using a perpendicular dial test indicator and this is for the Z axis. This would not be typical backlash behavior.

My question is...is this a lathe issue or a linux issue? I am using the sherline high torque stepper motors which are branded as "anaheim automation 23y204D-LW5-01"


EDIT: I used a better dial indicator and the problem was not as bad as I first thought HOWEVER - what I am noticing is that the lathe actually moves shorter only in the forward direction, going backwards it ends up dead on. But no matter how I change my backlash adjustment it does not fix it

EDIT#2: could it actually be due to my dial indicator not being perfectly perpendicular to the saddle?

I borrowed .ini file settings some from the original disc and others made through the stepconf. 

-it is hard to find specs on sherlines ballscrews but I found that they said it was a pitch of 2mm

-I have only texted axis #2 so far (in the ini file)
-I purposely # out the backlash comp as I realized it was not backlash


Stepconf settings:

Driver microsteps: 2 (dont know where to find this online for my steppers, so kept generic)
leadscrew pitch: 2mm
pulley teeth: 1:1


Ini file below: 

# Generated by stepconf 1.1 at Wed Jul  3 10:51:18 2024
# If you make changes to this file, they will be
# overwritten when you run stepconf again

[EMC]
MACHINE = sherline
DEBUG = 0

[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
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/mg/linuxcnc/nc_files
INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm
LATHE = 1

[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
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
COMM_WAIT = 0.010
BASE_PERIOD = 50000
SERVO_PERIOD = 1000000

[HAL]
HALUI = halui
HALFILE = sherline.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal

[HALUI]
# add halui MDI commands here (max 64) 

[TRAJ]
AXES = 3
COORDINATES = X Z
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 2.50
MAX_VELOCITY = 25.00

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

[AXIS_0]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 23.75
MAX_ACCELERATION = 750.0
STEPGEN_MAXACCEL = 755
SCALE = 400.0
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -1016.0
MAX_LIMIT = 203.2
HOME_OFFSET = 0.0

[AXIS_2]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 23.75
MAX_ACCELERATION = 750.0
STEPGEN_MAXACCEL = 755
SCALE = 400.0
# BACKLASH = 0.03
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -1016.0
MAX_LIMIT = 431.8
HOME_OFFSET = 0.0
 
03 Jul 2024 21:55

Error finishing read! Iter and joint following error in Stepper machine

Category: General LinuxCNC Questions

Hello guys
i am getting some errors related to stopping the movement of the axis suddenly with a Error Finishing read and joint following error although I have a 2000000 servo period.

is there anyway can I improve my ini file to get over this?
would it be ok to increase servo period further?

thank you
.# Generated by PNCconf at Sat Dec 23 11:16:08 2023
# Using LinuxCNC version:  Master (2.9)
# If you make changes to this file, they will be
# overwritten when you run PNCconf again

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

[DISPLAY]
DISPLAY = qtvcp qtplasmac
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 2.000000
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/tru/linuxcnc/nc_files
INCREMENTS = 10mm 1mm .1mm .01mm .001mm
POSITION_FEEDBACK = ACTUAL
DEFAULT_LINEAR_VELOCITY = 133.333333
MAX_LINEAR_VELOCITY = 166.666667
MIN_LINEAR_VELOCITY = 0.500000
DEFAULT_ANGULAR_VELOCITY = 12.000000
MAX_ANGULAR_VELOCITY = 180.000000
MIN_ANGULAR_VELOCITY = 1.666667
GEOMETRY = xyz
CYCLE_TIME = 100

[FILTER]
PROGRAM_EXTENSION = .ngc,.nc,.tap GCode File (*.ngc, *.nc, *.tap)
ngc = qtplasmac_gcode
nc  = qtplasmac_gcode
tap = qtplasmac_gcode

[TASK]
TASK = milltask
CYCLE_TIME = 0.010

[RS274NGC]
PARAMETER_FILE = linuxcnc.var
RS274NGC_STARTUP_CODE = G21 G40 G49 G80 G90 G92.1 G94 G97 M52P1
SUBROUTINE_PATH = ./:../../nc_files
USER_M_PATH = ./:../../nc_files


[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
SERVO_PERIOD = 2000000

[HMOT]
CARD0=hm2_7i96s.0

[HAL]
HALUI = halui
HALFILE = cbv.hal
HALFILE = qtplasmac_comp.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal
SHUTDOWN = shutdown.hal

[HALUI]

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

[TRAJ]
SPINDLES = 3
COORDINATES =  XYZ
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
DEFAULT_LINEAR_VELOCITY = 10.00
MAX_LINEAR_VELOCITY = 100.00
POSITION_FILE = position.txt
NO_FORCE_HOMING = 1

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

#******************************************
[AXIS_X]
# MAX_VEL & MAX_ACC need to be twice the corresponding joint value
MAX_VELOCITY = 100.0
MAX_ACCELERATION = 750.0
OFFSET_AV_RATIO = 0.5
MIN_LIMIT = -0.01
MAX_LIMIT = 2000.0

[JOINT_0]
TYPE = LINEAR
HOME = 0.0
FERROR = 10.0
MIN_FERROR = 1.0
MAX_VELOCITY = 50.0
MAX_ACCELERATION = 375.0
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAXVEL = 62.50
STEPGEN_MAXACCEL = 468.75
P = 1250.0
I = 0.0
D = 0.0
FF0 = 0.0
FF1 = 1.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 0.0
# these are in nanoseconds
DIRSETUP   = 10000
DIRHOLD    = 10000
STEPLEN    = 5000
STEPSPACE  = 5000
STEP_SCALE = 88.0
MIN_LIMIT = -0.01
MAX_LIMIT = 2000.0
HOME_OFFSET = -5.000000
HOME_SEARCH_VEL = -33.333333
HOME_LATCH_VEL = -0.500000
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 1
#******************************************

#******************************************
[AXIS_Y]
# MAX_VEL & MAX_ACC need to be twice the corresponding joint value
MAX_VELOCITY = 200.0
MAX_ACCELERATION = 1500.0
OFFSET_AV_RATIO = 0.5
MIN_LIMIT = -0.01
MAX_LIMIT = 3000.0

[JOINT_1]
TYPE = LINEAR
HOME = 0.0
FERROR = 10.0
MIN_FERROR = 1.0
MAX_VELOCITY = 100.0
MAX_ACCELERATION = 750.0
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAXVEL = 125.00
STEPGEN_MAXACCEL = 937.50
P = 1250.0
I = 0.0
D = 0.0
FF0 = 0.0
FF1 = 1.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 0.0
# these are in nanoseconds
DIRSETUP   = 10000
DIRHOLD    = 10000
STEPLEN    = 5000
STEPSPACE  = 5000
STEP_SCALE = -88.0
MIN_LIMIT = -0.01
MAX_LIMIT = 3000.0
HOME_OFFSET = -5.000000
HOME_SEARCH_VEL = -33.333333
HOME_LATCH_VEL = -0.500000
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 2
#******************************************

#******************************************
[AXIS_Z]
# MAX_VEL & MAX_ACC need to be twice the corresponding joint value
MAX_VELOCITY = 200.0
MAX_ACCELERATION = 1300.0
OFFSET_AV_RATIO = 0.5
MIN_LIMIT = -0.0
MAX_LIMIT = 100.01

[JOINT_2]
TYPE = LINEAR
HOME = 100.0
FERROR = 10.0
MIN_FERROR = 1.0
MAX_VELOCITY = 100.0
MAX_ACCELERATION = 650.0
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAXVEL = 125.00
STEPGEN_MAXACCEL = 812.50
P = 1250.0
I = 0.0
D = 0.0
FF0 = 0.0
FF1 = 1.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 0.0
# these are in nanoseconds
DIRSETUP   = 10000
DIRHOLD    = 10000
STEPLEN    = 5000
STEPSPACE  = 5000
STEP_SCALE = 290.0
MIN_LIMIT = -0.0
MAX_LIMIT = 100.01
HOME_OFFSET = 104.000000
HOME_SEARCH_VEL = 10.000000
HOME_LATCH_VEL = 0.500000
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 0
#******************************************
02 Jul 2024 08:14

A Treatsie on the Parallel Port

Category: Installing LinuxCNC

  • A
    • EN - enable - DB14 - shared with X enable
    • CW - dir - DB-03
    • CK - step - DB-02

  • Z
    • EN - enable - DB-08
    • CW - dir - DB-06
    • CK - step - DB-07
  • Y
    • EN - enable - DB-09
    • CW - dir - DB-05
    • CK - step - DB-04
  • X
    • EN - enable - DB-14 - shared with A enable
    • CW - dir - - DB-17
    • CK - setp - DB-16

DB 10 - 11 - 12 -13 - 15 Inputs via opto couplers
DB 1 5v output marked as Motor

If I was wiring this, assuming a 3 axis mill with no rotary axis nor a slaved axis as in a gantry:
The enables for X Y Z I would not connect to the stepper motors, most simple machines use this method.
Connector A I would use for the spindle with PWM output on CK, CW for forward and EN for enable. Tho you could use CW for forward and EN for Reverse depending on the spindle itself.
Connector "MOTO" could be used for any needed output.

IMHO the naming convention for the connectors doesn't conform to the "defacto standard", Pins 2-9 for axis x-y-z-a. Honestly this looks like a poorly designed board. The 1N4007 after the 5v regulator with drop that voltage to 4.2 to 4.4 volts.
The 15v reg isn't really required if you were to supply the board with 8 to 9 volts. This would be a product I'd wouldn't be inclined t use. If you have it it should work, but you'll want to keep careful notes of the wiring.

Even the schematic isn't 100% clear What be be assumed to be resistor networks marked RN1 & RN2 are only shown as standard resistor. Generally I like to use buffers for at least all outputs, where as only the step & direction have buffers, the enables don't (which generally are controlling the same type of opto isolator on the stepper driver as the step & direction).

Not too usre if you are in the UK or US but if this is your first build I tend to opto for one of these
cnc4pc.com/c35s-breakout-board.html
I've got one at home I use for testing and found the docs, build quality & design quite good.

Sorry if I sound like a bit of a downer, but just some things I've noted.
02 Jul 2024 06:27

A Treatsie on the Parallel Port

Category: Installing LinuxCNC

FWIW, I bought two different ones from Amazon so that I could return it if it doesn't work, however, the Startech AX99100 now appears to be "working" so that's good and it seems to have pretty decent performance.

The remaining (off topic) question is, how do I configure it? I appear to have DJK-01A BOB (which may also be called a "Tonsen 4 Aixs [SIC] Con[troller]" it's driving 4 TX14207 stepper motor driver cards, the fourth being to run a "lathe" unit and is "A."

I found this post: www.mycncuk.com/threads/6922-Tonsen-4-Axis-Controller-Bob which includes a schematic.

Is it as simple as CK = Step, and CW = direction. What about enable (is there a separate enable for Y/Z vs A/X)? Is there a way to control the spindle or is that purely from front panel?

That probably explains why my X-axis doesn't work since it's pin 16/17 not 2/3. But not the weird noises from the Y-axis.
01 Jul 2024 11:23

Gutting my machine questions

Category: Driver Boards

Are the motors brushed DC or brushless, or steppers?
If brushed DC there are also "extreme limits" that also cut power to drives.

Well I’m getting rid of anything and everything VFD related here lol.  Its a 100% stepper system.  The drives are cheap all though the new spindle drive is pretty nice just is difficult to understand how to configure it and all.  I’m pretty sure the spindle drive has some kind of limits functionality that can be programed into it, maybe even an estop command can be sent to it.  As far the other drives they only take power and step/dir input.  

I’m staring to think go with kill all drive drives power including spindle drive but leave the control board running and also get it to receive the estop signal.

Also do you know of any good 220v relays that are din mountable that don’t hum loudly when they are on? 

Thanks
01 Jul 2024 09:26

Gutting my machine questions

Category: Driver Boards

In general, never ever switch of the DC side of things.
Leaving the controller on even on E-stop is a good advice as you can check what went wrong.
E-stop should kill power to drives and spindle, and must be considered as the last resort in case something goes wrong.
Are the motors brushed DC or brushless, or steppers?
If brushed DC there are also "extreme limits" that also cut power to drives.
01 Jul 2024 08:48

Gutting my machine questions

Category: Driver Boards

The ideal setup is estop kills the servo drive motor power input, and spindle power input.
Most servo drives have two power inputs: control power, and motor power

Estop circuit should signal to Linuxcnc that estop has occurred.

Most servo drives will have a digital input that can be configured as estop/fault

 

Ok well on the new spindle drive that I’m working with it has something in the manual that talks about estop signal but there’s no documentation on how to use it.  The other drives for the stepper motors to the axis's XYZ have no such thing.  I really think my machine was originally so old and cheap that the stepper drives didn’t have a control power option built in when manufactured, so it was designed to kill the control board all together instead.  I might have to do the same thing here with this estop or do something at least with figuring out how to signal the spindle drive to receive the estop alert then on the control board signal it the estop function but not completely kill the power to it?
Displaying 31 - 45 out of 179 results.
Time to create page: 1.120 seconds
Powered by Kunena Forum