LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

More
10 months 2 days ago #340705 by meister
about the VFD, it depends on the type,
i have only a hy_vfd and no real examples, what kind of VFD you have ?
is it realy modbus conform or like the hy_vfd a modbus like protocol ?

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

More
10 months 1 day ago #340722 by Dave3891
The drive is a WK600 series VFD, looking at the modbus manual, I think it is true modbus?
I have attached the modbus details
Attachments:

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

More
10 months 1 day ago #340726 by meister
It could be a bit difficult. To be honest, I've never really thought about how to integrate a VFD using normal Modbus commands.

The main problem is that Rio sends the values in a loop, and individual commands cannot be triggered by a button, for example (to start/stop).

I think I'll have to expand it a bit for that,
but you can try reading out a few values to test the communication.

in json it looks like that to read BusVoltage and RunningFrequency:
Code:
{ "type": "modbus", "pins": { ... }, "config": { "BusVoltage": { "address": 1, "type": 3, "register": 4098, "values": 1, "datatype": "int", "scale": 1.0, "unit": "", "error_values": "", "format": "d", "timeout": 100, "delay": 60, "priority": 0, "direction": "input" }, "RunningFrequency": { "address": 1, "type": 3, "register": 4097, "values": 1, "datatype": "int", "scale": 1.0, "unit": "", "error_values": "", "format": "d", "timeout": 100, "delay": 60, "priority": 0, "direction": "input" } } },

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

More
10 months 1 day ago #340727 by Dave3891
Could the speed command be sent in the modbus loop and then I could use regular gpio for the start stop?

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

More
10 months 1 day ago #340730 by meister
not with my VFD, if it set to RS485 mode, all other inputs are disabled.

But I'm already trying something.
I'm currently writing a simple Modbus simulator in Python.
I already have an idea of how I can implement it.

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

More
10 months 1 day ago #340731 by meister
perhaps also useful for others

 

File Attachment:

File Name: modbus-vfdsim.py
File Size:2 KB

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

Time to create page: 2.485 seconds
Powered by Kunena Forum