Mitsubishi VFD Modbus cant get it work

More
13 Jan 2022 06:35 #231631 by hitchhiker
one thing....

on my mach3 pc the ftdi usb dongle blinks...

on my linux pc... no blinking.

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

More
13 Jan 2022 13:19 #231657 by cmorley
is this what you see (run from a terminal)
halrun
loadusr mitsub_vfd -p /dev/ttyUSB0
halcmd: /dev/ttyUSB0 9600
Mitsubishi VFD serial computer link has loaded
Port: /dev/ttyUSB0,
baudrate: 9600
8 data bits, no parity, 2 stop bits

Mitsubishi mitsub_vfd VFD: slave# 00 added

setp mitsub_vfd.debug 1
halcmd: setp mitsub_vfd.estop 1
halcmd: **** Mitsubishi VFD: Estop cleared - Must re-issue run command to start mitsub_vfd.
setp mitsub_vfd.run 1
halcmd: DEBUG:
setp mitsub_vfd.monitor 1
halcmd: DEBUG:
halcmd: DEBUG:

control c to exit

also the settings on the vfd for:

PR 79 - 1 or 0
# PR 117 station number - 1 (can be optionally set 0 - 31) if component is also set
# PR 118 communication speed 96 (can be optionally set 48,96,192) if component is also set
# PR 119 stop bit/data length - 0 8 bits, two stop (don't change)
# PR 120 parity - 0 no parity (don't change)
# PR 121 COM tries - 10 if 10 (maximuim) COM errors then inverter faults (can change)
# PR 122 COM check time interval 9999 (never check) if communication is lost inverter will not know (can change)
# PR 123 wait time - 9999 - no wait time is added to the serial data frame (don't change)
# PR 124 CR selection - 0 don't change

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

More
13 Jan 2022 13:46 #231659 by hitchhiker
in 3 hours i am baxk home.

when the slave adress is 00 i must change on the vfd to 00?

my vfd is 01

or can i give him a name like test=01 to get it as adress 01?


thanks

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

More
13 Jan 2022 13:53 #231660 by cmorley
Yes you can have any slave number between 0 - 31 if you specify it at load time.
test=01 is right

Have you looked at the docs?
linuxcnc.org/docs/2.8/html/man/man1/mitsub_vfd.1.html

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

More
13 Jan 2022 14:18 #231663 by hitchhiker
yes i looked to it


have you seen how i get the modul working? i post it yesterday

set serial close and then open?

have you a reason for this?

could it be a usb driver problem?!
i use ch341 232 to 485 via usb.
or ftdi 232 to 485 via usb.


i thank you so much

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

More
13 Jan 2022 17:09 #231680 by hitchhiker
i try what you wrote.


[ 5.968271] 0000:04:00.0: ttyS1 at I/O 0xd0c8 (irq = 18, base_baud = 115200) is a XR16850
[ 1394.753691] usb 2-10: ch341-uart converter now attached to ttyUSB0
cnc@cnc:~$ halrun
halcmd: loadusr test mitsub_vfd -p /dev/ttyUSB0 test=01
halcmd: test: zusätzliches Argument „-p“

halcmd: show pin
Component Pins:
Owner Type Dir Value Name

halcmd: loadusr -Wn test mitsub_vfd -p /dev/ttyUSB0 test=01
/dev/ttyUSB0 9600
Mitsubishi VFD serial computer link has loaded
Port: /dev/ttyUSB0,
baudrate: 9600
8 data bits, no parity, 2 stop bits

Mitsubishi test VFD: slave# 01 added

halcmd: setp test.debug 1
halcmd: setp test.estop 1
**** Mitsubishi VFD: Estop cleared - Must re-issue run command to start test.
halcmd: setp test.run 1
halcmd: DEBUG:

halcmd: setp test.monitor 1
halcmd: DEBUG:
DEBUG:
DEBUG:
DEBUG:
DEBUG:
DEBUG:

debug is empty.. shows not correct...

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

More
13 Jan 2022 19:47 #231700 by hitchhiker
i try to read to the tx line from ft232 to max485.

on mach3 2 leds blinks... rx and tx

with linux only the tx led blinks onetime when i send am command t the vfd like .run 1 or .run 0.

if i do this on mach3 rx tx blinks.

the traffic on mach 3 looks different to linuxcnc.

mach3 : working modbus,rx tx blinks, commands are clear to read as hex.

linuxcnc : only tx blinks when send a command, the command change everytime.

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

More
14 Jan 2022 23:16 #231815 by hitchhiker
today i done some test... i installed arduino ide and programm some arduinos with ch341 and ftdi232 ... no problems...

i think the problem is inside to code? could it possible?


thanks

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

More
14 Jan 2022 23:55 #231823 by cmorley
Sure it's possible - though I used the driver for my lathe.
Did you confirm the settings on the VFD?

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

More
14 Jan 2022 23:59 #231825 by hitchhiker
yes all settings are done.

i have the same settings for mach3.

do you use a rs232 with db9 or usb?

do you have it running or is it years ago???

thanks

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

Time to create page: 0.085 seconds
Powered by Kunena Forum