[ Vfdmod ] An easy VFD control over MODBUS RTU

More
01 Jan 2021 07:04 #193703 by aekhv
It's ok, but two things confuse me:

1. AtSpeedThreshold=1 has no sense, it's better to specify something closer to reality, like 0.05 (5%) or 0.10 (10%). See more details here: github.com/aekhv/vfdmod/wiki#Common-group
2. You get the current speed value (SpindleRpmOut) from the command speed register (SpindleRpmIn). I think it's bad idea, because command speed register just stores a command speed value, but not a real output speed in the current moment of time. It's better to find a parameter that stores an actual spindle speed.

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

More
05 Jan 2021 13:26 #194146 by schlank
Hello!
I just managed to make your Code run with my ATV320. Great work!
Unfortunately the speed feedback works only properly in one direction:

vfdmod: reading 'spindle.rpm-out' from address 8604 (0x219C)...
[01][03][21][9C][00][01][4E][18]
Waiting for a confirmation...
<01><03><02><FE><D3><B9><B9>
vfdmod: returned value is 65235 (0xFED3)

The value appearing on the screen is 65235. Does the register contain a negative RPM value?
Any idea how to fix this?

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

More
05 Jan 2021 14:30 #194151 by aekhv
Hi! What value should be correct in this case? 0x012C (decimal 300) ?

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

More
05 Jan 2021 15:55 - 05 Jan 2021 16:57 #194154 by schlank
I cannot remember but I guess yes.
I also wonder if this is maybe a bug from the ATV machine in a way?
Last edit: 05 Jan 2021 16:57 by schlank.

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

More
07 Jan 2021 11:48 #194353 by aekhv
I guess the output speed register can store a signed integer, why not... But I've never seen such devices. Can you share a link to your ATV's manual?

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

More
09 Mar 2021 05:31 #201515 by Zbysob1
Hello, I have three types of usb-rs485 converters and I am not able to get proper modbus communication with the YL620-A inverter on any of them
The same converters controlled by the ModbusMAT1.1 program work correctly - they send and read the inverter registers - I can control the connected motor
Transmission parameters in accordance with forum.linuxcnc.org/24-hal-components/391...modbus-communicaiton set on the inverter and in the ini file.
The only effect is that the error counter keeps increasing. My question is also what components to choose using Stepconf Wizard in the OPTION section for VFDmod?
Linuxcnc version 2.8.0.
Regards, Zbyszek

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

More
09 Mar 2021 12:06 #201538 by aekhv
Hi!

Let me guess communication settings are wrong...Check twice ModbusMAT settings (baud rate, data bits, stop bits, parity) and copy them to vfdmod config file. Be sure you are using RTU mode, not ASCII.

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

More
09 Mar 2021 18:22 #201581 by Zbysob1
I am sure about the modbus communication settings. Checked both ModbusMAT and in the Clasicladder configuration file - the inverter works with both programs. There is a command execution delay of 1-2 seconds. I have 9600, 8N1 and RTU speed set everywhere and a converter connected to / dev / ttyUSB0. I'm running out of ideas :)

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

More
10 Mar 2021 12:56 #201644 by aekhv
Yes, it's really strange. Could you show your debug output? And what is the last error code you see? 110 or anything else?

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

More
10 Mar 2021 22:11 #201732 by Zbysob1
On one USB-RS485 converter I have a constant error 112345679 and on the other it almost always 110, sometimes it shows 112345695 but for a short time and 110 returns.
How to show debug output?

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

Time to create page: 0.141 seconds
Powered by Kunena Forum