Mesa 7i96S SSERIAL and pktuart

More
10 Apr 2024 19:03 #297948 by lkavan
Hallo,
I have used in my machine Mesa 7i96S -> 7i74 -> 7i87 I have flashed 7i96s_7i74d.bin and everything works. But I also need to control the driver for tin pump motor (will be used as spindle) Driver is controlled with something like modbus. So, my idea was to use serial port on 7i96S Unfortunatelly, in HALshow I see there sserial port only and not pktuart. I have tried to flash 7i96sd_pktv2.bin but then 7i74 and 7i87 doesn't work. Is it possible to have 7i74 connected to 7i96s 's P1 and use serial port on TB2 as pktuart?
Thanx a lot for your help.

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

More
10 Apr 2024 19:40 #297950 by PCW
Replied by PCW on topic Mesa 7i96S SSERIAL and pktuart
That may be quite a project, but I can add a PKTUart
to either the last channel of the 7I74 or the local port
on the 7I96S
The following user(s) said Thank You: lkavan

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

More
10 Apr 2024 19:57 #297954 by lkavan
Thanx for answer! I am changing control system in my selective soldering machine Inertec ELS 3.0 Machine is not bad, but original control system is horrible, LinuxCNC and Mesa will move the machine to 21.century ;-)
Well, it doesn't matter where pktuart will be, but I think, 7i96s local port will be better.

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

More
11 Apr 2024 01:05 #297977 by PCW
Replied by PCW on topic Mesa 7i96S SSERIAL and pktuart
7I96S configuration with PKTUART on the 7I96s and 7I74
(all sserial) on P1. Note that the P1 sserial  port changed to
to port 0 (was port 1)

 

File Attachment:

File Name: 7i96spkt_7i74d.zip
File Size:311 KB

 
Attachments:
The following user(s) said Thank You: lkavan

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

More
11 Apr 2024 05:53 #297990 by lkavan
Waw, you are really super fast! Thanx a lot, I will test it!
Thank you very much.

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

More
11 Apr 2024 18:29 #298018 by lkavan
I have flashed new software, changed sserial to 0 in HAL and it works. I have compiled and installed mesa_modbus with halcompile and loaded it in HAL. It seems it also works fine, I see modbus in HALshow. Great! But I don't know how to start modbus communication? Checked with oscilloscope, no communication on RS485. Can you help me what I am doing wrongly? Thanx.

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

More
11 Apr 2024 18:52 #298021 by PCW
Replied by PCW on topic Mesa 7i96S SSERIAL and pktuart
What error does modbus show?

Note that for 2 wire RS-485 on a 7I96S (pre REV E) ,
you this need for RS-485 communications to set
the undriven line state to idle:

1 GND
2 RX+,TX+ 330 Ohm pulldown to GND (1)
3 RX-,TX- 
4 RX+,TX+
5 RX-,TX1-   330 Ohm pullup to 5V (6)
6 +5V
 

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

More
11 Apr 2024 19:08 #298022 by lkavan
Yes, I have connected Rx and Tx according to 7i96S manual.
last_err pin is 0, fault also 0. I also compiled modbus with #define DEBUG 3 and no errors. Everything looks to be OK, but no communication.

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

More
11 Apr 2024 19:17 - 11 Apr 2024 19:18 #298023 by PCW
Replied by PCW on topic Mesa 7i96S SSERIAL and pktuart
Is the device you are connected to 2 wire or 4 wire?
if 2 wire RS-485, you will need to connect RX- to TX-
and RX+to TX+ and add the resistors shown in the previous
post. (the resistors need to be added in any case, 2 wire or 4 wire)

The fact that you get an error of 0 suggests that something
basic is unconnected in the hal file, is your setup something like this:

loadrt gs10 ports=hm2_7i96s.0.pktuart.0
addf gs10.00 servo-thread
setp gs10.00.baudrate 38400
setp gs10.00.address 1

 
Last edit: 11 Apr 2024 19:18 by PCW.

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

More
11 Apr 2024 19:28 #298024 by lkavan
I have 2 wire RS485. I have connected RX- to TX-
and RX+to TX+ and added resistors, but I have checked both TX+ and TX- with oscilloscope and no data are there.
I am not at my machine now, I will send you my hal and more info tomorrow. Thanx for support.

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

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