7i92 firmware editing

More
05 Aug 2023 04:00 #276967 by nwallace
Replied by nwallace on topic 7i92 firmware editing
Ah, I see. So I would need to make my own pcb that pulls out the proper pins with a transceiver chip to make a 7i84 work. Thanks for your help!

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

More
18 Aug 2023 21:35 #278416 by nwallace
Replied by nwallace on topic 7i92 firmware editing
Another quick question. Is there any reason why I couldn't just use a SP490 instead of a SP491 if I am only trying to connect to Mesa SSerial devices and not generic RS485?

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

More
18 Aug 2023 21:42 #278417 by PCW
Replied by PCW on topic 7i92 firmware editing
Sure, for SSerial or RS-422 only stuff (abs encoders etc) a SP490 is fine
The following user(s) said Thank You: nwallace

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

More
30 Aug 2023 14:51 #279381 by Donno
Replied by Donno on topic 7i92 firmware editing
I want to add modbus to 7i92TH I have received my 74LV04 and SP491 ic's today. Can I connect the RX0,TX0 and TXEN0 to 7i92TH io pins after the Pi5c16211 ?

 
Attachments:

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

More
30 Aug 2023 15:24 #279384 by PCW
Replied by PCW on topic 7i92 firmware editing
Yes, and no level shifting /inversion is needed (so no LV04s )
Also for MODBUS and its low baudrates its better to disconnect
the 120 ohm termination (say a jumper option to disconnect R18
(leaving  the pullup/pulldown resistors connected)
The following user(s) said Thank You: Donno

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

More
31 Aug 2023 05:24 - 31 Aug 2023 05:25 #279444 by Donno
Replied by Donno on topic 7i92 firmware editing
If i wanted to connect MODBUS A/B from slave to SP491 since there is only 2 wires will i connect A/B to TX+/RX+ or TX+/RX- ?
Last edit: 31 Aug 2023 05:25 by Donno. Reason: Made it more descriptive

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

More
31 Aug 2023 06:01 #279447 by Donno
Replied by Donno on topic 7i92 firmware editing
Is it also possible to replace the SP491 with MAX485 ?

 
Attachments:

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

More
31 Aug 2023 13:26 #279471 by PCW
Replied by PCW on topic 7i92 firmware editing
TX+/RX+ to B
TX-/RX- to A

Yes a MAX485 or equivalent will work for RS-485 (modbus etc) but not for sserial which is RS-422
On the MAX485, /RE needs to be grounded and DE needs to connect to TXEN
The following user(s) said Thank You: Donno

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

More
31 Aug 2023 13:37 #279473 by Donno
Replied by Donno on topic 7i92 firmware editing
If i get Modbus working how does linuxcnc interact with modbus ? I have a lathe with usb dongle to modbus i use mb2hal.ini
[MB2HAL_INIT]

INIT_DEBUG=3
HAL_MODULE_NAME=mb2hal
SLOWDOWN=0.0
TOTAL_TRANSACTIONS=2

[TRANSACTION_00]

LINK_TYPE=serial
SERIAL_PORT=/dev/ttyUSB0
SERIAL_BAUD=19200
SERIAL_BITS=8
SERIAL_PARITY=even
SERIAL_STOP=1
SERIAL_DELAY_MS=10
MB_SLAVE_ID=1
FIRST_ELEMENT=321
NELEMENTS=1
MB_TX_CODE=fnct_16_write_multiple_registers
MB_RESPONSE_TIMEOUT_MS=500
MB_BYTE_TIMEOUT_MS=500

#OPTIONAL: Instead of giving the transaction numer, use a name.
#Example: mb2hal.00.01 could become mb2hal.plcin.01
#The name must not exceed 32 characters.
#NOTE: when using names be careful that you dont end up with two transactions
#usign the same name.

HAL_TX_NAME=SetSpeed
MAX_UPDATE_RATE=0.0
DEBUG=1


[TRANSACTION_01]
MB_TX_CODE=fnct_03_read_holding_registers
FIRST_ELEMENT=449
NELEMENTS=1
HAL_TX_NAME=GetSpeed
MAX_UPDATE_RATE=0.0
DEBUG=1

Will the SSerial use mb2hal.ini file ? If so how would the settings look like ? Here is my --readhmid
Configuration Name: HOSTMOT2

General configuration information:

  BoardName : MESA7I92
  FPGA Size: 20 KGates
  FPGA Pins: 256
  Number of IO Ports: 2
  Width of one I/O port: 17
  Clock Low frequency: 100.0000 MHz
  Clock High frequency: 175.0000 MHz
  IDROM Type: 3
  Instance Stride 0: 4
  Instance Stride 1: 64
  Register Stride 0: 256
  Register Stride 1: 256

Modules in configuration:

  Module: DPLL
  There are 1 of DPLL in configuration
  Version: 0
  Registers: 7
  BaseAddress: 7000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: WatchDog
  There are 1 of WatchDog in configuration
  Version: 0
  Registers: 3
  BaseAddress: 0C00
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: IOPort
  There are 2 of IOPort in configuration
  Version: 0
  Registers: 5
  BaseAddress: 1000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: QCount
  There are 2 of QCount in configuration
  Version: 2
  Registers: 5
  BaseAddress: 3000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: StepGen
  There are 10 of StepGen in configuration
  Version: 2
  Registers: 10
  BaseAddress: 2000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: PWM
  There are 2 of PWM in configuration
  Version: 0
  Registers: 5
  BaseAddress: 4100
  ClockFrequency: 175.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: LED
  There are 1 of LED in configuration
  Version: 0
  Registers: 1
  BaseAddress: 0200
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: SSerial
  There are 1 of SSerial in configuration
  Version: 0
  Registers: 6
  BaseAddress: 5B00
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 64 bytes

Configuration pin-out:

IO Connections for P2
DB25 pin#             I/O   Pri. func    Sec. func        Chan     Sec. Pin func   Sec. Pin Dir

 1                      0   IOPort       PWM              0        PWM             (Out)
14                      1   IOPort       StepGen          0        Step/Table1     (Out)
 2                      2   IOPort       StepGen          0        Dir/Table2      (Out)
15                      3   IOPort       StepGen          1        Step/Table1     (Out)
 3                      4   IOPort       StepGen          1        Dir/Table2      (Out)
16                      5   IOPort       None           
 4                      6   IOPort       None           
17                      7   IOPort       None           
 5                      8   IOPort       None           
 6                      9   IOPort       QCount           0        Quad-A          (In)
 7                     10   IOPort       QCount           0        Quad-B          (In)
 8                     11   IOPort       QCount           0        Quad-IDX        (In)
 9                     12   IOPort       None           
10                     13   IOPort       None           
11                     14   IOPort       None           
12                     15   IOPort       None           
13                     16   IOPort       None           

IO Connections for P1
DB25 pin#             I/O   Pri. func    Sec. func        Chan     Sec. Pin func   Sec. Pin Dir

 1                     17   IOPort       SSerial          0        RXData0         (In)
14                     18   IOPort       SSerial          0        TXData0         (Out)
 2                     19   IOPort       None           
15                     20   IOPort       None           
 3                     21   IOPort       None           
16                     22   IOPort       None           
 4                     23   IOPort       None           
17                     24   IOPort       None           
 5                     25   IOPort       None           
 6                     26   IOPort       None           
 7                     27   IOPort       None           
 8                     28   IOPort       None           
 9                     29   IOPort       None           
10                     30   IOPort       None           
11                     31   IOPort       None           
12                     32   IOPort       None           
13                     33   IOPort       None 

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

More
31 Aug 2023 13:57 #279475 by PCW
Replied by PCW on topic 7i92 firmware editing
No, you would use firmware with a UART (PktUART) on the RX,TX and TXEN pins

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

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