Mesa 5i25 + 7i77D can't cofig

More
5 years 5 months ago #208187 by Taichi
Today i connected buttons Estop, Cycle Start, Abort and 4 another input signals (pump and solenoid)
In .hal file pncconfig created all pins x-home, x-max, estop, cycle start etc.
As i said yesterday, limit switches and buttons change their state in halshow.
Gmoccapy not response for any external signal.
ENA+ and ENA- connected to drivers directly.
I think that pncconfig cant create all logic in hal file. Mast be more nets ?
Code:
external output signals # --- MACHINE-IS-ENABLED --- net machine-is-enabled => hm2_5i25.0.7i77.0.0.output-00 net spindle-enable => hm2_5i25.0.7i77.0.0.output-01 # external input signals # --- X --- net min-x <= hm2_5i25.0.7i77.0.0.input-00-not net home-x <= hm2_5i25.0.7i77.0.0.input-01-not net max-x <= hm2_5i25.0.7i77.0.0.input-02-not # --- Z --- net min-z <= hm2_5i25.0.7i77.0.0.input-03-not net home-z <= hm2_5i25.0.7i77.0.0.input-05-not net max-z <= hm2_5i25.0.7i77.0.0.input-04-not # --- A --- net home-a <= hm2_5i25.0.7i77.0.0.input-06-not # --- B --- net min-b <= hm2_5i25.0.7i77.0.0.input-10-not net home-b <= hm2_5i25.0.7i77.0.0.input-12-not net max-b <= hm2_5i25.0.7i77.0.0.input-11-not # --- Y --- net min-y <= hm2_5i25.0.7i77.0.0.input-08-not net home-y <= hm2_5i25.0.7i77.0.0.input-07-not net max-y <= hm2_5i25.0.7i77.0.0.input-09-not # --- ESTOP-EXT --- net estop-ext <= hm2_5i25.0.7i77.0.0.input-22 # --- CYCLE-START --- net cycle-start <= hm2_5i25.0.7i77.0.0.input-16 # --- ABORT --- net abort <= hm2_5i25.0.7i77.0.0.input-17-not

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

More
5 years 5 months ago - 5 years 5 months ago #208197 by bevins
Post your ini and hal's.

It's fine to have your inputs connected to your signals but are they connected to joints?

Something like this:
Code:
net min-x => joint.0.neg-lim-sw-in net home-x => joint.0.home-sw-in net max-x => joint.0.pos-lim-sw-in

pncconf is good for initial config, then you need to edit by hand....

Cycle Start button:
Code:
net cycle-start <= hm2_5i25.0.7i77.0.0.input-16 halui.mode.auto halui.program.run

and estop something like this:
Code:
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_5i25.0.7i77.0.0.input-22-not

And here is a bonus:
Code:
net machine-is-on => hm2_5i25.0.7i77.0.0.output-00 net spindle-enable spindle.0.on => hm2_5i25.0.7i77.0.0.output-01
Last edit: 5 years 5 months ago by bevins.

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

More
5 years 5 months ago - 5 years 5 months ago #208207 by Taichi
Thx Bevins for answer.
While waiting for an answer, I tried to set up the connection myself. I only managed to connect the button on the panel with the virtual button. When I press the emergency stop, the machine also turns off on the screen. Everything else fails because I don't know the correct syntax in halui. LinuxCNC crashes with an error.
Tell me where you can find a simple but detailed instruction on logic and connections in halui. So that I could create custom buttons and connect them to the joints.
Thanks.
Last edit: 5 years 5 months ago by Taichi.

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

More
5 years 5 months ago - 5 years 5 months ago #208210 by bevins

Taichi wrote: Thx Bevins for answer.
While waiting for an answer, I tried to set up the connection myself. I only managed to connect the button on the panel with the virtual button. When I press the emergency stop, the machine also turns off on the screen. Everything else fails because I don't know the correct syntax in halui. LinuxCNC crashes with an error.
Tell me where you can find a simple but detailed instruction on logic and connections in halui. So that I could create custom buttons and connect them to the joints.
Thanks.


custom buttons for joints? for jogging?

linuxcnc.org/docs/devel/html/hal/intro.html
linuxcnc.org/docs/devel/html/hal/tutorial.html
Last edit: 5 years 5 months ago by bevins.

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

More
5 years 5 months ago #208212 by bevins

Taichi wrote: Thx Bevins for answer.
LinuxCNC crashes with an error.


The error tells you what the problem is.

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

Moderators: cmorley
Time to create page: 0.452 seconds
Powered by Kunena Forum