Spindle speed limited

More
16 Jan 2024 18:03 #290887 by eduard
Replied by eduard on topic Spindle speed limited
I solve the limitation of the controlword. Omron Ethercat module has an individual PDO for frequency reference, so I can control form 0-1000Hz the spindle.

But this creates another problem, I do not have rpm anymore. Somehow I have to transform 0-1000Hz to 0-60.000rpm, becouse now With M3 I have frequency instead of rpm.

There is solution for this in lcnc or I have to write it myself? If so, where?

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

More
16 Jan 2024 18:39 - 16 Jan 2024 18:42 #290892 by 0x2102
Replied by 0x2102 on topic Spindle speed limited
You can scale in your generic driver XML.

Example: ( assumes 1000Hz = 60000rpm) or 1/60 = 0.016667

60000rpm will send 1000 to your PDO. 

<pdoEntry idx="607A" subIdx="00" bitLen="32" halPin="poscommand" halType="float" scale="0.016667"/>

or you can use the RT comp scale:

linuxcnc.org/docs/html/man/man9/scale.9.html
Last edit: 16 Jan 2024 18:42 by 0x2102.

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

More
16 Jan 2024 19:36 - 16 Jan 2024 19:42 #290901 by eduard
Replied by eduard on topic Spindle speed limited
Thanx! 
Where do you find the xml documentation?

Ok, I understand, I have to put the scale command in frequency reference line. 

The scaling is clear, and good idea to scale the hz to rpm.
Last edit: 16 Jan 2024 19:42 by eduard.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum