Re: [Emc-users] changinging parallel port numbers

2021-06-26 Thread Robert Murphy

Hi,

link to hal_parport docs, for future reference.

http://linuxcnc.org/docs/2.8/html/man/man1/hal_parport.1.html

Look for a line starting with this in your hal file:

loadrt hal_parport cfg=

On 27/6/21 5:46 am, R C wrote:

Hello,


this probably (somewhat) trivial;   I replaced a pci parallel card
(one gave up) and of course the order of the ports changed.


Where (and what) do I change in the config file(s)  to for example 
move from port 2 to port 0?


thanks,


Ron



___
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] Compiling a component.

2021-06-26 Thread John Dammeyer
Most components are built with the .comp and the halcompile but since Andy had 
me install the .deb I'm not sure if installing the .dev would be the right 
thing to do.
http://linuxcnc.org/docs/2.8/html/hal/comp.html#_installing

The .comp and halcompile appear to simplify much of the component construction. 
 But if you wanted to play that would be the place to start I would think. 

http://linuxcnc.org/docs/2.8/html/hal/comp.html#_compiling_realtime_components_outside_the_source_tree

Just below that link are some simple examples like sincos.


> -Original Message-
> From: Feral Engineer [mailto:theferalengin...@gmail.com]
> Sent: June-26-21 8:02 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] Compiling a component.
> 
> I've been looking for some good component information as well. The
> documentation didn't really point me in the right direction last time I
> looked at it.
> 
> Phil T.
> The Feral Engineer
> 
> Check out my LinuxCNC tutorials, machine builds and other antics at
> www.youtube.com/c/theferalengineer
> 
> Help support my channel efforts and coffee addiction:
> www.patreon.com/theferalengineer
> 
> On Sat, Jun 26, 2021, 10:57 PM John Dammeyer  wrote:
> 
> > I expect Andy in the UK has gone to bed but I'm on the west coast and it's
> > only 7:30PM.  Maybe someone in North America or on the other side of the
> > international date line can help?
> >
> > I've been trying to get to the point where I can compile a user component
> > written in C.  Specifically, just for the exercise, the shuttle.c
> > component.  With Andy's help I've installed the
> > ./linuxcnc-uspace_2.8.1~shuttle~ec6f65e02_armhf.deb
> >
> > I've also used the github desktop to bring in the linuxcnc folder tree
> > that has all the files and folders including this folder where the
> > shuttle.c file lives.You can see I'm working with a Pi4.
> > \\Pi4linuxcnc\homepi\linuxcnc\src\hal\user_comps
> > 
> >
> > This doc talks about compiling .comp files but not much about the .c files.
> >
> > http://linuxcnc.org/docs/2.8/html/hal/comp.html#_compiling_userspace_components_outside_the_source_tree
> > If I go up to the src folder there is a Makefile
> >
> > pi@linuxcnc:~/linuxcnc/src $ make
> > Makefile:99: *** Makefile.inc must specify RTPREFIX and other variables.
> > Stop.
> >
> > I have no idea which variables are needed and since this is on a 1GB Pi4 I
> > really don't want to spend 6 hours compiling the entire OS when all I want
> > is the single shuttle.c component.
> >
> > I suspect since the Submakefile in the user_comps folder includes:
> >
> > ifeq ($(HIDRAW_H_USABLE),yes)
> > SHUTTLE_SRC = hal/user_comps/shuttle.c
> > USERSRCS += $(SHUTTLE_SRC)
> > ../bin/shuttle: $(call TOOBJS, $(SHUTTLE_SRC)) ../lib/liblinuxcnchal.so.0
> > $(ECHO) Linking $(notdir $@)
> > $(Q)$(CC) $(LDFLAGS) -o $@ $^
> > TARGETS += ../bin/shuttle
> > Endif
> >
> >
> > That somehow the main make command requires arguments like HIDRAW_H_USABLE?
> >
> > Anyone done this?  Perhaps can point me to a document that describes the
> > process.   Not just the what but the how and why?
> >
> > Thanks
> > John Dammeyer
> >
> >
> > "ELS! Nothing else works as well for your Lathe"
> > Automation Artisans Inc.
> > www dot autoartisans dot com
> >
> >
> > ___
> > 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] Compiling a component.

2021-06-26 Thread Feral Engineer
I've been looking for some good component information as well. The
documentation didn't really point me in the right direction last time I
looked at it.

Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

