Re: [Emc-users] Problem:System suddenly constantly resetting.

2010-11-06 Thread Ulf Dambacher
Am 05.11.2010 23:08, schrieb Kent A. Reed:
 Oops. Good catch, Igor. I skipped right past the kernel identification.
 Ulf, I have to assume you used rtai-3.8 since rtai-3.7.1 does not
 include patches for linux kernel 2.6.32. Even if the combination built
 successfully, it is possible that some aspect of emc2 brebefore trying aks in 
 the new
 environment. I'll leave it to the emc2 gurus to noodle that one out.


My own environment was kernel 2.6.32.19 rtai 3.8.1 and emc 2.4.3.
I can run realtime tasks, start emc and move the machine (sometimes). It 
survived my burn intests and the gentoo compiles.
And I had no luck, there were no messages in the syslog files.

The new ubuntu 10 emc envireonment works with kernel 2.6.32 and rtai 
3.8.1, too

Anyway, I tried some things and with the ubuntu version the system  
seems more stable than with my handmade one.

I configured rsyslog to forward any messages to my other pc directly.

I was not able to precicely trigger the error until now. I will do 
stress tests now...

bye
Ulf

--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Synchronized Component

2010-11-06 Thread Kirk Wallace
Hello. I need to write a base thread component that does something based
on the start of the servo thread (strobe AVR data lines). For example, I
could have a base thread component that increments a counter. On the
third count, do foobar, reset the counter and wait for the next servo
thread start. I was thinking I could use the charge_pump component, but
it toggles the output, so I would reset on every other servo period. I
would also need to remember that charge_pump would need to be loaded. Is
there a cleaner way to do this? Would having two functions, one in each
thread, within the component add anything, compared to using
charge_pump? Thanks.

-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Synchronized Component

2010-11-06 Thread Kirk Wallace
On Sat, 2010-11-06 at 08:43 -0700, Kirk Wallace wrote:
 Hello. I need to write a base thread component that does something based
 on the start of the servo thread (strobe AVR data lines). For example, I
 could have a base thread component that increments a counter. On the
 third count, do foobar, reset the counter and wait for the next servo
 thread start. I was thinking I could use the charge_pump component, but
 it toggles the output, so I would reset on every other servo period. I
 would also need to remember that charge_pump would need to be loaded. Is
 there a cleaner way to do this? Would having two functions, one in each
 thread, within the component add anything, compared to using
 charge_pump? Thanks.
 

I looked at the source for the edge component. It has a variable called
period that isn't declared in the top portion of the component. Does
that mean that it is a global variable? If so, is there a convenient
source for a list of global variables?

By the way, for those new to EMC2, the way I get to the source files is:
Go to http://www.linuxcnc.org/
Click on how to get it (near the top of the body of the page)
Click on gitweb (near the bottom of the body of the page)
Click on the version number of the EMC2 you are interested in, or in my
case, click on v2.4.5 (just under the tags bar)
Click on the word tree at the end of the line summary | shortlog |
log | commit | commitdiff | tree
Click on src (near the bottom of the listing)
for omponent source files, click hal, then components

or

use this link:
http://git.linuxcnc.org/gitweb?p=emc2.git;a=tree;f=src/hal/components;h=180ce8ab8eddfe35a0aee53d66438703638797bf;hb=b5bb7beec1b342eefad29d112f3ab5d77129845f
(Short URL) http://alturl.com/i3zi7

-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Synchronized Component

2010-11-06 Thread Ulf Dambacher
Am 06.11.2010 17:31, schrieb Kirk Wallace:
 On Sat, 2010-11-06 at 08:43 -0700, Kirk Wallace wrote:

 Hello. I need to write a base thread component that does something based
 on the start of the servo thread (strobe AVR data lines). For example, I
 could have a base thread component that increments a counter. On the
 third count, do foobar, reset the counter and wait for the next servo
 thread start. I was thinking I could use the charge_pump component, but
 it toggles the output, so I would reset on every other servo period. I
 would also need to remember that charge_pump would need to be loaded. Is
 there a cleaner way to do this? Would having two functions, one in each
 thread, within the component add anything, compared to using
 charge_pump? Thanks.

  
Hi Kirk
Two possible solutions for you:

first:
Do you run ladder logic? if so, on wich thread?
if it's the servo thread, you could use ladder counters and flip a pin.
else you could write a comp module running in servo_thread wich counts 
and emits a pin.
this pin you can use rising edge in the base thread to start your foobar
rising edge means, you compare current status to last and only do foobar 
if last was 0 and now it is 1

second:
you could write a comp module with two functions and a global counting var.
one decrements the counter each time it is called, the other returns 
until count is zero and then it runs foobar and resets the counter
then you addf this functions to base_tread and servo_thread.

bye
ulf

--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Synchronized Component

2010-11-06 Thread Kirk Wallace
On Sat, 2010-11-06 at 18:47 +0100, Ulf Dambacher wrote:
... snip
 Hi Kirk
 Two possible solutions for you:
 
 first:
 Do you run ladder logic? if so, on wich thread?
 if it's the servo thread, you could use ladder counters and flip a pin.
