Check out some of these zynq boards, dual core arm with a fpga attached. 
www.zedboard.org 

----- Original Message -----

From: emc-users-requ...@lists.sourceforge.net 
To: emc-users@lists.sourceforge.net 
Sent: Thursday, October 13, 2016 12:13:56 PM 
Subject: Emc-users Digest, Vol 126, Issue 35 

Send Emc-users mailing list submissions to 
emc-users@lists.sourceforge.net 

To subscribe or unsubscribe via the World Wide Web, visit 
https://lists.sourceforge.net/lists/listinfo/emc-users 
or, via email, send a message with subject or body 'help' to 
emc-users-requ...@lists.sourceforge.net 

You can reach the person managing the list at 
emc-users-ow...@lists.sourceforge.net 

When replying, please edit your Subject line so it is more specific 
than "Re: Contents of Emc-users digest..." 


Today's Topics: 

1. Re: Linuxcnc on arm (Erik Friesen) 
2. Re: Linuxcnc on arm (Nicklas Karlsson) 
3. Re: Hacking a sim runtime mode 
(Todd Zuercher) 
4. Re: Linuxcnc on arm (Erik Friesen) 


---------------------------------------------------------------------- 

Message: 1 
Date: Thu, 13 Oct 2016 14:24:54 -0400 
From: Erik Friesen <e...@aercon.net> 
Subject: Re: [Emc-users] Linuxcnc on arm 
To: "Enhanced Machine Controller (EMC)" 
<emc-users@lists.sourceforge.net> 
Message-ID: 
<CAEuupiuVw_Vp3gGxCy7SpXLihTVwVNj=-forhh=zh9wfaa4...@mail.gmail.com> 
Content-Type: text/plain; charset=UTF-8 

In this scenario, the dac would be driving a bldc, so it would need to be 
updated around 4-8khz. 

On Thu, Oct 13, 2016 at 2:24 PM, Erik Friesen <e...@aercon.net> wrote: 

> To clarify my question, I am trying to understand at what level lcnc 
> accesses hardware peripherals. For example, suppose I build a board with 
> an spi dac peripheral to the arm, as well as write the kernel driver, if 
> necessary. What type of glue do I need to provide in this situation? 
> 
> On Thu, Oct 13, 2016 at 1:50 PM, Nicklas Karlsson < 
> nicklas.karlsso...@gmail.com> wrote: 
> 
>> On the Cortex-M* model usually used on micro controllers there use to be 
>> a reference manual. Usually there is register to configure pin 
>> functionality, GPIO is a common default value and a register to select 
>> direction input or output. 
>> 
>> There use to a library but software complexity become lower by accessing 
>> the registers directly unless there is a need to change things dynamically. 
>> The libraries are usually written for dynamic access while software almost 
>> always only have need for simpler static access. To register callback 
>> functions at an interrupt handler is a perfect example, if the same 
>> function(s) is registered at every startup they could be added statically 
>> and it is possible to generate a call graph. 
>> 
>> 
>> On Thu, 13 Oct 2016 13:27:55 -0400 
>> Erik Friesen <e...@aercon.net> wrote: 
>> 
>> > Resurrecting this thread, can anyone point me to docs, or other info 
>> what 
>> > it takes to link GPIO, or SPI devices into linuxcnc on an arm? On what 
>> > level does this happen? Userspace, Kernelspace, etc? I have done a 
>> bit of 
>> > kernel programming for the i.mx6. 
>> > 
>> > On Thu, Mar 24, 2016 at 8:19 AM, Ron Ginger <rongin...@roadrunner.com> 
>> > wrote: 
>> > 
>> > > I was helping a commercial screw machine shop that had a couple little 
>> > > KX1 mills. One was getting rather tired after 5 or 6 years of 
>> production 
>> > > use and having repeatability problem. I was speaking with the general 
>> > > manager and asked "well how long do you expect a machine to last?" and 
>> > > without a hint of a smile he whipped back "40 years" 
>> > > 
>> > > The KX1 was installed less then 50 feet from a row of screw machines 
>> > > maybe as old as I am (73 years) and they were clanking away dropping 
>> > > parts into a bin. 
>> > > 
>> > > ron ginger 
>> > > 
>> > > > Who wants to use and maintain (if it is possible) an original CNC 
>> control 
>> > > > made prior to 2000 ?? 
>> > > > 
>> > > > Dave 
>> > > > 
>> > > 
>> > > 
>> > > ------------------------------------------------------------ 
>> > > ------------------ 
>> > > Transform Data into Opportunity. 
>> > > Accelerate data analysis in your applications with 
>> > > Intel Data Analytics Acceleration Library. 
>> > > Click to learn more. 
>> > > http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 
>> > > _______________________________________________ 
>> > > Emc-users mailing list 
>> > > Emc-users@lists.sourceforge.net 
>> > > https://lists.sourceforge.net/lists/listinfo/emc-users 
>> > > 
>> > ------------------------------------------------------------ 
>> ------------------ 
>> > Check out the vibrant tech community on one of the world's most 
>> > engaging tech sites, SlashDot.org! http://sdm.link/slashdot 
>> > _______________________________________________ 
>> > Emc-users mailing list 
>> > Emc-users@lists.sourceforge.net 
>> > https://lists.sourceforge.net/lists/listinfo/emc-users 
>> 
>> ------------------------------------------------------------ 
>> ------------------ 
>> Check out the vibrant tech community on one of the world's most 
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot 
>> _______________________________________________ 
>> Emc-users mailing list 
>> Emc-users@lists.sourceforge.net 
>> https://lists.sourceforge.net/lists/listinfo/emc-users 
>> 
> 
> 


