Re: [Emc-users] Axis configuration error

2022-01-30 Thread Valerio Bellizzomi
On Sun, 2022-01-30 at 18:48 +, andy pugh wrote:
> In the debug output I see:
> 
> HAL: ERROR: duplicate variable 'pyvcp.spindle-speed'
> 
> But don't see that in any of the HAL files that you have supplied.
> 
> Do you have a .axisrc file? I see some vaguely unfamiliar output
> after
> Axis loads too.
> 


thank you Andy, I am redoing the configuration from scratch, so not a
problem anymore.




___
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-30 Thread andy pugh
In the debug output I see:

HAL: ERROR: duplicate variable 'pyvcp.spindle-speed'

But don't see that in any of the HAL files that you have supplied.

Do you have a .axisrc file? I see some vaguely unfamiliar output after
Axis loads too.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
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 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


Re: [Emc-users] Axis configuration error

2022-01-28 Thread gene heskett
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.

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


Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 





___
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-28 Thread Valerio Bellizzomi
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.



> Cheers, Gene Heskett.



___
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-28 Thread gene heskett
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.

Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 





___
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-28 Thread Valerio Bellizzomi
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.
# Generated by PNCconf at Tue Jun  9 15:20:50 2020
# Using LinuxCNC version:  UNAVAILABLE
# If you make changes to this file, they will be
# overwritten when you run PNCconf again

loadusr -Wn pyvcp pyvcp -c pyvcp [DISPLAY](PYVCP)
source postgui_call_list.hal
loadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD 
num_joints=[KINS]JOINTS
loadrt hostmot2
loadrt hm2_pci config=" num_encoders=1 num_pwmgens=0 num_stepgens=5 
sserial_port_0=00" 
setphm2_5i25.0.watchdog.timeout_ns 500
loadrt pid names=pid.x,pid.y,pid.z,pid.a,pid.s
loadrt abs names=abs.spindle
loadrt lowpass names=lowpass.spindle

addf hm2_5i25.0.read  servo-thread
addf motion-command-handler   servo-thread
addf motion-controllerservo-thread
addf pid.x.do-pid-calcs   servo-thread
addf pid.y.do-pid-calcs   servo-thread
addf pid.z.do-pid-calcs   servo-thread
addf pid.a.do-pid-calcs   servo-thread
addf pid.s.do-pid-calcs   servo-thread
addf abs.spindle  servo-thread
addf lowpass.spindle  servo-thread
addf hm2_5i25.0.write servo-thread

# external output signals


# external input signals


#***
#  AXIS X JOINT 0
#***

setp   pid.x.Pgain [JOINT_0]P
setp   pid.x.Igain [JOINT_0]I
setp   pid.x.Dgain [JOINT_0]D
setp   pid.x.bias  [JOINT_0]BIAS
setp   pid.x.FF0   [JOINT_0]FF0
setp   pid.x.FF1   [JOINT_0]FF1
setp   pid.x.FF2   [JOINT_0]FF2
setp   pid.x.deadband  [JOINT_0]DEADBAND
setp   pid.x.maxoutput [JOINT_0]MAX_OUTPUT
setp   pid.x.error-previous-target true
setp   pid.x.maxerror .0005

net x-index-enable  <=> pid.x.index-enable
net x-enable=>  pid.x.enable
net x-pos-cmd   =>  pid.x.command
net x-pos-fb=>  pid.x.feedback
net x-output<=  pid.x.output

# Step Gen signals/setup

setp   hm2_5i25.0.stepgen.00.dirsetup[JOINT_0]DIRSETUP
setp   hm2_5i25.0.stepgen.00.dirhold [JOINT_0]DIRHOLD
setp   hm2_5i25.0.stepgen.00.steplen [JOINT_0]STEPLEN
setp   hm2_5i25.0.stepgen.00.stepspace   [JOINT_0]STEPSPACE
setp   hm2_5i25.0.stepgen.00.position-scale  [JOINT_0]STEP_SCALE
setp   hm2_5i25.0.stepgen.00.step_type0
setp   hm2_5i25.0.stepgen.00.control-type 1
setp   hm2_5i25.0.stepgen.00.maxaccel [JOINT_0]STEPGEN_MAXACCEL
setp   hm2_5i25.0.stepgen.00.maxvel   [JOINT_0]STEPGEN_MAXVEL