... snip
 second:
 you could write a comp module with two functions and a global counting var.
... snip
 bye
 ulf

Thanks Ulf. This is what I have so far:
http://www.wallacecompany.com/machine_shop/EMC2/AVR/strobe-1a.jpg 
http://www.wallacecompany.com/machine_shop/EMC2/AVR/ServoPStart.comp 

It requires charge-pump to be loaded in the servo thread while the
strobe component is in the base thread. I need to clean up my component,
variable and pin names to make this component clean, lean and generic. I
was hoping to have this component stand on its own, but I'll just add
the it needs charge-pump in the documentation.
-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Parport Bulk Write

2010-11-06 Thread Kirk Wallace
I am starting to think about how to put an eight bit word on a parallel
port. My first guess is to load Parport, then write a component that
shifts an unsigned variable a bit at a time to each parport pin, but I
wonder if there is a cleaner way to write the whole (8bit) word to, lets
say, pins 2-9? This will be used with a strobe component to latch data
to an AVR port.
-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Suitable touchscreen?

2010-11-06 Thread a
Hi
when i searched for touch screen i found local manufacturer of touch screen
http://www.planartouch.com/
and it is best because there screen like glass - much more durable. It is
capacitor type and more expensive because of that.

aram


 I've had good luck with these screens...  but I have never used these
 screens with Touchy.I put a 19 unit on a commercial waterjet and
 the system runs EMC2 with Axis for the front end.   It worked out great.

 This company has good customer service and has been around for a while.

 http://www.hopeindustrial.com/

 Dave

 On 10/21/2010 10:23 AM, Caner wrote:
 Hi,

 Which is the best choice of touchscreen for industrial usage?
 There are several kinds of vandal-proof, water-proof, dust-proof SAW
 screens, also different which technology is more useful such as surface
 acoustic wave, resistive or infrared?

 Thanks.

 ---
 Caner


 --
 Nokia and ATT present the 2010 Calling All Innovators-North America
 contest
 Create new apps  games for the Nokia N8 for consumers in  U.S. and
 Canada
 $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
 marketing
 Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
 http://p.sf.net/sfu/nokia-dev2dev
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




 --
 Nokia and ATT present the 2010 Calling All Innovators-North America
 contest
 Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
 $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
 marketing
 Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
 http://p.sf.net/sfu/nokia-dev2dev
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] transfer program (G code)

2010-11-06 Thread a
Hi
I am interesting in how program (G code) loaded into EMC2.
Idea is to transfer program (G code) from external computer into computer
that run EMC2, and to EMC2 computer start executing that G code program
immediately - without any additional command/clicking.

thanks
aram


--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Parport Bulk Write

2010-11-06 Thread Kirk Wallace
On Sat, 2010-11-06 at 11:49 -0700, Kirk Wallace wrote:
 I am starting to think about how to put an eight bit word on a parallel
 port. My first guess is to load Parport, then write a component that
 shifts an unsigned variable a bit at a time to each parport pin, but I
 wonder if there is a cleaner way to write the whole (8bit) word to, lets
 say, pins 2-9? This will be used with a strobe component to latch data
 to an AVR port.

It turns out this is pretty trivial:
http://www.wallacecompany.com/machine_shop/EMC2/AVR/conv_u32_8bits.comp 

-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Synchronized Component

2010-11-06 Thread Ulf Dambacher
Am 06.11.2010 19:33, schrieb Kirk Wallace:
 Thanks Ulf. This is what I have so far:
 http://www.wallacecompany.com/machine_shop/EMC2/AVR/strobe-1a.jpg
 http://www.wallacecompany.com/machine_shop/EMC2/AVR/ServoPStart.comp

 It requires charge-pump to be loaded in the servo thread while the
 strobe component is in the base thread. I need to clean up my component,
 variable and pin names to make this component clean, lean and generic. I
 was hoping to have this component stand on its own, but I'll just add
 the it needs charge-pump in the documentation.
Try this:

component ServoPStart  This component is part of a parport 
interface to an AVR ATtiny2313.(2010/11/05 kwall...@wallacecompany.com);

pin out bit ServoStart This is the output which goes high for one 
period at the input toggle.;
pin out bit strobe foobar;
pin out unsigned PCount=0  ;

//variable unsigned PCount=0;   // Holds the number of periods since 
the toggle.

//SCount variable counts how many times the counter function is called
variable unsigned SCount=0;

function dostrobe nofp;
function docount nofp;
license GPL;

;;

FUNCTION(docount) {
   if (SCount) SCount--; //tick
}

FUNCTION(dostrobe) {
   strobe=0;
   ServoStart=0;

   if (SCount) return;
   if (PCount==0) ServoStart=1;
   if (++PCount=3) { //tack
 //foobar
 strobe=1;
 //reset
 SCount=10;
 PCount=0;
   }
}


--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users