[ Vfdmod ] An easy VFD control over MODBUS RTU

More
17 Apr 2020 22:28 #164349 by aekhv
Replied by aekhv on topic [ Vfdmod ] not control
It seems communication settings wrong (error code 110), check parameters in RS485 group. And please show your ini file here.

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

More
17 Apr 2020 22:47 #164351 by COFHAL
Replied by COFHAL on topic [ Vfdmod ] not control
Attachment m INI file and the DEBUG serial USB
Attachments:

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

More
17 Apr 2020 23:32 - 17 Apr 2020 23:34 #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:
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: 17 Apr 2020 23:34 by aekhv.

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

More
19 Apr 2020 06:12 - 19 Apr 2020 06:17 #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: 19 Apr 2020 06:17 by aekhv.

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

More
19 Apr 2020 11:39 #164624 by tommylight
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
20 Apr 2020 14:55 #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
20 Apr 2020 15:24 #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
21 Apr 2020 01:27 - 21 Apr 2020 01:28 #164909 by aekhv

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:
#net spindle-at-speed           =>  spindle.0.at-speed

2. Add to your custom.hal these lines:
# 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: 21 Apr 2020 01:28 by aekhv.
The following user(s) said Thank You: COFHAL

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

More
18 May 2020 06:21 #168126 by aekhv
Documentation moved to Github Wiki: github.com/aekhv/vfdmod/wiki

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

More
07 Jun 2020 13:19 #170476 by aekhv
DEB packages also moved to GitHub: github.com/aekhv/vfdmod/releases

P.S. Build for Armbian Buster (armhf) added to releases, so vfdmod is ready to work with Orange Pi ! :woohoo:

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

Time to create page: 0.170 seconds
Powered by Kunena Forum