# ---closedloop stepper signals---

net x-pos-cmd<= joint.0.motor-pos-cmd
net x-vel-cmd<= joint.0.vel-cmd
net x-output <= hm2_5i25.0.stepgen.00.velocity-cmd
net x-pos-fb <= hm2_5i25.0.stepgen.00.position-fb
net x-pos-fb => joint.0.motor-pos-fb
net x-enable <= joint.0.amp-enable-out
net x-enable => hm2_5i25.0.stepgen.00.enable

# ---setup home / limit switch signals---

net x-home-sw =>  joint.0.home-sw-in
net x-neg-limit =>  joint.0.neg-lim-sw-in
net x-pos-limit =>  joint.0.pos-lim-sw-in

#***
#  AXIS Y JOINT 1
#***

setp   pid.y.Pgain [JOINT_1]P
setp   pid.y.Igain [JOINT_1]I
setp   pid.y.Dgain [JOINT_1]D
setp   pid.y.bias  [JOINT_1]BIAS
setp   pid.y.FF0   [JOINT_1]FF0
setp   pid.y.FF1   [JOINT_1]FF1
setp   pid.y.FF2   [JOINT_1]FF2
setp   pid.y.deadband  [JOINT_1]DEADBAND
setp   pid.y.maxoutput [JOINT_1]MAX_OUTPUT
setp   pid.y.error-previous-target true
setp   pid.y.maxerror .0005

net y-index-enable  <=> pid.y.index-enable
net y-enable=>  pid.y.enable
net y-pos-cmd   =>  pid.y.command
net y-pos-fb=>  pid.y.feedback
net y-output<=  pid.y.output

# Step Gen signals/setup

setp   hm2_5i25.0.stepgen.01.dirsetup[JOINT_1]DIRSETUP
setp   hm2_5i25.0.stepgen.01.dirhold [JOINT_1]DIRHOLD
setp   hm2_5i25.0.stepgen.01.steplen [JOINT_1]STEPLEN
setp   hm2_5i25.0.stepgen.01.stepspace   [JOINT_1]STEPSPACE
setp   hm2_5i25.0.stepgen.01.position-scale  [JOINT_1]STEP_SCALE
setp   hm2_5i25.0.stepgen.01.step_type0
setp   hm2_5i25.0.stepgen.01.control-type 1

Re: [Emc-users] Axis configuration error

2022-01-27 Thread gene heskett
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.
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 





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


[Emc-users] Axis configuration error

