First Start Up - E Stops

More
15 Jan 2025 02:34 - 15 Jan 2025 02:37 #318993 by notJamesLee
First Start Up - E Stops was created by notJamesLee
Hi Friends, 

Not sure this is the right place for this but here we are. I just about finishing transitioning my Queenbee Pro ( Link ) from mach 3 to LCNC with the help of a mesa 7i96s card. I have been following  this guide  as much as made sense and was able to get through the setup. My intent was to get though the setup then tune everything in once i am sure it all works. I am building a tangential cutter with a servo motor as the cutting head so i went with an XYZA setup and didn't include a spindle.

Now that i am through the setup i use the new desktop shortcut to open and start to try and run the machine and i click the estop in the top right (gmocappy) and get the following message, "External ESTOP is set, could not change state!". 

I have two e stops but one is configured in the pncconf as a custom input (was planning on putting them in series eventually or making the custom input an estop function if i can figure that out) and they're both NC. It doesn't go through any motors/drivers its simply ran from +24V Power Supply --> External Estop-->  Mesa Pin. Is this correct??

I am happy to provide any files or logs that can assist. 

 
Last edit: 15 Jan 2025 02:37 by notJamesLee. Reason: chagne title and fixing links

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

More
15 Jan 2025 03:00 #318995 by rodw
Replied by rodw on topic First Start Up - E Stops
The better way is to use estop_latch. There is a tutorial here
forum.linuxcnc.org/47-hal-examples/25861-external-e-stop
it is possible to daisy chain multiple estop_latch components together but its not documented anywhere
I found drawing a diagram of the connections helps to work it out.
Here is  video which may be useful

 

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

More
15 Jan 2025 06:10 - 15 Jan 2025 16:50 #319003 by notJamesLee
Replied by notJamesLee on topic First Start Up - E Stops
Thanks for the reply.

I added the code in the linked tutorial, does that bind it to a specific pin? It looks like the last line (below) assigns it to pin10? should I change this to the pin i have mine currently wired to? 
net remote-estop estop-latch.0.fault-in <= parport.0.pin-in10-not
The video so far is very informative and ill use it as a reference when im out working on it tomorrow but no info on how to daisy chain them. I assume since they're NC i can just wire them in series to one input pin? or is that a no-no? 
Last edit: 15 Jan 2025 16:50 by notJamesLee. Reason: grammar and code formatting

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

More
16 Jan 2025 04:06 #319086 by notJamesLee
Replied by notJamesLee on topic First Start Up - E Stops
okay so i went to that linked tutorial I commented out the existing estop loop and ended up actually testing code from the last entry on the first page (copied and pasted below) but modified with my pin for the estop.
Code i am using:
loadrt estop_latch addf estop-latch.0 servo-thread net estop-loopout iocontrol.0.emc-enable-in <= estop-latch.0.ok-out net estop-loopin iocontrol.0.user-enable-out => estop-latch.0.ok-in net estop-reset iocontrol.0.user-request-enable => estop-latch.0.reset net remote-estop estop-latch.0.fault-in <= hm2_[HOSTMOT2](7i96s).0.gpio.040.in_not



Now i am getting a similar error where it it thinks pins are double assigned. Should I have commented out other pin assignments? Or could i not be assinging the pin corectly? 
error message:
.hal:258: Signal 'a-pos-fb' can not add OUT pin 'hm2_7i96s.0.encoder.00.position'. It already has OUT pin ' hm2_7i96s.0.stepgen.03.position-fb' 2034

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

More
16 Jan 2025 04:41 #319087 by rodw
Replied by rodw on topic First Start Up - E Stops
Progress!
I always comment out the line causing the error(s) so Linuxcnc opens, then review things in halshow and your hal file to get the right pin name etc but by the looks of this, its telling you the line number and the fault so maybe change the signal name to something like aa-pos_fb then review

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

More
16 Jan 2025 04:54 #319089 by notJamesLee
Replied by notJamesLee on topic First Start Up - E Stops
We're getting somewhere!

So i went to line 258 and changed the signal name like you suggested and now i am getting a new error. It doesn't seem to recognize the way i called the pin out. I wish i was more familiar with how to trouble shoot these, see error below:
....hal:334: Ini variable ' [HOSTMOT2](7i96s)' not found

i don't know what the HOSTMOT function does in this context but its not in anywhere else in the file other than being loaded at the top of the .hal file

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

More
16 Jan 2025 06:23 #319092 by rodw
Replied by rodw on topic First Start Up - E Stops
The ini variable is used to get your card settings from the ini file (Mesa 7i96s uses HOSTMOT2 driver)
Pncconf does this but personally, I hate it as it makes it hard to understand your hal file
You need to share your hal and ini files.

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

More
16 Jan 2025 07:08 #319095 by notJamesLee
Replied by notJamesLee on topic First Start Up - E Stops
I definitely could've mangled something in the setup, files attached. Like i said before i was going broad strokes with the intention of tuning it in once i got the machine moving but i don't think i mess anything up too bad. 

File Attachment:

File Name: Tan_Cutter.ini
File Size:5 KB

File Attachment:

File Name: Tan_Cutter.hal
File Size:12 KB
Attachments:

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

More
16 Jan 2025 07:56 - 16 Jan 2025 07:57 #319097 by rodw
Replied by rodw on topic First Start Up - E Stops
Well, looks like you have
# --- ESTOP-EXT ---
net estop-ext     <=  hm2_7i96s.0.inm.00.input-03

so you should remove or comment out this line
net remote-estop estop-latch.0.fault-in <= hm2_[HOSTMOT2](7i96S).0.gpio.04.in_not
and replace it with this
net estop-ext  => estop-latch.0.fault-in
Last edit: 16 Jan 2025 07:57 by rodw.

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

More
16 Jan 2025 19:54 - 16 Jan 2025 21:18 #319140 by notJamesLee
Replied by notJamesLee on topic First Start Up - E Stops
Great thank you!

I go the same error "..a-pos-_fb..." so i followed your advice and changed that to "aa-pos_fb" and got the program to open. Hooray!

naturally i powered the machine on with the touch button and went to press the estop wired to the mesa to test and the external estop, and it did nothing on the screen not stopped the machine. 

I seem to have mixed up some motor assignments so ill need to now find a way to reassign motors without going back through the pnconf setup again, any suggestions?
Last edit: 16 Jan 2025 21:18 by notJamesLee.
The following user(s) said Thank You: rodw

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

Time to create page: 0.072 seconds
Powered by Kunena Forum