hello all, beginner here with some issues with linux cnc

More
5 years 7 months ago #202547 by santiagoe
ok thank you, i just tried adding -rps to that line but it didn't work as expected i think, i think the vfd is expecting rpm not rps through that command?, so in gmoccapy it was showing like the spindle was doing 10000 rpm but it was actually doing 166 which is 10000/60 so i am not sure, we can try something else

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

More
5 years 7 months ago #202687 by 85422776

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

More
5 years 7 months ago #202868 by newbynobi
@santiagoe

Just enter in terminal

man scale

You can add the scale component to scale the value to the desired output.

Try to disconnect the vfd.in pin in your hal, then open your GUI, from that open halshow (settings page) and Ther you can set the value for the output to check if the vfd does react as you want.

Norbert

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

More
5 years 7 months ago #202990 by travis036

newbynobi wrote: This line is wrong:

net spindle-speed spindle.0.speed-out => vfd.speed-command
You need to give spindle.0.speed-out-rps to the vfd command.

You will need to scale the value, as your vfd will expect 0 to 10 V but spindle speed rps is I. Revolutions per second.

I am not on my PC, but maybe past tomorrow I can post my config


earlier in this post, it was mentioned by santiagoe: "USB-rs485 adapter connected between the Rpi4 and a huanyang vfd".

i don't think the 0 to 10 V comes into play here. i think he is controlling the VFD over RS-485, or ModBus control. i use the same on my setup.

i am not 100% sure, but it sounds like the VFD may not have been configured correctly, in the VFD itself (your VFD manual should describe the steps). at least that is my interpretation from reading all the posts here.
sounds kind of like the number of poles, the frequency, or something is not correctly entered.

~Travis

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

More
5 years 7 months ago #203218 by santiagoe
hi, sorry for the late reply but i am not really sure how to do what you are telling me, i can go to the halshow but i do not know how to set the value, there are many options for vfd, also i do not have any pin with that name in my hal file, the most similar one is
net spindle-on spindle.0.on => vfd.spindle-on
thank you

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

More
5 years 7 months ago #203220 by santiagoe
the only way i have found to reach 24000 rpm is to set the minimum rpm to 6000 and set MAX_SPINDLE_OVERRIDE = 4.000000 in the ini file
its a little bit bothering that it says 400% at the maximum and 100% just at 6000 rpm, it would be nicer if it showed 25% at the beginning and 100% at the max speed.

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

Time to create page: 0.070 seconds
Powered by Kunena Forum