------------------------------ 

Message: 2 
Date: Thu, 13 Oct 2016 20:58:26 +0200 
From: Nicklas Karlsson <nicklas.karlsso...@gmail.com> 
Subject: Re: [Emc-users] Linuxcnc on arm 
To: "Enhanced Machine Controller \(EMC\)" 
<emc-users@lists.sourceforge.net> 
Message-ID: <20161013205826.bc2ed77e3daa09b966f01...@gmail.com> 
Content-Type: text/plain; charset=US-ASCII 

Then you would need a powerful analog amplifier, unless it is a control signal 
for a driver. An analog amplifier waste energy, a more efficient method is to 
use an inverter card and then you use the PWM module in the micro controller to 
generate signals for the inverter. 

You also need to chose a suitable micro controller, the high end usually are 
good for hard drives and similar but not for PWM generation. Micro controllers 
with a Cortex-M* CPU usually have support PWM generation and are more or less 
built for this purpose, they may be cheap from around $1 each in large quantity 
and maybe $10-$20 for the more powerful. 



On Thu, 13 Oct 2016 14:24:54 -0400 
Erik Friesen <e...@aercon.net> wrote: 

> In this scenario, the dac would be driving a bldc, so it would need to be 
> updated around 4-8khz. 
> 
> On Thu, Oct 13, 2016 at 2:24 PM, Erik Friesen <e...@aercon.net> wrote: 
> 
> > To clarify my question, I am trying to understand at what level lcnc 
> > accesses hardware peripherals. For example, suppose I build a board with 
> > an spi dac peripheral to the arm, as well as write the kernel driver, if 
> > necessary. What type of glue do I need to provide in this situation? 
> > 
> > On Thu, Oct 13, 2016 at 1:50 PM, Nicklas Karlsson < 
> > nicklas.karlsso...@gmail.com> wrote: 
> > 
> >> On the Cortex-M* model usually used on micro controllers there use to be 
> >> a reference manual. Usually there is register to configure pin 
> >> functionality, GPIO is a common default value and a register to select 
> >> direction input or output. 
> >> 
> >> There use to a library but software complexity become lower by accessing 
> >> the registers directly unless there is a need to change things 
> >> dynamically. 
> >> The libraries are usually written for dynamic access while software almost 
> >> always only have need for simpler static access. To register callback 
> >> functions at an interrupt handler is a perfect example, if the same 
> >> function(s) is registered at every startup they could be added statically 
> >> and it is possible to generate a call graph. 
> >> 
> >> 
> >> On Thu, 13 Oct 2016 13:27:55 -0400 
> >> Erik Friesen <e...@aercon.net> wrote: 
> >> 
> >> > Resurrecting this thread, can anyone point me to docs, or other info 
> >> what 
> >> > it takes to link GPIO, or SPI devices into linuxcnc on an arm? On what 
> >> > level does this happen? Userspace, Kernelspace, etc? I have done a 
> >> bit of 
> >> > kernel programming for the i.mx6. 
> >> > 
> >> > On Thu, Mar 24, 2016 at 8:19 AM, Ron Ginger <rongin...@roadrunner.com> 
> >> > wrote: 
> >> > 
> >> > > I was helping a commercial screw machine shop that had a couple little 
> >> > > KX1 mills. One was getting rather tired after 5 or 6 years of 
> >> production 
> >> > > use and having repeatability problem. I was speaking with the general 
> >> > > manager and asked "well how long do you expect a machine to last?" and 
> >> > > without a hint of a smile he whipped back "40 years" 
> >> > > 
> >> > > The KX1 was installed less then 50 feet from a row of screw machines 
> >> > > maybe as old as I am (73 years) and they were clanking away dropping 
> >> > > parts into a bin. 
> >> > > 
> >> > > ron ginger 
> >> > > 
> >> > > > Who wants to use and maintain (if it is possible) an original CNC 
> >> control 
> >> > > > made prior to 2000 ?? 
> >> > > > 
> >> > > > Dave 
> >> > > > 
> >> > > 
> >> > > 
> >> > > ------------------------------------------------------------ 
> >> > > ------------------ 
> >> > > Transform Data into Opportunity. 
> >> > > Accelerate data analysis in your applications with 
> >> > > Intel Data Analytics Acceleration Library. 
> >> > > Click to learn more. 
> >> > > http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 
> >> > > _______________________________________________ 
> >> > > Emc-users mailing list 
> >> > > Emc-users@lists.sourceforge.net 
> >> > > https://lists.sourceforge.net/lists/listinfo/emc-users 
> >> > > 
> >> > ------------------------------------------------------------ 
> >> ------------------ 
> >> > Check out the vibrant tech community on one of the world's most 
> >> > engaging tech sites, SlashDot.org! http://sdm.link/slashdot 
> >> > _______________________________________________ 
> >> > Emc-users mailing list 
> >> > Emc-users@lists.sourceforge.net 
> >> > https://lists.sourceforge.net/lists/listinfo/emc-users 
> >> 
> >> ------------------------------------------------------------ 
> >> ------------------ 
> >> Check out the vibrant tech community on one of the world's most 
> >> engaging tech sites, SlashDot.org! http://sdm.link/slashdot 
> >> _______________________________________________ 
> >> Emc-users mailing list 
> >> Emc-users@lists.sourceforge.net 
> >> https://lists.sourceforge.net/lists/listinfo/emc-users 
> >> 
> > 
> > 
> ------------------------------------------------------------------------------
>  
> Check out the vibrant tech community on one of the world's most 
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot 
> _______________________________________________ 
> Emc-users mailing list 
> Emc-users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/emc-users 



