Mitsubishi VFD Modbus cant get it work

More
12 Jan 2022 17:22 #231574 by hitchhiker
~$ ls -l /dev/ttyUSB0

give me :
dialout correct or?!

crw-rw---- 1 root dialout 188, 0 Jan 12 17:54 /dev/ttyUSB0

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

More
12 Jan 2022 18:37 #231579 by hitchhiker
i done a test.... my friend use a hitachi vfd wj200.

i connect my pc,with the rs485 ch341 dongle to his wj200.

then i load his machine from my pc. the vfd works.

crosstest... its not possible to connect to the mitsub_vfd.

then we use a rs232 to rs485 adapter, nothing, same error. with his wj200 no problem.

then we use a ftdi 232 to 485.. same problem.

when i use terminal, run hal, loadusr mitsub_vfd, everytime i get error no serial interface found.

could it be a problem with python?!
or is the mitsub_vfd not working because it have a failure inside?!

for my understanding :

it must be possible to load the compnent inside the terminal right?

can someone please test it?

hal run
loadusr mitsub_vfd


thanks

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

More
12 Jan 2022 19:05 #231583 by Todd Zuercher
Your Mitsubishi drive still works with Mach3?

My best guess is it is most likely a configuration issue with the RS485 com settings with the Mitsu drive.

Could you post copies of your Mach3 modbus config files, so we can compair them with the settings you're trying to use with Linuxcnc?

Should be files named something like "ModBus.cfg" or "TCPModBus.cfg".

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

More
12 Jan 2022 19:07 #231584 by hitchhiker
hey hey hey

i got it work!!!!

i founda simple solution, now i will test it.. if it works i post it!

i must make coffee and start what i think...

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

More
12 Jan 2022 19:50 #231593 by Todd Zuercher
What was the problem?

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

More
12 Jan 2022 19:55 #231595 by hitchhiker
ok...

i add to the mitsub_vfd.py the line

self.ser.close()

befor

self.ser.open()

now i do:
terminal
halrun

loadusr -Wn test mitsub_vfd -p /dev/ttyUSB0 mitsu=01

but i cant get the vfd to run...

i show me the pins with show pin
then i send:

mitsu.run TRUE
mitsu.motor-cmd 100

nothing happend.

:(

i will upload mach3 settings... i have found the modbus.cfg but in this file are only 2 and other symbols.

but i know my settings.

com2 9600 baud 2 stop none parity
slave adress 1
num reg is 1
start is as holding registers:

8 for start fwd (2), start rev, stop (0)
13 for speed

the brain :

spindle cw on pass signal A*2 mod:0-P:0

spinRPM -Ovden pass signal A/0.28 mod:0-P:1


should i upload this 2 files? or is this ok?


thanks

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

More
12 Jan 2022 20:20 #231601 by Todd Zuercher
Try starting Linuxcnc from the command line, then watch that terminal for error messages that might give a better clue to what the current problem is.

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

More
12 Jan 2022 20:22 #231603 by hitchhiker
this is whst i done for the first error ever i get on linux :)

i will check with oszi ifi have transfer between rs485 pc to rs485 mitsubishi vfd....

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

More
13 Jan 2022 03:16 #231628 by cmorley
try setting estop to true.
There is also a debug pin that will print lots of debug messages to the terminal

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

More
13 Jan 2022 06:14 #231630 by hitchhiker
good morning.

i try this, but .. nothing.

could it be a issue with the ch341 driver? i test it with a ftdi to max485.. nothing... on my mach3 both works.

the traffic with a real oszi show a little bit different between mach3 and linuxcnc....


dont know whats wrong....

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

Time to create page: 0.182 seconds
Powered by Kunena Forum