Delta MS300 VFD, RS485, RPI4, QTdragon, getting it to work

More
2 years 9 months ago #290193 by Calysto
A few days ago I didn't know anything about modbus... now I know much more... The most important thing is that I've learn that not every device supports reading at bit-level, that's why I see people using mux4/enum/weighted_sum.

The Delta MS300 manual says that adres 2000H, bit 0 and1 made high, should make it able to Jog... but I've never used it. I also don't know if that is spindle depended.There is a lot to read about jogging in the manual, but I'll probably never use it

Please Log in to join the conversation.

More
2 years 9 months ago #290202 by Calysto
To make things even more interesting (or difficult :-)) I will also try Mesa_modbus. I'm not sure if it will work with my 7c80, but there is a serial port on it, it should be on with my firmware. Wil test everything later... my machine is not nearby....

Mesa_modbus config-file I've made so far:
Code:
static const hm2_modbus_chan_descriptor_t channels[] = { /*  {TYPE,     FUNC, ADDR,   COUNT, pin_name} */     {HAL_BIT,   3,   0x2000, 6,   "runbits"},     {HAL_FLOAT, 3,   0x2001, 1,   "freq"},     {HAL_FLOAT, 6,   0x2106, 1,   "volt"},     {HAL_FLOAT, 6,   0x210A, 1,   "amp"},     {HAL_S32,   6,   0x210C, 1,   "rpm-out"}, };

Please Log in to join the conversation.

More
2 years 9 months ago #290336 by Calysto
Yesterday I've made a teamviewer connection between my home-pc and my cnc-machine (that's in a cold space), that gave me an nice environment to test thing. And... mb2hal is working!  I've attached my mb2hal config. I'm not happy with the naming yet. I expected all names like mb2hal.spindle.[pin-name]. But only the first transaction is named that way.

But...... I have EMI problems I think, When I stop my spindle, usb-devices often stops working.
My PI is connected to my Delta MS300 via usb, using the inbuild rs485 converter of the VFD. What shell I do? Use mesa_modbus and eliminated the use of a usb-cable? Do I need another firmware to use mesa_modbus on my 7c80? I probably have to put my 7c80/PI4 in a steel box too... I'll ask this kind of things on the printnc-discord...

Please Log in to join the conversation.

More
2 years 9 months ago #290409 by Calysto
The firmware's for the 7c80 doesn't seam to have pktUart enabled. I've asked Mesa for help. Compiling the mesa_modbus driver was the easy part :-)
 

Please Log in to join the conversation.

More
2 years 9 months ago #291127 by Calysto
It looks like I've solved my electrical problems, changed some cables and used some ferrite cores.

@PCW: Can you help me getting PktUART working on my 7c80? There is no firmware on the mesa-website that supports PktUART...

Please Log in to join the conversation.

More
2 years 7 months ago #296499 by PHILCOAST
Hi Calysto,I use the same components as you. RPI4 on 7c80 and MS300.
I am currently using the PWM terminal to control the spindle. Can you share the whole configs folder with me?
This will help me a lot to understand by comparing the differences.

Please Log in to join the conversation.

More
2 years 7 months ago #296537 by Calysto
Here it is. I use 2.9.2. The joypad does not work correctly yet. Where you are looking for should be in the "4_QT_spindle", "9_QT_postgui" and "mb2hal_MS300" files.

Happy to hear I'm not the only one with this setup :-)

I've connected my VFD with an usb cable to my PI. I hope there will be Pktuart firmware for the 7c80, so we can use the RS422 connector.

If you have questions, let me know....

Please Log in to join the conversation.

More
2 years 7 months ago #296589 by PCW
 

Attachment not found

Please Log in to join the conversation.

More
2 years 7 months ago #296590 by Calysto

Please Log in to join the conversation.

More
2 years 6 months ago #297450 by COFHAL
This firmware for 7c81 board?

Please Log in to join the conversation.

Time to create page: 0.195 seconds
Powered by Kunena Forum