[Emc-users] Offsets in Python

2014-09-20 Thread Kip Shaffer
Greetings! In my GladeVCP am trying to calculate the relative position (displayed in in the working coordinate system when there is a rotational offset in effect. The python interface provides the following information in the status attributes: self.s.actual_position (current position in

Re: [Emc-users] Offsets in Python

2014-09-20 Thread Kip Shaffer
at 12:28:46PM -0400, Kip Shaffer wrote: When rotation_xy is 0 (and tool_offset is all zeros) the following is true: Work position = actual_position - g92_offset - g5x_offset However, when rotation_xy is not zero, a rotation has to be applied. The question is where

Re: [Emc-users] Start program with external button

2014-05-14 Thread Kip Shaffer
Erik, While not exactly what you are looking for, you can use C snippets to create brand new HAL components. I created a couple myself, one to bring 16 inputs and 16 outputs to a set of external shift registers for expanded IO capabilities, and one to generate blink codes for a status LED. I

Re: [Emc-users] Index-enable pin question

2013-11-11 Thread Kip Shaffer
I can't answer your question directly, but last night I was working to do the same thing and got it to work! I did notice the same behavior, moving to the proper X and never starting. For me the problem was that I was using both phases A and B, and that the encoder was counting down, not up.

Re: [Emc-users] USB Camera for edge finder?

2013-11-07 Thread Kip Shaffer
This is a cool discussion, and inspires me to try something. Using the thin lens equation, 1/o + 1/i = 1/f, we can use a single convex lens as a 'transfer lens'. The 'real image' produced by this lens can be used just like the actual object, and can be inspected by the microsocpe. Since

[Emc-users] Success: Added physical button to Start or Resume program execution.

2013-05-19 Thread Kip Shaffer
Just wanted to share a little success story with you all. This week I added three physical buttons to my mill. They are large, industrial buttons from Allen Bradley that should last forever. They are: E-Stop - Red, latching, easy to hit Pause - Amber, momentary, easy to hit Run/Resume - Green,

Re: [Emc-users] GladeVCP Persistence On_Destroy sensitivity

2013-03-04 Thread Kip Shaffer
On Mon, Mar 4, 2013 at 4:20 AM, Michael Haberler mai...@mah.priv.at wrote: So when a user selects File-Quit, a SIGTERM should be generated? You mean in Axis? In a gladevcp application? please share a bit more more detail about your setup - depending on the answer, different things happen,

Re: [Emc-users] GladeVCP Persistence On_Destroy sensitivity

2013-03-03 Thread Kip Shaffer
So when a user selects File-Quit, a SIGTERM should be generated? It doesn't trigger the on_unix_signal(), whereas hitting Control-C does. I think for now, I am going to regard auto-saving widget states as unreliable. Instead, I will keep anything that ought to be saved in vars, which don't

[Emc-users] GladeVCP Persistence On_Destroy sensitivity

2013-03-02 Thread Kip Shaffer
Anybody using GladeVCP with Persistence? Did you have trouble getting it to save settings? It seems to me as though it is very sensitive to what widget the 'on_destroy' signal is attached. The documentation does warn against attaching it to the 'window1' object. But I had terrible luck getting

Re: [Emc-users] Help, out of inputs on my parport

2013-02-05 Thread Kip Shaffer
I would imagine that the LS chips are expensive because they are obsolete. I used them because they were in my junk drawer. I would recommend using the HCT series. I see that the pin names have changed a bit from the old datasheets. STCP = Storage Register Clock, I referred to as 'Latch',

Re: [Emc-users] Help, out of inputs on my parport

2013-01-28 Thread Kip Shaffer
Good idea. Check out http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Shift_Register_Port_Expander -Kip On Sun, Jan 27, 2013 at 8:44 PM, Chris Radek ch...@timeguy.com wrote: On Sun, Jan 27, 2013 at 06:14:56PM -0500, Kip wrote: Greetings all! My shift registers seem to be working well as a cheap

Re: [Emc-users] Help, out of inputs on my parport

2013-01-02 Thread Kip Shaffer
the tachometer signal from my cooling fans (120 Hz)! On Wed, Jan 2, 2013 at 2:11 PM, Marius Liebenberg mar...@mastercut.co.zawrote: Kip, Would you be willing to share your module. I am in need of a similar solution. Marius On 2012/12/28 02:54 PM, Kip Shaffer wrote: Gene, Not sure if you would

Re: [Emc-users] Help, out of inputs on my parport

2012-12-28 Thread Kip Shaffer
Gene, Not sure if you would be interested in the approach I'm using, but it may help you or others who are in a similar predicament. You can use shift registers to add as many additional lines as you want. For example, you can take 3 output lines on your parallel port, and turn them into 8,