[SOLVED]How to configure the PWM signal in a MESA 7i96 for a spindle?

More
11 Apr 2022 21:37 #239980 by PCW
At the minimum. you would need to link the software PWM output pin in
hal to the SSR used for PWM output.

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

More
11 Apr 2022 22:36 #239986 by Nest
Ok, but what is the pin? I have tested all of them and it doesn't work.
I'm sure it's easy but I don't see it

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

More
11 Apr 2022 22:52 #239992 by PCW
pwmgen.0.pwm

so for example

net myslowpwm pwmgen.0.pwm hm2_7i96.0.ssr.00.out-03

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

More
12 Apr 2022 07:13 #240019 by Nest
hi, i have tested it but no work

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

More
12 Apr 2022 13:58 #240046 by PCW
It does work but you need to setup the PWMGen parameters and connect the
required PWM pins

Did you read the pwmgen manual page?

Can you post you current hal file here?

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

More
12 Apr 2022 19:22 #240074 by Nest
Hi, well it's already solved, I followed this manual
linuxcnc.org/docs/2.8/html/examples/spindle_en.html

The problem I had was in the parameters. Now I have another problem, I have broken the optocoupler of the spindle electronics, I did not realize it and it connects 5v directly from the source and I did not put a limiting resistor on it and I have broken the diode, tomorrow I will buy a replacement to repair it ;(

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

More
19 Apr 2022 17:11 #240668 by Nest
Hi, good day everyone, sorry by delay i'm had very work.
I repair my electronic of spindle, i have change the optocoupler and at now my spindle work fine, better than i used the previous port (TB1/TB2 port 4)
but at now i want to use the other port TB3 (output 1) for other PWM signal, i want to install a laser of 20W.
I have add other spindle at the HAL in the liner
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_spindles=[EMCMOT]MAX_SPINDLES
MAX_SPINDLES = 2 in the archive .INI

It's generated other PINS whit the spiendle 1
I configure all like spindle 0 but changeing few names custom.


Whe i try run the spindle 1 with command M3 S1000 $1 the menssage the LinuxCNC is invalid spindle number in spindle speed command
Can someone help me

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

More
21 Apr 2022 19:07 #240807 by Nest
Hi i'm stuck, can someone help me to set two spindles?
thank you

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

More
21 Apr 2022 21:36 #240816 by tommylight
Upload here the hal and ini files, please.
The following user(s) said Thank You: Nest

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

More
21 Apr 2022 22:29 #240829 by Nest
Ok, thanks you so much

File Attachment:

File Name: CNC3040Z-D...4-21.ini
File Size:5 KB

File Attachment:

File Name: CNC3040Z-D...4-21.hal
File Size:10 KB

File Attachment:

File Name: custom.hal
File Size:2 KB

File Attachment:

File Name: custom_postgui.hal
File Size:1 KB

File Attachment:

File Name: pyvcp-panel.xml
File Size:3 KB
Attachments:

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

Moderators: PCWjmelson
Time to create page: 0.159 seconds
Powered by Kunena Forum