7i76e - Spindle FWD/ENA ok, but no speed output

  • Muftijaja
  • Away
  • Senior Member
  • Senior Member
More
25 Feb 2025 00:20 #322543 by Muftijaja
Hello together,
another question and problem with my LCNC config.
After solving installation, homing, network, latency problems with your help, I could make the next step and check my spindle output function.
I'm using a chinese 2,2kW standard spindle with a Hitachi WJ200 VFD, parameters set with Hitachi proDrive, the FWD/Stop control is working correctly, but I cannot measure any volts at the Spindle Output of my 7i76e TB4. The electronic pot gets 10V from an external voltage source, these 10V are measureable at TB4, Pin 3.
Im using Probe Basiv V.5 under Debian 12 and LCNC 2.9.3. on a Lenovo Think Centre M92p Tiny, 8 GB i5 2900 GHz.
I set the output with MDI S6000 and can see, that spindle-out goes to 100 (rps), Spindle-enable goes on, but I can not see any voltage at Pin 3.
Do you have any idea what is going wrong here?

Wiring:
8 Dir + STP (Hitachi WJ200 D2)
7 Dir - GND
6 En + STA  (Hitachi WJ200 D1)
5 En - GND
4 nc
3 SPI + +10V external voltage
2 SPI OUTPUT  -> Analog In O
1 SPI -       -> GND, L


INI:
MAX_OUTPUT = 24000.0
OUTPUT_SCALE = 24000
OUTPUT_MIN_LIMIT =  1000
OUTPUT_MAX_LIMIT = 24000

HAL:
#    SPINDLE
#  ************
# ---digital potentionmeter output signals/setup---

setp   hm2_7i76e.0.7i76.0.0.spinout-minlim    [SPINDLE_0]OUTPUT_MIN_LIMIT
setp   hm2_7i76e.0.7i76.0.0.spinout-maxlim    [SPINDLE_0]OUTPUT_MAX_LIMIT
setp   hm2_7i76e.0.7i76.0.0.spinout-scalemax  [SPINDLE_0]OUTPUT_SCALE
setp   hm2_7i76e.0.7i76.0.0.spindir-invert true

net pdnt.spindle-speed-abs   => hm2_7i76e.0.7i76.0.0.spinout
net pdnt.spindle.is-on       => hm2_7i76e.0.7i76.0.0.spinena
net spindle-cw               => hm2_7i76e.0.7i76.0.0.spindir
net spindle-vel-cmd-rpm-abs  <= spindle.0.speed-out-abs => hm2_7i76e.0.7i76.0.0.spinout

# ---setup spindle control signals---

net spindle-vel-cmd-rps        <=  spindle.0.speed-out-rps
    #net spindle-vel-cmd-rpm        <=  spindle.0.speed-out
    #net spindle-enable             <=  spindle.0.on
net spindle-cw                 <=  spindle.0.forward
net spindle-ccw                <=  spindle.0.reverse
    #net spindle-brake              <=  spindle.0.brake
    #net spindle-revs               =>  spindle.0.revs
net spindle-at-speed           =>  spindle.0.at-speed
    #net spindle-vel-fb-rps         =>  spindle.0.speed-in
    #net spindle-index-enable      <=>  spindle.0.index-enable

# ---Setup spindle at speed signals---
sets spindle-at-speed true

Thank you for any help!
Hanno




 

File Attachment:

File Name: Hanno_Nr5_...2-24.hal
File Size:12 KB
 

File Attachment:

File Name: Hanno_Nr5_...2-24.ini
File Size:6 KB
Attachments:

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

More
25 Feb 2025 00:56 #322546 by PCW
If you run LinuxCNC, enable the spindle and set the spindle speed say 1/2 way up, then:

halcmd show all | grep spin

and post the results here, that would help debugging this.
 
The following user(s) said Thank You: Muftijaja

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

  • Muftijaja
  • Away
  • Senior Member
  • Senior Member
More
25 Feb 2025 15:33 #322601 by Muftijaja
Replied by Muftijaja on topic 7i76e - Spindle FWD/ENA ok, but no speed output
PCW, thanks for your eyes on it. Here the lines:

