CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 11 matches
CCS Forum Index
Author Message
  Topic: RS485 Modbus
Warday

Replies: 17
Views: 55435

PostForum: General CCS C Discussion   Posted: Fri Aug 27, 2021 11:18 am   Subject: RS485 Modbus
Indeed. That's why I suggest replacing the demos initialization with your own as I show in the fix. (Delete the use with pc and use only what I needed). I saw different topics with this problem but wi ...
  Topic: RS485 Modbus
Warday

Replies: 17
Views: 55435

PostForum: General CCS C Discussion   Posted: Fri Aug 27, 2021 9:31 am   Subject: RS485 Modbus
You are missing the point.
The RX signal has to go _both_ to INT_EXT, and the receive pin.
The INT_EXT is used to 'trigger' the start of the receive, but the data
still has to actually be received ...
  Topic: RS485 Modbus
Warday

Replies: 17
Views: 55435

PostForum: General CCS C Discussion   Posted: Thu Aug 26, 2021 2:57 pm   Subject: RS485 Modbus
As I have already pointed oot in another thread, 'USE_WITH_PC' means
the modbus will be setup to use INT_EXT to trigger the receive, not INT_RX.

I already try that. I used INT_EXT and INT_RDA
...
  Topic: RS485 Modbus
Warday

Replies: 17
Views: 55435

PostForum: General CCS C Discussion   Posted: Tue Aug 24, 2021 12:53 pm   Subject: RS485 Modbus
Seeing the adapters you are using, I assume the PIC side would be handled well by the library which will switch TX/RX direction as needed by the code.

On the Python side, you would always be in rec ...
  Topic: RS485 Modbus
Warday

Replies: 17
Views: 55435

PostForum: General CCS C Discussion   Posted: Tue Aug 24, 2021 9:00 am   Subject: RS485 Modbus
You are selecting USE_WITH_PC. This is designed for when the PIC
system is being attached via RS232 to a PC, and it then has to handle the
RS485, using INT_EXT, not the UART. Is this what you are d ...
  Topic: RS485 Modbus
Warday

Replies: 17
Views: 55435

PostForum: General CCS C Discussion   Posted: Tue Aug 24, 2021 8:15 am   Subject: RS485 Modbus
re: ...I have a RS482 to usb adapter and a HW-97 RS482 for the pic

I have to ask HOW do the adapters control the direction of RS-485 data ?

BTW I didn't find HW-97 to be an adapter...seems to b ...
  Topic: RS485 Modbus
Warday

Replies: 17
Views: 55435

PostForum: General CCS C Discussion   Posted: Tue Aug 24, 2021 7:25 am   Subject: RS485 Modbus
I have a RS482 to usb adapter and a HW-97 RS482 for the pic. Whit that I can convert normal serial communication to rs485. That works ok. Now I want to implement Modbus on that communication.

Since ...
  Topic: RS485 Modbus
Warday

Replies: 17
Views: 55435

PostForum: General CCS C Discussion   Posted: Mon Aug 23, 2021 1:59 pm   Subject: RS485 Modbus
Hi, I’m trying a simple Modbus communication using RS485. I have already used RS485 to communicate thru serial without problem. Now I want to implement Modbus protocol. I only required to read and e ...
  Topic: qei configuration to solve overflow encoder
Warday

Replies: 5
Views: 17555

PostForum: General CCS C Discussion   Posted: Tue May 25, 2021 12:55 pm   Subject: qei configuration to solve overflow encoder
Thanks Ttelmah it works!!!
with QEIval.whole don't you mean QEIval.total? QEIval.whole give me error
Thank temtronic. As it is a test version i have not yet applied your advice. I will apply it o ...
  Topic: qei configuration to solve overflow encoder
Warday

Replies: 5
Views: 17555

PostForum: General CCS C Discussion   Posted: Sat May 22, 2021 12:18 pm   Subject: qei configuration to solve overflow encoder
Thanx for the reply. I will modify the code and when it is done I will comment the result. Thanx!!
  Topic: qei configuration to solve overflow encoder
Warday

Replies: 5
Views: 17555

PostForum: General CCS C Discussion   Posted: Fri May 21, 2021 2:59 pm   Subject: qei configuration to solve overflow encoder
Hi. I’m using an dsPIC30f4012 to control a motor on a robot. Unfortunately, my encoder doesn’t have index and I reach more than 2^16 on counter. I read on the documentation that in that cases is r ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group