Hal configuration 7i96s + 7i85 + whb04-6

More
3 years 3 months ago - 3 years 3 months ago #275139 by routerman22
Hi All,
It has been a while since my last post, but there has been some progress in the build. This is a follow-up of :
forum.linuxcnc.org/39-pncconf/47881-index-homing-mesa-7i96s

I'm running lcnc 2.9.0

I have flased my 7i96s with (in mesact fw list):
  • 7i96s_7i85d.bin
  • 5 Axes of Step and Direction
  • 1 Encoder Input
  • 1 Smart Serial Port
  • 11 Inputs 6 Outputs
  •  
  • P1 Daughter Card 7i85
  • 5 RS-422 Serial Channels
  • 4 Encoder Inputs
HMID result: pastebin.com/u0KurYA4

As mesact does not fully support my configuration i did the base config in pncconf:
(see attachement). This works (note without the XHC-WHB04B-6 stuff)

I tested the XHC-WHB04B-6 pendant via the command line and that works well.
When i tried to integrated it into my config i get all kind of signal does not exist messages, starting from line 49 (see attachement).

The items remaining to get my build working are as follows:
- Add 4 encoder inputs from the 7i85 (differential + index) the the X,Y,Y1,Z axis (10000 ppr) to the config
- Fix the WHB04B-6 hal signal issues.

The connection of the 7i85 is as follows:
ENC0 = X
ENC1 = Y
ENC2 = Y1
ENC3 = Z

Note: i dont use lcnc for doing anything to the control loop, that is handled in the delta drive.
I need the index for doing index homing on the lcnc side.

I'm quite new to hal file editing, and i'm having a hard time figuring this out. any help would be appriciated.


 
Last edit: 3 years 3 months ago by routerman22.

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

More
3 years 3 months ago - 3 years 3 months ago #275148 by routerman22
There is progress!

I basically got the WHB pendant to work. had to comment out a lot of HALGUI stuff in my machine hal file.

Only weird thing is that the component seems to crash at some point. causing linuxcnc not to be able to detect it anymore,
And the information on the screen (pendant) to be out of date.
youtube.com/shorts/NsYFCCLa8Lc
Last edit: 3 years 3 months ago by routerman22.

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

More
3 years 3 months ago #275150 by routerman22
More progess: I added AND2 component as I'm using Delta ASDA-M to put my Y axis in Gantry mode.
it is in individual mode untill it is homed, after an IO needs to be put HIGH to allow it to go in gantry mode.
I used the following component and signals:
#*******************
#AND logic (to enable DELTA ASDA-M Y axis gantry function when Y,Y1 is homed
#*******************
loadrt and2 count=1
addf and2.0 servo-thread
net my-sigin1 and2.0.in0 <= joint.1.homed
net my-sigin2 and2.0.in1 <= joint.2.homed
net both-on [HMOT](CARD0).ssr.00.out-03 <= and2.0.out
#*******************
#end of AND logic code
#*******************

Updated files added
The following user(s) said Thank You: behai

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

More
3 years 3 months ago #275158 by routerman22
I'm having issues with the index signal. when looking in HAL, I never see it change.
This is how it is connected to my delta servo (counts work fine)
image missing https://i.imgur.com/4GhxJWV.png
image missing https://i.imgur.com/1dZdgh6.png

Not sure what is going wrong here :(

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

More
3 years 3 months ago - 3 years 3 months ago #275164 by routerman22
so on the servo i reduced it to 100ppr to make it easy to spot. and it seems to be working.
Just cant figure out how to get it done in HAL. As my changes dont seem to work
image missing https://i.imgur.com/qBJMaaM.png
Last edit: 3 years 3 months ago by routerman22.

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

More
3 years 3 months ago #275194 by routerman22
Does anybody happen to have a working encoder + index hal which I could use as the basis of mine?

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

Time to create page: 0.472 seconds
Powered by Kunena Forum