Re: [Emc-users] Latency Test Result Questions

2009-04-05 Thread Rob Jansen
Don,

good thing you kept the .ini and .hal files - reminds me to make backups 
once again cause I think I changed the files since the last backup ...
I copied my working config for the mill to 3 different machines (one 
active, one backup and one to play with at home) by comparing a setup 
generated by stepconf and changing the proper timing and addresses.
Still, remember that the jitter, although it is an exact number, depends 
on what you do with the machine at a given moment and therefor is just a 
guidance number.
At least this is how I see it: start the test, do all kinds of weird 
stuff that keeps the computer busy and get the worst number. In that 
case you will most likely never hit the edge in real life.
But then, when the mill is running I never do all this weird stuff. This 
is a production machine and  when it runs I do not touch mouse or keyboard.

A 10% difference in jitter value is not that big. I've seen differences 
like this on different occasions that I ran the jitter test (on the same 
machine with the same software - no updates in between).

This does bring up a new question: Can (will) the jitter test report 
different values after a software update? Since I configured my machine 
more than one year ago there have been some updates (I'd even say my 
EMC2 PC is more up to date than any of my windows machines).

Rob - almost ashamed to admit still using Wingoof XP ;-)

don wilson wrote:
> My box recently went down, and I had to re-install everything. I thought it 
> would be a good idea to run another latency test after this fresh install.
>
> My max Jitter came out to 20,602, while my previous max jitter was 18,592.
>
> I have looked in the .ini and .hal file for a location where I can just put 
> the new number in but have not found one. When using stepconfig, does it just 
> take the jitter and calculate numbers based of of it.
>   


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


[Emc-users] CNC4PC jog pendant + EMC2 - any recent info?

2009-04-05 Thread Tom
Does anyone know if John Thornton ever posted an ini/hal configuration to use 
with the CNC4PC jog pendant? 

I bought a CNC4PC 6 axis pendant and was researching the archives for 
information. 

I read that John was getting a loaner jog pendant similar to mine to experiment 
with about a year ago.

Thanks,
Tom


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


Re: [Emc-users] PCI Parallel port

2009-04-05 Thread Greg Michalski
Hi Will - 

