New Project with Mesa 7I96 and THCAD-05

More
5 years 4 months ago #210972 by TexasCNC

Attachment not found

Attachment not found

Please Log in to join the conversation.

More
5 years 4 months ago #210973 by phillc54
try this as your hal file:

Attachment not found

Please Log in to join the conversation.

More
5 years 4 months ago #210993 by TexasCNC
yes sir that worked thanks now I need t wait for that Z axis motor to swap out and try it again is there anything i need to change or look at it again for the THC to be working correctly?

Please Log in to join the conversation.

More
5 years 4 months ago #211023 by TexasCNC

rodw wrote: Wire it as shown but leave the AC relay out and follow the notes below the thcad. (as Phill says use ENCB)
Install the correct bit file
add this to your hal file (make sure the encoder.01 is numbered correctly)

Code:
# --- 7i76e ENCODER SETUP FOR OHMIC SENSING--- setp hm2_7i76e.0.encoder.01.scale -1 setp hm2_7i76e.0.encoder.01.counter-mode 1

Check to make sure
hm2_7i76e.0.encoder.01.velocity is showing some data in halshow. It should be hovering around your 0 volt frequency
Download ohmic3.comp from here and from the command prompt type
Code:
sudo halcompile --install ohmic3.comp
You may need to install the linuxcnc dev tools to do this.
If a RIP build, drop the sudo

Attachment not found



Copy this to your config directory, edit the data as required for your version of the THCAD-5

Attachment not found



add this file to your ini file after your main config file
Code:
[HAL] HALUI = halui HALFILE = my_LinuxCNC_machine.hal HALFILE = spaceship_ohmic.hal

You should be good to go!


I am waiting for my Z axis motor to come in but i tried to install the comp and it didnt work i tried both ways I see the that i have the linuxcnc-dev and follow it to src components and i see the ohmic.comp file.
Is there another way to install this?

Please Log in to join the conversation.

More
5 years 4 months ago #211024 by rodw
if you type halcompile on the command line, is the program found?
If not, Try this and try it again.
Code:
sudo apt-get install linuxcnc-uspace-dev

Please Log in to join the conversation.

More
5 years 4 months ago #211026 by TexasCNC
carr@carr-pc:~$ halcompile
bash: halcompile: command not found
carr@carr-pc:~$ sudo apt-get install linuxcnc-uspace-dev
[sudo] password for carr:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linuxcnc-uspace-dev
carr@carr-pc:~$

Please Log in to join the conversation.

More
5 years 4 months ago #211036 by rodw
It does not seem you have sorted out the buildbot commands discussed with Phill earlier in this thread. Linux does not know where to look for linuxcnc files.

Please Log in to join the conversation.

More
5 years 4 months ago #211038 by phillc54
Are you getting the latest version now when you run LinuxCNC?

Open Synaptic Package Manager, click Search at the top tight and enter linuxcnc as the search term. It should show all available linuxcnc packages.

Please Log in to join the conversation.

More
5 years 4 months ago #211054 by TexasCNC
ok i had the rest of the packages unchecked and only did the 2 files that i edited. I was abe now to run that command here is what i got now:
carr@carr-pc:~$ sudo halcompile --install ohmic3.comp
[sudo] password for carr:
Traceback (most recent call last):
File "/usr/bin/halcompile", line 1512, in <module>
main()
File "/usr/bin/halcompile", line 1482, in main
process(f, mode, outfile)
File "/usr/bin/halcompile", line 1336, in process
a, b = parse(filename)
File "/usr/bin/halcompile", line 429, in parse
f = open(filename).read()
IOError: [Errno 2] No such file or directory: 'ohmic3.comp'

Please Log in to join the conversation.

More
5 years 4 months ago #211055 by TexasCNC
does this mean that it installed?

Please Log in to join the conversation.

Time to create page: 0.530 seconds
Powered by Kunena Forum