Help support my channel efforts and coffee addiction:
www.patreon.com/theferalengineer

On Sat, Jun 26, 2021, 10:57 PM John Dammeyer  wrote:

> I expect Andy in the UK has gone to bed but I'm on the west coast and it's
> only 7:30PM.  Maybe someone in North America or on the other side of the
> international date line can help?
>
> I've been trying to get to the point where I can compile a user component
> written in C.  Specifically, just for the exercise, the shuttle.c
> component.  With Andy's help I've installed the
> ./linuxcnc-uspace_2.8.1~shuttle~ec6f65e02_armhf.deb
>
> I've also used the github desktop to bring in the linuxcnc folder tree
> that has all the files and folders including this folder where the
> shuttle.c file lives.You can see I'm working with a Pi4.
> \\Pi4linuxcnc\homepi\linuxcnc\src\hal\user_comps
> 
>
> This doc talks about compiling .comp files but not much about the .c files.
>
> http://linuxcnc.org/docs/2.8/html/hal/comp.html#_compiling_userspace_components_outside_the_source_tree
> If I go up to the src folder there is a Makefile
>
> pi@linuxcnc:~/linuxcnc/src $ make
> Makefile:99: *** Makefile.inc must specify RTPREFIX and other variables.
> Stop.
>
> I have no idea which variables are needed and since this is on a 1GB Pi4 I
> really don't want to spend 6 hours compiling the entire OS when all I want
> is the single shuttle.c component.
>
> I suspect since the Submakefile in the user_comps folder includes:
>
> ifeq ($(HIDRAW_H_USABLE),yes)
> SHUTTLE_SRC = hal/user_comps/shuttle.c
> USERSRCS += $(SHUTTLE_SRC)
> ../bin/shuttle: $(call TOOBJS, $(SHUTTLE_SRC)) ../lib/liblinuxcnchal.so.0
> $(ECHO) Linking $(notdir $@)
> $(Q)$(CC) $(LDFLAGS) -o $@ $^
> TARGETS += ../bin/shuttle
> Endif
>
>
> That somehow the main make command requires arguments like HIDRAW_H_USABLE?
>
> Anyone done this?  Perhaps can point me to a document that describes the
> process.   Not just the what but the how and why?
>
> Thanks
> John Dammeyer
>
>
> "ELS! Nothing else works as well for your Lathe"
> Automation Artisans Inc.
> www dot autoartisans dot com
>
>
> ___
> 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] Compiling a component.

2021-06-26 Thread John Dammeyer
I expect Andy in the UK has gone to bed but I'm on the west coast and it's only 
7:30PM.  Maybe someone in North America or on the other side of the 
international date line can help?
 
I've been trying to get to the point where I can compile a user component 
written in C.  Specifically, just for the exercise, the shuttle.c component.  
With Andy's help I've installed the 
./linuxcnc-uspace_2.8.1~shuttle~ec6f65e02_armhf.deb
 
I've also used the github desktop to bring in the linuxcnc folder tree that has 
all the files and folders including this folder where the shuttle.c file lives. 
   You can see I'm working with a Pi4.
\\Pi4linuxcnc\homepi\linuxcnc\src\hal\user_comps 
 
 
This doc talks about compiling .comp files but not much about the .c files.
http://linuxcnc.org/docs/2.8/html/hal/comp.html#_compiling_userspace_components_outside_the_source_tree
If I go up to the src folder there is a Makefile 
 
pi@linuxcnc:~/linuxcnc/src $ make
Makefile:99: *** Makefile.inc must specify RTPREFIX and other variables.  Stop.
 
I have no idea which variables are needed and since this is on a 1GB Pi4 I 
really don't want to spend 6 hours compiling the entire OS when all I want is 
the single shuttle.c component.
 
I suspect since the Submakefile in the user_comps folder includes:
 
ifeq ($(HIDRAW_H_USABLE),yes)
SHUTTLE_SRC = hal/user_comps/shuttle.c
USERSRCS += $(SHUTTLE_SRC)
../bin/shuttle: $(call TOOBJS, $(SHUTTLE_SRC)) ../lib/liblinuxcnchal.so.0
$(ECHO) Linking $(notdir $@)
$(Q)$(CC) $(LDFLAGS) -o $@ $^
TARGETS += ../bin/shuttle
Endif
 
 
That somehow the main make command requires arguments like HIDRAW_H_USABLE?
 
Anyone done this?  Perhaps can point me to a document that describes the 
process.   Not just the what but the how and why?
 