I'm a bit tired but I recall having to try all the addresses to get my
Netmos card to work - which you've already done.  Looking at my config file
I have quotes around my addresses (I have 2 ports, one an input only so that
might be why - I'd have to go back and read docs).  Also the dmesg file says
something about the module parport - did you try commenting out the loadrt
prob_parport?  Not sure if this is what it refers to.  Sorry I can't be of
more assistance at the moment.

HTH

Greg
www.distinctperspectives.com
 
> From: William Baden [mailto:willba...@hotmail.com]
> Sent: Sunday, April 05, 2009 10:41 PM
> Subject: [Emc-users] PCI Parallel port
> 
> Hi all,
> 
> Being still new to linux and EMC2 I have decided to use an old computer to
learn
> more about it, using a small table top mill that I built using various
parts.  Wanting
> to branch out into a cheap I/O upgrade I decided to purchase a PCI
parallel port
> card.  But I have run into a problem getting this going.
> 
> After installing the card, I used "sudo lspci -v" to find out the address,
this is what
> was displayed:
>
[SNIP] 
> 
> 00:0b.0 Serial controller: Titan Electronics Inc VScom 010L 1 port
parallel adaptor
> (prog-if 02 [16550])
> Subsystem: Titan Electronics Inc VScom 010L 1 port parallel adaptor
> Flags: medium devsel, IRQ 9
> I/O ports at c400 [size=8]
> I/O ports at c800 [size=8]
> I/O ports at cc00 [size=8]
> I/O ports at d000 [size=8]
> Memory at ed001000 (32-bit, non-prefetchable) [size=64]
> 
[/SNIP
> 
> Assuming that this "00:0b.0 Serial controller: Titan Electronics Inc VScom
010L 1
> port parallel adaptor" was the pci card that I recently installed, I used
the address
> "c400" for the address in the .hal file line:
> 
> loadrt hal_parport cfg=0xc400
> 
> The .hal file that I used was created by stepconf, and functions fine with
the built in
> parallel port.  But when I use 0xc400 as the address I get this error on
startup of
> Axis:
> 
> Debug file information:
> insmod: error inserting
'/usr/realtime-2.6.24-16-rtai/modules/emc2/hal_parport.ko': -
> 1 Device or resource busy
> FlatBed_Scanner_Mill_2nd_parallel_port_test.hal:27: exit value: 1
> FlatBed_Scanner_Mill_2nd_parallel_port_test.hal:27: insmod failed,
returned -1
> See the output of 'dmesg' for more information.
> 4820
>   PID TTY  STAT   TIME COMMAND
> Stopping realtime threads
> Unloading hal components
> 
> And also from dmesg:
> 
> [  336.998036] config string '0xc400'
> [  336.999790] PARPORT: ERROR: request_region(c400) failed
> [  336.999821] (make sure the kernel module 'parport' is unloaded)
> 
> I have tried the other three address's listed.  They allow Axis to start
but cause no
> outputs on the parallel port card.
> 
> Also, after searching the Gmane archives, I found info about Netmos cards
but nno
> luck on VSCom.
> 
> I am sure that I missed some steps in the setup fo this card but am unsure
as to
> what they are.
> What are the steps that I missed to do and what can I do to track them
down?
> 
> Thanks,
> 
> Will Baden
> 


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


[Emc-users] PCI Parallel port

2009-04-05 Thread William Baden

Hi all,

Being still new to linux and EMC2 I have decided to use an old computer to 
learn more about it, using a small table top mill that I built using various 
parts.  Wanting to branch out into a cheap I/O upgrade I decided to purchase a 
PCI parallel port card.  But I have run into a problem getting this going. 

After installing the card, I used "sudo lspci -v" to find out the address, this 
is what was displayed:

00:00.0 Host bridge: Intel Corporation 440LX/EX - 82443LX/EX Host bridge (rev 
03)
Flags: bus master, medium devsel, latency 64
Memory at e800 (32-bit, prefetchable) [size=64M]
Capabilities: [a0] AGP version 1.0

00:01.0 PCI bridge: Intel Corporation 440LX/EX - 82443LX/EX AGP bridge (rev 03) 
(prog-if 00 [Normal decode])
Flags: bus master, 66MHz, medium devsel, latency 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
I/O behind bridge: b000-bfff
Memory behind bridge: d800-e7ff

00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 01)
Flags: bus master, medium devsel, latency 0

00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01) 
(prog-if 80 [Master])
Flags: bus master, medium devsel, latency 64
[virtual] Memory at 01f0 (32-bit, non-prefetchable) [disabled] [size=8]
[virtual] Memory at 03f0 (type 3, non-prefetchable) [disabled] [size=1]
[virtual] Memory at 0170 (32-bit, non-prefetchable) [disabled] [size=8]
[virtual] Memory at 0370 (type 3, non-prefetchable) [disabled] [size=1]
I/O ports at f000 [size=16]

00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01) 
(prog-if 00 [UHCI])
Flags: bus master, medium devsel, latency 64, IRQ 10
I/O ports at c000 [size=32]

00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 01)
Flags: medium devsel, IRQ 9

00:0b.0 Serial controller: Titan Electronics Inc VScom 010L 1 port parallel 
adaptor (prog-if 02 [16550])
Subsystem: Titan Electronics Inc VScom 010L 1 port parallel adaptor
Flags: medium devsel, IRQ 9
I/O ports at c400 [size=8]
I/O ports at c800 [size=8]
I/O ports at cc00 [size=8]
I/O ports at d000 [size=8]
Memory at ed001000 (32-bit, non-prefetchable) [size=64]

00:0c.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 
30)
Subsystem: 3Com Corporation 3C905B Fast Etherlink XL 10/100
Flags: bus master, medium devsel, latency 64, IRQ 10
I/O ports at d400 [size=128]
Memory at ed00 (32-bit, non-prefetchable) [size=128]
Expansion ROM at ec00 [disabled] [size=128K]
Capabilities: [dc] Power Management version 1

