Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-09 Thread Willy Snow
Thanks Andy.

>You could try "cat /proc/ioports" though I suspect it will give the
same answer as you already have.

bill@CNC:~$ cat /proc/ioports
-0cf7 : PCI Bus :00
  -001f : dma1
  0020-0021 : pic1
  0040-0043 : timer0
  0050-0053 : timer1
  0060-0060 : keyboard
  0064-0064 : keyboard
  0070-0077 : rtc0
  0080-008f : dma page reg
  00a0-00a1 : pic2
  00c0-00df : dma2
  00f0-00ff : fpu
  03c0-03df : vga+
  03f8-03ff : serial
  04d0-04d1 : pnp 00:0b
  0680-069f : pnp 00:06
  0a00-0a0f : pnp 00:09
  0a20-0a2f : pnp 00:09
  0a30-0a3f : pnp 00:09
0cf8-0cff : PCI conf1
0d00- : PCI Bus :00
  164e-164f : pnp 00:06
  1800-18fe : pnp 00:06
1800-1803 : ACPI PM1a_EVT_BLK
1804-1805 : ACPI PM1a_CNT_BLK
1808-180b : ACPI PM_TMR
1820-182f : ACPI GPE0_BLK
1850-1850 : ACPI PM2_CNT_BLK
1854-1857 : pnp 00:08
  1c00-1cfe : pnp 00:06
  1d00-1dfe : pnp 00:06
  1e00-1efe : pnp 00:06
  1f00-1ffe : pnp 00:06
  d000-dfff : PCI Bus :04
d000-d007 : :04:00.0
d010-d017 : :04:00.0
  e000-efff : PCI Bus :02
e000-e0ff : :02:00.0
  e000-e0ff : r8169
  f000-f03f : :00:02.0
  f040-f05f : :00:1f.3
  f060-f07f : :00:1f.2
f060-f07f : ahci
  f080-f083 : :00:1f.2
f080-f083 : ahci
  f090-f097 : :00:1f.2
f090-f097 : ahci
  f0a0-f0a3 : :00:1f.2
f0a0-f0a3 : ahci
  f0b0-f0b7 : :00:1f.2
f0b0-f0b7 : ahci
  - : pnp 00:06
- : pnp 00:06
  - : pnp 00:06



>Does the linuxCNC parport driver load?

bill@CNC:~$ loadrt hal_parport cfg="0"
bash: loadrt: command not found



>Does lsmod show "lp" ? That might suggest that something has grabbed your port.

It does sho lp.


bill@CNC:~$ lsmod
Module  Size  Used by
parport_pc 21896  0
ppdev  12591  0
lp 12767  0
parport35208  3 lp,ppdev,parport_pc
bnep   17186  2
rfcomm 36117  0
bluetooth 166348  10 bnep,rfcomm
rfkill 18403  2 bluetooth
uinput 17057  1
nfsd  202675  2
nfs   277039  0
nfs_acl12464  2 nfs,nfsd
auth_rpcgss32226  2 nfs,nfsd
fscache35490  1 nfs
lockd  56898  2 nfs,nfsd
sunrpc151263  6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
loop   21832  0
snd_hda_codec_realtek53766  1
snd_hda_intel  25789  1
snd_hda_codec  79439  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep  12911  1 snd_hda_codec
snd_pcm69181  2 snd_hda_codec,snd_hda_intel
snd_page_alloc 12842  2 snd_pcm,snd_hda_intel
snd_seq43338  0
snd_seq_device 12981  1 snd_seq
iTCO_wdt   16918  0
snd_timer  22188  2 snd_pcm,snd_seq
snd46731  10
snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_hda_codec,snd_hda_intel,snd_seq_device
evdev  17099  14
psmouse67176  0
video  17461  0
serio_raw  12734  0
iTCO_vendor_support12586  1 iTCO_wdt
button 12818  0
coretemp   12771  0
i2c_i801   16788  0
i2c_core   23097  1 i2c_i801
soundcore  12891  1 snd
crc32c_intel   12625  0
ext4  270189  1
crc16  12328  2 ext4,bluetooth
jbd2   54294  1 ext4
mbcache12899  1 ext4
usbhid 39608  0
hid72252  1 usbhid
sg 25482  0
sd_mod 43403  3
crc_t10dif 12333  1 sd_mod
fan12595  0
thermal_sys17699  2 fan,video
microcode  17386  0
r8169  49478  0
mii12596  1 r8169
ahci   24918  2
libahci22312  1 ahci
libata152992  2 ahci,libahci
ehci_hcd   43561  0
scsi_mod  125436  3 sg,libata,sd_mod
xhci_hcd   80023  0
usbcore   124257  4 ehci_hcd,usbhid,xhci_hcd
usb_common 12339  1 usbcore

