- Posts: 49
- Thank you received: 18
[ Vfdmod ] An easy VFD control over MODBUS RTU
- aekhv
- Offline
- Senior Member
-
If connection established (I guest it is so) but start/stop commands are not working, then check signal names in main HAL file:
Are these signals exist?
Please Log in or Create an account to join the conversation.
- aekhv
- Offline
- Senior Member
-
- Posts: 49
- Thank you received: 18
* updated *
Fixed by itself after my reply! Probably some kind of bug...
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
-
- Posts: 22011
- Thank you received: 7491
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.
- COFHAL
- Offline
- Platinum Member
-
- Posts: 461
- Thank you received: 62
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?
Please Log in or Create an account to join the conversation.
- COFHAL
- Offline
- Platinum Member
-
- Posts: 461
- Thank you received: 62
Please Log in or Create an account to join the conversation.
- aekhv
- Offline
- Senior Member
-
- Posts: 49
- Thank you received: 18
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:
2. Add to your custom.hal these lines:
Please Log in or Create an account to join the conversation.