- Posts: 49
- Thank you received: 18
[ Vfdmod ] An easy VFD control over MODBUS RTU
- aekhv
- Offline
- Senior Member
-
Less
More
5 years 7 months ago #202063
by aekhv
Replied by aekhv on topic [ Vfdmod ] An easy VFD control over MODBUS RTU
Well, possible reasons are:
a) wrong control register address and / or wrong control world values. See your device manual to be sure.
b) wrong HAL connections. Show your HAL files please, I'll try to help.
a) wrong control register address and / or wrong control world values. See your device manual to be sure.
b) wrong HAL connections. Show your HAL files please, I'll try to help.
Please Log in or Create an account to join the conversation.
- Zbysob1
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
5 years 7 months ago #202068
by Zbysob1
Replied by Zbysob1 on topic [ Vfdmod ] An easy VFD control over MODBUS RTU
I think the registers are ok - sending the value 0x0012 to the address 0x2000 causes the start to the right, etc.
Please Log in or Create an account to join the conversation.
- aekhv
- Offline
- Senior Member
-
Less
More
- Posts: 49
- Thank you received: 18
5 years 7 months ago #202070
by aekhv
Replied by aekhv on topic [ Vfdmod ] An easy VFD control over MODBUS RTU
Your custom.hal should be:
If output speed will be wrong take your attention to Multiplier and Divider parameters in vfdmod ini.
Code:
loadusr -W vfdmod my-config-file.ini
net spindle-cmd-rpm => vfdmod.spindle.rpm-in
net spindle-at-speed <= vfdmod.spindle.at-speed
net spindle-cw spindle.0.forward => vfdmod.control.run-forward
net spindle-ccw spindle.0.reverse => vfdmod.control.run-reverse
If output speed will be wrong take your attention to Multiplier and Divider parameters in vfdmod ini.
Please Log in or Create an account to join the conversation.
- Zbysob1
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
5 years 7 months ago #202084
by Zbysob1
Replied by Zbysob1 on topic [ Vfdmod ] An easy VFD control over MODBUS RTU
I changed these two lines - I forgot to rename the pins in linuxcnc 2.8 before. I left a multiplier 1 and a divisor 1 everywhere, so they shouldn't affect the values.
Now the program gives a signal to the inverter and the inverter switches to RUN and FOR but after a second there is a communication error again (code 110) and the connection is red. Now I set the minimum speed to 50 and this value is given and after pressing the inverter direction icon, the motor starts with the minimum speed but stops responding to subsequent commands and I have a connection error.
Is it possible that the vfdmod program is using a log write function not supported by my inverter? I checked that I can use function 06 and multi-save 10.
My config file:
Thanks again for your interest and help. I am very beginner, hence problems at every step
Now the program gives a signal to the inverter and the inverter switches to RUN and FOR but after a second there is a communication error again (code 110) and the connection is red. Now I set the minimum speed to 50 and this value is given and after pressing the inverter direction icon, the motor starts with the minimum speed but stops responding to subsequent commands and I have a connection error.
Is it possible that the vfdmod program is using a log write function not supported by my inverter? I checked that I can use function 06 and multi-save 10.
My config file:
Thanks again for your interest and help. I am very beginner, hence problems at every step
Please Log in or Create an account to join the conversation.
- Zbysob1
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
5 years 7 months ago #202085
by Zbysob1
Replied by Zbysob1 on topic [ Vfdmod ] An easy VFD control over MODBUS RTU
Now diode for Spindle at speed is green
Please Log in or Create an account to join the conversation.
- aekhv
- Offline
- Senior Member
-
Less
More
- Posts: 49
- Thank you received: 18
5 years 7 months ago #202087
by aekhv
Replied by aekhv on topic [ Vfdmod ] An easy VFD control over MODBUS RTU
It looks like the reason is electrical noise, like here: forum.linuxcnc.org/24-hal-components/391...communicaiton#168822Zbysob1 wrote: Now the program gives a signal to the inverter and the inverter switches to RUN and FOR but after a second there is a communication error again (code 110) and the connection is red.
No, I don't think so.Zbysob1 wrote: Is it possible that the vfdmod program is using a log write function not supported by my inverter?
Please Log in or Create an account to join the conversation.
Time to create page: 0.249 seconds