[Emc-users] NML via TCP

2017-07-23 Thread Nicklas Karlsson
I have been able to set up server to receive NML communication via TCP and 
connection to TCP port from remote computer is possible. I am however a little 
bit confused over the client side.

Running axis with ini file and nothing happens. Running linuxcnc and it seems 
to run tasks already running on server locally on the client computer and not 
connect to server port. Anybody have a clue?

Nicklas Karlsson

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


Re: [Emc-users] NML communication --> Raspberry

2017-07-23 Thread Nicklas Karlsson
> On 21.07.17 11:36, Nicklas Karlsson wrote:
> > I have been thinking about the beagle bone as a real time computer but
> > still want an ordinary computer as a user interface and this.
> 
> It would certainly fit on the back of the monitor, and runs off 12v,
> provided by the supplied wall-wart. (Plug-pack in Strine.)

I guess it would work very well on robots or other small machines.

I am trying to get nml over network up and running, I could see server is 
listening and it is possible to connect to port but then running axis there is 
an error message:
  s.poll()
  linuxcnc.error: EmcStatusBuffer invalid err=3
I have not yet figured out if I do everything correct.


Nicklas Karlsson

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


Re: [Emc-users] latency excursions

2017-07-23 Thread Peter C. Wallace

On Sun, 23 Jul 2017, dave wrote:


Date: Sun, 23 Jul 2017 10:37:09 -0700
From: dave 
Reply-To: "Enhanced Machine Controller (EMC)"

To: "Enhanced Machine Controller (EMC)" 
Subject: Re: [Emc-users] latency excursions



On 07/23/2017 10:14 AM, Peter C. Wallace wrote:

On Sun, 23 Jul 2017, dave wrote:


Date: Sun, 23 Jul 2017 08:48:19 -0700
From: dave 
Reply-To: "Enhanced Machine Controller (EMC)"

To: "Enhanced Machine Controller (EMC)" 
Subject: [Emc-users] latency excursions

dave@linuxcnc:~$ uname -a
Linux linuxcnc 3.4-9-rtai-686-pae #1 SMP PREEMPT Debian 3.4.55-4linuxcnc 
i686 i686 i386 GNU/Linux


task: 103857488 cycles, min=0.49, max=0.474214, avg=0.010993, 86 
latency excursions (> 10x expected cycle time of 0.01s)


task: 25439189 cycles, min=0.49, max=0.205898, avg=0.010989, 17 
latency excursions (> 10x expected cycle time of 0.01s)


I've done nothing to tune this cpu and as far as I can tell the motion is 
ok.


Still it leave me uncomfortable.

What do I need to change to clean this uo?


TIA

Dave


These are not real-time latency issues but rather delays in task
so are not a actual problem unless they are so long that they cause
a disruption the the non-real time tasks linuxCNC is doing (user interface 
etc)


These delays will not be reduced by any real time latency tuning of the 
system ( and may well be made worse by things that slow the userland 
performance like isocpus )



Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.

Thanks Peter,
I suppose I should have picked up on the 'task'. I'm going to use age as an 
excuse. ;-)


I re-tuned the x axis yesterday for some improvement; following error is 
somewhere around 2E-5.


Dave


You can do a little experiment with delaying task by starting LinuxCNC from 
the command line and then suspending it while running gcode with control Z. 
This does not disrupt motion in progress, as long as the delay is not too

long, and if it is too long you will get:

USRMOT: ERROR: command timeout


(after the control Z, you can resume task/user-interface with "fg 1")



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



Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.


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


Re: [Emc-users] latency excursions

2017-07-23 Thread dave



On 07/23/2017 10:14 AM, Peter C. Wallace wrote:

On Sun, 23 Jul 2017, dave wrote:


Date: Sun, 23 Jul 2017 08:48:19 -0700
From: dave 
Reply-To: "Enhanced Machine Controller (EMC)"

To: "Enhanced Machine Controller (EMC)" 


Subject: [Emc-users] latency excursions

dave@linuxcnc:~$ uname -a
Linux linuxcnc 3.4-9-rtai-686-pae #1 SMP PREEMPT Debian 
3.4.55-4linuxcnc i686 i686 i386 GNU/Linux


