Mitsubishi VFD Modbus cant get it work

More
15 Jan 2022 00:05 #231826 by cmorley
So the settings are as I specified or are you assuming if it works in mach3 it should work in linuxcnc?

db9 to an opto22 converter card.
maybe 6 months or so ago.

I use 2.9 and python3 now and it does have some problems.
I had to add the open, close, open command for some reason related to linux it seems.
and monitoring doesn't work right.

Chris

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

More
15 Jan 2022 00:17 #231828 by cmorley
The blank debug statements indicate the VFD is not responding at all.
You can uncomment the print statements to see what commands are being sent.
Is the mach3 driver sources available? that might be interesting.

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

More
15 Jan 2022 00:21 #231829 by cmorley
It would also be useful to know is the error LED lights up on the VFD after the driver is started -indicating the timeout has probably tripped, which you can change on the vfd for testing.

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

More
15 Jan 2022 00:21 #231830 by hitchhiker
no mach3 driver is inside mach3....

i only write to 2 registers...

register 8 for fwd or stop and 13 for the freq.

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

More
15 Jan 2022 00:25 #231831 by hitchhiker
do you know quick the parameter to set the error led?!

i think... when your vfd works... the problem is usb? but do you know a reason why on mach3 its no problem?

mach3 and linux on the same pc.. i quick change sata cable.. its on 2 different hdds

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

More
15 Jan 2022 00:30 #231833 by cmorley
There are literally hundreds of reasons it does work with mach and not with linux.

The fact you don't answer my questions as I ask them makes the process longer.
It seems that you have programming experience - why not try debugging the driver?

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

More
15 Jan 2022 00:35 #231835 by hitchhiker
i done debugging yesterday and i read with a terminal on my notebook parallel to rx and tx...

rx is dead and tx sends commands but the commands different between linux and mach. then i start building a rs485 to rs232 converter.

i use a ftdi232 and a max485.
same shit different day.. mach3 works but on linux i have no rx.

now i read manual.. where to set error led.

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

More
15 Jan 2022 01:19 #231838 by hitchhiker
is saw on my manual that pr 119 0=1 stopbit and 1=2 stopbits.

could you tell me if its a failure from my manual or we have different vfds?!

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

More
15 Jan 2022 03:17 #231847 by cmorley
That is an error in the info I posted - I will fix the docs thank you.
1 = 8 bit data, 2 stop bits

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

More
15 Jan 2022 03:30 #231848 by cmorley
PR 123 sets the timeout time (which will set the error LED)
If you set it to 9999 it will never light the LED on a communication error.
Any other setting is the time in ms to wait for a response before setting an error.
This time out will not start until a connection is established.

So you can use those facts to imply whether the VFD started communicating and failed.
If you set a timeout and the LED never lights, then that implies the communication never even started. If it lights then the VFD a least recognised the communication try.

Then by setting it to 9999 and trying again to see if it's intermittent errors. (intermittent errors would allow the VFD to work somewhat)

It could be a linux serial driver problem. or the USB converter timing problem, or the python driver problem, or the VFD not set up as the python driver expects.

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

Time to create page: 0.240 seconds
Powered by Kunena Forum