Thanks
John Dammeyer
 
 
"ELS! Nothing else works as well for your Lathe"
Automation Artisans Inc.
www dot autoartisans dot com 
 

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


Re: [Emc-users] changinging parallel port numbers

2021-06-26 Thread R C

thanks!!  that worked


Ron



On 6/26/21 2:58 PM, andy pugh wrote:

On Sat, 26 Jun 2021 at 20:49, R C  wrote:


Where (and what) do I change in the config file(s)  to for example  move
from port 2 to port 0?

Look in the HAL file for "loadrt hal_parport cfg=" and either
change it there, or if it references the INI, in the INI.





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


Re: [Emc-users] changinging parallel port numbers

2021-06-26 Thread andy pugh
On Sat, 26 Jun 2021 at 20:49, R C  wrote:

> Where (and what) do I change in the config file(s)  to for example  move
> from port 2 to port 0?

Look in the HAL file for "loadrt hal_parport cfg=" and either
change it there, or if it references the INI, in the INI.


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


[Emc-users] changinging parallel port numbers

2021-06-26 Thread R C

Hello,


this probably (somewhat) trivial;   I replaced a pci parallel card (one 
gave up) and of course the order of the ports changed.



Where (and what) do I change in the config file(s)  to for example  move 
from port 2 to port 0?



thanks,


Ron



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


Re: [Emc-users] About the 7i76E and possible DB25 expansion cards

2021-06-26 Thread Gene Heskett
On Saturday 26 June 2021 12:52:26 John Dammeyer wrote:

> > Also, I'm looking for the secret sauce to get full closed loop from
> > my vfd to LinuxCNC if anyone has pointers on that. I have encoder
> > feedback to LinuxCNC, but i feel like I'm missing a key element to
> > get the pid working properly. Most of the adjustments I've made to
> > pid never result in LinuxCNC compensating for the error (i.e. G97
> > S200 = S210 actual with p =0, changing P results in a runaway in
> > most cases). I'm wondering what the magic net command might be to
> > get everything working so I could thread on my lathe.
> >
> > Phil T.
> > The Feral Engineer

Generally speaking, using the hz from the vfd is a lost cause. Put an 
encoder on the spindle, but be aware that the 3 phase induction motors 
commoly used on lathes and higher powered mills all suffer from 2 
effects at the high hz settings. At 60 hz, the slip angle between the 
rotating field and the armature will give you about 1750 rpm from the 
common 4 pole motor, not 1800. Step the hz up to 120 hz will reduce the 
coil currents because of the motor finite inductance, which combined 
with the higher friction load, will only get you around 3200 revs at the 
motor shaft because the currents are reduced, increasing the slip angle, 
and above 120 hz you will hit a point where no further increase in the 
frequency will gain you speed, and it may well slow down. That occurs at 
less than 180 hz on mine. The pid can tell it to go faster, but the coil 
currants are so low, less than an amp/phase, that its out of torque

This is true for any "induction" motor. The 2 pole for the 24k revs 
motors is more than likely a hard steel armature running synchronously 
with the magnetic fields rotation, but inductance still causes a loss of 
torque at the higher speeds, but if its running, it is probably at the 
right speed.

But those motors don't have the cajones to pull a tap anyway.

I have an encoder on the Sheldon and I can even do rigid tapping on it, 
but the encoder is NOT feeding back to the PID, its only function is 
reporting the spindle's rotational position for G76 and G33.1 functions. 
That it does well given the sloppy machining and uneven wear on the 
tooth edges of the 60 tooth bull gear on the spindle. 

Now, if the PID could be used to raise the voltages out of the vfd at the 
higher speeds in order to keep the coil currents at the FLA value on the 
nameplate, we'ed have something great, but bring wagon loads of money 
for the switching devices in the vfd to achieve that. To my knowledge, 
no one has done that. To make it work at 400hz would take well over 1 
kilovolt from the vfd. Tain't gonna happen. The motors winding 
insulation would fail, sooner rather than later.

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)
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] About the 7i76E and possible DB25 expansion cards

2021-06-26 Thread Peter C. Wallace

On Sat, 26 Jun 2021, Gene Heskett wrote:


Date: Sat, 26 Jun 2021 12:51:03 -0400
From: Gene Heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] About the 7i76E and possible DB25 expansion cards

On Saturday 26 June 2021 12:17:15 Feral Engineer wrote:


Hey John,