task: 103857488 cycles, min=0.49, max=0.474214, avg=0.010993, 86 
latency excursions (> 10x expected cycle time of 0.01s)


task: 25439189 cycles, min=0.49, max=0.205898, avg=0.010989, 17 
latency excursions (> 10x expected cycle time of 0.01s)


I've done nothing to tune this cpu and as far as I can tell the 
motion is ok.


Still it leave me uncomfortable.

What do I need to change to clean this uo?


TIA

Dave


These are not real-time latency issues but rather delays in task
so are not a actual problem unless they are so long that they cause
a disruption the the non-real time tasks linuxCNC is doing (user 
interface etc)


These delays will not be reduced by any real time latency tuning of 
the system ( and may well be made worse by things that slow the 
userland performance like isocpus )



Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.

Thanks Peter,
I suppose I should have picked up on the 'task'. I'm going to use age as 
an excuse. ;-)


I re-tuned the x axis yesterday for some improvement; following error is 
somewhere around 2E-5.


Dave
-- 


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


Re: [Emc-users] latency excursions

2017-07-23 Thread Gene Heskett
On Sunday 23 July 2017 11:48:19 dave wrote:

> dave@linuxcnc:~$ uname -a
> Linux linuxcnc 3.4-9-rtai-686-pae #1 SMP PREEMPT Debian
> 3.4.55-4linuxcnc i686 i686 i386 GNU/Linux
>
> task: 103857488 cycles, min=0.49, max=0.474214, avg=0.010993, 86
> latency excursions (> 10x expected cycle time of 0.01s)
>
> task: 25439189 cycles, min=0.49, max=0.205898, avg=0.010989, 17
> latency excursions (> 10x expected cycle time of 0.01s)
>
> I've done nothing to tune this cpu and as far as I can tell the motion
> is ok.
>
> Still it leave me uncomfortable.
>
> What do I need to change to clean this uo?
>
>
> TIA
>
> Dave
>
How many cores does that cpu have? And if its an intel, is hyperthreading 
turned on? Thats a bit hard on the latencytest results. Turn it off in 
the bios.

If 2 or more cores, it may help to add to the grub line that loads the 
kernel, isolcpus=lastcore, where lastcore could be 2, 4, or even 8 if 
you've a really new barn burner machine.

With that kernel, your dmesg should contain a line:

Brought up 2 CPUs

The 2 will vary depending on the cpu in that machine, so in this case the 
kernel loading line in /boot/grub/grub.cfg might have "isolcpus=1" 
appended to it, without the dbl-quotes.

This isolates that core from the scheduler, linuxcnc sees it and uses 
that core for the realtime part, having it all to itself. But a monitor 
such as top or htop, can't tell you how hard that cpu core is running.

I have one machine still doing software stepping, and that line in its 
grub has "isolcpus=1 idle=poll", which seemed to help the latency there.

And just for my own enjoyment, I usually remove the splash and quiet 
options. Splash covers up any boot msgs with an ugly graphic, and quiet 
turns the boot msgs off, which makes the boot faster when it doesn't 
have to do all the screen stuffs. That way I can scroll back and check 
that everything looks ok. Or, if mount decides to fsck the drive, you at 
least have something on screen to explain the delayed boot.

I don't normally care how long it takes to boot, only that it boots 
normally, doing what it has to do to make it run as usual for that 
machine.

I HTH Dave.

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)
Genes Web page 

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


Re: [Emc-users] latency excursions

2017-07-23 Thread Peter C. Wallace

On Sun, 23 Jul 2017, dave wrote:


Date: Sun, 23 Jul 2017 08:48:19 -0700
From: dave 
Reply-To: "Enhanced Machine Controller (EMC)"

To: "Enhanced Machine Controller (EMC)" 
Subject: [Emc-users] latency excursions

dave@linuxcnc:~$ uname -a
Linux linuxcnc 3.4-9-rtai-686-pae #1 SMP PREEMPT Debian 3.4.55-4linuxcnc i686 
i686 i386 GNU/Linux


task: 103857488 cycles, min=0.49, max=0.474214, avg=0.010993, 86 latency 
excursions (> 10x expected cycle time of 0.01s)


task: 25439189 cycles, min=0.49, max=0.205898, avg=0.010989, 17 latency 
excursions (> 10x expected cycle time of 0.01s)


