loading LinuxCNC on old smithy 1240

More
4 years 1 day ago #255612 by LPMattei
I ran halcmd again, with switch jumped out and gui up and system homed   smithy@debian:~$ halcmd show pin *8i20*
Component Pins:
Owner   Type  Dir         Value  Name
     9  float IN      0.3333333  hm2_5i20.0.8i20.0.0.angle <== rotor_angle
     9  float OUT        328.32  hm2_5i20.0.8i20.0.0.bus-voltage ==> voltage
     9  float OUT            40  hm2_5i20.0.8i20.0.0.card-temp ==> temp
     9  float IN             -0  hm2_5i20.0.8i20.0.0.current <== current
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.fault.U-current
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.fault.U-current-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.fault.V-current
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.fault.V-current-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.fault.W-current
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.fault.W-current-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.fault.bus-high
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.fault.bus-high-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.fault.bus-overv
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.fault.bus-overv-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.fault.bus-underv
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.fault.bus-underv-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.fault.framingr
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.fault.framingr-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.fault.module
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.fault.module-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.fault.no-enable
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.fault.no-enable-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.fault.overcurrent
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.fault.overcurrent-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.fault.overrun
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.fault.overrun-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.fault.overtemp
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.fault.overtemp-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.fault.watchdog
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.fault.watchdog-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.status.brake-old
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.status.brake-old-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.status.brake-on
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.status.brake-on-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.status.bus-underv
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.status.bus-underv-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.status.current-lim
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.status.current-lim-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.status.ext-reset
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.status.ext-reset-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.status.no-enable
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.status.no-enable-not
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.status.pid-on
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.status.pid-on-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.status.sw-reset
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.status.sw-reset-not
     9  bit   OUT         FALSE  hm2_5i20.0.8i20.0.0.status.wd-reset
     9  bit   OUT          TRUE  hm2_5i20.0.8i20.0.0.status.wd-reset-not

smithy@debian:~$
     

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

More
4 years 1 day ago #255613 by LPMattei
Is there maybe something here that needs changed?

# Spindle Contactor Enable
setp hm2_5i20.0.gpio.041.is_output TRUE
setp hm2_5i20.0.gpio.041.invert_output TRUE
# Door Closed - Energizes spindle contactor
net CLOSED hm2_5i20.0.gpio.029.in_not hm2_5i20.0.gpio.041.out

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

More
4 years 1 day ago #255625 by andypugh
It looks like the 8i20 has volts and is enabled.

Open the halmeter and / or halshow and follow the spindle.0.... pins through.

There is a pid component for closed-loop spindle control, and then the bldc component, so quite a lot of places a signal could be getting lost.

Look at the signals and pins here, especially 8i20.current:
Code:
net current bldc.0.out hm2_5i20.0.8i20.0.0.current abs.0.in

This might need to be 30, now:
Code:
setp pid.0.maxoutput 1.0
That could be limiting the motor to 1A.

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

More
4 years 1 day ago #255627 by LPMattei
setp pid.0.maxoutput 30 did it. Spindle now runs.
Anything else to test before calling it good?

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

More
4 years 20 hours ago #255676 by andypugh
You probably need to adjust the spindle PID settings too (these are direct in the HAL file rather than the INI)

Possibly they need to be 30 x bigger but I would try going up in stages. You are aiming for good speed control under load, but without any oscillation or overshoot.

But, I think it is time to try making chips.

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

More
4 years 17 hours ago #255686 by LPMattei
Super, thank you, I will try that next.
Next step is to get MPG to work, I have been reading the instructions and am a bit lost, docs say the files are in there for versions above 2.6, but I'm not sure exactly what needs to be done to make it work.

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

Time to create page: 0.172 seconds
Powered by Kunena Forum