Mesa 5i25 + 7i77D can't cofig

  • Taichi
  • Taichi's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
06 May 2021 20:26 #208155 by Taichi
Replied by Taichi on topic Mesa 5i25 + 7i77D can't cofig
PCW, I changed the value max-output to 0. Now the x-axis accelerates to 500mm per minute without error.

Adjusted all 5 axes. When switched on all together, the machine makes a slight noise. Today I connected the limit and home switches. Tomorrow I will connect the buttons on the front panel and the pumps. Everything is going well.

But there are questions about the logic of the switches. When I manually move the shaft to the limit switch, I can continue to move. How to adjust the inability to move on? I don't want to damage the machine.

Also made a mistake in calculating the gear ratio. I forgot to count the ball screw transmission. I will try to solve this problem myself.

Please tell me what the values should be on FERROR and MIN-FERROR?

Thx you for helping!

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

More
06 May 2021 22:58 #208165 by PCW
Replied by PCW on topic Mesa 5i25 + 7i77D can't cofig

But there are questions about the logic of the switches. When I manually move the shaft to the limit switch, I can continue to move. How to adjust the inability to move on? I don't want to damage the machine.


Activating a limit switch should cause a fault in LinuxCNC and disable the drives.
If it does not, its either not detected (wiring issue) or not connected properly in hal

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

  • Taichi
  • Taichi's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
07 May 2021 08:16 #208187 by Taichi
Replied by Taichi on topic Mesa 5i25 + 7i77D can't cofig
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 ?
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
07 May 2021 11:32 - 07 May 2021 12:14 #208197 by bevins
Replied by bevins on topic Mesa 5i25 + 7i77D can't cofig
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:
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:
net cycle-start <= hm2_5i25.0.7i77.0.0.input-16 halui.mode.auto halui.program.run

and estop something like this:
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:
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: 07 May 2021 12:14 by bevins.

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

  • Taichi
  • Taichi's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
07 May 2021 12:21 - 07 May 2021 12:31 #208207 by Taichi
Replied by Taichi on topic Mesa 5i25 + 7i77D can't cofig
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: 07 May 2021 12:31 by Taichi.

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

More
07 May 2021 12:39 - 07 May 2021 12:40 #208210 by bevins
Replied by bevins on topic Mesa 5i25 + 7i77D can't cofig

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: 07 May 2021 12:40 by bevins.

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

More
07 May 2021 12:54 #208212 by bevins
Replied by bevins on topic Mesa 5i25 + 7i77D can't cofig

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.078 seconds
Powered by Kunena Forum