Re: [Emc-users] pin configuration for diy xyz stepper controller
I think it is related to the ignore limits only ignoring the limits for the respective axis, because the error message joint limit is always only for the other two axis. The most promising option seems to implement some logic in the .hal fileas suggested by Andy. Could you explain this possibility a bit more? I think i got the idea: limits are only active if homing xyz is 0, right?Not sure how to put it into HAL terms though :-) Thanks for the help,Nik Date: Sun, 11 Apr 2010 03:52:56 +0100 From: a...@andypugh.fsnet.co.uk To: emc-users@lists.sourceforge.net Subject: Re: [Emc-users] pin configuration for diy xyz stepper controller On 10 April 2010 19:10, N Z supersp...@hotmail.com wrote: net all-homes-and-limits = parport.0.pin-13-in Did i make any obvious mistake, or is there a way to ignore also the other limit switches during homing? I thought you had at first, but then noticed that you linked the other pins to this signal later. I don't know for sure whether ignore limits is meant to work on all axes during homing, it probably ought to, but might not. I can think of a way round this, but it is a bit kludgey. You could wire the limits (In HAL) such that the limits are (limit.* XOR (x.is-homing OR y.is-homing OR z.is-homing) If nobody comes up with a better solution I will show how to do that in detail tomorrow, but I feel there is a better way. It might require HOME_IS_SHARED = YES in the ini, http://linuxcnc.org/docs/2.2/html/config_ini_homing.html -- atp -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users _ http://redirect.gimas.net/?n=M1004xWin72_WW Windows 7 - Alles was Du brauchst und noch viel mehr! -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] pin configuration for diy xyz stepper controller
Thanks for your answers, they have put me def in the right direction. What i have tried since: (i have one pin for all limit and home switches) modified the .ini file to: [AXIS_0] TYPE = LINEAR HOME = 10.0 MAX_VELOCITY = 10.0 MAX_ACCELERATION = 50.0 STEPGEN_MAXACCEL = 62.5 SCALE = 533.3 FERROR = 1 MIN_FERROR = .25 MIN_LIMIT = 0.0 MAX_LIMIT = 300.0 HOME_OFFSET = 0.00 HOME_SEARCH_VEL = -2.00 HOME_LATCH_VEL = -0.937500 HOME_IGNORE_LIMITS = YES HOME_SEQUENCE = 0 HOME_IS_SHARED = 1 ... same for axis 1 and 2 and modified the .hal file to net all-homes-and-limits = parport.0.pin-13-in setp stepgen.0.position-scale [AXIS_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 [AXIS_0]STEPGEN_MAXACCEL net xpos-cmd axis.0.motor-pos-cmd = stepgen.0.position-cmd net xpos-fb stepgen.0.position-fb = axis.0.motor-pos-fb net xstep = stepgen.0.step net xdir = stepgen.0.dir net xenable axis.0.amp-enable-out = stepgen.0.enable net all-homes-and-limits = axis.0.home-sw-in net all-homes-and-limits = axis.0.neg-lim-sw-in net all-homes-and-limits = axis.0.pos-lim-sw-in ...same for axis 1 and 2 but when i try homing i get an joint 1 on limit switch error it seems to me that the Ignore limits =yes in the ini file only ignores the limit switch signal for the respective axis but still tracks the other axis, although they are not active Did i make any obvious mistake, or is there a way to ignore also the other limit switches during homing? Thanks Nik P.S.: I have attached the ini and the hal file if there should be a bug elsewhere... Date: Fri, 9 Apr 2010 17:51:29 +0200 From: esla...@gmail.com To: emc-users@lists.sourceforge.net Subject: Re: [Emc-users] pin configuration for diy xyz stepper controller Andy Pugh pravi: ie, assuming that Pin 11 is the all limits and all homes pin then set it to be the combined pin for the X axis and then edit the hal file to combine all the axes on one pin. Something like: net all-homes-and-limits parport.0.pin-11-in-not = axis.0.home-sw-in axis.0.neg-lim-sw-in axis.0.pos-lim-sw-in axis.1.home-sw-in axis.1.neg-lim-sw-in axis.1.pos-lim-sw-in axis.2.home-sw-in axis.2.neg-lim-sw-in axis.2.pos-lim-sw-in (All on one line, ignore any spurious line wrapping). You will need so assign a home sequence number to each axis so they can home one at a time or EMC won't know which one has hit a limit. Note also that this might not actually work, I have not tried it. You might need to use some slightly more clever logic (AND functions or similar) to prevent inactive axes faulting when another homes. However I think that limits should be disabled during homing by default Nope. Isnt' dissabled. You must add in ini file under AXES section (for each axis separate) HOME_IGNORE_LIMITS = YES 'it's in documentation but I still lost near hour why doesn't work Slavko. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users _ http://redirect.gimas.net/?n=M1004xSkyDrive2_WW Ihre Daten brauchen Platz? SkyDrive gibt Ihnen 25 GB - gratis! mrmiller.hal Description: Binary data mrmiller.ini Description: Binary data -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] pin configuration for diy xyz stepper controller
On 10 April 2010 19:10, N Z supersp...@hotmail.com wrote: net all-homes-and-limits = parport.0.pin-13-in Did i make any obvious mistake, or is there a way to ignore also the other limit switches during homing? I thought you had at first, but then noticed that you linked the other pins to this signal later. I don't know for sure whether ignore limits is meant to work on all axes during homing, it probably ought to, but might not. I can think of a way round this, but it is a bit kludgey. You could wire the limits (In HAL) such that the limits are (limit.* XOR (x.is-homing OR y.is-homing OR z.is-homing) If nobody comes up with a better solution I will show how to do that in detail tomorrow, but I feel there is a better way. It might require HOME_IS_SHARED = YES in the ini, http://linuxcnc.org/docs/2.2/html/config_ini_homing.html -- atp -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] pin configuration for diy xyz stepper controller
On 9 April 2010 15:43, N Z supersp...@hotmail.com wrote: I have all limit switches connected on one pin and would like to use them also for homing. but there is no info... Is there a reason for this option not beeing available? All options are available, but not all options have been interesting enough for anyone to document them. :-) If the Stepconf Wizard doesn't offer the option (I haven't used it for some time) then you can edit the .hal file that it produces to suit. ie, assuming that Pin 11 is the all limits and all homes pin then set it to be the combined pin for the X axis and then edit the hal file to combine all the axes on one pin. Something like: net all-homes-and-limits parport.0.pin-11-in-not = axis.0.home-sw-in axis.0.neg-lim-sw-in axis.0.pos-lim-sw-in axis.1.home-sw-in axis.1.neg-lim-sw-in axis.1.pos-lim-sw-in axis.2.home-sw-in axis.2.neg-lim-sw-in axis.2.pos-lim-sw-in (All on one line, ignore any spurious line wrapping). You will need so assign a home sequence number to each axis so they can home one at a time or EMC won't know which one has hit a limit. Note also that this might not actually work, I have not tried it. You might need to use some slightly more clever logic (AND functions or similar) to prevent inactive axes faulting when another homes. However I think that limits should be disabled during homing by default 2. Axis active My controller has one pin to set the axis active, so that the machine is not powered on all the time, which option should i use for that in the config? Amp-enable. Any of them will probably work. 3. Boost (High current for motor start) the controller has one pin to supply full current to motors during start, could i implement this somehow, is there a function to set the pin high during accelerations, or during motor start? There is probably no way to do it in Stepconf, but there should be a way to do it in manually-coded HAL. You should be able to set a pin high when axis accelleration is over a threshold. -- atp -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] pin configuration for diy xyz stepper controller
Andy Pugh pravi: ie, assuming that Pin 11 is the all limits and all homes pin then set it to be the combined pin for the X axis and then edit the hal file to combine all the axes on one pin. Something like: net all-homes-and-limits parport.0.pin-11-in-not = axis.0.home-sw-in axis.0.neg-lim-sw-in axis.0.pos-lim-sw-in axis.1.home-sw-in axis.1.neg-lim-sw-in axis.1.pos-lim-sw-in axis.2.home-sw-in axis.2.neg-lim-sw-in axis.2.pos-lim-sw-in (All on one line, ignore any spurious line wrapping). You will need so assign a home sequence number to each axis so they can home one at a time or EMC won't know which one has hit a limit. Note also that this might not actually work, I have not tried it. You might need to use some slightly more clever logic (AND functions or similar) to prevent inactive axes faulting when another homes. However I think that limits should be disabled during homing by default Nope. Isnt' dissabled. You must add in ini file under AXES section (for each axis separate) HOME_IGNORE_LIMITS = YES 'it's in documentation but I still lost near hour why doesn't work Slavko. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users