Re: [Emc-users] Axis configuration error

2022-01-29 Thread Valerio Bellizzomi
Merci Jean-Francois


On Sat, 2022-01-29 at 10:08 +0100, jeanfrancois wrote:
> Hi Valerio,
> 
> If it may help you here's a hal+ini configuration, works fine.
> 
> Though thi sis a few years back verison linux CNC (4-5y).
> 
> Regards
> 
> Jean-François
> 
> 
> Le 28/01/2022 à 11:13, Valerio Bellizzomi a écrit :
> > Attached are my .ini and .hal files.
> > Can you tell me what is missing there?
> > 
> > 
> > 
> > On Thu, 2022-01-27 at 12:39 -0500, gene heskett wrote:
> > > On Thursday, January 27, 2022 11:49:17 AM EST Valerio Bellizzomi
> > > wrote:
> > > > Do I have to somehow convert my configurations for master ?
> > > IDK about your axis gui errors, but one thing I note is that you
> > > don't
> > > have a numerical spindle number. master had grown the ability to
> > > control
> > > more than one spindle some time back, and the S argument now
> > > expects
> > > a
> > > following number before the speed of the numerical assignment of
> > > the
> > > spindle number. All my machines only have one, they start at base
> > > 0,
> > > IDK
> > > what the max is, so the argument for my stuff is S0 500 (or
> > > whatever
> > > speed you want to assign to the first spindle.)
> > > 
> > > However I suspect something else is aglay besides that, so I'll
> > > leave
> > > it
> > > to the experts. I did see you're on buster, but not what
> > > architecture.
> > > 
> > > Cheers, Gene Heskett.
> > > 
> > > 
> > > ___
> > > Emc-users mailing list
> > > Emc-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/emc-users
> 
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Axis configuration error

2022-01-29 Thread jeanfrancois

Hi Valerio,

If it may help you here's a hal+ini configuration, works fine.

Though thi sis a few years back verison linux CNC (4-5y).

Regards

Jean-François


Le 28/01/2022 à 11:13, Valerio Bellizzomi a écrit :

Attached are my .ini and .hal files.
Can you tell me what is missing there?



On Thu, 2022-01-27 at 12:39 -0500, gene heskett wrote:

On Thursday, January 27, 2022 11:49:17 AM EST Valerio Bellizzomi
wrote:

Do I have to somehow convert my configurations for master ?

IDK about your axis gui errors, but one thing I note is that you
don't
have a numerical spindle number. master had grown the ability to
control
more than one spindle some time back, and the S argument now expects
a
following number before the speed of the numerical assignment of the
spindle number. All my machines only have one, they start at base 0,
IDK
what the max is, so the argument for my stuff is S0 500 (or whatever
speed you want to assign to the first spindle.)

However I suspect something else is aglay besides that, so I'll leave
it
to the experts. I did see you're on buster, but not what
architecture.

Cheers, Gene Heskett.


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
# Generated by stepconf 1.1 at Sun May  3 22:56:21 2020
# Si vous modifiez ce fichier, il sera
# écrasé quand vous relancerez Stepconf
loadrt trivkins
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD 
servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
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 <= motion.spindle-on => pwmgen.0.enable
net spindle-pwm <= pwmgen.0.pwm
setp pwmgen.0.pwm-freq 100.0
setp pwmgen.0.scale 1166.6667
setp pwmgen.0.offset 0.114285714286
setp pwmgen.0.dither-pwm true
net spindle-cmd-rpm <= motion.spindle-speed-out
net spindle-cmd-rpm-abs <= motion.spindle-speed-out-abs
net spindle-cmd-rps <= motion.spindle-speed-out-rps
net spindle-cmd-rps-abs <= motion.spindle-speed-out-rps-abs
net spindle-at-speed=> motion.spindle-at-speed
net spindle-cw <= motion.spindle-forward

net xstep   => parport.0.pin-08-out
setp parport.0.pin-08-out-reset 1
setp parport.0.pin-09-out-invert 1
net xdir=> parport.0.pin-09-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
setp parport.0.pin-07-out-invert 1
net zdir=> parport.0.pin-07-out

net astep   => parport.0.pin-02-out
setp parport.0.pin-02-out-reset 1
net adir=> parport.0.pin-03-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 [AXIS_0]SCALE
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 0
setp stepgen.0.dirhold 7
setp stepgen.0.dirsetup 7
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

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

