Modbus connection issue mesa 7i76eu pktUART

More
1 year 4 months ago #330630 by AdelRTP
Hello Bro's;
I m trying to control (read/write ) data from MR-JE mistubishi servo drive using the 7I76EU mesa board, using PKTUART, i could reveive data from mitsubishi HMI but when i tried reading the data from the servo drive, it seems like the connection happened but there is not data reed and when i run the linuxcnc it take time to open not like usual time and two type of error appear as shown on the pic bellow. you will find also the .HAL configuration file and the C file where i put the adresse i wanted to read 
 

Please Log in to join the conversation.

More
1 year 4 months ago #330632 by PCW
Are holding registers at 0003 and 0004 readable?

Please Log in to join the conversation.

More
1 year 4 months ago #330636 by AdelRTP
At the end those two adresses are not readable and i change them according the the mitsubishi datasheet with two other adresses and it works thank you so much for your help
i have one last question please now i want to read data from different slaves (3 servo dirvers) how can i do that , i've tried to add a second device initialization on the hal file and i created a new comp file but the problem is one of them connect and the second slave doesn't respond

Please Log in to join the conversation.

More
1 year 4 months ago #330643 by PCW
The original modbus driver only supports one device per interface
(its basically for VFD spindles or just single devices)

For multiple devices, use hm2_modbus

man hm2_modbus

man mesambccc
 

Please Log in to join the conversation.

More
1 year 4 months ago #330648 by AdelRTP
I dont understand what is hm2_modbus new firmware ?
How to use it, what i should do ?
in mesa modbus i just find this
PktUART
MB2HAL
vfdmod
Classic Ladder
i want to use Classic ladder but i dont know how

Please Log in to join the conversation.

More
1 year 4 months ago #330650 by PCW
hm2_modbus is an alternate modbus interface to Mesa FPGA cards with 
PKTUART firmware. It supports additional features such as multiple devices
per interface, one time initialization code etc etc.

You need to have the latest LinuxCNC to have hm2_modbus

if

man hm2_modbus

Gives you a manual page, you have a late enough version of LinuxCNC
to use hm2_modbus.

hm2_modbus will work with your existing firmware.

 

Please Log in to join the conversation.

More
1 year 4 months ago #330652 by AdelRTP
i have LINUXCNC - 2.9.4 the last version but where can i find man hm2_modbus, can you show me how to use hm2_modbus, mesambccc, give me examples please

Please Log in to join the conversation.

More
1 year 4 months ago #330655 by AdelRTP
i have LINUXCNC - 2.9.4 the last version but where can i find man hm2_modbus, can you show me how to use hm2_modbus, mesambccc, give me examples please
I use mesambccc --help, it dos not exist
 

Attachment not found

Please Log in to join the conversation.

More
1 year 4 months ago #330659 by tommylight


man hm2_modbus

man mesambccc

 
You forgot "man"

Please Log in to join the conversation.

More
1 year 4 months ago #330663 by PCW
The OP may need to update LinuxCNC to the latest 2.9.4 or 2.10

I'm not an expert in this as I usually use a built from source RIP installation
 

Please Log in to join the conversation.

Time to create page: 0.230 seconds
Powered by Kunena Forum