hanno@cnc2:~$ halcmd show all | grep spin
10 bit OUT FALSE halui.spindle.0.brake-is-on
10 bit IN FALSE halui.spindle.0.brake-off
10 bit IN FALSE halui.spindle.0.brake-on
10 bit IN FALSE halui.spindle.0.decrease
10 bit IN FALSE halui.spindle.0.forward
10 bit IN FALSE halui.spindle.0.increase
10 bit OUT FALSE halui.spindle.0.is-on
10 bit IN TRUE halui.spindle.0.override.count-enable
10 s32 IN 0 halui.spindle.0.override.counts
10 bit IN FALSE halui.spindle.0.override.decrease <== pdnt.spindle.override.decrease
10 bit IN FALSE halui.spindle.0.override.direct-value
10 bit IN FALSE halui.spindle.0.override.increase <== pdnt.spindle.override.increase
10 bit IN FALSE halui.spindle.0.override.reset
10 float IN 0 halui.spindle.0.override.scale <== pdnt.spindle-override.scale
10 float OUT 1 halui.spindle.0.override.value ==> pdnt.spindle.override.value
10 bit IN FALSE halui.spindle.0.reverse
10 bit OUT FALSE halui.spindle.0.runs-backward
10 bit OUT TRUE halui.spindle.0.runs-forward
10 bit IN FALSE halui.spindle.0.start
10 bit IN FALSE halui.spindle.0.stop
40 bit IN FALSE hm2_7i76e.0.7i76.0.0.spindir <== spindle-cw
40 bit IN FALSE hm2_7i76e.0.7i76.0.0.spinena <== pdnt.spindle.is-on
40 float IN 0 hm2_7i76e.0.7i76.0.0.spinout <== spindle-vel-cmd-rpm-abs
60 bit IN TRUE qtpyvcp.spindle-encoder-rpm.enable
60 float IN 0 qtpyvcp.spindle-encoder-rpm.in
60 float IN 0 qtpyvcp.spindle-load-indicator.in-f
60 u32 IN 0x00000000 qtpyvcp.spindle-load-indicator.in-i
60 float IN 150 qtpyvcp.spindle-load-indicator.max-val
60 float IN 0 qtpyvcp.spindle-load-indicator.min-val
60 bit IN FALSE qtpyvcp.spindle-override.reset
33 bit IN FALSE spindle.0.amp-fault-in
33 bit IN TRUE spindle.0.at-speed <== spindle-at-speed
33 bit OUT FALSE spindle.0.brake
33 bit OUT FALSE spindle.0.forward ==> spindle-cw
33 bit I/O FALSE spindle.0.index-enable
33 bit IN FALSE spindle.0.inhibit
33 bit IN FALSE spindle.0.is-oriented
33 bit OUT FALSE spindle.0.locked
33 bit OUT FALSE spindle.0.on ==> spindle-enable
33 bit OUT FALSE spindle.0.orient
33 float OUT 0 spindle.0.orient-angle
33 s32 IN 0 spindle.0.orient-fault
33 s32 OUT 0 spindle.0.orient-mode
33 bit OUT FALSE spindle.0.reverse ==> spindle-ccw
33 float IN 0 spindle.0.revs
33 float OUT 0 spindle.0.speed-cmd-rps
33 float IN 0 spindle.0.speed-in
33 float OUT 0 spindle.0.speed-out
33 float OUT 0 spindle.0.speed-out-abs ==> spindle-vel-cmd-rpm-abs
33 float OUT 0 spindle.0.speed-out-rps ==> spindle-vel-cmd-rps
33 float OUT 0 spindle.0.speed-out-rps-abs
27 bit OUT FALSE whb.button.macro-3 ==> pdnt.reserved.for.spindle+
27 bit OUT FALSE whb.button.macro-4 ==> pdnt.reserved.for.spindle-
27 bit OUT FALSE whb.button.macro-8 ==> pdnt.reserved.for.spindle.dir
27 bit OUT FALSE whb.button.spindle-minus
27 bit OUT FALSE whb.button.spindle-plus
27 bit OUT FALSE whb.halui.spindle-override.decrease ==> pdnt.spindle.override.decrease
27 bit OUT FALSE whb.halui.spindle-override.increase ==> pdnt.spindle.override.increase
27 float OUT 0 whb.halui.spindle-override.scale ==> pdnt.spindle-override.scale
27 float IN 1 whb.halui.spindle-override.value <== pdnt.spindle.override.value
27 float IN 0 whb.halui.spindle-speed-cmd
27 bit OUT FALSE whb.halui.spindle.decrease
27 bit OUT FALSE whb.halui.spindle.forward
27 bit OUT FALSE whb.halui.spindle.increase
27 bit IN FALSE whb.halui.spindle.is-on
27 bit OUT FALSE whb.halui.spindle.reverse
27 bit OUT FALSE whb.halui.spindle.start
27 bit OUT FALSE whb.halui.spindle.stop
bit FALSE pdnt.reserved.for.spindle+
bit FALSE pdnt.reserved.for.spindle-
bit FALSE pdnt.reserved.for.spindle.dir
float 0 pdnt.spindle-override.scale
==> halui.spindle.0.override.scale
<== whb.halui.spindle-override.scale
bit FALSE pdnt.spindle.is-on
==> hm2_7i76e.0.7i76.0.0.spinena
bit FALSE pdnt.spindle.override.decrease
==> halui.spindle.0.override.decrease
<== whb.halui.spindle-override.decrease
bit FALSE pdnt.spindle.override.increase
==> halui.spindle.0.override.increase
<== whb.halui.spindle-override.increase
float 1 pdnt.spindle.override.value
<== halui.spindle.0.override.value
==> whb.halui.spindle-override.value
bit TRUE spindle-at-speed
==> spindle.0.at-speed
bit FALSE spindle-ccw
<== spindle.0.reverse
bit FALSE spindle-cw
==> hm2_7i76e.0.7i76.0.0.spindir
<== spindle.0.forward
bit FALSE spindle-enable
<== spindle.0.on
float 0 spindle-vel-cmd-rpm-abs
==> hm2_7i76e.0.7i76.0.0.spinout
<== spindle.0.speed-out-abs
float 0 spindle-vel-cmd-rps
<== spindle.0.speed-out-rps
40 bit RW TRUE hm2_7i76e.0.7i76.0.0.spindir-invert
40 bit RW FALSE hm2_7i76e.0.7i76.0.0.spinena-invert
40 float RW 24000 hm2_7i76e.0.7i76.0.0.spinout-maxlim
40 float RW 1000 hm2_7i76e.0.7i76.0.0.spinout-minlim
40 float RW 24000 hm2_7i76e.0.7i76.0.0.spinout-scalemax
hanno@cnc2:~$

 
Attachments:

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