Sorry if I give too much info. It is still pretty foreign to me.
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] AC Servo Motors

2015-10-09 Thread Karlsson & Wang
> Apparently DC Brushless cog but not AC ? 
> Anyway I'm about to order a 6N.m 1.8KW AC motor and drive for $340.  It's
> worth a try.
> 
> Brushes ?? My South Western Industries mill has run 20+ hours a week for + 10
> years and I have never changed a brush. Maybe I should check sometime. 
> 
> Possibly if the motors are under powered, they need changing more often. I
> changed my first set of cordless drill brushes a month ago.  

It could also be the sales person selling the AC motors talking about the 
brushes. I saw machine for sale a while ago, "never used since bought from 
seller".

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


Re: [Emc-users] AC Servo Motors, Cogging

2015-10-09 Thread Kirk Wallace
On 10/08/2015 01:18 AM, Marshland Engineering wrote:
> Apparently DC Brushless cog but not AC ?
> Anyway I'm about to order a 6N.m 1.8KW AC motor and drive for $340.  It's
> worth a try.
>
> Brushes ?? My South Western Industries mill has run 20+ hours a week for + 10
> years and I have never changed a brush. Maybe I should check sometime.

My understanding of motor cogging is that it is the torque or speed 
variation due to the layout of the magnetic poles.
https://en.wikipedia.org/wiki/Cogging_torque

This has been an issue with DC brushed motors when driven by a simple 
voltage source. Generally, half the rotor coils are energized South and 
half North. As the rotor turns the brushes change the polarity of a coil 
in order to shift the magnetic phase of the rotor away from the stator 
in order to create torque. This is a one coil quantum change, so the 
torque is also a step change, therefore not smooth. One way to smooth 
the torque is to twist the rotor coil layout the adjust the torque 
profile relative to the rotor/stator position.

This still is in the context of driving a motor with a simple power 
source. When speed, position or other feedback is added to control the 
source, cogging does not apply.

Cogging could be an issue for AC or DC brushless and AC induction motors 
if they are driven by a simple power source that matches the type of 
motor -- AC induction needing AC mains power with properly phased legs, 
AC brushless needing three phase AC sinusoidal power, and DC brushless 
needing three phase trapezoidal power.


-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/

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


Re: [Emc-users] Machine vision cameras for use with camview, align and friends

2015-10-09 Thread Jim Craig
On 10/9/2015 8:30 AM, Gene Heskett wrote:
> On Thursday 08 October 2015 16:04:42 Jim Craig wrote:
>
>>
>> Gene,
>>
>> How about a pic of one of those blanket chests?
>>
>> Jim
> I did, but the server is holding it for the moderator to clear as its not
> quite 20k over the 360k size limit allowed.  I smunched it down to a 20%
> quality jpg, because I could see jpg'ing artifacts if I went any lower.
>
> I'll try doing some cropping of some of the background in gimp.  Or is
> there now a more compact image compression format?  Cropping an image in
> gimp is the most frustrating thing I have ever tried, I have to ask for
> help on the gimp-users list every time, so it still has white borders.
> Damit, a crop should remove what you don't want, not fill it with white.
>
> Anyway, new version 2 attached, smunched enough that jpg is showing some
> artifacts.
>
> Cheers, Gene Heskett
>
Very nice! I like the Joinery. What are you using for the square pins in 
the joint? I like some good woodworking.

My next big woodworking project is new office furniture. It will 
probably take me and my dad about a year to finish the project I want to 
do. Executive desk, full 12' wall of bookcases. printer cabinet and 
whatever else I can dream up. Right now I am working off a white plastic 
folding table, LOL.

Keep up the good work.

Jim

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


[Emc-users] Program prefix

2015-10-09 Thread Eric H. Johnson
HI all,