I guess i should've explained better, I was half awake when I asked
that. I'm running dmm servos on my mill, which are currently driven on
a 7i76e with step/dir and are only semi closed loop (closed loop from
the motor to the drive, but not to LinuxCNC). I'm Curious if it's
possible to use the external encoder feedback from the dyn4 to
LinuxCNC to create a full closed loop arrangement using that encoder
and step/dir or do the servos have to be controlled via analog signal
and pid tuning to get the encoder feedback to be closed loop?

Also, I'm looking for the secret sauce to get full closed loop from my
vfd to LinuxCNC if anyone has pointers on that. I have encoder
feedback to LinuxCNC, but i feel like I'm missing a key element to get
the pid working properly. Most of the adjustments I've made to pid
never result in LinuxCNC compensating for the error (i.e. G97 S200 =
S210 actual with p =0, changing P results in a runaway in most cases).
I'm wondering what the magic net command might be to get everything
working so I could thread on my lathe.



Phil T.
The Feral Engineer


Exchange the A & B signals from the encoder to LCNC, either in the .hal
file, or physically, it sounds as if the LCNC PID thinks its running
backwards. Check for sure by watching the encoder output with a
halmeter, it should be counting up when the motor is turning fwd, and
vice-versa.

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



Also the hal connections or encoder scaling of the PID feedback signal may be 
wrong. Check the PID feedback value, it should be close to the commanded value.



Peter Wallace
Mesa Electronics


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


Re: [Emc-users] About the 7i76E and possible DB25 expansion cards

2021-06-26 Thread John Dammeyer
Hi Phil,
Lots of people run the closed loop with the spindle and pwm and encoder.  If 
you add P and it runs away odds are your encoder polarity on A/B is backwards.  
Switch A for B and then try it.  

As I understand the LinuxCNC approach to threading (unlike MACH3 and my ELS 
which use 1PPR) the index is used to 'know' where the start of the thread is 
and the A input of the encoder tracks the spindle speed to ensure the leadscrew 
and spindle stay synchronized.  I would imagine if you have both A and B 
connected that then the direction of the spindle is known and if it's going the 
wrong way (from the LinuxCNC perspective) nothing will work.

Not sure I'd agree with the term semi-closed loop between motor and drive.  If 
the motor has an encoder and the drive uses that then it's fully closed loop.  
The tuning is then done with the PID and FF pins inside the drive.  Adding 
another control loop outside that may well result in an unstable or very 
difficult to tune system.  As it is PID can be difficult to tune.

I have HP_UHU drivers on my DC Brushed servos.   They have all the bells and 
whistles for things like following error etc and a fault output that will shut 
down motion if the encoder exceeds the encoder count range.  I don't think that 
it can be improved upon by adding LinuxCNC control.
Here's a short article on them.  
https://www.henriksplace.se/cnc/abene_4_3.html
Henrik has since also created a PIC based clone of the original ATMEL processor 
with the ability to handle much higher resolution encoders etc.  It plugs into 
the ATMEL processor socket
 
My Knee has a 750W Bergerda AC Servo with 3.2:1 pulleys and can run 150 ipm 
which is way too fast for the heavy knee, bevel gears and ACME leadscrew.   
I've designed a rotating ball screw arrangement but it's way down the todo 
list; project #42.

And I'm running the STMBL AC servo drive on the Harmonic Drive Rotary axis.  
This still needs finishing and is also project #42.

John


