- Posts: 8
- Thank you received: 0
Request custom bitfile: 5i25 + 7i77 (P3) + 7i74 (P2) with pktUART for Modbus
4 months 1 day ago #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
Thanks in advance for the help!
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)
Thanks in advance for the help!
Please Log in to join the conversation.
4 months 1 day ago #347393
by PCW
Replied by PCW on topic Request custom bitfile: 5i25 + 7i77 (P3) + 7i74 (P2) with pktUART for Modbus
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
You can use the serial port on the 7I77 for RS-485
Please Log in to join the conversation.
4 months 1 day ago #347396
by umerov
Replied by umerov on topic Request custom bitfile: 5i25 + 7i77 (P3) + 7i74 (P2) with pktUART for Modbus
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!
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 to join the conversation.
4 months 1 day ago #347397
by PCW
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)
Replied by PCW on topic Request custom bitfile: 5i25 + 7i77 (P3) + 7i74 (P2) with pktUART for Modbus
Attachment not found
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)
Please Log in to join the conversation.
4 months 1 day ago #347399
by umerov
Replied by umerov on topic Request custom bitfile: 5i25 + 7i77 (P3) + 7i74 (P2) with pktUART for Modbus
Thanks a lot for your time and support!
Please Log in to join the conversation.
4 months 1 day ago #347400
by umerov
Replied by umerov on topic Request custom bitfile: 5i25 + 7i77 (P3) + 7i74 (P2) with pktUART for Modbus
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)
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 to join the conversation.
4 months 1 day ago #347402
by PCW
Replied by PCW on topic Request custom bitfile: 5i25 + 7i77 (P3) + 7i74 (P2) with pktUART for Modbus
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)
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)
Please Log in to join the conversation.
4 months 1 day ago #347405
by umerov
Replied by umerov on topic Request custom bitfile: 5i25 + 7i77 (P3) + 7i74 (P2) with pktUART for Modbus
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
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
Please Log in to join the conversation.
4 months 1 day ago #347406
by PCW
Replied by PCW on topic Request custom bitfile: 5i25 + 7i77 (P3) + 7i74 (P2) with pktUART for Modbus
The pktuart driver creates no hal pins
for modbus, you would use hm2_modbus:
man hm2_modbus
and mesambccc:
man mesambccc
for modbus, you would use hm2_modbus:
man hm2_modbus
and mesambccc:
man mesambccc
Please Log in to join the conversation.
4 months 1 day ago #347407
by umerov
Replied by umerov on topic Request custom bitfile: 5i25 + 7i77 (P3) + 7i74 (P2) with pktUART for Modbus
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?
How do I use Channel 6: pktUART (RS-422 for the pendant)? Is it the same as Modbus?
Please Log in to join the conversation.
Time to create page: 0.080 seconds
