Re: [Emc-users] A lot of input/output. Cheap
Hi, the big advantage of the mesa-boards is that they are well suited to drive relays and other kinds of devices. An Arduino or similar board only has TTL or CMOS IOs which need to get adapted to your actual IO voltages/currents. Parallel Ports also need some additional protection/drivers to handle 'realworld' IO. Depending on the actual project it might be possibe to design you own IO-Board with appropriate IO circuits. signature.asc Description: OpenPGP digital signature -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] SCARA Kinematics WTF!?
Hi, First of all, thanks for your reply andy. I know of the ja-branch, but unfortunately it isnt in master. But I am willing to help. JA also needs documentation, I only found a few wiki-pages. In the meantime I did some more tinkering and made some progress. In HAL the joints0-3 now map to axis.0 ... axis.3. In the .ini-File I have axes 0-5 defined, with 4&5 only being there so they can be homed. However, it seems like the speed/acc settings for C-Axis in world mode are read from the AXIS_5 section. So I added sane values there. Without the speeds default to '1', which is horribly slow. I will provide a patch for the sample-config which will document this behaviour. For now, two problems remain: 1. Z gets inverted when switched to world-mode. This is due to lines 94 and 162 in scarakins.c. However I dont understand why this is desirable? This odd behaviour can also be reproduced with the SIM-config. Most likely I will change the sign recompile scarakins. Or is there an simpler way? 2. Illegal moves are not detected. This is the work area: http://i.imgur.com/CGLhgwY.png When moving from "X0 Y-450" to "X0 Y450" the machine runs into the hardware limit switches. Is there any way to make the TP (or any other comp) detect those moves prior to the execution? Similar to the softlimits on trivialkins? Kind Regards Carsten Am 08.09.2015 um 11:40 schrieb andy pugh: > On 7 September 2015 at 22:14, Carsten Presser <c...@rstenpresser.de> wrote: >> Now comes the FUN part. When I rotate the C-Axis by hand (servo amps >> disabled) the B-Axis-Value on the DRO changes. > > There is a long-standing confusion in LinuxCNC about the joints and > the axes. There is a branch that is intended to fix this, but it keeps > not quite making it into the mainline. > > The HAL pins use asis.N.motor-postion-cmd and axis.N.motor-position-fb > but this really should be read as joint.N > Things are more confused in the INI file, the [AXIS_N] sections > contain a mix of axis and joint data. > > Normally there is a hard-coded mapping that X = 0, Y= 1, Z = 2, A = 3, > B = 4, C = 5, U = 6, V = 7, W = 8 but scarakins seems to change that > around a bit: > http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/emc/kinematics/scarakins.c;h=e3b87ee2223de900955a65c8cd3256bda9ab526e;hb=HEAD#l160 > > You need to make sure that your C-axis encoder feedback is connected > to the axis.3.motor-position-fb > > Your C-axis INI parameters, however, probably live in the [AXIS_5] block. > -- Carsten Presser Geschäftsführer ca.rstenpresser.de UG (haftungsbeschränkt) Elektronikentwicklung und Vertrieb Frankfurter Strasse 1 66606 St.Wendel Telefon: 06851-1305585 Mobil: 0179-5594690 Internet: http://ca.rstenpresser.de EMail: c...@rstenpresser.de signature.asc Description: OpenPGP digital signature -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] SCARA Kinematics WTF!?
Hi, Sorry for the long confusing post in advance. I am having some troubles with scarakins: For reference, a copy of my current config: https://ca.rstenpresser.de/~cpresser/20150907_linuxcnc-config-hirata-scara.tgz First of all, I dont know which Axes/Joints I need to define in both the .ini and .hal files. The real machine has 4 Joints: http://i.imgur.com/bhsfqXk.jpg - Joint0: Inner Arm - Joint1: Outer Arm - Joint2: Linear Z-Axis - Joint3: Rotary C-Axis (rotates around the Z-Direction) In the example-config-ini-file the following AXIS are used: (/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/vismach/scara) - [AXIS_0] - [AXIS_1] - [AXIS_2] - [AXIS_5] The corresponding HAL-File however uses net J0pos <= axis.0.motor-pos-cmd net J1pos <= axis.1.motor-pos-cmd net J2pos <= axis.2.motor-pos-cmd net J3pos <= axis.3.motor-pos-cmd This does indeed match the 'scarakins.c' source file. A comment in line 73 says: /* joint[0], joint[1] and joint[3] are in degrees and joint[2] is in length units */ With the example-config the C-Axis is slow as hell. I tinkered around a litte and found that when I use axis.5.xxx for the C-Axis the speeds are okay. It looks like is isn't a good idea to use ini-entry [AXIS_5] with the axis.3.xxx-pins. But now I have axis.3.xx and axis4.xx unused. This makes linuxcnc unhappy, when trying to switch into world-mode it complains that those two axis aren't homed. So I added homing to those two axis, thats where I am now. Now switching into world mode actually works. But with errors, the GL-Preview isnt happy: http://nopaste.linux-dev.org/?755109 (I fixed that by uncommenting those lines) Now comes the FUN part. When I rotate the C-Axis by hand (servo amps disabled) the B-Axis-Value on the DRO changes. Video: https://ca.rstenpresser.de/~cpresser/MVI_2799.MOV Any Hints (besides not using scarakins!?) Kind Regards Carsten signature.asc Description: OpenPGP digital signature -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Debian Wireless Setup
Hi Rick, this is how I configure it without using NetworkNamager. --- interfaces --- auto wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf - --- wpa_supplicant.conf --- network={ ssid=myssid scan_ssid=1 key_mgmt=WPA-PSK psk=mypassphrase } - Kind Regards Carsten Am 23.04.2015 um 15:15 schrieb Rick Lair: Good Morning All, Can anyone give me some pointers on what I should have in my /etc/network/interfaces file to have my wireless be setup permanently on my Debian Wheezy machine, I keep getting the authorization pop-up to enter the password through out the day. I would rather go that route than using the Network Manager utility. Or does this actually mean my wireless signal from the router could be going in and out due to it's distance from the router? Rick -- Carsten Presser Geschäftsführer c...@rstenpresser.de Elektronikentwicklung und Vertrieb Frankfurter Strasse 1 66606 St.Wendel Telefon: 06851-1305585 Mobil: 0179-5594690 Internet: http://ca.rstenpresser.de EMail: c...@rstenpresser.de signature.asc Description: OpenPGP digital signature -- BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Modbus
I am using this python lib: https://pypi.python.org/pypi/MinimalModbus/0.6 together with this adapter: www.ebay.de/itm/111326580742 Its not FTDI, but the drivers are also in the linux-kernel. No need to compile or patch anything. The Software is just a few lines in python to interface it with HAL. Am 18.12.2014 um 12:53 schrieb 77dab: Hi all, I have on my hand some mitsubishi VFD with 550w winches. I would like to try to move them using LinuxCNC. the thing is not meant to be Real time, and I've read the modbus module lives in User space and it's not RT. So, my question: Since it isn't RT, can I drive the rs485 thru a USB-rs485 converter, using a laptop? Thanks, Davide. -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Carsten Presser Geschäftsführer c...@rstenpresser.de Elektronikentwicklung und Vertrieb Frankfurter Strasse 1 66606 St.Wendel Telefon: 06851-1305585 Mobil: 0179-5594690 Internet: http://ca.rstenpresser.de EMail: c...@rstenpresser.de -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Nooby trouble with Mesaflash and 7i80
Hi, If you want to investigate this any furter, i recommend to use gdb. 1. use 'ulimit' to allow core-file generation 2. load corefile with 'gdb mesaflash-binary corefile' 3. type 'bt' to get a stacktrace If there are no debugging symbols inside the binary/libs the output wont help much. In that case, recompile mesaflash with debugging enabled. Am 17.11.2014 21:25, schrieb John Prentice (FS): Greetings Running LinuxCNC 2.6 Wheezy install with all notified updates applied and latest Mesaflash (well apt-get says it's latest) Linux networking is turned off and 7i80 directly connected to Ethernet port with patch cable. Mesaflash segfaults on anything other than -help. Here is dmesg (old cruft cleared) = john@Maxdata-Linux:~$ mesaflash Mesaflash version 3.0.0 (built on Jul 15 2014 18:57:58 with libpci 3.1.9) Configuration and diagnostic tool for Mesa Electronics PCI(E)/ETH/EPP/USB boards (C) 2013-2014 Michael Geszkiewicz (contact: mic...@wp.pl) (C) Mesa Electronics Try 'mesaflash --help' for more information john@Maxdata-Linux:~$ mesaflash --list Segmentation fault john@Maxdata-Linux:~$ sudo dmesg [ 2418.897026] mesaflash[21519]: segfault at 0 ip b7669bd1 sp bfb5168c error 4 in libc-2.13.so[b75ea000+15f000] john@Maxdata-Linux:~$ Any assistance would be most welcome as I am stuck. John Prentice -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Carsten Presser Geschäftsführer c...@rstenpresser.de Elektronikentwicklung und Vertrieb Frankfurter Strasse 1 66606 St.Wendel Telefon: 06851-1305585 Mobil: 0179-5594690 Internet: http://ca.rstenpresser.de EMail: c...@rstenpresser.de -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Problem pncconf in master (patch attached)
Hi, there is an third issue I had with pncconf. Someone else already had if bevore: https://github.com/machinekit/machinekit/issues/102 My suggested fix is to add another if-case @line 1584 in pncconf, in function 'check_for_rt' -- elif hal.is_userspace: return True -- With that change the test-axis button works again. I am not quite sure how the 'is_userspace'-bit is behaves on RTAI systems, so this might not be a complete fix. Kind Regards Carsten p.s. i am working on a patch for the debian packaging issue. Am 30.10.2014 16:28, schrieb Sebastian Kuzminsky: On 10/29/14 8:47 AM, Carsten Presser wrote: Hi, When trying to run pncconf from the recent buildbot debian package it complains about missing python modules. Those modules are missing. They should be under /var/lib/python/pncconf. I guess the changes to pncconf are not yet reflected in the debian control files. I am no debian-package-expert, so I cant propose a patch for that. Hi Carsten, thanks for your bug report. I confirm that pncconf in 2.7.0~pre2 does not start up, instead it gives a error. I opened bug #400 to track this: https://sourceforge.net/p/emc/bugs/400/ Pncconf in 2.6.3 does start up in but produces warnings, i opened bug #399 to track that: https://sourceforge.net/p/emc/bugs/399 However, I also found a few critical typos in the pncconf python module. A patch for those is attached. Thanks for the patch, that's great! Chris Morley is the pncconf developer maintainer. Chris, does that patch look right to you? -- Carsten Presser Geschäftsführer c...@rstenpresser.de Elektronikentwicklung und Vertrieb Frankfurter Strasse 1 66606 St.Wendel Telefon: 06851-1305585 Mobil: 0179-5594690 Internet: http://ca.rstenpresser.de EMail: c...@rstenpresser.de -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Problem pncconf in master (patch attached)
Hi, When trying to run pncconf from the recent buildbot debian package it complains about missing python modules. Those modules are missing. They should be under /var/lib/python/pncconf. I guess the changes to pncconf are not yet reflected in the debian control files. I am no debian-package-expert, so I cant propose a patch for that. However, I also found a few critical typos in the pncconf python module. A patch for those is attached. Kind Regards Carsten -- Carsten Presser Geschäftsführer c...@rstenpresser.de Elektronikentwicklung und Vertrieb Frankfurter Strasse 1 66606 St.Wendel Telefon: 06851-1305585 Mobil: 0179-5594690 Internet: http://ca.rstenpresser.de EMail: c...@rstenpresser.de --- private_data.py 2014-10-29 15:41:16.361855079 +0100 +++ /home/awok/linuxcnc-dev/lib/python/pncconf/private_data.py 2014-10-29 01:41:14.270715001 +0100 @@ -60,13 +60,13 @@ if not os.path.isfile(self.WIZARD): self.WIZARD = os.path.join(/etc/linuxcnc/linuxcnc-wizard.gif) if not os.path.isfile(self.WIZARD): -self.WIZARD = os.path.join(/usr/share/linuxcnc/linuxcnc-wizard.gif) +self.LINUXCNCICON = os.path.join(/usr/share/linuxcnc/linuxcnc-wizard.gif) if not os.path.isfile(self.WIZARD): wizdir = os.path.join(os.path.abspath(BIN), ..) self.WIZARD = os.path.join(wizdir, linuxcnc-wizard.gif) self.ICONDIR = os.path.join(os.path.abspath(BIN), ..) -self.LINUXCNCICON = os.path.join(self.ICONDIR, linuxcncicon.png) +self.LINUXCNC = os.path.join(self.ICONDIR, linuxcncicon.png) if not os.path.isfile(self.LINUXCNCICON): self.LINUXCNCICON = os.path.join(/etc/linuxcnc/linuxcnc-wizard.gif) if not os.path.isfile(self.LINUXCNCICON): -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Problem with comp
I would say, do not use global variables, do you need them to be global (outside function scope?) No, i dont need them to be global. I will try this hint as soon as my mill finishes its current job. On Thu, Mar 24, 2011 at 5:40 PM, Carsten Presserc...@rstenpresser.de wrote: Hi, I tried to write my own small userspace comp: http://tinypaste.com/e78dc Compiling with sudo comp --install hal_mydro.comp runs fine without errors. However, when I load it with halcmd loadusr -W hal_mydro (as the same user that is running emc2) it crashes with a segfault. GDB-output is here: http://tinypaste.com/6172a5 Any hints? Regards Carsten -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Carsten Presser Geschäftsführer c...@rstenpresser.de Elektronikentwicklung und Vertrieb Brühlstrasse 14 66606 St.Wendel Telefon: 06851-1305585 Mobil: 0179-5594690 Internet: http://ca.rstenpresser.de EMail: c...@rstenpresser.de -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Problem with comp
Hi, I tried to write my own small userspace comp: http://tinypaste.com/e78dc Compiling with sudo comp --install hal_mydro.comp runs fine without errors. However, when I load it with halcmd loadusr -W hal_mydro (as the same user that is running emc2) it crashes with a segfault. GDB-output is here: http://tinypaste.com/6172a5 Any hints? Regards Carsten -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Axis Disable in EMC2?
Hi, I have some nice Plugs on my stepper, so I could just remove them for testing purposes :) Am 23.07.2010 20:45, schrieb Speaker To-Dirt: Hey All: Thanks for the fast replies. Hummm. I thought of turning off outputs to the parallel port, but wanted something I could use as a fast test of individual axes on individual programs. What I did do was comment out all motion in the XY plane and keep all the Z motion. But that means another file. Okay, well I guess that's just how I'll have to do it. Thanks! -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Carsten Presser Geschäftsführer c...@rstenpresser.de Elektronikentwicklung und Vertrieb Brühlstrasse 14 66606 St.Wendel Telefon: 06851-1305585 Mobil: 0179-5594690 Internet: http://ca.rstenpresser.de EMail: c...@rstenpresser.de -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] building RT addition - help
hi, try using this patch: http://cvs.gna.org/cvsweb/magma/base/arch/x86/patches/hal-linux-2.6.34-x86-2.7.02.patch?cvsroot=rtai Am 20.07.2010 16:08, schrieb Alan Battersby: On 19/07/10 23:54, Andy Pugh wrote: in the kernel directory: patch -p1 {path-to}hal-linux-2.6.32.11-x86-2.6-03.patch Is what I have been using. -- atp Thanks, I tried this and it ran ok but reported failures. Also then tried to rebuild the partially patched kernel but it failed. So I guess I will contact the rtai team to ask how to obtain a patch for 2.6.34-12. Alan -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Carsten Presser Geschäftsführer c...@rstenpresser.de Elektronikentwicklung und Vertrieb Brühlstrasse 14 66606 St.Wendel Telefon: 06851-1305585 Mobil: 0179-5594690 Internet: http://ca.rstenpresser.de EMail: c...@rstenpresser.de -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] LinuxCNC Sticker - centralised Order?
Hello, just recently I created a LinuxCNC Sticker based on the Artwork of 'fenn' and hat it printed in order to complete converting my mill to emc2 :) A picture can be found here: http://ca.rstenpresser.de/~cpresser/tmp/emc2.5pre_lenny/linux_cnc_sticker.jpg In case you want to have such a sticker too, you can download the PDF-File used for printing here: http://ca.rstenpresser.de/~cpresser/tmp/emc2.5pre_lenny/linux_cnc.pdf Is there interest in a centalised order for such stickers? A sticker with a size of about 190x130cm would be around 4-5Euros. If features digital printing with 600DPI on self-adhesive foil, including a countour cut around the pengiun (not like the first one I created). I reside in Germany, but worldwide shipping is not that expensive since it can be send as a regular letter. Just let me know, if I shall start an order :) Greeetings Carsten -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users