------------------------------ 

Message: 3 
Date: Thu, 13 Oct 2016 15:08:50 -0400 (EDT) 
From: "Todd Zuercher" <zuerc...@embarqmail.com> 
Subject: Re: [Emc-users] Hacking a sim runtime mode 
To: "Enhanced Machine Controller (EMC)" 
<emc-users@lists.sourceforge.net> 
Message-ID: 
<678531067.92071357.1476385730810.javamail.r...@embarqmail.com> 
Content-Type: text/plain; charset=utf-8 

I was just working at this a little bit. The first thing I did was to modify 
time.comp, to make a new sim_time.comp. The sim_time.comp is basically just the 
same as the regular timer component with an input pin added to scale the time 
to what ever factor you speed up the simulation run. Then I made a dummy config 
of one of our machines with all the velocities and accelerations increased by 
1000x, and test ran a few things, the results were not quite as good as I had 
hoped, but were way better than the old estimations. Is it possible that some 
of the inaccuracy came from the fact I was running it in a VM? 

The timer scaling pin was a really simple mod, would there be any interest in 
adding that to the regular release? 

----- Original Message ----- 
From: dan...@austin.rr.com 
To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net> 
Sent: Thursday, October 13, 2016 2:24:53 PM 
Subject: Re: [Emc-users] Hacking a sim runtime mode 


