Spindle Tool

More
22 Jan 2013 17:33 #28947 by tld70
Replied by tld70 on topic Spindle Tool
Hello ArcEye,

i need a spindle orientation,
now i have seen in version 2.6 there are pins motion.spindle-orient.
i think this will work, but not sure.
can I use your IO also in version 2.6

regards
Thomas

Please Log in or Create an account to join the conversation.

More
22 Jan 2013 17:50 #28951 by ArcEye
Replied by ArcEye on topic Spindle Tool
Hi

No, not without changes, the code for iocontrol changed in 2.6, but I have posted a version of orient for 2.5.1 on your other post

regards

Please Log in or Create an account to join the conversation.

More
22 Jan 2013 20:58 #28965 by ArcEye
Replied by ArcEye on topic Spindle Tool
Hi

That proved far easier than anticipated, did all the edits directly in diff

I have built and run the new version against a RIP install of 2.6-pre~. Works as it should, exactly like the 2.5 version, same pin names etc.



I have included a binary which should just run under 2.6 on 10.04 plus the code if you need to re-compile

regards


File Attachment:

File Name: ioControl-2-6.zip
File Size:76 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
22 Jan 2013 22:08 #28968 by tld70
Replied by tld70 on topic Spindle Tool
Thanks for your fast help.

But Linuxcnc dont start up with your IO
it starts with the original IO
attached is the error file

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.6.0-pre0-3718-g4a5c53e
Machine configuration directory is '/home/chironfz16/linuxcnc/configs/demo_sim_cl'
Machine configuration file is 'demo_sim_cl.ini'
INIFILE=/home/chironfz16/linuxcnc/configs/demo_sim_cl/demo_sim_cl.ini
PARAMETER_FILE=demo_sim_cl.var
TASK=milltask
HALUI=
DISPLAY=axis
DISABLE_SERVER=
SERVER_PATH=
SERVER_ARGS=
SERVER_LOG=
Starting LinuxCNC...
Starting redis server program:
redis server started as: 'redis-server ', logging to: /dev/null
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
io started
libnml/cms/cms_cfg.cc 622: cms_config: can't open '/usr/src/build-2.6.0~pre/configs/common/linuxcnc.nml'. Error = 2 -- No such file or directory
libnml/nml/nml.cc 368: NML: cms_config returned -1.

**********************************************************
* Current Directory = /home/chironfz16/linuxcnc/configs/demo_sim_cl
*
**********************************************************
* BufferName = toolCmd
* ProcessName = tool
* Config File = /usr/src/build-2.6.0~pre/configs/common/linuxcnc.nml
* error_type = 0 (NML_NO_ERROR)
************************************************************

libnml/cms/cms_cfg.cc 622: cms_config: can't open '/usr/src/build-2.6.0~pre/configs/common/linuxcnc.nml'. Error = 2 -- No such file or directory
libnml/nml/nml.cc 368: NML: cms_config returned -1.

**********************************************************
* BufferName = toolSts
* ProcessName = tool
* Config File = /usr/src/build-2.6.0~pre/configs/common/linuxcnc.nml
* error_type = 0 (NML_NO_ERROR)
************************************************************

libnml/cms/cms_cfg.cc 622: cms_config: can't open '/usr/src/build-2.6.0~pre/configs/common/linuxcnc.nml'. Error = 2 -- No such file or directory

**********************************************************
* BufferName = emcError
* ProcessName = tool
* Config File = /usr/src/build-2.6.0~pre/configs/common/linuxcnc.nml
* error_type = 3 (NML_INVALID_CONFIGURATION)
************************************************************

halcmd loadusr io started
INFO CLASSICLADDER- No ladder GUI requested-Realtime runs till HAL closes.
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=5099
Killing task redis-server, PID=5098
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
Can not find -sec REDIS -var DISABLE_SERVER -num 1
Can not find -sec REDIS -var SERVER_PATH -num 1
Can not find -sec REDIS -var SERVER_ARGS -num 1
Can not find -sec REDIS -var SERVER_LOG -num 1
emcToolCmd buffer not available
toolSts buffer not available
emcError buffer not available
can't connect to NML buffers in /usr/src/build-2.6.0~pre/configs/common/linuxcnc.nml
<commandline>:0: io exited without becoming ready
demo_sim_cl.hal:28: Pin 'iocontrol.0.user-enable-out' does not exist
5099
PID TTY STAT TIME COMMAND
5098
PID TTY STAT TIME COMMAND
5098 ? Dl 0:00 redis-server
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[ 2035.638451] I-pipe: Domain RTAI registered.
[ 2035.638461] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 2035.638463] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 2035.638468] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 2035.638470] PIPELINE layers:
[ 2035.638473] f8367e20 9ac15d93 RTAI 200
[ 2035.638475] c085cb20 0 Linux 100
[ 2035.658880] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 2035.659027] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 2035.659031] RTAI[sched]: hard timer type/freq = APIC/12470070(Hz); default timing: periodic; linear timed lists.
[ 2035.659034] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2194516000 hz.
[ 2035.659037] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 2035.659140] RTAI[usi]: enabled.
[ 2035.741437] RTAI[math]: loaded.
[ 2035.815087] creating ladder-state
[ 2036.306749] RTAI[math]: unloaded.
[ 2036.367381] SCHED releases registered named ALIEN RTGLBH
[ 2036.380894] RTAI[malloc]: unloaded.
[ 2036.480014] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 2036.483101] I-pipe: Domain RTAI unregistered.
[ 2036.483110] RTAI[hal]: unmounted.
Attachments:

Please Log in or Create an account to join the conversation.

More
22 Jan 2013 23:04 - 22 Jan 2013 23:08 #28973 by ArcEye
Replied by ArcEye on topic Spindle Tool
Yeah, I forgot that linuxcnc.nml was hard coded, we had this trouble last time. :angry:

ibnml/cms/cms_cfg.cc 622: cms_config: can't open '/usr/src/build-2.6.0~pre/configs/common/linuxcnc.nml'. Error = 2 -- No such file or directory


I built the module from a RIP install, you will need to build 2.6 from sources and substitute the the ioControl.cc file in the zip for the one at ../src/emc/iotask/ and then the paths will be in the right place.

Hang fire for a little while though whilst I try to reconfigure the --prefix setting without actually installing anything

regards
Last edit: 22 Jan 2013 23:08 by ArcEye.

Please Log in or Create an account to join the conversation.

More
22 Jan 2013 23:15 #28974 by ArcEye
Replied by ArcEye on topic Spindle Tool
OK

Try this one, I can't test it because the path prefix is different to that on my machine, but it should match that of an install rather than a RIP build

regards


File Attachment:

File Name: ioControl-2-6-mk2.zip
File Size:67 KB
Attachments:
The following user(s) said Thank You: tld70

Please Log in or Create an account to join the conversation.

More
23 Jan 2013 00:17 #28977 by tld70
Replied by tld70 on topic Spindle Tool
Hi ArcEye,

I installed and it works www.linuxcnc.org/media/kunena/emoticons/smile.png

The next few days I will implent the orient and test.

Thank you

Thomas

Please Log in or Create an account to join the conversation.

More
23 Jan 2013 00:58 #28978 by ArcEye
Replied by ArcEye on topic Spindle Tool
You're welcome

I have never tried using orient so will be interested to see how you get on

regards

Please Log in or Create an account to join the conversation.

Time to create page: 0.108 seconds
Powered by Kunena Forum