Has there been a change to PROGRAM_PREFIX in version 2.6 or later, currently 
using 2.7.

Under 2.5, if I issue the 'open' command from linuxcncrsh it would pull the 
file from the path specified by PROGRAM_PREFIX in the DISPLAY section.

Now it seems whatever I put in for that parameter, it pulls from the associated 
configuration folder.

I have also tried including and removing the final '/', and specifying the 
absolute and relative paths.

This is working fine on version 2.5, although the path is slightly different 
with emc2/nc_files instead of linuxcnc/nc_files.

Thanks,
Eric

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Machine vision cameras for use with camview, align and friends

2015-10-09 Thread Greg Bernard
 Very nice work, Gene. I see some Greene & Greene influence in your design 
whose work I'm very fond of.Your kids will have an heirloom to be proud of for 
generations.
+++
"Anyone who believes exponential growth can go on forever in a finite world is 
either a madman or an economist."
        -Kenneth Boulding, economist
“How unfortunate that the Earth’s first intelligent social animal is a tribal 
carnivore” 
    -E.O. Wilson, sociobiologist

 
  From: Gene Heskett 
 To: emc-users@lists.sourceforge.net 
 Sent: Friday, October 9, 2015 8:30 AM
 Subject: Re: [Emc-users] Machine vision cameras for use with camview, align 
and friends
   
On Thursday 08 October 2015 16:04:42 Jim Craig wrote:

> On 10/8/2015 2:46 PM, Gene Heskett wrote:
> > On Thursday 08 October 2015 14:01:12 Valerio Bellizzomi wrote:
> >> On Thu, 2015-10-08 at 03:10 -0400, Gene Heskett wrote:
> >>> Greetings all;
> >>>
> >>> I had one of those "colonoscopy" cameras you could buy on ebay for
> >>> about $22 USD on my toy mill, and had it pretty well calibrated
> >>> but hadn't put it to any real use as yet when I knocked it loose
> >>> with an errant hold down bolt on that furniture joint carving jig.
> >>>  I'd been meaning to restore it as it also came loose in its teeny
> >>> little tubular housing and would need so rtv to  glue it back into
> >>> the tubing so the cable couldn't pull it out the rear if the cable
> >>> hung up.  But making an alignable mounting was also a PITA, so its
> >>> been waiting for me to find a round tuit.
> >>
> >> I have attempted to use a webcam with camview, I was only able to
> >> display the camera image in a separate window. No way to configure
> >> it to display camera image within a Gmoccapy TAB.
> >
> > camview seems to be made to be a 3rd window tab in the center,
> > backplot window of axis.  For that, camview works well albeit slow. 
> > I'll go plug one into tne toy mill which is still configured for the
> > just barely working teeny one I started with,  BRB.
> >
> > Humm, I uncommented the lines in the .ini file that did make it
> > work, without unplugging the damaged camera that was still making
> > normal video of the stuff on the table behind the keyboard, but
> > something in the system is now killing it and linuxcnc won't start.
> >
> > Perhaps its time to go get the latest from Nic's .ru site?
> > There's probably been a gigabyte of updates to both LCNC and the
> > system since I last had it running.  The web page download is
> > however 3 years old, so maybe not.  Maybe Nic doesn't its died?
> >
> > And I am likely a good 90-120 days with the next project here before
> > I can come back to this.  There is about $1000 worth of Mahogany in
> > the way in the garage right now that needs to be carved up & made
> > into 3 more cedar lined blanket chests.
> >
> > Cheers, Gene Heskett
>
> Gene,
>
> How about a pic of one of those blanket chests?
>
> Jim

I did, but the server is holding it for the moderator to clear as its not 
quite 20k over the 360k size limit allowed.  I smunched it down to a 20% 
quality jpg, because I could see jpg'ing artifacts if I went any lower.

I'll try doing some cropping of some of the background in gimp.  Or is 
there now a more compact image compression format?  Cropping an image in 
gimp is the most frustrating thing I have ever tried, I have to ask for 
help on the gimp-users list every time, so it still has white borders. 
Damit, a crop should remove what you don't want, not fill it with white.

Anyway, new version 2 attached, smunched enough that jpg is showing some 
artifacts.



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 

--

___
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] Problem Connecting LCNC to G540 from PCIE Port

2015-10-09 Thread Willy Snow
Hi All,

