Dear all, I'm still on my cnc lathe and i start to be made...... I try to find a solution to switch my axis into a full axis (C axis) and a normal rotary axis ( turning mode) and I get only headache
I have include my 2 files (.hal and .ini) just in case to make sure i haven't make a mistake on I was planning also to make a M1xx command to include the G64P0 or G65P0 command and also the command to rehome the C axis. When we back in full axis from the rotary axis to start to make grooving or engraving. Do you thinks it's easy to do?? Thanks for your great help Regards, Moustapha Elhima +33 6 09 99 21 97 P Penser à préserver l'environnement avant d'imprimer ce message. Merci ________________________________ De : ELHIMA Moustapha <melh...@yahoo.com> À : EMC developers <emc-developers@lists.sourceforge.net> Envoyé le : Sam 27 novembre 2010, 14h 20min 18s Objet : [Emc-developers] Re : switch an axis from an spindle to rotary axis Dear Andy, At first thanks for your great help! I have tried the code to switch my axis but i have still one error, when i start emc2 i have this message displayed : code how generate this error : loadrt and2 count=4 loadrt or2 count=2 loadrt invert count=1 addf and2.0 base-thread addf and2.1 base-thread addf and2.2 base-thread addf and2.3 base-thread addf or2.0 base-thread addf or2.1 base-thread addf invert.0 servo-thread net inv motion.digital-out-00 => invert.0.in and2.0.in1 and2.2.in1 <------the error is in this line i thinks net vmode invert.0.out => and2.2.in1 and2.3.in1 net p-step stepgen.2.step => and2.0.in0 net v-step stepgen.3.step => and2.1.in0 net p-dir stepgen.2.dir => and2.2.in0 net v-dir stepgen.3.dir => and2.3.in0 net pstep-sw and2.0.out => or2.0.in0 net vstep-sw and2.1.out => or2.0.in1 net pdir-sw and2.2.out => or2.1.in0 net vdir-sw and2.3.out => or2.1.in1 net sel-step or2.0.out => parport.0.pin-08-out net sel-dir or2.1.out => parport.0.pin-09-out --------------------------------START-------------------- Print file information: RUN_IN_PLACE=no EMC2_DIR= EMC2_BIN_DIR=/usr/bin EMC2_TCL_DIR=/usr/share/emc/tcl EMC2_SCRIPT_DIR= EMC2_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/emc2 EMC2_CONFIG_DIR= EMC2_LANG_DIR=/usr/share/emc/tcl/msgs INIVAR=inivar HALCMD=halcmd EMC2_EMCSH=/usr/bin/wish8.5 EMC2 - 2.4.6 Machine configuration directory is '/home/turnmax/emc2/configs/ma-machine' Machine configuration file is 'ma-machine.ini' INIFILE=/home/turnmax/emc2/configs/ma-machine/ma-machine.ini PARAMETER_FILE=emc.var EMCMOT=motmod EMCIO=io TASK=milltask HALUI= DISPLAY=axis NML_FILE= Starting EMC2... Starting EMC2 server program: emcsvr Loading Real Time OS, RTAPI, and HAL_LIB modules Starting EMC2 IO program: io Shutting down and cleaning up EMC2... Killing task emcsvr, PID=1909 Removing HAL_LIB, RTAPI, and Real Time OS modules Removing NML shared memory segments Cleanup done ----------------------------the error---------------------- Debug file information: ma-machine.hal:62: Signal 'inv' of type 'bit' cannot add pin 'invert.0.in' of type 'float' 1909 ----------------------------end----------------------------- PID TTY STAT TIME COMMAND Stopping realtime threads Unloading hal components Kernel message information: [ 490.624797] I-pipe: Domain RTAI registered. [ 490.624807] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03. [ 490.624809] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) . [ 490.624814] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0). [ 490.624816] PIPELINE layers: [ 490.624819] dda4fe20 9ac15d93 RTAI 200 [ 490.624822] c085cb20 0 Linux 100 [ 490.647867] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>. [ 490.648153] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes. [ 490.648158] RTAI[sched]: hard timer type/freq = APIC/12557635(Hz); default timing: periodic; linear timed lists. [ 490.648161] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2210250000 hz. [ 490.648163] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns. [ 490.648277] RTAI[usi]: enabled. [ 490.734565] RTAI[math]: loaded. [ 490.837693] config string '0x378 out ' [ 491.216187] RTAI[math]: unloaded. [ 491.274550] SCHED releases registered named ALIEN RTGLBH [ 491.288866] RTAI[malloc]: unloaded. [ 491.388012] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0). [ 491.393736] I-pipe: Domain RTAI unregistered. [ 491.393746] RTAI[hal]: unmounted. --------------------------------END-------------------- can you explain me how i can fix that? thanks again Rgds Moustapha Elhima +33 6 09 99 21 97 P Penser à préserver l'environnement avant d'imprimer ce message. Merci ________________________________ De : Andy Pugh <a...@andypugh.fsnet.co.uk> À : EMC developers <emc-developers@lists.sourceforge.net> Envoyé le : Mer 24 novembre 2010, 15h 21min 57s Objet : Re: [Emc-developers] switch an axis from an spindle to rotary axis On 24 November 2010 13:32, ELHIMA Moustapha <melh...@yahoo.com> wrote: > If it's possible to make in the M101 file hal command who can unlink my > ports and hook them to the C axis ? One solution would be to run an extra stepgen so that there is a position-mode one linked to the C-axis position and a Velocity mode one linked to spindle-speed-out. (looking at the quoted email it seems you already have this). You would then need to switch which stepgen is linked to the parallel port pins. This could be done most neatly with a bit-mode mux2 component, but as there isn't one a slightly less elegant solution will be needed using an assortment of and2, invert and or2 components (alternatively it would be very easy to create a logic-level, base-thread compatible mux2 based on the existing one) loadrt and2 count=4 loadrt or2 count=2 loadrt invert count=1 addf and2.0 base-thread addf and2.1 base-thread addf and2.2 base-thread addf and2.3 base-thread addf or2.0 base thread addf or2.1 base thread addf invert.0 servo-thread net inv motion.digital-out-00 => invert.0.in and2.0.in1 and2.2.in1 net vmode invert.0.out => and2.2.in1 and2.3.in1 net p-step stepgen.2.step => and2.0.in0 net v-step stepgen,3.step => and2.1.in0 net p-dir stepgen.2.dir => and2.2.in0 net v-dir stepgen.3.dir => and2.3.in0 net pstep-sw and2.0.out => or2.0.in0 net vstep-sw and2.1.out => or2.0.in1 net pdir-sw and2.2.out => or2.1.in0 net vdir-sw and2.3.out => or2.1.in1 net sel-step or2.0.out => parport.0.pin-NN-out net sel-dir or2.1.out => parport.0.pin-NN-out That should allow you to switch from one mode to another with M64 P0 and back with M65 P0 Note that this is written by hand with no access to EMC2, so pin names and underlying logic can not be guaranteed. If it was my machine I think I would write it all in a comp. -- atp ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
ma-machine.hal
Description: Binary data
ma-machine.ini
Description: Binary data
------------------------------------------------------------------------------ What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers