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

More
08 Jan 2024 09:50 - 08 Jan 2024 09:51 #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
Last edit: 08 Jan 2024 09:51 by Calysto.

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

More
08 Jan 2024 11:01 #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:
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"},
};
The following user(s) said Thank You: PHILCOAST

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

More
10 Jan 2024 08:16 - 10 Jan 2024 08:16 #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...
Attachments:
Last edit: 10 Jan 2024 08:16 by Calysto.
The following user(s) said Thank You: PHILCOAST

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

More
11 Jan 2024 08:53 - 11 Jan 2024 08:54 #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 :-)
 
Last edit: 11 Jan 2024 08:54 by Calysto.

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

More
19 Jan 2024 15:59 #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...
The following user(s) said Thank You: PHILCOAST

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

More
21 Mar 2024 20:28 #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 or Create an account to join the conversation.

More
22 Mar 2024 08:00 #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....
Attachments:
The following user(s) said Thank You: PHILCOAST

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

More
23 Mar 2024 18:39 #296589 by PCW
 

File Attachment:

File Name: 7c80pktd.zip
File Size:83 KB
Attachments:
The following user(s) said Thank You: PHILCOAST

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

More
23 Mar 2024 19:13 #296590 by Calysto

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

More
02 Apr 2024 17:27 #297450 by COFHAL
This firmware for 7c81 board?

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

Time to create page: 0.101 seconds
Powered by Kunena Forum