Troubles to get started with SD240 Retrofit

More
04 Sep 2025 16:40 #334415 by andypugh
Replied by andypugh on topic Troubles to get started with SD240 Retrofit
Your HAL looks correct.
When you say "in the oszy" do you mean in the HAL oscilloscope , or on a physical one?

In the HAL oscilloscope try scoping both the index-enable signal and the hm2_7i80.0.encoder.00.input-index pin.

If index-enable is high then it should go low when the (short) input-index pulse is seen. 
The index-enable pin should go high as soon as the home switch trips. 
 

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

  • ziggi
  • ziggi's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
05 Sep 2025 05:45 - 05 Sep 2025 05:46 #334471 by ziggi
I checked the index signal with a physical oscilloscope (Hameg 303 in this case) and I can see the index signal "fly by"... it is very fast

 

Thank you Andy, I will follow your advice to try to observe both, index-enable signal and hm2_7i80.0.encoder.00.input-index pin in the HAL scope and see if the index-enable pin behaves as you describe it.

Thank you
Sigi


 
Attachments:
Last edit: 05 Sep 2025 05:46 by ziggi.

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

More
05 Sep 2025 08:34 #334481 by andypugh
Replied by andypugh on topic Troubles to get started with SD240 Retrofit
You can test the index-enable system by hand.

Open halshow (this is "show machine configuration" in Axis, in some other interfaces you may need to open a terminal and "halcmd loadusr halshow"

Add the x-index-enable signal to the Watch tab. I think you should see a button that allows you to set it.

Then rotate the motor by hand, and see if the index-enable signal ever goes false.

Hint, the colour scheme of halshow is eccentric. dark red = 0 / false and yellow = 1 / true

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

More
05 Sep 2025 08:34 #334482 by andypugh
Replied by andypugh on topic Troubles to get started with SD240 Retrofit
You can test the index-enable system by hand.

Open halshow (this is "show machine configuration" in Axis, in some other interfaces you may need to open a terminal and "halcmd loadusr halshow"

Add the x-index-enable signal to the Watch tab. I think you should see a button that allows you to set it.

Then rotate the motor by hand, and see if the index-enable signal ever goes false.

Hint, the colour scheme of halshow is eccentric. dark red = 0 / false and yellow = 1 / true

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

  • ziggi
  • ziggi's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
05 Sep 2025 17:15 #334503 by ziggi
Thank you Andy, but I can not gain access to the X-Motor or spindle- probably to the Z spindle and move the Z-axis, I will try. So jogging the X-axis slowly must do the job.
Sigi

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

  • ziggi
  • ziggi's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
05 Sep 2025 19:08 - 05 Sep 2025 19:56 #334506 by ziggi
No, something is wrong.
the  hm2_7i80.0.encoder.00.input-index pin permanently stays true and
the  x-index-enable signal permanently stays false. The pictures show the state they are in and also when moving the axis by G1 F10 X 0 to 10 and back nothing changes
And the index-enable does not go high when the home switch trips (when homing)
 

 
Attachments:
Last edit: 05 Sep 2025 19:56 by ziggi.

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

More
05 Sep 2025 19:22 #334507 by PCW
Are you saying you cannot set x-index-enable true in halshow?

hm2_7i80.0.encoder.00.input-index pin staying true may be OK as this just reflects its
polarity, and you are unlikely to catch the actual index with halscope because of its narrow width
(especially at 500 ms/division where halscope throws away most samples)

Unless you can set x-index-enable it will be difficult to diagnose


 

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

  • ziggi
  • ziggi's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
05 Sep 2025 19:58 - 05 Sep 2025 20:15 #334511 by ziggi
I can set it high in HAL-show by pressing the SET button on the right side, but not by homing/tripping the switch.
Also with 1ms division I can not see the index rush by...
Last edit: 05 Sep 2025 20:15 by ziggi.

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

More
05 Sep 2025 20:17 #334513 by PCW
If you set x-index-enable high manually, does it get cleared if you jog the axis? 
(enough for one full turn of the encoder)

Beware, this may trigger a following error

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

  • ziggi
  • ziggi's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
05 Sep 2025 20:34 - 05 Sep 2025 20:36 #334514 by ziggi
No, it does not.
I scrolled through the HAl and could not find the hm2_7i80.0.encoder.00.input-index pin linked anywhere. So I assume Linuxcnc does not get this signal- can this be the reason?
Attachments:
Last edit: 05 Sep 2025 20:36 by ziggi.

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

Moderators: piasdom
Time to create page: 0.146 seconds
Powered by Kunena Forum