[Emc-developers] Real time scheduling

2015-01-05 Thread Karlsson & Wang
Then trying to get a system which is robust to communication errors I investigated the scheduling and found out that Earliest Deadline First scheduling quite recently have been part of the ordinary kernel. I have seen linuxcnc currently use "SCHED_FIFO" and the new is "SCHED_DEADLINE" which use

[Emc-developers] Profibus (Endswitches, simple IO)

2015-01-24 Thread Karlsson & Wang
I am thinking about using standard IO modules with RS485 Profibus communication for end switches, brakes and other not very time critical tasks. They are standardized and sometimes available used for a good price. Is there anything useful available or do I have to write my own? I have done a ba

Re: [Emc-developers] Emc-developers Digest, Vol 105, Issue 12 (Profibus endswitches, simple IO)

2015-01-24 Thread Karlsson & Wang
I was thinking about: Linucnc computer with RS458 interface <--> Profibus IO module. Connecting it to a STM32 would also work but it is one extra step. Nicklas Karlsson > > Karl > I did find a website during the week that has a project using profibus > and the STM32. I can't seem to find it r

Re: [Emc-developers] Emc-developers Digest, Vol 105, Issue 12 (Profibus endswitches, simple IO)

2015-01-25 Thread Karlsson &amp; Wang
I have been thinking about it and even if the code is suitable for an STM32 device it might of course be possible to port to an ordinary computer and use it in linuxcnc. I guess STM32 is used in some profibus devices so it might in the wrong end. My internet connection is currently working at re

[Emc-developers] Realtime scheduling

2015-04-17 Thread Karlsson &amp; Wang
I am running linxucnc via ethernet and have studied the CPU and network load. The minimum servo period seems to be around 200µs despite both CPU load and network load is low. I have not yet investigated if this is because network packets supposed to be received are missing or if process is not e

Re: [Emc-developers] Emc-developers Digest, Vol 111, Issue 6 (Memory access reordering)

2015-07-22 Thread Karlsson &amp; Wang
I have not followed the discussion but "volatile" keyword for variables might help. It will not force atomic operations but it will force a real read or write probably with correct order. The compiler usually output warnings about ordering not defined then accessing several "volatile" variables

[Emc-developers] Hostmot 2 ethernet (queue packets)

2015-08-04 Thread Karlsson &amp; Wang
Occasionally I got some communication errors which of course might happen especially during development. As far as I can tell from the source "hm2_eth.c" row 445 "} while ((recv < 0) && ((t2 - t1) < 200*1000*1000));" wait for 200ms before an error is generated. During this time new packets are q

[Emc-developers] graphical configuration (gschem)

2015-09-08 Thread Karlsson &amp; Wang
I am also following the gEDA discussion and someone where talked about using gschem for structural design of VHDL. Configuration of linuxcnc may also be seen as connecting together different components with nets so in case someone is thinking about graphical configuration gEDA symbols together w

Re: [Emc-developers] Emc-developers Digest, Vol 113, Issue 16 (EDF realtime scheduling)

2015-09-30 Thread Karlsson &amp; Wang
>7. LinuxCNC operating system support in master branch / for > eventual LinuxCNC 2.8 (Jeff Epler) >8. Re: LinuxCNC operating system support in master branch / for > eventual LinuxCNC 2.8 ( john...@superiorroll.com ) Since operating system is up again I want to add real time sch

Re: [Emc-developers] Emc-developers Digest, Vol 114, Issue 13 (Ethernet, STM32F407)

2015-10-12 Thread Karlsson &amp; Wang
> > Date: Mon, 12 Oct 2015 22:55:03 +0300 > > From: Pekka Roivainen > > Reply-To: EMC developers > > To: emc-developers@lists.sourceforge.net > > Subject: [Emc-developers] Timing of realtime functions in uspace > > > > Hello! > > > > I'm building an ethernet based IO board to be used with LinuxC

[Emc-developers] Ethernet, STM32F407, RS-485, Profibus

2015-10-13 Thread Karlsson &amp; Wang
> > I use the STM32F407 with the hostmot2 driver. I had some glitches at > > startup but today I added a small delay someone here suggested end then > > startup works perfect every time with two cards connected. > > > > I have been running two axes with DC servo motors and ordinary encoders on

[Emc-developers] Shielded connectors (XLR audio plugs)

2015-10-13 Thread Karlsson &amp; Wang
I spent some time looking for a cheap shielded connector but usually they are relatively expensive and cost more than a cheap inverter board. I however found the shielded XLR audio connectors are cheap, do anybody have experience with these? -

Re: [Emc-developers] Emc-developers Digest, Vol 114, Issue 13 (Ethernet, STM32F407)

2015-10-14 Thread Karlsson &amp; Wang
> Thanks, > I attached my code. at the moment I am just working on the protocol, without > stm, so this code runs on a pc. > my code runs without changes in linuxcnc, but for some reason I do not get > data from the stepgens, but tcpdump confirms I am parsing all packages send > by linuxcnc. > t

[Emc-developers] home_offset into a HAL pin? (andy pugh) Absolute encoders

2015-10-28 Thread Karlsson &amp; Wang
For logical IO I would suggest a thread with lower periodicity than servo loop. If EDF or Rate monotonic scheduler is used this lower periodicity thread will get lower priority and servo loop may interrupt it. Rotary absolute encoders measure angle within a turn and I think there may be more th

[Emc-developers] Profibus (Request Diagnostics)

2015-11-02 Thread Karlsson &amp; Wang
I am trying to get a profibus IO module up and running. Plan is to add to Linuxcnc and there plenty of these kind of devices out there so it will almost certainly be useful. Do anyone happen to have the raw message format from a trace or similar for request diagnostic? Nicklas Karlsson --

[Emc-developers] Difference RTAI 5.0 <--> PREEMPT-rt ?

2016-01-03 Thread Karlsson &amp; Wang
Do anybode know the difference between RTAI and PREEMPT-rt? Regards Nicklas Karlsson -- ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.source

[Emc-developers] RTAI ethernet

2016-01-11 Thread Karlsson &amp; Wang
RTAI seems to have the best real time perfomance, have anybody been able to use RTAI and ethernet? Nicklas Karlsson -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monito

Re: [Emc-developers] RTAI ethernet

2016-01-17 Thread Karlsson &amp; Wang
> I believe the hostmot2 ethernet drivers only work (or at least have only been > tested) with PREEMPT_RT. > > Alec Ari PREEMPT_RT work but it is not possible to put the limit then it come to period of how often real time tasks could be executed. Without proper handling of interrupt every now