- Hardware & Machines
- Driver Boards
- problem while connecting the MESA 7i76e card to RS422 modbus-RTU and servo drive
problem while connecting the MESA 7i76e card to RS422 modbus-RTU and servo drive
18 Nov 2024 11:48 - 18 Nov 2024 11:53 #314746
by azax
problem while connecting the MESA 7i76e card to RS422 modbus-RTU and servo drive was created by azax
Hello everyone,
I am new to using LinuxCNC and the Mesa 7i76e.After connecting the Mesa 7i76e and the L7S servo drive using Modbus-RTU, I followed the connection setup as mentioned in this link:
forum.linuxcnc.org/27-driver-boards/3328...6e-with-uart?start=0
I also used the following bitfile:
freeby.mesanet.com/7i76e_7i76x1_PktD.bit
and I flashed it using Mesaflash.Next, I attempted to communicate with the L7S servo drive using the Mesa card and LinuxCNC. I connected the servo drive to the Mesa card and then connected it to a computer via Ethernet.I followed the codes provided at the bottom of this link:
linuxcnc.org/docs/stable/html/drivers/me...us.html#_quick_start
However, I modified the configuration from 7i96s to 7i76e. I calculated the CRC from google and tried sending an inertia code from terminal . my code like this :
#! /bin/bash
# First setup the DDR and Alt Source regs for the 7I96
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x1100=0x1F800
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x1104=0x1C3FF
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x1200=0x1F800
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x1204=0x1C3FF
# Next set the baud rate DDS's for 9600 baud
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6300=0x65
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6700=0x65
# setup the TX and RX mode registers
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6400=0x00000A20
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6800=0x3FC0140C
# Reset the TX and RX UARTS
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6400=0x80010000
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6800=0x80010000
# load two 8-byte modbus commands:
01 05 00 00 5A 00 F7 6A
11 03 00 8C 00 01 47 71
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6100=0x8C000311
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6100=0x71470100
# Command the TX UART to send the two 8 byte packets
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6200=0x08
#mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6200=0x08
sleep 1
# display TX Mode
mesaflash --device 7i76e --addr 10.10.10.10 --rpo 0x6400
# display the RX mode reg, RX count, and the data
mesaflash --device 7i76e --addr 10.10.10.10 --rpo 0x6800
mesaflash --device 7i76e --addr 10.10.10.10 --rpo 0x6600
mesaflash --device 7i76e --addr 10.10.10.10 --rpo 0x6500
mesaflash --device 7i76e --addr 10.10.10.10 --rpo 0x6500
During testing, I noticed that when I send values, the L7S servo drive responds with unintelligible numbers or data that I cannot interpret.
Could the issue be in the transmission process I followed, or is it a hardware connection problem? For example, do I need a converter from RS-422 to RS-485?I would appreciate any help. Thank you!
I am new to using LinuxCNC and the Mesa 7i76e.After connecting the Mesa 7i76e and the L7S servo drive using Modbus-RTU, I followed the connection setup as mentioned in this link:
forum.linuxcnc.org/27-driver-boards/3328...6e-with-uart?start=0
I also used the following bitfile:
freeby.mesanet.com/7i76e_7i76x1_PktD.bit
and I flashed it using Mesaflash.Next, I attempted to communicate with the L7S servo drive using the Mesa card and LinuxCNC. I connected the servo drive to the Mesa card and then connected it to a computer via Ethernet.I followed the codes provided at the bottom of this link:
linuxcnc.org/docs/stable/html/drivers/me...us.html#_quick_start
However, I modified the configuration from 7i96s to 7i76e. I calculated the CRC from google and tried sending an inertia code from terminal . my code like this :
#! /bin/bash
# First setup the DDR and Alt Source regs for the 7I96
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x1100=0x1F800
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x1104=0x1C3FF
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x1200=0x1F800
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x1204=0x1C3FF
# Next set the baud rate DDS's for 9600 baud
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6300=0x65
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6700=0x65
# setup the TX and RX mode registers
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6400=0x00000A20
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6800=0x3FC0140C
# Reset the TX and RX UARTS
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6400=0x80010000
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6800=0x80010000
# load two 8-byte modbus commands:
01 05 00 00 5A 00 F7 6A
11 03 00 8C 00 01 47 71
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6100=0x8C000311
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6100=0x71470100
# Command the TX UART to send the two 8 byte packets
mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6200=0x08
#mesaflash --device 7i76e --addr 10.10.10.10 --wpo 0x6200=0x08
sleep 1
# display TX Mode
mesaflash --device 7i76e --addr 10.10.10.10 --rpo 0x6400
# display the RX mode reg, RX count, and the data
mesaflash --device 7i76e --addr 10.10.10.10 --rpo 0x6800
mesaflash --device 7i76e --addr 10.10.10.10 --rpo 0x6600
mesaflash --device 7i76e --addr 10.10.10.10 --rpo 0x6500
mesaflash --device 7i76e --addr 10.10.10.10 --rpo 0x6500
During testing, I noticed that when I send values, the L7S servo drive responds with unintelligible numbers or data that I cannot interpret.
Could the issue be in the transmission process I followed, or is it a hardware connection problem? For example, do I need a converter from RS-422 to RS-485?I would appreciate any help. Thank you!
Attachments:
Last edit: 18 Nov 2024 11:53 by azax.
Please Log in or Create an account to join the conversation.
18 Nov 2024 15:17 #314759
by PCW
Replied by PCW on topic problem while connecting the MESA 7i76e card to RS422 modbus-RTU and servo drive
I would try setting up the mesa-modbus component
The 7I76E has an RS-485 interface but does require bias
resistors and the proper connections to work properly:
7I76E
RX- TX- --> A (220 pullup to +5V)
RX+ TX+ --> B (220 pulldown to GND)
Later cards like the 7I96S Rev E and 7I76EU do no required the pullups/pulldowns
The 7I76E has an RS-485 interface but does require bias
resistors and the proper connections to work properly:
7I76E
RX- TX- --> A (220 pullup to +5V)
RX+ TX+ --> B (220 pulldown to GND)
Later cards like the 7I96S Rev E and 7I76EU do no required the pullups/pulldowns
The following user(s) said Thank You: azax
Please Log in or Create an account to join the conversation.
18 Nov 2024 17:44 #314779
by azax
Replied by azax on topic problem while connecting the MESA 7i76e card to RS422 modbus-RTU and servo drive
Attachments:
Please Log in or Create an account to join the conversation.
18 Nov 2024 18:12 #314782
by PCW
Replied by PCW on topic problem while connecting the MESA 7i76e card to RS422 modbus-RTU and servo drive
Note sure, the drive shows a full duplex connection
Is it full or half duplex?
Is it full or half duplex?
The following user(s) said Thank You: azax
Please Log in or Create an account to join the conversation.
18 Nov 2024 18:28 - 18 Nov 2024 18:32 #314783
by azax
Replied by azax on topic problem while connecting the MESA 7i76e card to RS422 modbus-RTU and servo drive
The drive is using RS-422, and I think it operates in Full Duplex (bidirectional) mode.
Last edit: 18 Nov 2024 18:32 by azax.
Please Log in or Create an account to join the conversation.
18 Nov 2024 18:56 #314786
by PCW
Replied by PCW on topic problem while connecting the MESA 7i76e card to RS422 modbus-RTU and servo drive
OK then its just
RX <-- TX
TX --> RX
Though polarity may be either way
Mesa uses the EIA-RS-422/423 standard
where RX+ and TX+ are the inverted data
(for compatibility with RS-423/RS-232)
RX <-- TX
TX --> RX
Though polarity may be either way
Mesa uses the EIA-RS-422/423 standard
where RX+ and TX+ are the inverted data
(for compatibility with RS-423/RS-232)
The following user(s) said Thank You: azax
Please Log in or Create an account to join the conversation.
- Hardware & Machines
- Driver Boards
- problem while connecting the MESA 7i76e card to RS422 modbus-RTU and servo drive
Time to create page: 0.106 seconds