I've done nothing to tune this cpu and as far as I can tell the motion is ok.

Still it leave me uncomfortable.

What do I need to change to clean this uo?


TIA

Dave


These are not real-time latency issues but rather delays in task
so are not a actual problem unless they are so long that they cause
a disruption the the non-real time tasks linuxCNC is doing (user interface 
etc)


These delays will not be reduced by any real time latency tuning of the system 
( and may well be made worse by things that slow the userland performance like 
isocpus )




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



Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.


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


Re: [Emc-users] latency excursions

2017-07-23 Thread Nicklas Karlsson
For me this or something similar i happening one of my computers at every 
startup. I think it is running smootly in between now but this have not always 
been the case, I removed a graphics card a while ago  and might have changed 
things or simply a newer kernel.

On Sun, 23 Jul 2017 08:48:19 -0700
dave  wrote:

> dave@linuxcnc:~$ uname -a
> Linux linuxcnc 3.4-9-rtai-686-pae #1 SMP PREEMPT Debian 3.4.55-4linuxcnc 
> i686 i686 i386 GNU/Linux
> 
> task: 103857488 cycles, min=0.49, max=0.474214, avg=0.010993, 86 
> latency excursions (> 10x expected cycle time of 0.01s)
> 
> task: 25439189 cycles, min=0.49, max=0.205898, avg=0.010989, 17 
> latency excursions (> 10x expected cycle time of 0.01s)
> 
> I've done nothing to tune this cpu and as far as I can tell the motion 
> is ok.
> 
> Still it leave me uncomfortable.
> 
> What do I need to change to clean this uo?
> 
> 
> TIA
> 
> Dave
> 
> --
> 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


[Emc-users] latency excursions

2017-07-23 Thread dave

dave@linuxcnc:~$ uname -a
Linux linuxcnc 3.4-9-rtai-686-pae #1 SMP PREEMPT Debian 3.4.55-4linuxcnc 
i686 i686 i386 GNU/Linux


task: 103857488 cycles, min=0.49, max=0.474214, avg=0.010993, 86 
latency excursions (> 10x expected cycle time of 0.01s)


task: 25439189 cycles, min=0.49, max=0.205898, avg=0.010989, 17 
latency excursions (> 10x expected cycle time of 0.01s)


I've done nothing to tune this cpu and as far as I can tell the motion 
is ok.


Still it leave me uncomfortable.

What do I need to change to clean this uo?


TIA

Dave

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


Re: [Emc-users] hal_manualtoolchange

2017-07-23 Thread Gene Heskett
On Sunday 23 July 2017 00:13:25 TJoseph Powderly wrote:

> haha gene
> i remember my friend complaining about
> having to shovel 4inches of 'partly cloudy' off the driveway.
>
In my time, TomP, I've shoveled 9 feet of partly cloudy.  Circa 1961 in 
Rapid City. Totally buried the duplex I was living in except for the 
furnace/water heater vent.  After 3 days, the fridge was down to one egg 
and no milk. The first wife crawled out the upper sash of a kitchen 
window, floundered around and got into the garage for a shovel and made 
a pocket connecting the back kitchen door with the back garage door 
about 3 feet apart. I went back into the garage, raised the door and 
started looking for the car with the shovel, had it clear with another 
100 feet to go to get to the county road when I heard a plow coming so I 
floundered out to the road, he stopped, said he'd be back in a couple 
hours and could take me to town.  So getting a ride to the store about 3 
miles away was nice, bought an egg crate full of grocery's and thumbed a 
ride with a rancher going back my way, so we at least had food and drink 
for the next 2 or 3 days while I and the neighbors continued shoveling.

Yeah, partly cloudy today was 2.75" of rain, tv full of flash flood 
warnings when it worked, we're somewhat out in the fringes tv-wise. 

> i think Nicklas is interested in your config files to use them
> as much as to help you.
> so maybe send them along anyway?
>
Except for tonights fix, the rest of it is already on my web page, 
invisible link called lathe-stf/sheldon IIRC. Goto lathe-stf and click 
on it there.  Copy Nicklas?  Help yourself.

Cheers TomP, 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)
Genes Web page 

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