First, I am pretty new to all of everything. I am hoping someone can point
me back in the right direction.

I am trying to get my bench setup running. I have a single nema 17 motor
connected to a Gecko G540 using a 24V PS. I can power up the G540 with the
charge pump off and the motor holds and the light is green. This seems to
be a success.

I cannot get LCNC to talk to the G540. Using Stepconf Wizard, I trying
setting Parport Base Address to 0, 1, 0x378, 0x278, 0x3BC, 0x378 in 0xd010
in, 0x378 in 0xd000 in. None seem to work. I suspect the PCIE card is not
communicating correctly. Pin 16 is always set to charge pump.

The card is a SD-PEX1005. I bought it since someone in the newegg reviews
said it works with LCNC. I trying following the linux driver install
directions, but quickly became lost. The directories do not match up??
http://www.sybausa.com/productInfo.php?iid=611

Below is more information about the parallel port.

*lspci -vvv*

04:00.0 Parallel controller: NetMos Technology Device 9900 (prog-if 03
[IEEE1284])
Subsystem: Device a000:2000
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- 

from here: http://www.vdwalle.com/Norte/Second%20Parport.htm

*bill@CNC:~/Desktop$ ./ppdiag*

WARNING:
You are not runnig this script as 'root'. Only a few checks will be done.
No configuration update will be done.

S01: parport built as module

