hello all, beginner here with some issues with linux cnc
- santiagoe
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
16 Mar 2021 20:04 #202510
by santiagoe
Replied by santiagoe on topic hello all, beginner here with some issues with linux cnc
hmm not sure how to figure that out. like commands in the hal files?
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Platinum Member
Less
More
- Posts: 2072
- Thank you received: 408
16 Mar 2021 21:36 - 16 Mar 2021 21:39 #202519
by newbynobi
Replied by newbynobi on topic hello all, beginner here with some issues with linux cnc
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
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
Last edit: 16 Mar 2021 21:39 by newbynobi.
Please Log in or Create an account to join the conversation.
- santiagoe
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
17 Mar 2021 00:12 #202547
by santiagoe
Replied by santiagoe on topic hello all, beginner here with some issues with linux cnc
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.
- 85422776
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 1
18 Mar 2021 00:55 #202687
by 85422776
Replied by 85422776 on topic hello all, beginner here with some issues with linux cnc
thank you a lot.
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Platinum Member
Less
More
- Posts: 2072
- Thank you received: 408
19 Mar 2021 18:01 #202868
by newbynobi
Replied by newbynobi on topic hello all, beginner here with some issues with linux cnc
@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
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.
- travis036
- Offline
- Elite Member
Less
More
- Posts: 283
- Thank you received: 32
20 Mar 2021 15:42 #202990
by travis036
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
Replied by travis036 on topic hello all, beginner here with some issues with linux cnc
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.
- santiagoe
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
22 Mar 2021 10:00 #203218
by santiagoe
Replied by santiagoe on topic hello all, beginner here with some issues with linux cnc
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
net spindle-on spindle.0.on => vfd.spindle-on
thank you
Please Log in or Create an account to join the conversation.
- santiagoe
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
22 Mar 2021 10:15 #203220
by santiagoe
Replied by santiagoe on topic hello all, beginner here with some issues with linux cnc
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.
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.
- newbynobi
- Offline
- Platinum Member
Less
More
- Posts: 2072
- Thank you received: 408
22 Mar 2021 22:07 #203303
by newbynobi
Replied by newbynobi on topic hello all, beginner here with some issues with linux cnc
Please post your actual config folder, so we ca see what you have done till now.
And max. And min spindle speed.
Norbert
And max. And min spindle speed.
Norbert
Please Log in or Create an account to join the conversation.
- santiagoe
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
30 Mar 2021 07:33 #204109
by santiagoe
Replied by santiagoe on topic hello all, beginner here with some issues with linux cnc
hello robert, sorry for the late reply, i was having some issues with my internet connection, but here is my config file, so far i can home the machine with 4 limit switches, xyyz, i can start and reverse the spindle, the set minimum velocity is 6000 rpm in both linux and the vfd so that the spindle never spins slower than that, also the override is set to 4 so it can reach 24000 rpm its maximum speed. currently that is the only issue.
thank you for your time.
thank you for your time.
Attachments:
Please Log in or Create an account to join the conversation.
Time to create page: 0.074 seconds