Read the S-Command in the HAL

More
28 Mar 2025 20:05 #325187 by Wiesi-94
Read the S-Command in the HAL was created by Wiesi-94
Hello,
I'm currently implementing a retrofit for our SHW UF31. So far, progress is pretty good. But I have a small problem with the gear selection.
I'm using Classic Ladder to shift the three gears. It works quite well so far. I have a float input for the spindle speed, which is used to select and engage the correct gear.

The plan is to use the S command to set the gear. But I don't know which HAL pin I can use to query the set speed without the spindle running.

So what I need is a way to read this system parameter in the HAL / Classic Ladder:
#<_rpm> - Return the current value of S, not the actual spindle speed.

Best regards, Stefan

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

More
29 Mar 2025 05:11 #325225 by cmorley
Replied by cmorley on topic Read the S-Command in the HAL
you could try something this:
linuxcnc.org/docs/devel/html/gui/gstat.h...mponent_code_pattern

but use the message 's-code-changed'

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

More
31 Mar 2025 16:35 #325411 by Wiesi-94
Replied by Wiesi-94 on topic Read the S-Command in the HAL
That works, thanks!!

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

Time to create page: 0.055 seconds
Powered by Kunena Forum