> -Original Message-
> From: Feral Engineer [mailto:theferalengin...@gmail.com]
> Sent: June-26-21 9:17 AM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] About the 7i76E and possible DB25 expansion cards
> 
> Hey John,
> 
> I guess i should've explained better, I was half awake when I asked that.
> I'm running dmm servos on my mill, which are currently driven on a 7i76e
> with step/dir and are only semi closed loop (closed loop from the motor to
> the drive, but not to LinuxCNC). I'm Curious if it's possible to use the
> external encoder feedback from the dyn4 to LinuxCNC to create a full closed
> loop arrangement using that encoder and step/dir or do the servos have to
> be controlled via analog signal and pid tuning to get the encoder feedback
> to be closed loop?
> 
> Also, I'm looking for the secret sauce to get full closed loop from my vfd
> to LinuxCNC if anyone has pointers on that. I have encoder feedback to
> LinuxCNC, but i feel like I'm missing a key element to get the pid working
> properly. Most of the adjustments I've made to pid never result in LinuxCNC
> compensating for the error (i.e. G97 S200 = S210 actual with p =0, changing
> P results in a runaway in most cases). I'm wondering what the magic net
> command might be to get everything working so I could thread on my lathe.
> 
> Phil T.
> The Feral Engineer
> 
> Check out my LinuxCNC tutorials, machine builds and other antics at
> www.youtube.com/c/theferalengineer
> 
> Help support my channel efforts and coffee addiction:
> www.patreon.com/theferalengineer
> 
> On Sat, Jun 26, 2021, 11:46 AM John Dammeyer  wrote:
> 
> > > That being said, anyone ever use a 7i95 for full closed loop to LinuxCNC
> > > using step dir and encoders? I know a lot of guys are using the 7i77 that
> > > way with analog and there's the 7i97 that would be fun to check out as
> > well
> > > for analog setups. Curious if there's any kind of weirdness that happens
> > > using step pulse with encoder vs just using analog signal.
> > >
> > >
> > > Phil T.
> > > The Feral Engineer
> >
> > Hi Phil,
> > On the bench I have the Pi4 driving the Bergerda AC Servo spindle with
> > step/dir  (smaller motor for bench testing) with an encoder coupled back
> > for feedback.  At the moment I have P=0 and FF1=0 so I'm not using closed
> > loop control because it would probably fight with the Bergerda which has
> > its own set of PID parameters.
> >
> > I not sure you can really do that with a real stepper motor because at
> > high speeds once the motor loses position it locks up and you need to slow
> > down the step rate to get it to mechanically synchronize.  For final
> > positioning though, since a stepper is only accurate to the nearest full
> > step position,  an encoder could be used with LinuxCNC to add/subtract
> > micro-steps until the motor turned to the encoder expected position.
> >
> > The closed loop servo-steppers work slightly differently I believe.
> > (Haven't checked).  I think they treat th

Re: [Emc-users] About the 7i76E and possible DB25 expansion cards

2021-06-26 Thread Gene Heskett
On Saturday 26 June 2021 12:17:15 Feral Engineer wrote:

> Hey John,
>
> I guess i should've explained better, I was half awake when I asked
> that. I'm running dmm servos on my mill, which are currently driven on
> a 7i76e with step/dir and are only semi closed loop (closed loop from
> the motor to the drive, but not to LinuxCNC). I'm Curious if it's
> possible to use the external encoder feedback from the dyn4 to
> LinuxCNC to create a full closed loop arrangement using that encoder
> and step/dir or do the servos have to be controlled via analog signal
> and pid tuning to get the encoder feedback to be closed loop?
>
> Also, I'm looking for the secret sauce to get full closed loop from my
> vfd to LinuxCNC if anyone has pointers on that. I have encoder
> feedback to LinuxCNC, but i feel like I'm missing a key element to get
> the pid working properly. Most of the adjustments I've made to pid
> never result in LinuxCNC compensating for the error (i.e. G97 S200 =
> S210 actual with p =0, changing P results in a runaway in most cases).
> I'm wondering what the magic net command might be to get everything
> working so I could thread on my lathe.

> Phil T.
> The Feral Engineer

Exchange the A & B signals from the encoder to LCNC, either in the .hal 
file, or physically, it sounds as if the LCNC PID thinks its running 
backwards. Check for sure by watching the encoder output with a 
halmeter, it should be counting up when the motor is turning fwd, and 
vice-versa.

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)
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] About the 7i76E and possible DB25 expansion cards

2021-06-26 Thread Gene Heskett
On Saturday 26 June 2021 11:43:12 John Dammeyer wrote:

