linuxcnc 2.8 python question

More
20 Sep 2020 16:55 - 20 Sep 2020 17:32 #182927 by anfänger
hi,

I would like to read the spindle speed in python but get following error:

'linuxcnc.stat' object has no attribute 'spindle_speed'

i guess some thing changed?

thanks Patrick
Last edit: 20 Sep 2020 17:32 by anfänger.

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

More
20 Sep 2020 17:31 - 20 Sep 2020 17:33 #182937 by anfänger
I found now the 2.8 documentation took me a while

it's now s.spindle[0]["speed"] insteps of s.spindle_speed
Last edit: 20 Sep 2020 17:33 by anfänger.

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

More
20 Sep 2020 17:32 #182938 by MaHa
Replied by MaHa on topic linuxcnc 2.8 python question
If i start from terminal, in a userspace component
print s.spindle[0]['speed']
i get spindle speed displayed
The following user(s) said Thank You: anfänger

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

Time to create page: 0.079 seconds
Powered by Kunena Forum