2022-01-27 Thread Valerio Bellizzomi
Do I have to somehow convert my configurations for master ?


Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.0-pre0-5648-g2c7632287
Machine configuration directory is '/home/sel/linuxcnc/configs/CNC-MK1-3'
Machine configuration file is 'CNC-MK1-3.ini'
INIFILE=/home/sel/linuxcnc/configs/CNC-MK1-3/CNC-MK1-3.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=XYZAB
KINEMATICS=trivkins coordinates=XYZAB
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Found file(REL): ./CNC-MK1-3.hal
Found file(REL): ./custom.hal
Starting TASK program: milltask
Starting DISPLAY program: axis
No option 'tto_g11' in section: 'DEFAULT'
No option 'show_program' in section: 'DEFAULT'
No option 'show_rapids' in section: 'DEFAULT'
No option 'program_alpha' in section: 'DEFAULT'
No option 'show_live_plot' in section: 'DEFAULT'
No option 'show_tool' in section: 'DEFAULT'
No option 'show_extents' in section: 'DEFAULT'
No option 'show_offsets' in section: 'DEFAULT'
No option 'grid_size' in section: 'DEFAULT'
No option 'show_machine_limits' in section: 'DEFAULT'
No option 'show_machine_speed' in section: 'DEFAULT'
No option 'show_distance_to_go' in section: 'DEFAULT'
No option 'dro_large_font' in section: 'DEFAULT'
No option 'block_delete' in section: 'DEFAULT'
No option 'optional_stop' in section: 'DEFAULT'
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
task: 77 cycles, min=0.05, max=0.010101, avg=0.008218, 0 latency excursions 
(> 10x expected cycle time of 0.01s)
hm2: loading Mesa HostMot2 driver version 0.15
hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
hm2_pci: discovered 5i25 at :03:00.0
hm2/hm2_5i25.0: Low Level init 0.15
hm2/hm2_5i25.0: Smart Serial Firmware Version 43
Board hm2_5i25.0.7i76.0.0 Hardware Mode 0 = standard
Board hm2_5i25.0.7i76.0.0 Software Mode 0 = io_spin
Board hm2_5i25.0.7i76.0.0 Software Mode 1 = io_ana_spin
Board hm2_5i25.0.7i76.0.0 Software Mode 2 = io_enc_ana_spin_fv
hm2/hm2_5i25.0: 34 I/O Pins used:
hm2/hm2_5i25.0: IO Pin 000 (P3-01): StepGen #0, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 001 (P3-14): StepGen #0, pin Step (Output)
hm2/hm2_5i25.0: IO Pin 002 (P3-02): StepGen #1, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 003 (P3-15): StepGen #1, pin Step (Output)
hm2/hm2_5i25.0: IO Pin 004 (P3-03): StepGen #2, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 005 (P3-16): StepGen #2, pin Step (Output)
hm2/hm2_5i25.0: IO Pin 006 (P3-04): StepGen #3, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 007 (P3-17): StepGen #3, pin Step (Output)
hm2/hm2_5i25.0: IO Pin 008 (P3-05): StepGen #4, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 009 (P3-06): StepGen #4, pin Step (Output)
hm2/hm2_5i25.0: IO Pin 010 (P3-07): Smart Serial Interface #0, pin tx0 
(Output)
hm2/hm2_5i25.0: IO Pin 011 (P3-08): Smart Serial Interface #0, pin rx0 
(Input)
hm2/hm2_5i25.0: IO Pin 012 (P3-09): IOPort
hm2/hm2_5i25.0: IO Pin 013 (P3-10): IOPort
hm2/hm2_5i25.0: IO Pin 014 (P3-11): Encoder #0, pin Index (Input)
hm2/hm2_5i25.0: IO Pin 015 (P3-12): Encoder #0, pin B (Input)
hm2/hm2_5i25.0: IO Pin 016 (P3-13): Encoder #0, pin A (Input)
hm2/hm2_5i25.0: IO Pin 017 (P2-01): IOPort
hm2/hm2_5i25.0: IO Pin 018 (P2-14): IOPort
hm2/hm2_5i25.0: IO Pin 019 (P2-02): IOPort
hm2/hm2_5i25.0: IO Pin 020 (P2-15): IOPort
hm2/hm2_5i25.0: IO Pin 021 (P2-03): IOPort
hm2/hm2_5i25.0: IO Pin 022 (P2-16): IOPort
hm2/hm2_5i25.0: IO Pin 023 (P2-04): IOPort
hm2/hm2_5i25.0: IO Pin 024 (P2-17): IOPort
hm2/hm2_5i25.0: IO Pin 025 (P2-05): IOPort
hm2/hm2_5i25.0: IO Pin 026 (P2-06): IOPort
hm2/hm2_5i25.0: IO Pin 027 (P2-07): IOPort
hm2/hm2_5i25.0: IO Pin 028 (P2-08): IOPort
hm2/hm2_5i25.0: IO Pin 029 (P2-09): IOPort
hm2/hm2_5i25.0: IO Pin 030 (P2-10): IOPort
hm2/hm2_5i25.0: IO Pin 031 (P2-11): IOPort
hm2/hm2_5i25.0: IO Pin 032 (P2-12): IOPort
hm2/hm2_5i25.0: IO Pin 033 (P2-13): IOPort
hm2/hm2_5i25.0: registered
hm2_5i25.0: initialized AnyIO board at :03:00.0
hm2_5i25.0: dropping AnyIO board at :03:00.0
hm2/hm2_5i25.0: unregistered
hm2_pci: driver unloaded
hm2: unloading
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
HAL: ERROR: duplicate variable 'pyvcp.spindle-speed'
note: MAXV max: 25.000 units/sec 1500.000 units/min
note: LJOG max: 25.000 units/sec 1500.000