> > That being said, anyone ever use a 7i95 for full closed loop to
> > LinuxCNC using step dir and encoders? I know a lot of guys are using
> > the 7i77 that way with analog and there's the 7i97 that would be fun
> > to check out as well for analog setups. Curious if there's any kind
> > of weirdness that happens using step pulse with encoder vs just
> > using analog signal.
> >
> >
> > Phil T.
> > The Feral Engineer
>
> Hi Phil,
> On the bench I have the Pi4 driving the Bergerda AC Servo spindle with
> step/dir  (smaller motor for bench testing) with an encoder coupled
> back for feedback.  At the moment I have P=0 and FF1=0 so I'm not
> using closed loop control because it would probably fight with the
> Bergerda which has its own set of PID parameters.
>
> I not sure you can really do that with a real stepper motor because at
> high speeds once the motor loses position it locks up and you need to
> slow down the step rate to get it to mechanically synchronize.  For
> final positioning though, since a stepper is only accurate to the
> nearest full step position,  an encoder could be used with LinuxCNC to
> add/subtract micro-steps until the motor turned to the encoder
> expected position.
>
> The closed loop servo-steppers work slightly differently I believe.
> (Haven't checked).  I think they treat the two stepper windings as a
> two phase AC motor with the AC waveforms recreated matching the
> encoder resolution.  Or if they are really clever they, like the
> Gecko, would switch to full step square waves after the resonance
> point to raise the torque from 0.707 of name plate to full.  And they
> too would adjust the two phase waveform when stopped to the expected
> encoder position based on step count input.
>
> John Dammeyer
>
Which is why I am in love with the 3 phase stepper servo's just now 
comiing on the market. They combine a 3 phase full step size of 1.2 
degrees with a 1000 line encoder with a power saving citcuit that runs 
the motor dead cold as long as the following error is low. And if pushed 
beyond their ability, have a fault output that stops the machine as 
quick as it can. "home" cannot be lost with these and leave it running.

Currently available in nema 23 at 1NM, 2NM, and 3NM torque's. I have a 6 
pack of 1NM's on order to see if they can run my 6040, one of which will 
go on an all printed harmonic drive to put some precision into the A 
axis supplied with the 6040 if you buy the 4 axis model. But my printed 
version of this drive is only 90mm in diameter, and w/o an output 
sprocket, only 20mm thick. 30/1 gear ratio. Output sprocket still being 
written.

When its all done and working, the openscad file to make it will be 
published. But I've yet to test its longevity, I've not yet obtained the 
screws to mount it with, which I think will be good. 1st one is made of 
PLA, next one if needed from carbon fiber PETG.

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)
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] About the 7i76E and possible DB25 expansion cards

2021-06-26 Thread Feral Engineer
Hey John,

I guess i should've explained better, I was half awake when I asked that.
I'm running dmm servos on my mill, which are currently driven on a 7i76e
with step/dir and are only semi closed loop (closed loop from the motor to
the drive, but not to LinuxCNC). I'm Curious if it's possible to use the
external encoder feedback from the dyn4 to LinuxCNC to create a full closed
loop arrangement using that encoder and step/dir or do the servos have to
be controlled via analog signal and pid tuning to get the encoder feedback
to be closed loop?

Also, I'm looking for the secret sauce to get full closed loop from my vfd
to LinuxCNC if anyone has pointers on that. I have encoder feedback to
LinuxCNC, but i feel like I'm missing a key element to get the pid working
properly. Most of the adjustments I've made to pid never result in LinuxCNC
compensating for the error (i.e. G97 S200 = S210 actual with p =0, changing
P results in a runaway in most cases). I'm wondering what the magic net
command might be to get everything working so I could thread on my lathe.

Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

Help support my channel efforts and coffee addiction:
www.patreon.com/theferalengineer

On Sat, Jun 26, 2021, 11:46 AM John Dammeyer  wrote:

> > That being said, anyone ever use a 7i95 for full closed loop to LinuxCNC
> > using step dir and encoders? I know a lot of guys are using the 7i77 that
> > way with analog and there's the 7i97 that would be fun to check out as
> well
> > for analog setups. Curious if there's any kind of weirdness that happens
> > using step pulse with encoder vs just using analog signal.
> >
> >
> > Phil T.
> > The Feral Engineer
>
> Hi Phil,
> On the bench I have the Pi4 driving the Bergerda AC Servo spindle with
> step/dir  (smaller motor for bench testing) with an encoder coupled back
> for feedback.  At the moment I have P=0 and FF1=0 so I'm not using closed
> loop control because it would probably fight with the Bergerda which has
> its own set of PID parameters.
>
> I not sure you can really do that with a real stepper motor because at
> high speeds once the motor loses position it locks up and you need to slow
> down the step rate to get it to mechanically synchronize.  For final
> positioning though, since a stepper is only accurate to the nearest full
> step position,  an encoder could be used with LinuxCNC to add/subtract
> micro-steps until the motor turned to the encoder expected position.
>
> The closed loop servo-steppers work slightly differently I believe.
> (Haven't checked).  I think they treat the two stepper windings as a two
> phase AC motor with the AC waveforms recreated matching the encoder
> resolution.  Or if they are really clever they, like the Gecko, would
> switch to full step square waves after the resonance point to raise the
> torque from 0.707 of name plate to full.  And they too would adjust the two
> phase waveform when stopped to the expected encoder position based on step
> count input.
>
> John Dammeyer
>
>
>
>
> ___
> 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] About the 7i76E and possible DB25 expansion cards