More
25 Feb 2025 16:23 #322610 by PCW
The spindle is off:

bit FALSE pdnt.spindle.is-on ==> hm2_7i76e.0.7i76.0.0.spinena
 
The following user(s) said Thank You: Muftijaja

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

  • Muftijaja
  • Away
  • Senior Member
  • Senior Member
More
25 Feb 2025 20:51 #322628 by Muftijaja
Replied by Muftijaja on topic 7i76e - Spindle FWD/ENA ok, but no speed output
Ok, I didnt realize this, because the Probe Basic GUI and the VFD switched the ENA/FWD Output if I give some MDI S command. I can see that in the GUi, my relai clicks, the VFD switches to Run. But the Pin says the truth...

I don't fully understand why this Enable command should come only from the XHC-WHB-04 pendant (set pdnt....) and not from the PB Gui - I would like to enable the spindle over the pendant but more in an OR funktion not only with the pendant.
I have to say that all these spindle commands weren't made by myself but from someone else who wanted to help me out in the past. And I couldn't test it in real life, because my VFD wasn't connected until now.

How should I change the settings so that it works with GUI and pendant? can you give me some hints, please?
Thanks for your support!
Hanno

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

More
25 Feb 2025 23:19 - 25 Feb 2025 23:22 #322638 by PCW
Doesn't even look like the current hal file would run
as there are two different signals connected to
hm2_7i76e.0.7i76.0.0.spinout:

net pdnt.spindle-speed-abs => hm2_7i76e.0.7i76.0.0.spinout
#net spindle-vel-cmd-rps-abs => hm2_7i76e.0.7i76.0.0.spinout
net pdnt.spindle.is-on => hm2_7i76e.0.7i76.0.0.spinena
net spindle-cw => hm2_7i76e.0.7i76.0.0.spindir
net spindle-vel-cmd-rpm-abs <= spindle.0.speed-out-abs => hm2_7i76e.0.7i76.0.0.spinout

