Re: [Emc-users] Numeric entry with touchscreen and Glade
On 10/27/2014 2:07 PM, Chris Morley wrote: Sorry I don't have one with large spin buttons but maybe you could google that. Google ended up in a DenverCoder9 experience. [1] http://xkcd.com/979/ -- Oh well :) Worse than that is when the only other person you can find with the same problem posts a reply to the thread saying I fixed it! or something similar without saying HOW it was fixed. --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Error on startup Lcnc
Anyone have ideas what could be wrong, and causing me this error on Lcnc startup: Debug file information: Can not find -sec APPLICATIONS -var DELAY -num 1 insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hal_ppmc.ko': -1 Operation not permitted my5axis_load.hal:19: exit value: 1 my5axis_load.hal:19: insmod failed, returned -1 See the output of 'dmesg' for more information. 1614 PID TTY STAT TIME COMMAND Stopping realtime threads Unloading hal components -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Error on startup Lcnc
On 28 October 2014 08:43, Tomaz T. tomaz_...@hotmail.com wrote: See the output of 'dmesg' for more information. What does dmesg say? -- 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] Numeric entry with touchscreen and Glade
On 28 October 2014 03:24, Chris Morley chrisinnana...@hotmail.com wrote: In general I create my signals and handlers programmically because of this. and this particular problem, updating a widget without endless loop seems common but I have not seen a well thought out (by GTK creators) way. Looking at it, this seems to be swapping one bit of config in the Glade editor for one line of code in the handler so isn't exactly hard. I wonder if the handles to be blocked can be kept in a tuple? -- 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] Numeric entry with touchscreen and Glade
If you use the activate signal that is only fired when you press enter. It does not fire when you use set_text() to change all the other entries. JT On 10/27/2014 9:25 PM, andy pugh wrote: On 28 October 2014 02:17, Kirk Wallace kwall...@wallacecompany.com wrote: In my UI the DP entry gets processed with the on_dp_entry_activate callback. The Mod gets processed with on_mod_entry_activate. Part of the processing of one entry is to calculate and update the other entry display. That's interesting. I have been using value-changed. I should try the others. But not tonight... -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Question about Mesa THCAD-10
Hello! There is a plasma machine I built and I used THCAD-10 card for thc purposes, because the plasma source had such an output signal. Long story short - the machine has new owner and they want to use JasicCUT plasma source, which AFAIK does not have 0-10V signal output for thc, so I will have to connect directly to power leads of plasma cable. How do I calculate, what is the resistance of additional resistors needed to reduce max voltage from 300V to 10V? The unknown element here is the current that passes through THCAD card. Viesturs -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Question about Mesa THCAD-10
On Tue, 28 Oct 2014, Viesturs L?cis wrote: Date: Tue, 28 Oct 2014 14:18:30 +0200 From: [UTF-8] Viesturs L?cis viesturs.la...@gmail.com Reply-To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Subject: [Emc-users] Question about Mesa THCAD-10 Hello! There is a plasma machine I built and I used THCAD-10 card for thc purposes, because the plasma source had such an output signal. Long story short - the machine has new owner and they want to use JasicCUT plasma source, which AFAIK does not have 0-10V signal output for thc, so I will have to connect directly to power leads of plasma cable. How do I calculate, what is the resistance of additional resistors needed to reduce max voltage from 300V to 10V? The unknown element here is the current that passes through THCAD card. Viesturs From the manual: EXTENDING INPUT RANGE The THCAD-10 can have its input range extended by adding series resistance to its inputs. The input circuitry of the THCAD-10 consists of a current to voltage converter with a 100 uA full scale range. The THCAD-10 has 100K of total input resistance in its input divider section giving it a full scale input range of 100K*100uA = 10V. When external series resistors are used to extend the input voltage range, the required resistance value is: (VFS - 10V)/100 uA Where VFS is the new full scale input voltage and REXT is the new external series resistor. For example, to extend the THCAD-10s input range to a 500V a (500-10)/100uA = 4.9M resistor would be required. -- ___ 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. -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Question about Mesa THCAD-10
2014-10-28 14:25 GMT+02:00 Peter C. Wallace p...@mesanet.com: On Tue, 28 Oct 2014, Viesturs L?cis wrote: From the manual: EXTENDING INPUT RANGE RTFM... Thank you for the explanation! Viesturs -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
On 28 October 2014 12:08, John Thornton bjt...@gmail.com wrote: If you use the activate signal that is only fired when you press enter. It does not fire when you use set_text() to change all the other entries. Interesting. That isn't when i would have expected the activate event to fire. Is there a reference known to anyone that lists exactly when the various events trigger? It seems less than 100% obvious from the event names. I would imagine that the enter event triggers when you press enter and the activate event when you click in the control. But I could equally well imagine those events being exactly reversed. -- 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] Numeric entry with touchscreen and Glade
http://www.pygtk.org/pygtk2reference/class-gtkentry.html The activate gtk.Entry Signal def callback(entry, user_param1, ...) entry : the entry that received the signal user_param1 : the first user parameter (if any) specified with the connect() method ... : additional user parameters (if any) The activate signal is emitted when the entry is activated either by user action (pressing the Enter key) or programmatically with the gtk.Widget.activate() method JT On 10/28/2014 7:50 AM, andy pugh wrote: On 28 October 2014 12:08, John Thornton bjt...@gmail.com wrote: If you use the activate signal that is only fired when you press enter. It does not fire when you use set_text() to change all the other entries. Interesting. That isn't when i would have expected the activate event to fire. Is there a reference known to anyone that lists exactly when the various events trigger? It seems less than 100% obvious from the event names. I would imagine that the enter event triggers when you press enter and the activate event when you click in the control. But I could equally well imagine those events being exactly reversed. -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
On 28 October 2014 13:19, John Thornton bjt...@gmail.com wrote: The activate signal is emitted when the entry is activated either by user action (pressing the Enter key) or programmatically with the gtk.Widget.activate() method I had rather assumed that activate triggered when the widget changed state out of a disabled state. it appears I was wrong. Now I look, the events are clickable to a description of what they mean, in those docs. Thanks. -- 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] Error on startup Lcnc
On 10/28/2014 01:43 AM, Tomaz T. wrote: Anyone have ideas what could be wrong, and causing me this error on Lcnc startup: Debug file information: Can not find -sec APPLICATIONS -var DELAY -num 1 insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hal_ppmc.ko': -1 Operation not permitted ... snip A wild guess might be that the PPMC board is not powered up or not connected? There is a Pico diagnostic program you might try. http://pico-systems.com/codes/univpwmdiags.tgz -- 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] Error on startup Lcnc
On 10/28/2014 03:43 AM, Tomaz T. wrote: Anyone have ideas what could be wrong, and causing me this error on Lcnc startup: Debug file information: Can not find -sec APPLICATIONS -var DELAY -num 1 insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hal_ppmc.ko': -1 Operation not permitted my5axis_load.hal:19: exit value: 1 my5axis_load.hal:19: insmod failed, returned -1 Oh, my, there are so many things. First, of course, you need to make sure the driver can talk to the Pico Systems device(s). Recent versions of LinuxCNC send more info to the kernel log reporting what they sensed connected to the parallel port. So, do : dmesg | grep PPMC and it will pull only the lines from the ppmc driver out of the thousands of lines in the dmesg file. If no boards are found, then you need to try the diagnostic program to see if communication can be established. I don't know what Pico board you have, so I can't direct you to the correct diag program. Finally, you MUST use an IEEE-1284 cable. Standard DB-25 cables will not work, due to crosstalk. Jon -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Inverting lathe X axis arrow key
Hi Guys, I am tuning the axes on my rear-mounted turret lathe and am having problems with the X axis. In the current state, pressing 'up arrow' on the keyboard moves the turret forward (towards me) instead of back. The diameter readout increases as it should and any MDI motion commands in the X positive direction result in a correct move of the turret towards the back/away from me. If the lathe were a front-mounted post type, everything would be perfect, but since it's a rear-mounted post type the arrow is backwards. I'd like to be able to press the up arrow key and have the turret move away from me without affecting any of the other things that are working correctly. Anyone have a solution? Thanks, Ian Sent from my iPhone -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Inverting lathe X axis arrow key
On 28 October 2014 19:23, Comcast icp...@comcast.net wrote: I'd like to be able to press the up arrow key and have the turret move away from me without affecting any of the other things that are working correctly. Anyone have a solution? Thanks, There is something here: http://wiki.linuxcnc.org/cgi-bin/wiki.pl?BackToolLathe I don't speak enough Tcl to know if that also switches the jog direction already, but extra stuff in that file should be able to do that too. -- 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] Inverting lathe X axis arrow key
On 10/28/2014 2:57 PM, andy pugh wrote: On 28 October 2014 19:23, Comcast icp...@comcast.net wrote: I'd like to be able to press the up arrow key and have the turret move away from me without affecting any of the other things that are working correctly. Anyone have a solution? Thanks, There is something here: http://wiki.linuxcnc.org/cgi-bin/wiki.pl?BackToolLathe I don't speak enough Tcl to know if that also switches the jog direction already, but extra stuff in that file should be able to do that too. I don't know if that will swap the jog keys, but I have swapped the jog keys before by editing the .axisrc file that is in your home directory. Notice the . in front of axisrc. http://thread.gmane.org/gmane.linux.distributions.emc.user/12638/focus=12642 FWIW, a file that begins with . is a hidden file. If you want to edit that file, you can go to view in your file viewer and click on view hidden files. Then you might be able to double click the .axisrc file and edit it directly.If you are a command line user then you probably know what to do already. :-) Dave --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Question about Mesa THCAD-10
On Tuesday 28 October 2014 08:18:30 Viesturs Lācis did opine And Gene did reply: Hello! There is a plasma machine I built and I used THCAD-10 card for thc purposes, because the plasma source had such an output signal. Long story short - the machine has new owner and they want to use JasicCUT plasma source, which AFAIK does not have 0-10V signal output for thc, so I will have to connect directly to power leads of plasma cable. How do I calculate, what is the resistance of additional resistors needed to reduce max voltage from 300V to 10V? The unknown element here is the current that passes through THCAD card. Viesturs That would be a 30/1 ratio, but would need to be a high enough resistance to not draw source or resistor destructive power, and if using carbon film resistors, the higher value resistor connected to the JasicCut should be in the form of several lower value resistors in series so as not to over voltage the carbon grains and destroy them over a log period of tie without their ever getting hot. If the load end load is 10k ohms, then the high end of the string I would make from 11 each 27k resistors, which would total 297,000 ohms and should, if they have sufficient wattage ratings, last nominally until the rapture. Half watt resistors s/b plenty good enough in that case. The resistor tolerances should give a very slightly higher reading, a percent or so, but linuxcnc can probably calibrate that out if it is that critical. I would much prefer to use metal film resistors as their failure mode doesn't seem to have the long term drift in values that bulk carbon or carbon film resistors are prone to. The values I quoted would result in only a red hair north of 1 milliamp of draw at the full 300 volts. That may not be enough, so dividing everything by 10 might be in order. 1000 ohm load, and 11 ea 2.7k's in series says its still under 5 watts total if I am running kcalc correctly. The likely hood of that isn't good, so please check me on that. 11*2700+1000=31700 ohms for the whole string. Then 300 / that=0.0097719869706840390879 amps of current flow, then wattage is usually calculated by me as i^2*r so the i squared is i^2=9.5491729355218623009e-05, and that times the total r of 31700=3.0270878205604303494 which is a red hair north of 3 watts. But since that 3 watts is effectively spread over the 11 2,7k in series, that is then worst case = 0.27518980186913003176 watts per resistor, so half watt resistors in metal film should be fine. 1 or 2 watter's should last forever. Other that striking the arc, do plasma cutters ever work at more than 75 volts? 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 http://geneslinuxbox.net:6309/gene US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
On 27 October 2014 14:55, Dewey Garrett dgarr...@panix.com wrote: There is a numeric-only popup keyboard used with pyngcgui in some sim configs (example: configs/sim/touchy/ngcgui/pyngcgui_touchy.ini) (based on original work by J. Thornton) Thanks, that works a treat. :-) -- 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] Question about Mesa THCAD-10
On Tuesday 28 October 2014 08:25:25 Peter C. Wallace did opine And Gene did reply: On Tue, 28 Oct 2014, Viesturs L?cis wrote: Date: Tue, 28 Oct 2014 14:18:30 +0200 From: [UTF-8] Viesturs L?cis viesturs.la...@gmail.com Reply-To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Subject: [Emc-users] Question about Mesa THCAD-10 Hello! There is a plasma machine I built and I used THCAD-10 card for thc purposes, because the plasma source had such an output signal. Long story short - the machine has new owner and they want to use JasicCUT plasma source, which AFAIK does not have 0-10V signal output for thc, so I will have to connect directly to power leads of plasma cable. How do I calculate, what is the resistance of additional resistors needed to reduce max voltage from 300V to 10V? The unknown element here is the current that passes through THCAD card. Viesturs From the manual: EXTENDING INPUT RANGE The THCAD-10 can have its input range extended by adding series resistance to its inputs. The input circuitry of the THCAD-10 consists of a current to voltage converter with a 100 uA full scale range. The THCAD-10 has 100K of total input resistance in its input divider section giving it a full scale input range of 100K*100uA = 10V. When external series resistors are used to extend the input voltage range, the required resistance value is: (VFS - 10V)/100 uA Where VFS is the new full scale input voltage and REXT is the new external series resistor. For example, to extend the THCAD-10s input range to a 500V a (500-10)/100uA = 4.9M resistor would be required. Based on that Peter, and thanks for the info, he would then need a 2,940,000 ohm resistor for a 300 volt full scale. To do that for a 300 volt full scale, he would need to use a string of 9 each 33k resistors in metal film so that no one resistor sees more than its rated voltage, in this case 33.3 volts per resistor in an ideal world. Wattage doesn't count, its too low, but the voltage rating of the individual resistor does count. 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 http://geneslinuxbox.net:6309/gene US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Inverting lathe X axis arrow key
The tcl/tk code in the page referenced below does swap the arrow keys in addition to fixing the preview. Drew On 10/28/14, 12:57 PM, andy pugh wrote: On 28 October 2014 19:23, Comcast icp...@comcast.net wrote: I'd like to be able to press the up arrow key and have the turret move away from me without affecting any of the other things that are working correctly. Anyone have a solution? Thanks, There is something here: http://wiki.linuxcnc.org/cgi-bin/wiki.pl?BackToolLathe I don't speak enough Tcl to know if that also switches the jog direction already, but extra stuff in that file should be able to do that too. -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Numeric entry with touchscreen and Glade
On 28 October 2014 22:32, andy pugh bodge...@gmail.com wrote: Thanks, that works a treat. Bah! Within limits anyway. I have ended up with a GtkEntry that has both icons active as up and down buttons. Looks good for touchscreen use. But I can't figure out how to get the icons to operate and also have the pop-up keyboard come up when something other than the icons is pressed. The whole widget responds to button_click, and the click-position is relative to the icon or the text entry, so no way to distinguish the icons from each other, or the left-hand edge of the text from either icon. -- 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
[Emc-users] Announcing the LinuxCNC 2.7 branch
Greetings LinuxCNC people, I bring you glad tidings! One of the things we did at the recent Hackfest in Houston was creating the 2.7 branch. We will test and stabilize the code in this branch, and when the time is right we will release 2.7.0. I'm hopeful that the time until 2.7.0 is released is on the order of a handful of months. The headline features in 2.7 are: * A new high-speed trajectory planned (written by Rob Ellenberg) * Support for the RT-Preempt realtime kernel (written by Jeff Epler) In addition to the new RT-Preempt support, LinuxCNC 2.7 will run on RTAI and the vanilla Linux kernel just like 2.6 and earlier versions do. We are currently targeting the same set of Linux distributions for 2.7 as we did for 2.6: Ubuntu Lucid, Ubuntu Precise, and Debian Wheezy. The final set of supported distros may change as we get closer to release. This new branch does not mean that 2.6 will go away. I will keep maintaining the 2.6 branch and making releases as needed. Your CNC machines running LinuxCNC 2.6 will stay supported with bug fixes for a good long while still. So, you're asking, how can I help? I'm glad you asked! You can run the 2.7 pre-releases and submit bug reports! There are probably some rough edges and possibly lurking bugs that we'd like your help in finding before we release 2.7.0. You've been warned! The install instructions leave a lot to be desired at the moment, but it goes like this: * Install LinuxCNC 2.6, for example using the instructions here: http://wiki.linuxcnc.org/cgi-bin/wiki.pl?UpdatingTo2.6 * Upgrade to LinuxCNC 2.7 by picking an apt source line from here: http://wiki.linuxcnc.org/cgi-bin/wiki.pl?UpdatingTo2.7 Happy upgrading! Let us know how it works for you. -- Sebastian Kuzminsky -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users