2021-06-26 Thread John Dammeyer
> That being said, anyone ever use a 7i95 for full closed loop to LinuxCNC
> using step dir and encoders? I know a lot of guys are using the 7i77 that
> way with analog and there's the 7i97 that would be fun to check out as well
> for analog setups. Curious if there's any kind of weirdness that happens
> using step pulse with encoder vs just using analog signal.
> 
> 
> Phil T.
> The Feral Engineer

Hi Phil,
On the bench I have the Pi4 driving the Bergerda AC Servo spindle with step/dir 
 (smaller motor for bench testing) with an encoder coupled back for feedback.  
At the moment I have P=0 and FF1=0 so I'm not using closed loop control because 
it would probably fight with the Bergerda which has its own set of PID 
parameters.  

I not sure you can really do that with a real stepper motor because at high 
speeds once the motor loses position it locks up and you need to slow down the 
step rate to get it to mechanically synchronize.  For final positioning though, 
since a stepper is only accurate to the nearest full step position,  an encoder 
could be used with LinuxCNC to add/subtract micro-steps until the motor turned 
to the encoder expected position.

The closed loop servo-steppers work slightly differently I believe. (Haven't 
checked).  I think they treat the two stepper windings as a two phase AC motor 
with the AC waveforms recreated matching the encoder resolution.  Or if they 
are really clever they, like the Gecko, would switch to full step square waves 
after the resonance point to raise the torque from 0.707 of name plate to full. 
 And they too would adjust the two phase waveform when stopped to the expected 
encoder position based on step count input.

John Dammeyer
 



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


Re: [Emc-users] About the 7i76E and possible DB25 expansion cards

2021-06-26 Thread Feral Engineer
I helped a guy set up a 7i95 with encoders. Not hard, but not super simple
because pncconf doesn't support that board native and the 7i95 configurator
didn't work. I used the ini name setting in pncconf, made a config for a
7i96 and had to change the name of the board in the ini file and rename the
io pins.

I have a two switch home setup on my Emco using a prox switch as an index
pulse after hitting a mechanical switch, using home_use_index and I'm using
home_index_no_encoder_reset in master to home my x and z without having
full encoder feedback. I made some videos on my YouTube channel about it.

I'm not shying you away from the 7i95, i think it's a great board, but be
ready for a little hair pulling unless you're pretty comfortable with the
mesa ecosystem.

That being said, anyone ever use a 7i95 for full closed loop to LinuxCNC
using step dir and encoders? I know a lot of guys are using the 7i77 that
way with analog and there's the 7i97 that would be fun to check out as well
for analog setups. Curious if there's any kind of weirdness that happens
using step pulse with encoder vs just using analog signal.


Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

Help support my channel efforts and coffee addiction:
www.patreon.com/theferalengineer

On Sat, Jun 26, 2021, 8:47 AM Leonardo Marsaglia 
wrote:

