Nachrüstung CNC

More
06 Jan 2021 16:09 #194240 by thomas.heisig
Retrofit CNC was created by thomas.heisig
Halo
although I have already posted in this forum I would like to introduce myself, and immediately afterwards burden you with a problem.

My name is Thomas and will work as stonemaze in My own company and also have an German electrical engineer education .
I have already implemented a 3 axis saw with UCCNC and an ETH300 in my company which works fine with 2-fold closed loopsystem .

My new project is a retrofit of a 4+1 axle machining center (which is a real heavyweight with a total weight of 10 tons).
The axes 3 phases 500V 2.2 KW are controlled via regular VFD closed loop over PWM or clock/direction, the path encoder is to be queried via a MESA 7i95
The plan was to take a Raspberry Pi 4 Model B with 4 GB as an HMI / controller on which I have now installed Linux Debian Buster RT with LinuxCNC 2.9.0 becuse it is more flexible and give the chance zu use RT Encoder

Machine configuration
Controller - Raspberry Pi 4 Model B 4GB and USB 3.0 SSD 32GB, 32GB SDHC Disk
Software Controller - Linux Debian Buster RT with LinuxCNC 2.9.
Software CAM - W10 with Solidworks (postprocessor still unknown)
Axes every 2.2 KW VFD with PWM / clock direction and encoder 2500 increments ABZ and TTL data
wayencoder TTL-Data / ABZ DN (Siemens)
Dimensions travel distances - working range 2000 * 3000 * 500, 360 O mm limits 2200 * 4000 mm
Spindle Modbus Controled
IO PLC - S7400U 64 inputs and outputs

The following problems occurred during the planning!
- Installation of Probe Basic failed (already requested in this forum)
- Mesa 7i95 is not in the list of PNCCONF
- Establishing a Modbus connection to the PLC to evaluate the I/O

i will be very pleased if these forum wil give me support to get these thin running.

thanks

Thomas

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

More
06 Jan 2021 17:02 #194252 by PCW
Replied by PCW on topic Retrofit CNC
The 7I95 is not supported by pncconf yet but you can use a pncconf
configuration created for a 7i96 and hand edit it to work with the 7I95

Things that need changing:

Change the card name in the ini file to "7i95" ( using the "Use INI substitution for Mesa board names" option)

Change the inputs from GPIO to INMUX
that is change:

gpio.000.in
to
inmux.00.input-00

etc

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

More
06 Jan 2021 19:41 - 06 Jan 2021 19:44 #194269 by thomas.heisig
Replied by thomas.heisig on topic Nachrüstung CNC
hi,
thanks for your suport :)

the first act is done and LinuxCNC starts with gmoccapy.

the next step (Tomorow) is to rewrite the .ini file to correct the Gpio to Inmux like shown on Mesaflash --device 795 ....

I think tomorrow I can assemble the machine.

PS : Don't think I'm a grammatical spastic, but I'm not familiar with writing in foreign languages, sorry for that.
Last edit: 06 Jan 2021 19:44 by thomas.heisig.

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

More
07 Jan 2021 12:26 #194354 by thomas.heisig
Replied by thomas.heisig on topic Nachrüstung CNC
hi,

I´m using - mesaflash --device 7i95 --readhmid - for readout.

there are only 3 encoders for m,uxedQCount (0 1 2) 57 ports at all

the next is an error Parameter or pin ´hm2_7i95.watchdog.timout_ns´not found

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

More
07 Jan 2021 12:46 #194356 by PCW
Replied by PCW on topic Nachrüstung CNC
The 7I95 has 6 encoders (using multiplexed inputs these 18 signals are reduce 10 to FPGA pins)

"the next is an error Parameter or pin ´hm2_7i95.watchdog.timout_ns´not found"

This is likely a typo or editing issue or the driver failed to load for some reason

Once you get LinuxCNC to start with the 7I95, you can list all available pins with:

halcmd show all hm2

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

More
07 Jan 2021 13:44 #194359 by thomas.heisig
Replied by thomas.heisig on topic Nachrüstung CNC
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

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

More
07 Jan 2021 14:46 - 07 Jan 2021 14:49 #194360 by Clive S
Replied by Clive S on topic Nachrüstung CNC

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: 07 Jan 2021 14:49 by Clive S.

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

More
10 Jan 2021 11:31 #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 KB

File Attachment:

File Name: Foracon_41_Axis.ini
File Size:4 KB
Attachments:

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

More
10 Jan 2021 12:10 - 10 Jan 2021 12:30 #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:
#  ---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: 10 Jan 2021 12:30 by Aciera.

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

More
11 Jan 2021 00:25 #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.342 seconds
Powered by Kunena Forum