Request custom bitfile: 5i25 + 7i77 (P3) + 7i74 (P2) with pktUART for Modbus

More
29 Jun 2026 14:19 - 29 Jun 2026 14:27 #347391 by umerov
I am retrofitting an old Morbidelli CNC woodworking machine. My old setup used analog 0-10V to control the spindle inverter, but I would like to switch to Modbus RTU using an unused channel on my 7I74 card.

I checked the standard Mesa firmware archive but couldn't find a bitfile with the pktUART module for this exact hardware combination. Could PCW or someone else kindly compile a custom bitfile for me with 1 or 2 channels of pktUART on the 7I74, leaving the rest as standard SSerial?

My current hardware configuration is:
5I25 (P3) -> 7I77
5I25 (P2) -> 7I74
  • 7I74 (Channel 0) -> 7I84 (inputs/outputs)
  • 7I74 (Channel 1) -> 7I70 (inputs)
  • 7I74 (Channel 2) -> 7I71 (outputs)
I need channels 0, 1, and 2 to remain SSerial for my existing expansion boards. If channel 6 (or 6 and 7) could be configured as pktUART for the Modbus VFD, that would be perfect!
Thanks in advance for the help!
Last edit: 29 Jun 2026 14:27 by umerov.

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

More
29 Jun 2026 17:06 #347393 by PCW
The 7I74 can only support 1 RS-485 channel (channel 7) as channels 0..6 are RS-422 only

You can use the serial port on the 7I77 for RS-485
 

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

More
29 Jun 2026 17:49 #347396 by umerov
Thank you for the clarification! That actually works out perfectly for my setup.

Since my Modbus VFD needs RS-485, I will use Channel 7 for that.

I also have a custom remote pendant (already come with cnc) that uses full-duplex RS-422, so I can use one of the RS-422-only channels for that.

Could you please compile a 5I25 bitfile with the following configuration?
P3: Standard 7I77
P2: 7I74
Channel 0: SSerial (for my 7I84)
Channel 1: SSerial (for my 7I70)
Channel 2: SSerial (for my 7I71)

Channels 3-5: SSerial (or unused)

Channel 6: pktUART (RS-422 for the Pendant)
Channel 7: pktUART (RS-485 for the Modbus VFD)

Thank you so much for your time and support!

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

More
29 Jun 2026 18:25 #347397 by PCW
 

File Attachment:

File Name: 5i25_7i77_...pktd.zip
File Size:108 KB


5i25 bitfile for 7I77 on P3, 7I74 on P2
2 PktUARTs on 7I74 channels 6 and 7 (PktUART channels 1 and 0)
7I74 channels 0..4 = sserial port 0 channels 3..7
(two sserial ports wont fit with two PktUARTS on a 5I25 but using one sserial port
only loses one 7I74 channel)
Attachments:

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

More
29 Jun 2026 18:37 #347399 by umerov
Thanks a lot for your time and support!

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

More
29 Jun 2026 19:21 #347400 by umerov
Firmware flashed without any errors. However, when launching my configuration, I receive errors.

Could this be because of the old Linux?

Or am I loading it wrong?
loadrt hm2_pci config="num_encoders=3 num_pwmgens=0 num_stepgens=0 sserial_port_0=000000 sserial_port_1=00000000"

Terminal output:

Note: Using POSIX realtime
hm2/hm2_5i25.0: inconsistent Module Descriptor for PktUART Transmit Channel, not loading driver
hm2/hm2_5i25.0: Version = 3, expected 0
hm2/hm2_5i25.0: NumRegisters = 4, expected 4
hm2/hm2_5i25.0: InstanceStride = 0x00000004, expected 0x00000004
hm2/hm2_5i25.0: MultipleRegisters = 0x0000000F, expected 0x0000000F
hm2/hm2_5i25.0: inconsistent Module Descriptor!
hm2/hm2_5i25.0: failed to parse Module Descriptor 5
hm2_5i25.0: board fails HM2 registration
RTAPI_PCI: Unmapped 65536 bytes at 0x7f733da96000
Driver probe function failed!
hm2_pci: error registering PCI driver
hm2_pci: rtapi_app_main: Operation not permitted (-1)

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

More
29 Jun 2026 20:55 - 29 Jun 2026 21:00 #347402 by PCW
Yes, too old to run MODBUS which requires a PktUART version >1:


hm2/hm2_5i25.0: inconsistent Module Descriptor for PktUART Transmit Channel, not loading driver
hm2/hm2_5i25.0: Version = 3, expected 0



Also with this firmware there is no sserial port 1
(all channels = 0..7 are port 0)
Last edit: 29 Jun 2026 21:00 by PCW.

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

More
29 Jun 2026 22:31 #347405 by umerov
After updating LinuxCNC, it starts normally. I load it using:
loadrt hm2_pci config="num_encoders=3 num_pwmgens=0 num_stepgens=0 sserial_port_0=000000 num_pktuarts=2"

However, I have another problem: I can’t find any pins like these:
hm2_5i25.0.pktuart.0.tx-data
hm2_5i25.0.pktuart.0.tx-bytes
hm2_5i25.0.pktuart.0.rx-data
hm2_5i25.0.pktuart.0.rx-bytes
Attachments:

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

More
29 Jun 2026 22:40 - 29 Jun 2026 22:40 #347406 by PCW
The pktuart driver creates no hal pins

for modbus, you would use hm2_modbus:

man hm2_modbus

and mesambccc:

man mesambccc


 
Last edit: 29 Jun 2026 22:40 by PCW.

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

More
29 Jun 2026 22:53 #347407 by umerov
I understand how to use Modbus, thanks.
How do I use Channel 6: pktUART (RS-422 for the pendant)? Is it the same as Modbus?

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

Moderators: PCWjmelson
Time to create page: 0.094 seconds
Powered by Kunena Forum