> Hello Andrew and Gene and sorry for the late reply. I hope you're doing
> great!
>
> I believe I'll use the 7i84 as Peter suggested to expand the I/Os. But
> instead of the 7i76E I'll go with the 7i95 which can read encoders too.
> With this I can replicate what I did on the mazak which is to fool the
> homing sequence to use the index pulse of the motors on the final stage.
>
> El mar, 22 jun 2021 a las 2:23, Gene Heskett ()
> escribió:
>
> > On Monday 21 June 2021 22:01:25 Leonardo Marsaglia wrote:
> >
> > > Thanks a lot Peter and Andy,
> > >
> > > I re read through the manual and found the SSERIAL port connection and
> > > the recommendation of using a CAT5 cable cut in half. I missed that
> > > part so I was a little confused about how to expand the I/Os. So, I'll
> > > be more than ok with this board :)
> > >
> > Another possibility if you need lots of i/o, is the 7i90HD, which has a
> > total of 72 lines. Firmware options for uo to 8 axises of steppers and
> > encoders. Or I believe pwm-gens and encoders. The disadvantages are its
> > 3, 50 pin i/o's that are all tied to the fpga, and easily damaged by
> > noise. The fix for that is a trio of 7i42TA's which are effectly used as
> > breakout boards, tradeing some bandwidth for the usual surge protection
> > and giving you nice screw terminals to wire it up with. It can be driven
> > from an epp parport, or from an spi port from a pi. With all the
> > gingerbread I've put on the sheldon, I probably have 35 i/o lines unused
> > yet. And I can fire up firefox and browse the net at the same time its
> > running the sheldon. I felt keeping the ethernet port out of the lcnc
> > arena, so the net port was available for updating and such was more
> > important, and still do. 2 of my 4 machines are building and installig
> > their own versions of linuxcnc from github master-gtk3 as I type this,
> > including that rpi4.
> >
> > > El lun, 21 jun 2021 a las 4:45, andy pugh ()
> > escribió:
> > > > On Mon, 21 Jun 2021 at 03:27, Leonardo Marsaglia
> > > > 
> > > >
> > > > wrote:
> > > > > Is the 7i75
> > > > > breakout board the way to add more I/Os to the 7i76E? And in that
> > > > > case I suppose the direction of the I/O pins in determined in HAL
> > > > > at the startup right?
> > > >
> > > > That depends on what you want. If it is just GPIO then look at
> > > > smart-serial boards on the built-in port.
> > > > If that still isn't enough, you could add one or two 7i74 boards to
> > > > the 7i76E for a theoretical extra 3584 extra IO lines
> > > >
> > > > (smart serial has been recently expanded from 96 to 224 bits, but I
> > > > am not sure if any available boards actually add more than 48 io
> > > > pins each)
> > > >
> > > > --
> > > > 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
> > >
> > > ___
> > > 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)
> > If we desire respect for the law

Re: [Emc-users] About the 7i76E and possible DB25 expansion cards

2021-06-26 Thread Leonardo Marsaglia
Hello Andrew and Gene and sorry for the late reply. I hope you're doing
great!

I believe I'll use the 7i84 as Peter suggested to expand the I/Os. But
instead of the 7i76E I'll go with the 7i95 which can read encoders too.
With this I can replicate what I did on the mazak which is to fool the
homing sequence to use the index pulse of the motors on the final stage.

El mar, 22 jun 2021 a las 2:23, Gene Heskett ()
escribió:

> On Monday 21 June 2021 22:01:25 Leonardo Marsaglia wrote:
>
> > Thanks a lot Peter and Andy,
> >
> > I re read through the manual and found the SSERIAL port connection and
> > the recommendation of using a CAT5 cable cut in half. I missed that
> > part so I was a little confused about how to expand the I/Os. So, I'll
> > be more than ok with this board :)
> >
> Another possibility if you need lots of i/o, is the 7i90HD, which has a
> total of 72 lines. Firmware options for uo to 8 axises of steppers and
> encoders. Or I believe pwm-gens and encoders. The disadvantages are its
> 3, 50 pin i/o's that are all tied to the fpga, and easily damaged by
> noise. The fix for that is a trio of 7i42TA's which are effectly used as
> breakout boards, tradeing some bandwidth for the usual surge protection
> and giving you nice screw terminals to wire it up with. It can be driven
> from an epp parport, or from an spi port from a pi. With all the
> gingerbread I've put on the sheldon, I probably have 35 i/o lines unused
> yet. And I can fire up firefox and browse the net at the same time its
> running the sheldon. I felt keeping the ethernet port out of the lcnc
> arena, so the net port was available for updating and such was more
> important, and still do. 2 of my 4 machines are building and installig
> their own versions of linuxcnc from github master-gtk3 as I type this,
> including that rpi4.
>
> > El lun, 21 jun 2021 a las 4:45, andy pugh ()
> escribió:
> > > On Mon, 21 Jun 2021 at 03:27, Leonardo Marsaglia
> > > 
> > >
> > > wrote:
> > > > Is the 7i75
> > > > breakout board the way to add more I/Os to the 7i76E? And in that
> > > > case I suppose the direction of the I/O pins in determined in HAL
> > > > at the startup right?
> > >
> > > That depends on what you want. If it is just GPIO then look at
> > > smart-serial boards on the built-in port.
> > > If that still isn't enough, you could add one or two 7i74 boards to
> > > the 7i76E for a theoretical extra 3584 extra IO lines
> > >
> > > (smart serial has been recently expanded from 96 to 224 bits, but I
> > > am not sure if any available boards actually add more than 48 io
> > > pins each)
> > >
> > > --
> > > 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
> >
> > ___
> > 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)
> 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 mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users