Modbus connection issue mesa 7i76eu pktUART

More
21 Jun 2025 14:09 #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 
 
Attachments:

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

More
21 Jun 2025 14:53 #330632 by PCW
Are holding registers at 0003 and 0004 readable?
The following user(s) said Thank You: AdelRTP

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

More
21 Jun 2025 15:37 #330636 by AdelRTP
Replied by AdelRTP on topic Modbus connection issue mesa 7i76eu pktUART
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 or Create an account to join the conversation.

More
21 Jun 2025 16:34 #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
 
The following user(s) said Thank You: AdelRTP

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

More
21 Jun 2025 16:58 #330648 by AdelRTP
Replied by AdelRTP on topic Modbus connection issue mesa 7i76eu pktUART
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 or Create an account to join the conversation.

More
21 Jun 2025 18:03 #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 or Create an account to join the conversation.

More
21 Jun 2025 18:42 #330652 by AdelRTP
Replied by AdelRTP on topic Modbus connection issue mesa 7i76eu pktUART
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 or Create an account to join the conversation.

More
21 Jun 2025 19:21 #330655 by AdelRTP
Replied by AdelRTP on topic Modbus connection issue mesa 7i76eu pktUART
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
 
Attachments:

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
21 Jun 2025 21:11 #330659 by tommylight
Replied by tommylight on topic Modbus connection issue mesa 7i76eu pktUART


man hm2_modbus

man mesambccc

 

You forgot "man"

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

More
21 Jun 2025 22:25 #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 or Create an account to join the conversation.

Time to create page: 0.104 seconds
Powered by Kunena Forum