Zenford Zeigler Retrofit

More
8 years 4 months ago #112053 by snoozer77
Replied by snoozer77 on topic Zenford Zeigler Retrofit
Hi Andy.
Been looking at the Hal and ini files you attached. Im looking through the linuxcnc docs to try get a better understanding of what all the code means.
I have flashed the 5i24_25_rmsvss6_8.bit config to my 5i25-25. Im now looking to do a super basic setup using 1 servo motor, drive with Tach input with resolver feedback into the 7i49.
Am i right to assume (which i should never do coz im always wrong..haha) That i could use your holbrook lathe ini and hal files, and modify them to a basic level? i have a set of your holbrook hal and ini files you posted on another forum post (Hardinge HC Bandit Retrofit) that has alot of stuff edited out.
Do you think i should start with these files and remove things like amp enables, limit switches, e stops, toolchangers etc, to get a basic setup to start up. I tried running the files as is, but get an error on startup.

Any thoughts would be greatly appreciated.

Cheers

Matt

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-3.4-9-rtai-686-pae/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.7.13
Machine configuration directory is '/home/matt/linuxcnc/configs/Holbrook'
Machine configuration file is 'Holbrook.ini'
INIFILE=/home/matt/linuxcnc/configs/Holbrook/Holbrook.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=touchy
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Found file(REL): ./Holbrook.hal
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=4683
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/trivkins.ko: Unknown symbol in module
./Holbrook.hal:2: exit value: 1
./Holbrook.hal:2: insmod for trivkins failed, returned -1
See the output of 'dmesg' for more information.
4683
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:

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

More
8 years 4 months ago - 8 years 4 months ago #112076 by andypugh
Replied by andypugh on topic Zenford Zeigler Retrofit
You can experiment on the bench with a very minimal HAL. (you can even type it in line-by-line at the halcmd prompt)
Code:
halrun
starts a new HAL session. You can use tab-completrion to help with the commands from now on
Code:
loadrt hostmot2 loadrt hm2_pci loadrt threads addf hm2_5i24.0.read thread1 addf hm2_5i24.0.write thread1 start
And now things should all be working, but you can't tell.
Code:
loadusr halmeter pin hm2_5i24.0.resolver-00.position setp hm2_5i24.0.analogout.00.vale 0.2
and so on.
Last edit: 8 years 4 months ago by andypugh.

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

More
8 years 4 months ago #112103 by snoozer77
Replied by snoozer77 on topic Zenford Zeigler Retrofit
Thanks Andy. Will start with that and go from there. :)

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

More
8 years 4 months ago #112127 by snoozer77
Replied by snoozer77 on topic Zenford Zeigler Retrofit
After playing around with the halmeter for a while. I didnt have much luck with setp hm2_5i24.0.analogout.00.vale 0.2. i have no pin or parameter in halmeter with hm2_5i24.0.analogout.00

At the moment, i have 1 resolver plugged into the 7i49, using cable power. i was hoping to excite the resolver and maybe show a position or angle or anything in halmeter or halscope, but i dont understand the software setup enough to achieve much.

Is there any documentation on the required hal commands and 7i49 setup other than whats in the 7i49 manual??

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

More
8 years 4 months ago #112133 by andypugh
Replied by andypugh on topic Zenford Zeigler Retrofit
I was guessing the name of the analogue outputs. As I said, tab-completion is a big help for getting the names right.

also, you can use the HAL "show" commands
Code:
show pin show sig show funct

With the resolver wired in, and the 7i49 connected to the resolver, and the 5i24 powered and with the read/write threads running, then you should be able to see the resolver position in a halmeter.
The following user(s) said Thank You: snoozer77

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

More
8 years 4 months ago #112161 by snoozer77
Replied by snoozer77 on topic Zenford Zeigler Retrofit
It always amazes me how hardware actually runs much better when you plug them into the correct connector. Had the 7i49 plugged into P2 instead of P4...... If i keep that stuff up, this will be a long build... haha

Thanks for the hal commands,

There is something oddly satisfying about watching the signals in halmeter and halscope....... maybe its just a noob thing... haha

Thanks again

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

Time to create page: 0.508 seconds
Powered by Kunena Forum