mesaCT, 7i95t and SPINx

More
2 years 9 months ago #291351 by DK8DE
Hello,I'm new to LinuxCNC and come from an electronics background, with good familiarity in C. I installed the MesaCT tool and managed to get the three steppers for XYZ working. However, in the spindle tab of the tool, I can't select anything; all buttons are greyed out. I would like to connect the SPINx to channel 5, where I assume the PWM signal is. What settings do I need to adjust in MesaCT to implement this? Writing the .hal file still confuses me a bit. Does anyone have a sample configuration, or can anyone advise what settings I need to adjust in MesaCT to get the spindle running?
Best regards, Jörg 
Edit:

Attachment not found

 

Attachment not found

On channel 5, the Dir signal switches with the change of direction, but I don't have a PWM output on Step. I have attached the configuration.Best regards, Jörg

Please Log in to join the conversation.

More
2 years 9 months ago #291814 by DK8DE
Replied by DK8DE on topic mesaCT, 7i95t and SPINx
Problem has been resolved. Here are the parts from the INI and HAL:

#### INI
[SPINDLE_0]
TYPE = pwm
PWM_TYPE = 1
PWM_FREQUENCY = 5000
SCALE = 24000



#### HAL
# hostmot2 driver
loadrt hostmot2

loadrt [HM2](DRIVER) board_ip=[HM2](IPADDRESS)
setp hm2_[MESA](BOARD).0.watchdog.timeout_ns 5000000

# THREADS
addf hm2_[MESA](BOARD).0.read servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf pid.0.do-pid-calcs servo-thread
addf pid.1.do-pid-calcs servo-thread
addf pid.2.do-pid-calcs servo-thread
addf pid.s.do-pid-calcs servo-thread
addf hm2_[MESA](BOARD).0.write servo-thread
# Spindle Connections
net spindle-vel-cmd <= spindle.0.speed-out
net spindle-vel-cmd => pid.s.command
net spindle-pid-out <= pid.s.output
net spindle-pid-out => hm2_[MESA](BOARD).0.pwmgen.00.value

########################......

#Spindel

# Spindle PWM Setup
setp hm2_[MESA](BOARD).0.pwmgen.00.output-type [SPINDLE_0](PWM_TYPE)
setp hm2_[MESA](BOARD).0.pwmgen.pwm_frequency [SPINDLE_0](PWM_FREQUENCY)
setp hm2_[MESA](BOARD).0.pwmgen.00.scale [SPINDLE_0](SCALE)

# Spindle Feedback
setp spindle.0.at-speed true

# Spindle Command Pins
net spindle-on <= spindle.0.on
net spindle-on => pid.s.enable
net spindle-on => hm2_7i95.0.ssr.00.out-00
net spindle-cw <= spindle.0.forward
net spindle-ccw <= spindle.0.reverse
net spindle-brake <= spindle.0.brake

# Spindle Enable
net spindle-on <= spindle.0.on
net spindle-on => hm2_[MESA](BOARD).0.pwmgen.00.enable

# standard components
loadrt pid names=pid.0,pid.1,pid.2,pid.s

Please Log in to join the conversation.

More
2 years 9 months ago #291988 by Sbvr4
Replied by Sbvr4 on topic mesaCT, 7i95t and SPINx
Hi Jorg,

How did you go about solving the issue? I am experiencing the same problem.

Thank you,
Sean

Please Log in to join the conversation.

More
2 years 8 months ago #294715 by Sergiy_J_S_Automatic
Your configuration files helped me. I suffered with this problem for 2 weeks.

Please Log in to join the conversation.

More
2 years 8 months ago #294717 by Sergiy_J_S_Automatic
If you haven't solved your question, I can try to help.

Please Log in to join the conversation.

More
2 years 6 months ago #299325 by DK8DE
Replied by DK8DE on topic mesaCT, 7i95t and SPINx
Hello,All my issues are resolved. The spindle is running, and the end stops and stepper motors are also functioning. For those looking for an example, I have attached the files.
 

Attachment not found


 

Attachment not found


 

Attachment not found

 
 

Attachment not found


Attachment not found

Please Log in to join the conversation.

More
2 years 4 months ago #302853 by Hastrh2o
Replied by Hastrh2o on topic mesaCT, 7i95t and SPINx
Hi,

I'm configuring a kind of lathe with one 5i25 and two 7i77 and I'm facing the same problem : in the spindle tab of Mesa CT, I can't select anything; all buttons are greyed out.
Where does it come from ?

Jôrg, did you terminate the configuration by hand or with Mesa CT? You did'nt explained what's wrong with your spindle tab.

I've another problem with analog outputs but I just saw Peter's answer ( forum.linuxcnc.org/24-hal-components/528...how-and-is-not-found ) so it should be ok. In case it would be related... I would try it tomorrow.

 

Please Log in to join the conversation.

More
2 years 4 months ago #302905 by JT
Replied by JT on topic mesaCT, 7i95t and SPINx
Thanks for posting the files, I'll incorporate that into Mesa CT as soon as possible.

JT

Please Log in to join the conversation.

More
2 years 3 months ago #305109 by AirRacer
Replied by AirRacer on topic mesaCT, 7i95t and SPINx
How was this resolved? I'm using MesaCT v 2.1.4 to configure 7i97T+7i76 and I also have a spindle tab with all option grayed out. I'm planning to use the TB4 spindle output output on 7i76.

Please Log in to join the conversation.

Time to create page: 0.121 seconds
Powered by Kunena Forum