---- Chris Albertson <albertson.ch...@gmail.com> wrote: 
> On Thu, Oct 13, 2016 at 9:00 AM, Peter C. Wallace <p...@mesanet.com> wrote: 
> > On Thu, 13 Oct 2016, dan...@austin.rr.com wrote: 
> > 
> 
> > I just tried a real time Mesa Ethernet config with maxvel = 120000 IPM 
> > (2000 
> > IPS = 20 MHz step rate at present 10000 steps/In scaling) and maxaccel 
> > 20000 
> > IPS/S (52 Gs) with a 1 KHz servo thread, and it works fine (Peak following 
> > errors in the 1-2 mill region) 
> 
> The problem to be solved is getting an estimate of the time required 
> to complete a job. Does the above do this accurately? 

Yeah I want to know this. I can run a job for real vs "fast sim" and compare. 
One prob is the cycle time only goes down to seconds AFAIK. If it's 100x then 
that's over a minute and a half it could be wrong, but that's still good enough 
as long as it's not estimating a very short job. 



------------------------------ 

Message: 4 
Date: Thu, 13 Oct 2016 15:13:48 -0400 
From: Erik Friesen <e...@aercon.net> 
Subject: Re: [Emc-users] Linuxcnc on arm 
To: "Enhanced Machine Controller (EMC)" 
<emc-users@lists.sourceforge.net> 
Message-ID: 
<caeuupitkw0szut+-mi1wyt1fmvm8nl2uzznlohwqwt447ef...@mail.gmail.com> 
Content-Type: text/plain; charset=UTF-8 

Haas drives are basically pwm amplifiers that apparently need a 5v+- signal 
120 degrees apart. Why bother with pwm, why not just put a good spi dac 
controlled from the i.mx6? Then add a couple encoder ic's, or run a pic32 
or similar to handle the qei. 

On Thu, Oct 13, 2016 at 2:58 PM, Nicklas Karlsson < 
nicklas.karlsso...@gmail.com> wrote: 

