[ Vfdmod ] An easy VFD control over MODBUS RTU

More
5 years 7 months ago #202063 by aekhv
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.

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

More
5 years 7 months ago #202068 by Zbysob1
I think the registers are ok - sending the value 0x0012 to the address 0x2000 causes the start to the right, etc.

File Attachment:

File Name: custom.hal
File Size:0 KB

File Attachment:

File Name: custom_postgui.hal
File Size:0 KB

File Attachment:

File Name: vfd.hal
File Size:3 KB

File Attachment:

File Name: pyvcp_options.hal
File Size:0 KB

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

More
5 years 7 months ago #202070 by aekhv
Your custom.hal should be:
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.

More
5 years 7 months ago #202084 by Zbysob1
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:

File Attachment:

File Name: my-config-file.ini
File Size:5 KB


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.

More
5 years 7 months ago #202085 by Zbysob1
Now diode for Spindle at speed is green

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

More
5 years 7 months ago #202087 by aekhv

Zbysob1 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.

It looks like the reason is electrical noise, like here: forum.linuxcnc.org/24-hal-components/391...communicaiton#168822

Zbysob1 wrote: Is it possible that the vfdmod program is using a log write function not supported by my inverter?

No, I don't think so.

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

Time to create page: 0.249 seconds
Powered by Kunena Forum