New Project with Mesa 7I96 and THCAD-05

More
5 years 4 months ago - 5 years 4 months ago #213256 by bevins
Here is an example from a working machine with one input for each axis for home and limit:
This is a two motor gantry so if yours is not then ignore joint 1 and remove the - in joint 0 sequence.

**************** HAL FILE ********************
Warning: Spoiler!



**************** INI FILE ********************
Warning: Spoiler!
Last edit: 5 years 4 months ago by bevins.

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

More
5 years 4 months ago #213277 by acourtjester
Thanks for your help, hope you have some answers. How it is wired is only one input on pi 13 of TB6, this is connected from +24 volts through the switch and back to pin 13 with NC switch. I had selected Z both home+limits I also entered the All home on pin 39 on tb 3 so it puts the All Home on the main screen, shown in the screen shot. When I use the Z arrow to move the Z or hit Z home in the lower left.
The Z axis will move but the switch push does nothing to stop it.
Also I have tried to use Hal show watch to see the switch in action but cannot find any signal name the shows it switching. If in the Pncconf I put the pin 13 for E stop and watch E stop it works just fine.  I was told to use TB3 for selecting E stop for the correct operation of the E stop button on the main screen. Now in Pncconf there is only a I/O connector 3 so I hope that is TB3. as it seems to add GPIO to the name in Hal.  I have lots of experience with other CNC software and BOB board but none for Linuxcnc.
 

File Attachment:

File Name: Linuxcncfailed.zip
File Size:265.62 KB

 

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

More
5 years 4 months ago #213283 by PCW
TB3 makes sense for ESTOP on a 7I96 but not a 7I76E
All general purpose 24V I/O on a 7I76E would be on
TB5 and TB6. If you connect 24V to 7I76Es TB3
(other than unregulated power on TB3 pins 21,21,22,24)
you will likely have fire and smoke and a non-working 7I76E...
The following user(s) said Thank You: tommylight

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

More
5 years 4 months ago #213290 by acourtjester
Thanks for the reply Luckley I did not hook anything to that pin on I/O 3 just selected it no power. I just have gut feeling I do not have a complete picture, I am getting very good help here but the info on the web is all over the place.

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

More
5 years 4 months ago - 5 years 4 months ago #213292 by phillc54
"all-home" and "Z both home + limits" will conflict. It looks from the hal file that all home takes precedence as the only connection to the 7i76 is:
Code:
net all-home     <=  hm2_7i76e.0.gpio.039.in


you may be able to manually add:
Code:
net all-home => joint.2.neg-lim-sw-in net all-home => joint.2.pos-lim-sw-in
and comment these out:
Code:
net z-neg-limit => joint.2.neg-lim-sw-in net z-pos-limit => joint.2.pos-lim-sw-in
Last edit: 5 years 4 months ago by phillc54.

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

More
5 years 4 months ago #213293 by phillc54

My setup now has a single switch for each axis, located on the moving parts, there is a switch trip at each end of travel for that axis.
If each of these is wired back individually then you could use six individual 7i76E inputs as:
X Minimum Limit + Home
X Maximum Limit
Y Minimum Limit + Home
Y Maximum Limit
Z Maximum Limit + Home
Z Minimum Limit

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

Time to create page: 0.128 seconds
Powered by Kunena Forum