I would first get things running in the usual way by adding

net spindle.0.on => hm2_7i76e.0.7i76.0.0.spinena

commenting out

net pdnt.spindle.is-on => hm2_7i76e.0.7i76.0.0.spinena

and uncommenting:

#net spindle-enable             <=  spindle.0.on

When this is working I would look into the pendant spindle control options
Last edit: 25 Feb 2025 23:22 by PCW.
The following user(s) said Thank You: Muftijaja

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

  • Muftijaja
  • Away
  • Senior Member
  • Senior Member
More
26 Feb 2025 00:20 #322640 by Muftijaja
Replied by Muftijaja on topic 7i76e - Spindle FWD/ENA ok, but no speed output
Thank you very much! I will do that tomorrow (german time) and report the result!
Have a nice day!
Sincerely,
Hanno

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

  • Muftijaja
  • Away
  • Senior Member
  • Senior Member
More
26 Feb 2025 13:02 #322693 by Muftijaja
Replied by Muftijaja on topic 7i76e - Spindle FWD/ENA ok, but no speed output
Ok, I tried your lines out and LCNC gives me this erroro out:
"twopass: Error in file ./Hanno_Nr5_Neuer_Versuch1.hal:
Signal name 'spindle.0.on' must not be the same as a pin. Did you omit the signal name?"

The actual lines in my .HAL:
# ---digital potentionmeter output signals/setup---

setp hm2_7i76e.0.7i76.0.0.spinout-minlim [SPINDLE_0]OUTPUT_MIN_LIMIT
setp hm2_7i76e.0.7i76.0.0.spinout-maxlim [SPINDLE_0]OUTPUT_MAX_LIMIT
setp hm2_7i76e.0.7i76.0.0.spinout-scalemax [SPINDLE_0]OUTPUT_SCALE
setp hm2_7i76e.0.7i76.0.0.spindir-invert true

#net pdnt.spindle-speed-abs => hm2_7i76e.0.7i76.0.0.spinout
#net pdnt.spindle.is-on => hm2_7i76e.0.7i76.0.0.spinena # raus wg Problemen

net spindle.0.on => hm2_7i76e.0.7i76.0.0.spinena
net spindle-cw => hm2_7i76e.0.7i76.0.0.spindir
net spindle-vel-cmd-rpm-abs <= spindle.0.speed-out-abs => hm2_7i76e.0.7i76.0.0.spinout

# ---setup spindle control signals---

#net spindle-vel-cmd-rps <= spindle.0.speed-out-rps
#net spindle-vel-cmd-rps-abs <= spindle.0.speed-out-rps-abs
#net spindle-vel-cmd-rpm <= spindle.0.speed-out # raus wg Problemen
net spindle-vel-cmd-rpm-abs <= spindle.0.speed-out-abs
net spindle-enable <= spindle.0.on
net spindle-cw <= spindle.0.forward
net spindle-ccw <= spindle.0.reverse
net spindle-at-speed => spindle.0.at-speed

# ---Setup spindle at speed signals---
sets spindle-at-speed true

Did I do sth wrong?

Greetings,
Hanno
 

File Attachment:

File Name: Hanno_Nr5_...26-2.hal
File Size:12 KB
      

File Attachment:

File Name: linuxcnc_s...2-26.txt
File Size:9 KB
Attachments:

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

More
26 Feb 2025 15:51 #322714 by PCW
net spindle.0.on => hm2_7i76e.0.7i76.0.0.spinena

should be

net spindle-enable => hm2_7i76e.0.7i76.0.0.spinena
 
The following user(s) said Thank You: Muftijaja

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

  • Muftijaja
  • Away
  • Senior Member
  • Senior Member
More
26 Feb 2025 18:44 #322726 by Muftijaja
Replied by Muftijaja on topic 7i76e - Spindle FWD/ENA ok, but no speed output
That's been very successful! Thanks! MY spindle is turning! Just in the wrong direction but that's no problem. I can wire it up so that its CW. The next days I will check how to configure the pendant for spindle control. But today, Iam very happy that the spindle is turning!
Thanks a lot, PCW!
Hanno

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

Time to create page: 0.085 seconds
Powered by Kunena Forum