01:00.0 VGA compatible controller: S3 Inc. 86c794 [Savage 3D] (rev 01) (prog-if 
00 [VGA controller])
Subsystem: CardExpert Technology Unknown device 8a20
Flags: bus master, 66MHz, medium devsel, latency 80, IRQ 11
Memory at d800 (32-bit, non-prefetchable) [size=128M]
Expansion ROM at e000 [disabled] [size=64K]
Capabilities: [dc] Power Management version 1
Capabilities: [80] AGP version 1.0

Assuming that this "00:0b.0 Serial controller: Titan Electronics Inc VScom 010L 
1 port parallel adaptor" was the pci card that I recently installed, I used the 
address "c400" for the address in the .hal file line:

loadrt hal_parport cfg=0xc400

The .hal file that I used was created by stepconf, and functions fine with the 
built in parallel port.  But when I use 0xc400 as the address I get this error 
on startup of Axis:

Debug file information:
insmod: error inserting 
'/usr/realtime-2.6.24-16-rtai/modules/emc2/hal_parport.ko': -1 Device or 
resource busy
FlatBed_Scanner_Mill_2nd_parallel_port_test.hal:27: exit value: 1
FlatBed_Scanner_Mill_2nd_parallel_port_test.hal:27: insmod failed, returned -1
See the output of 'dmesg' for more information.
4820
  PID TTY  STAT   TIME COMMAND
Stopping realtime threads
Unloading hal components

And also from dmesg:

[  336.998036] config string '0xc400'
[  336.999790] PARPORT: ERROR: request_region(c400) failed
[  336.999821] (make sure the kernel module 'parport' is unloaded)

I have tried the other three address's listed.  They allow Axis to start but 
cause no outputs on the parallel port card.  

Also, after searching the Gmane archives, I found info about Netmos cards but 
nno luck on VSCom.

I am sure that I missed some steps in the setup fo this card but am unsure as 
to what they are.
What are the steps that I missed to do and what can I do to track them down?

Thanks,

Will Baden





_
Quick access to your favorite MSN content and Windows Live with Internet 
Explorer 8. 
http://ie8.msn.com/microsoft/internet-explorer-8/en-us/ie8.aspx?ocid=B037MSN55C0701A
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.

Re: [Emc-users] Latency Test Result Questions

2009-04-05 Thread Steve Blackmore
On Sun, 5 Apr 2009 12:10:08 -0700 (PDT), you wrote:


>
>I have made many modifications to the ini file, and I do not really want to 
>paste all of the edited lines back in, (since running stepconfig again will 
>overwrite). 

Yea - stepconf could do with a bit of tweaking so it doesn't overwrite
the whole file and only modifies parameters that it knows about.

Steve Blackmore
--

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


Re: [Emc-users] Latency Test Result Questions

2009-04-05 Thread Jeff Epler
The jitter really leads to two calculations (together with the step
driver timings you enter):
 * the maximum step rate (bigger jitter -> lower step rate)
 * the direction setup/hold value (no real effect on step rate)

If your configuration still starts and doesn't give the "unexpected
realtime delay" message, then the first issue is no problem.

To take care of the second issue, find the lines in your hal file
setting dirsetup/dirhold and add 2000 to them.  This number as computed
by stepconf is simply the datasheet setup/hold timing plus the latency.

Jeff

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


[Emc-users] Latency Test Result Questions

2009-04-05 Thread don wilson
My box recently went down, and I had to re-install everything. I thought it 
would be a good idea to run another latency test after this fresh install.

My max Jitter came out to 20,602, while my previous max jitter was 18,592.

I have looked in the .ini and .hal file for a location where I can just put the 
new number in but have not found one. When using stepconfig, does it just take 
the jitter and calculate numbers based of of it.

I have made many modifications to the ini file, and I do not really want to 
paste all of the edited lines back in, (since running stepconfig again will 
overwrite). 

Also, will the difference of 2000 really matter that much?

Thank you in advance,
Don



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