cat: /proc/sys/dev/parport/p*/irq: No such file or directory
./ppdiag: line 111: [: =: unary operator expected
cat: /proc/sys/dev/parport/p*/dma: No such file or directory
./ppdiag: line 116: [: =: unary operator expected
cat: /proc/sys/dev/parport/p*/base-addr: No such file or directory
S02: p*:
cat: /proc/sys/dev/parport/p*/modes: No such file or directory
S02:modes:
S02:ADDR :
S02:IRQ  :
S02:DMA  :

grep: /etc/modules.conf: No such file or directory
S03: no parport parameters

S10: ppdev built as module

./ppdiag: line 240: [: too many arguments
S12: ERROR /dev/p* does not exist!

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


Re: [Emc-users] Problem Connecting LCNC to G540 from PCIE Port

2015-10-09 Thread andy pugh
On 9 October 2015 at 19:54, Willy Snow  wrote:
> *lspci -vvv*
>
> 04:00.0 Parallel controller: NetMos Technology Device 9900 (prog-if 03
> [IEEE1284])
> Subsystem: Device a000:2000
> Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> Stepping- SERR- FastB2B- DisINTx-
> Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-  SERR-  Latency: 0, Cache Line Size: 64 bytes
> Interrupt: pin A routed to IRQ 11
> Region 0: I/O ports at d010 [size=8]
> Region 1: I/O ports at d000 [size=8]


You could try "cat /proc/ioports" though I suspect it will give the
same answer as you already have.

Does the linuxCNC parport driver load?

Does lsmod show "lp" ? That might suggest that something has grabbed your port.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

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


Re: [Emc-users] Machine vision cameras for use with camview, align and friends

2015-10-09 Thread Viesturs Lācis
2015-10-09 16:50 GMT+03:00 Jim Craig :
> Very nice! I like the Joinery.

Oh yes, that chest looks really awesome, Gene! Corner joints are beautiful!

Viesturs

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


Re: [Emc-users] Machine vision cameras for use with camview, align and friends

2015-10-09 Thread Gene Heskett
On Friday 09 October 2015 09:50:36 Jim Craig wrote:

> On 10/9/2015 8:30 AM, Gene Heskett wrote:
> > On Thursday 08 October 2015 16:04:42 Jim Craig wrote:
> >> Gene,
> >>
> >> How about a pic of one of those blanket chests?
> >>
> >> Jim
> >
> > I did, but the server is holding it for the moderator to clear as
> > its not quite 20k over the 360k size limit allowed.  I smunched it
> > down to a 20% quality jpg, because I could see jpg'ing artifacts if
> > I went any lower.
> >
> > I'll try doing some cropping of some of the background in gimp.  Or
> > is there now a more compact image compression format?  Cropping an
> > image in gimp is the most frustrating thing I have ever tried, I
> > have to ask for help on the gimp-users list every time, so it still
> > has white borders. Damit, a crop should remove what you don't want,
> > not fill it with white.
> >
> > Anyway, new version 2 attached, smunched enough that jpg is showing
> > some artifacts.
> >
> > Cheers, Gene Heskett
>
> Very nice! I like the Joinery. What are you using for the square pins
> in the joint? I like some good woodworking.

Gabon ebony fitted plugs, I have a routine that drills the hole thru the 
finger for an assembly screw, a 2" long SS for century plus longevity, 
with a round pocket for the screw head, and a square pocket above that 
about 3/32" deep with the 1/16 radius corners a 1/8" mill leaves when 
driven in a square pattern.  And I make the ebony plugs, including the 
rounded tops, in another jig after they've been cut out of a thin sheet 
of ebony by another routine.  The plugs get their sides tapered a few 
degrees against a disk sander, a coat of Elmers finest on the bottoms 
and driven into the recess with a soft faced dead blow hammer.

The longer bits of ebony in the lid with its breadboard ends is actually 
more trouble than these are.  Breadboard ends aligned with white ash 
bits & pieces in deep grooves routed in both pieces. The only place its 
truly glued & screwed solidly is at the center where in this case, since 
the top has an edge joint there, a screw into each board on both sides 
of the joint.  All the other offcenter is longer because its covering a 
slot the screw cam move in with the seasonal changes in humidity.   The 
long bit in the corners are only glued into the slots in lid board, and 
can move freely in the breadboard ends as the seasons come and go.  The 
boards will grown and shrink in width, but generally not length.

All the edge joints are full of bisquits, should stay together for a few 
decades (I hope) But the stock I have laying on the floor now is 1x12, 
so the only edge joint in the next 3 I make will be at the lengthwise 
centerline of the lid.  I could only locate 1x6's for the raw material 
the first one you see was made from. Changed vendors, now have 1x12 
stock.

But that wider stock has me looking at a new saw to replace my 12" Dewalt 
miter/chopper.  Bosche is out with a whole new design that does away 
with the sideways slop on the usual sliders. I played with the displayed 
one at Home Depot 2 weeks ago, and that suspension system is easily 10x 
more rigid against any side forces applied than any other slider on the 
shelf.  And my 12" chopper can't cut a full 12" width.  Its also about 
$200 more than I paid for the Dewalt miter/chopper 6 or 7 years ago.  
The card has enough surplus it won't be noticed except by the missus 
when I unload it. :(

Those hinges are Rocklers, very high friction, used so that little 
fingers clamboring for a grip to stand up, will not be smashed by a 
falling lid.  It takes about a 20 lb lift to raise the lid to where you 
see it in the pix. Nothing else is holding it up.

Pricy too.  The strip under them at the rear is screwed, glued and pegged 
into the board below it about every 3 or 4 inches as that strip in 
addition to holding the torque of the hinges, also projects inward and 
has a 1/4" wide groove in the bottom to retain the cedar lining.  Theres 
a groove routed in the base panel to hold the end of the cedar "planks", 
closet liner from Lowes.  That groove, with the cedar in it, was 
actually used to align the box when I set it on the base, forcing 
everything to be as square as the mahogany faced bottom plywood panel 
is.

If I think about it in time, and I have enough ebony buttons left, (a 
2x2x12" piece of that was a hair shy of $70 dropped on my front deck) I 
may use them in the front strip to hide the well countersunk screws.  
The front and end retainer strips are not glued, a paen to making some 
of the cedar removable for a light sanding to remove the resin it exudes 
which seals it up and the cedar odor goes away. A light sanding to 
remove that resin restores the cedar odor for a few years. Its just part 
of cedar maintenance.  If your house has cedar lined closets, that needs 
to be done to them on about the same schedule.  IOW If you can't smell 
it, sand it. About 150 grit, sand gently, just hard enough to make some 
resin 

Re: [Emc-users] Machine vision cameras for use with camview, align and friends

2015-10-09 Thread Gene Heskett
On Friday 09 October 2015 11:12:13 Viesturs Lācis wrote:

> 2015-10-09 16:50 GMT+03:00 Jim Craig :
> > Very nice! I like the Joinery.
>
> Oh yes, that chest looks really awesome, Gene! Corner joints are
> beautiful!
>
> Viesturs
>
I do thumbhole gunstocks for myself too. But I don't advertise as that 
attracts the unsavory types.

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 

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