[ Vfdmod ] An easy VFD control over MODBUS RTU

More
6 years 6 months ago - 6 years 6 months ago #164355 by aekhv
Replied by aekhv on topic [ Vfdmod ] not control
In debug output I see everything is fine, there is no modbus errors, so communication MUST be established and error count MUST be zero. But in your previous screenshot error count is not zero, is that screenshot was made with different (wrong) config?

If connection established (I guest it is so) but start/stop commands are not working, then check signal names in main HAL file:
Code:
spindle-speed-cmd (correct name may be spindle-speed-cmd-abs) spindle-cw.spindle-forward spindle-ccw.spindle-reverse

Are these signals exist?
Last edit: 6 years 6 months ago by aekhv.

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

More
6 years 6 months ago - 6 years 6 months ago #164596 by aekhv
I see someone changed the title of this topic to "[ Vfdmod ] not control". Is it joke or I did something wrong? :( How can I fix it? :unsure:

* updated *
Fixed by itself after my reply! Probably some kind of bug...
Last edit: 6 years 6 months ago by aekhv.

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

More
6 years 6 months ago #164624 by tommylight
Replied by tommylight on topic [ Vfdmod ] An easy VFD control over MODBUS RTU
Someone else changed the subject when they replied, but when the original poster replies it goes back to the original subject.
It has been mentioned here several times not to change the subject when replying.

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

More
6 years 6 months ago #164865 by COFHAL
Replied by COFHAL on topic [ Vfdmod ] not control
It is not clear to me. I am enclosing my hal file for you to verify.
Another question: do these instructions go in the main hal file or custom.hal:?
net spindle-speed-cmd => vfdmod.spindle.rpm-in
net spindle-at-speed <= vfdmod.spindle.at-speed
net spindle-cw motion.spindle-forward => vfdmod.spindle.run-forward
net spindle-ccw motion.spindle-reverse => vfdmod.spindle.run-reverse
Can you post your main hal file for comparison?
Attachments:

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

More
6 years 6 months ago #164868 by COFHAL
Replied by COFHAL on topic [ Vfdmod ] not control
When checking again, and executing a g code, there is control of the VDF, that is, it starts adjusting the speed and when it finishes executing the g code, it stops. But it is not possible to control it from the MDI.

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

More
6 years 6 months ago - 6 years 6 months ago #164909 by aekhv

COFHAL wrote: It is not clear to me. I am enclosing my hal file for you to verify.
Another question: do these instructions go in the main hal file or custom.hal:?
net spindle-speed-cmd => vfdmod.spindle.rpm-in
net spindle-at-speed <= vfdmod.spindle.at-speed
net spindle-cw motion.spindle-forward => vfdmod.spindle.run-forward
net spindle-ccw motion.spindle-reverse => vfdmod.spindle.run-reverse
Can you post your main hal file for comparison?


Where is no strong instruction how HAL pins should be connected, because depending of LinuxCNC version (I mean Stepconf & Pncconf version when you created your machine configuration) HAL pin & signal names can be different, what's why my HAL file may be useless for you.

Ok, I guess I know what you should to try:
1. Find and uncomment this line in your main HAL file:
Code:
#net spindle-at-speed => spindle.0.at-speed

2. Add to your custom.hal these lines:
Code:
# Add these lines after 'loadusr -W vfdmod ...' net spindle-vel-cmd-rpm => vfdmod.spindle.rpm-in net spindle-at-speed <= vfdmod.spindle.at-speed net spindle-cw => vfdmod.spindle.run-forward net spindle-ccw => vfdmod.spindle.run-reverse
Last edit: 6 years 6 months ago by aekhv.
The following user(s) said Thank You: COFHAL

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

Time to create page: 0.577 seconds
Powered by Kunena Forum