Nachrüstung CNC

More
5 years 9 months ago - 5 years 9 months ago #194360 by Clive S
Replied by Clive S on topic Nachrüstung CNC

thomas.heisig wrote: ok, i get LinuxCNC running after setup new on PCNconf as 3 Axis.

(at this time i study the HAL tutorial , a little bit dry but .... )

where is it posible to change gpio to Inmux ?
i havent found it in the mashine .hal or . ini

With linuxcnc running.
Open up a terminal and type.
halcmd show all hm2

That should give you a list of all the pins.

You edit the hal file. With a text editor.
Last edit: 5 years 9 months ago by Clive S.

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

More
5 years 9 months ago #194710 by thomas.heisig
Replied by thomas.heisig on topic Nachrüstung CNC
hi,

i think i am to stupid to fin these gpio.000.in in the .HAL
or what did i do wrong ?



File Attachment:

File Name: Foracon_41_Axis.hal
File Size:12.01 KB

File Attachment:

File Name: Foracon_41_Axis.ini
File Size:4.45 KB

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

More
5 years 9 months ago - 5 years 9 months ago #194716 by Aciera
Replied by Aciera on topic Nachrüstung CNC
I'm sorry got it wrong.

[edit]
Looking at your .hal file it seems that you have not used any digital inputs or outputs yet:
Code:
# ---digital in / out signals---

so apparently you have not declared any in the pncconfig tool. So you can just declare by adding them manually to your .hal file using the form:

hm2_7i95.0.inmux.00.input-00

As an example for input number 0.
Last edit: 5 years 9 months ago by Aciera.

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

More
5 years 9 months ago #194823 by andypugh
Replied by andypugh on topic Nachrüstung CNC
The suggestion from CliveS was a good one.

Start LinuxCNC with your current config.

Open a terminal.

Type: "halcmd show pin > pins.txt"
Type; "halcmd show param > param.txt"

And then keep the two files as reference.

For the pins that are _not_ hosmtot2 (hm2) you can generally find the documentation for what they do here: linuxcnc.org/docs/2.8/html/
in the section "Realtime components and kernel modules" and the section above that.

So, fo example, to find out what a "halui.xxxxx" pin is for, look in the "halui" manual page.

The exception is "spindle.xxxxx", "axis.xxxx" and "joint.xxxx". Those all belong to the "motion" module.

Don't be too overwhelmed by all the pins, you won't ever need 90% of them.
The following user(s) said Thank You: Clive S

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

Time to create page: 0.211 seconds
Powered by Kunena Forum