setp stepgen.2.position-scale [AXIS_2]SCALE
setp stepgen.2.steplen 1
setp stepgen.2.stepspace 0
setp stepgen.2.dirhold 7
setp stepgen.2.dirsetup 7
setp stepgen.2.maxaccel [AXIS_2]STEPGEN_MAXACCEL
net zpos-cmd axis.2.motor-pos-cmd => stepgen.2.position-cmd
net zpos-fb stepgen.2.position-fb => axis.2.motor-pos-fb
net zstep <= stepgen.2.step
net zdir <= stepgen.2.dir
net zenable axis.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 => 

Re: [Emc-users] Axis configuration error

2022-01-29 Thread Valerio Bellizzomi
On Fri, 2022-01-28 at 09:36 -0500, gene heskett wrote:
> On Friday, January 28, 2022 9:22:12 AM EST Valerio Bellizzomi wrote:
> > On Fri, 2022-01-28 at 08:27 -0500, gene heskett wrote:
> > > On Friday, January 28, 2022 5:13:33 AM EST Valerio Bellizzomi
> > > wrote:
> > > > Attached are my .ini and .hal files.
> > > > Can you tell me what is missing there?
> > > > 
> > > > On Thu, 2022-01-27 at 12:39 -0500, gene heskett wrote:
> > > > > On Thursday, January 27, 2022 11:49:17 AM EST Valerio
> > > > > Bellizzomi
> > > > > 
> > > > > wrote:
> > > > > > Do I have to somehow convert my configurations for master ?
> > > > > 
> > > > > IDK about your axis gui errors, but one thing I note is that
> > > > > you
> > > > > don't
> > > > > have a numerical spindle number. master had grown the ability
> > > > > to
> > > > > control
> > > > > more than one spindle some time back, and the S argument now
> > > > > expects
> > > > > a
> > > > > following number before the speed of the numerical assignment
> > > > > of
> > > > > the
> > > > > spindle number. All my machines only have one, they start at
> > > > > base
> > > > > 0,
> > > > > IDK
> > > > > what the max is, so the argument for my stuff is S0 500 (or
> > > > > whatever
> > > > > speed you want to assign to the first spindle.)
> > > > > 
> > > > > However I suspect something else is aglay besides that, so
> > > > > I'll
> > > > > leave
> > > > > it
> > > > > to the experts. I did see you're on buster, but not what
> > > > > architecture.
> > > > > 
> > > > > Cheers, Gene Heskett.
> > > > 
> > > > From a quick look, in your .ini, your geometry line is xyz, 3
> > > > axises, but
> > > 
> > > you then define xyzab, 5 axises later, and the .hal is missing
> > > the A
> > > and
> > > B stuffs. Its a bit short for a hal file too as many of the "net"
> > > statements don't have enough arguments.
> > > 
> > > A net statement should have
> > > 
> > > net name-of-net <= src => target [target] [target]
> > > one src, and as many targets as you need
> > > and then later in the file if needed, you can:
> > > net same-name-as-above => target target
> > > for additional fanout if needed.
> > > You can also do the second form in the postgui if needed if the
> > > target
> > > doesn't exist until the gui is running.
> > > 
> > > My stuff is a bit like topsey, it grew and grew from hand added
> > > stuff,
> > > and even my simplest lathe's hal file is 600 lines including
> > > comments,
> > > with some approaching 1000 LOC but have line after line of
> > > comments
> > > so I
> > > don't forget what I was doing 3 years later. Pleading guilty to
> > > being
> > > an
> > > old fart who does not well remember what he did 3 years ago. At
> > > 87
> > > the
> > > wet ram does not refresh as well as it did at 47. :(
> > > 
> > > The other thing I note is that you are using gedit as the editor,
> > > and
> > > that may explain the short hal file. gedit likes to play 42
> > > pickup
> > > with
> > > your stuff whenthe deck has 52 cards, please uninstall gedit, and
> > > install/use geany which doesn't have that bug. gedit looks nice,
> > > but
> > > it
> > > will eat your lunch /and/ dinner fixing its faulty saves, get rid
> > > of
> > > it,
> > > with prejudice. rm it on sight.
> > 
> > The two config files .ini and .hal are generated by stepconf
> > 
> > I'm actually using mousepad and nano as editors.
> 
> Mousepad I haven't tried, nano has always Just Worked.

ok. As I have saved all the parameters, I am going to redo the
configuration, but I don't remember if I must use stepconf or pncconf.

> 
> > > Cheers, Gene Heskett.
> > 
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> > .
> 
> Cheers, Gene Heskett.



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users