> Then you would need a powerful analog amplifier, unless it is a control 
> signal for a driver. An analog amplifier waste energy, a more efficient 
> method is to use an inverter card and then you use the PWM module in the 
> micro controller to generate signals for the inverter. 
> 
> You also need to chose a suitable micro controller, the high end usually 
> are good for hard drives and similar but not for PWM generation. Micro 
> controllers with a Cortex-M* CPU usually have support PWM generation and 
> are more or less built for this purpose, they may be cheap from around $1 
> each in large quantity and maybe $10-$20 for the more powerful. 
> 
> 
> 
> On Thu, 13 Oct 2016 14:24:54 -0400 
> Erik Friesen <e...@aercon.net> wrote: 
> 
> > In this scenario, the dac would be driving a bldc, so it would need to be 
> > updated around 4-8khz. 
> > 
> > On Thu, Oct 13, 2016 at 2:24 PM, Erik Friesen <e...@aercon.net> wrote: 
> > 
> > > To clarify my question, I am trying to understand at what level lcnc 
> > > accesses hardware peripherals. For example, suppose I build a board 
> with 
> > > an spi dac peripheral to the arm, as well as write the kernel driver, 
> if 
> > > necessary. What type of glue do I need to provide in this situation? 
> > > 
> > > On Thu, Oct 13, 2016 at 1:50 PM, Nicklas Karlsson < 
> > > nicklas.karlsso...@gmail.com> wrote: 
> > > 
> > >> On the Cortex-M* model usually used on micro controllers there use to 
> be 
> > >> a reference manual. Usually there is register to configure pin 
> > >> functionality, GPIO is a common default value and a register to select 
> > >> direction input or output. 
> > >> 
> > >> There use to a library but software complexity become lower by 
> accessing 
> > >> the registers directly unless there is a need to change things 
> dynamically. 
> > >> The libraries are usually written for dynamic access while software 
> almost 
> > >> always only have need for simpler static access. To register callback 
> > >> functions at an interrupt handler is a perfect example, if the same 
> > >> function(s) is registered at every startup they could be added 
> statically 
> > >> and it is possible to generate a call graph. 
> > >> 
> > >> 
> > >> On Thu, 13 Oct 2016 13:27:55 -0400 
> > >> Erik Friesen <e...@aercon.net> wrote: 
> > >> 
> > >> > Resurrecting this thread, can anyone point me to docs, or other info 
> > >> what 
> > >> > it takes to link GPIO, or SPI devices into linuxcnc on an arm? On 
> what 
> > >> > level does this happen? Userspace, Kernelspace, etc? I have done a 
> > >> bit of 
> > >> > kernel programming for the i.mx6. 
> > >> > 
> > >> > On Thu, Mar 24, 2016 at 8:19 AM, Ron Ginger < 
> rongin...@roadrunner.com> 
> > >> > wrote: 
> > >> > 
> > >> > > I was helping a commercial screw machine shop that had a couple 
> little 
> > >> > > KX1 mills. One was getting rather tired after 5 or 6 years of 
> > >> production 
> > >> > > use and having repeatability problem. I was speaking with the 
> general 
> > >> > > manager and asked "well how long do you expect a machine to 
> last?" and 
> > >> > > without a hint of a smile he whipped back "40 years" 
> > >> > > 
> > >> > > The KX1 was installed less then 50 feet from a row of screw 
> machines 
> > >> > > maybe as old as I am (73 years) and they were clanking away 
> dropping 
> > >> > > parts into a bin. 
> > >> > > 
> > >> > > ron ginger 
> > >> > > 
> > >> > > > Who wants to use and maintain (if it is possible) an original 
> CNC 
> > >> control 
> > >> > > > made prior to 2000 ?? 
> > >> > > > 
> > >> > > > Dave 
> > >> > > > 
> > >> > > 
> > >> > > 
> > >> > > ------------------------------------------------------------ 
> > >> > > ------------------ 
> > >> > > Transform Data into Opportunity. 
> > >> > > Accelerate data analysis in your applications with 
> > >> > > Intel Data Analytics Acceleration Library. 
> > >> > > Click to learn more. 
> > >> > > http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 
> > >> > > _______________________________________________ 
> > >> > > Emc-users mailing list 
> > >> > > Emc-users@lists.sourceforge.net 
> > >> > > https://lists.sourceforge.net/lists/listinfo/emc-users 
> > >> > > 
> > >> > ------------------------------------------------------------ 
> > >> ------------------ 
> > >> > Check out the vibrant tech community on one of the world's most 
> > >> > engaging tech sites, SlashDot.org! http://sdm.link/slashdot 
> > >> > _______________________________________________ 
> > >> > Emc-users mailing list 
> > >> > Emc-users@lists.sourceforge.net 
> > >> > https://lists.sourceforge.net/lists/listinfo/emc-users 
> > >> 
> > >> ------------------------------------------------------------ 
> > >> ------------------ 
> > >> Check out the vibrant tech community on one of the world's most 
> > >> engaging tech sites, SlashDot.org! http://sdm.link/slashdot 
> > >> _______________________________________________ 
> > >> Emc-users mailing list 
> > >> Emc-users@lists.sourceforge.net 
> > >> https://lists.sourceforge.net/lists/listinfo/emc-users 
> > >> 
> > > 
> > > 
> > ------------------------------------------------------------ 
> ------------------ 
> > Check out the vibrant tech community on one of the world's most 
> > engaging tech sites, SlashDot.org! http://sdm.link/slashdot 
> > _______________________________________________ 
> > Emc-users mailing list 
> > Emc-users@lists.sourceforge.net 
> > https://lists.sourceforge.net/lists/listinfo/emc-users 
> 
> ------------------------------------------------------------ 
> ------------------ 
> Check out the vibrant tech community on one of the world's most 
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot 
> _______________________________________________ 
> Emc-users mailing list 
> Emc-users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/emc-users 
> 


------------------------------ 

------------------------------------------------------------------------------ 
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot 

------------------------------ 

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


End of Emc-users Digest, Vol 126, Issue 35 
****************************************** 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to