Interface signals for .hal files and PLC programm

More
06 Jul 2022 14:58 #246720 by Diel
Hi everyone.
I am new on Linux CNC but I am usual with CNC machines and CNC controlers. I used to work for a machine tool builder implementing Siemens, Fagor, Heidenhain, Fidia and others brands of CNC.

I am finishing my first and second projects but I have a few doubts.

On the other controls that I have used, we have a list of interface signals between the PLC and the CNC. Once we have the hal files on the Linux CNC, I think we can create the link to the linux cnc signals to be used on the PLC if needed. But still I have nbot found a list of the Linux interface signals that can be used on the hal files to be linked to the PLC.

In this particular case, I need to switch on a relay whenever the spindle will run with M3 or M4.
I also need to implement the oriented stopĀ  on the spindle for an automatic tool changer (what I am studying how to do it on the Linux CNC).

I will be very thankfull for any tips, documentation or comments on those topics.

Thank you all in advance.

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

More
07 Jul 2022 00:48 #246766 by cmorley
The following user(s) said Thank You: Diel

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

More
07 Jul 2022 14:16 #246804 by Diel
Hi there.
I figure out how to implement the M3 and M4 command to the PLC. I am working on the M19 and the tool changer.
Would anyone have any examples on automatic tool changers? I do have a fixed position 21 positions disc as a magazine.
Z movements will engage the tool on the spindle.

Any tips will help.

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

More
11 Jul 2022 19:06 #247096 by Diel
Hi there,I checked the link you send. I found it very useful. Thank you.
However, the signal "spindle.N.orient" that I think I have to use seams to do not work.
The N I believe is my spindle number. Once I have just one spindle, I belive N should be 0 or 1.

But now I think I should use 9 once in my CNC.ini PNCCONFIG make the configuration like:
#********************
# Axis X
#********************
[AXIS_0]
TYPE = LINEAR
HOME = 0.0
FERROR = 10.0

....
#********************
# Spindle
#********************
[SPINDLE_9]
P = 0
I = 0
D = 0

Thank you very much. I will try again with 9.

"spindle.N.orient" - (out,bit) Indicates start of spindle orient cycle. Set by M19. Cleared by any of M3,M4,M5. If spindle-orient-fault is not zero during spindle-orient true, the M19 command fails with an error message.

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

More
16 Jul 2022 11:28 #247449 by andypugh
The signals available depends on what components are loaded.
You will always have all the pins here:
linuxcnc.org/docs/stable/html/man/man9/motion.9.html
And
linuxcnc.org/docs/stable/html/man/man1/io.1.html
And nearly always:
linuxcnc.org/docs/stable/html/man/man1/halui.1.html

These are from "motion", "io" and "halui" respectively.

For the rest, expand the "Commands and userspace components" and "Realtime components and kernel modules" sections here: linuxcnc.org/docs/stable/html/ It's worth quickly looking through them all (especially the realtime ones) just to get a feel for what is available.
The following user(s) said Thank You: Diel

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

Time to create page: 0.064 seconds
Powered by Kunena Forum