- Posts: 806
- Thank you received: 502
LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
- meister
- Offline
- Platinum Member
-
Less
More
10 months 2 days ago #340705
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
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 ?
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.
- Dave3891
- Offline
- Senior Member
-
Less
More
- Posts: 56
- Thank you received: 7
10 months 1 day ago #340722
by Dave3891
Replied by Dave3891 on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
The drive is a WK600 series VFD, looking at the modbus manual, I think it is true modbus?
I have attached the modbus details
I have attached the modbus details
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 806
- Thank you received: 502
10 months 1 day ago #340726
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
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:
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.
- Dave3891
- Offline
- Senior Member
-
Less
More
- Posts: 56
- Thank you received: 7
10 months 1 day ago #340727
by Dave3891
Replied by Dave3891 on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
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.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 806
- Thank you received: 502
10 months 1 day ago #340730
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
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.
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.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 806
- Thank you received: 502
10 months 1 day ago #340731
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Please Log in or Create an account to join the conversation.
Time to create page: 2.485 seconds