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 5 matches
CCS Forum Index
Author Message
  Topic: Dec to Hex - Merge Digits to a Num
delilcodes

Replies: 6
Views: 20936

PostForum: General CCS C Discussion   Posted: Sun May 16, 2021 4:52 am   Subject: Dec to Hex - Merge Digits to a Num
As I said:


You need to #include <stdlib.h> before this is available.


How you send fractional numbers will depend totally on what the device
you are talking to expects.
Modbus does ...
  Topic: Dec to Hex - Merge Digits to a Num
delilcodes

Replies: 6
Views: 20936

PostForum: General CCS C Discussion   Posted: Sun May 16, 2021 1:04 am   Subject: Dec to Hex - Merge Digits to a Num
Are you trying to store each hex digit as an element of an array?

Yeah. I wanna create modbus communication and send value of weigth to master for respond. I wanted to send hex digits but it is doe ...
  Topic: Dec to Hex - Merge Digits to a Num
delilcodes

Replies: 6
Views: 20936

PostForum: General CCS C Discussion   Posted: Sat May 15, 2021 1:00 pm   Subject: Dec to Hex - Merge Digits to a Num
I used the expression like;

i = (hexDigits[2]<<16)|(hexDigits[1]<<8)|(hexDigits[0]);

But i didnot work. Whats the problem here?
  Topic: Dec to Hex - Merge Digits to a Num
delilcodes

Replies: 6
Views: 20936

PostForum: General CCS C Discussion   Posted: Sat May 15, 2021 12:16 pm   Subject: Dec to Hex - Merge Digits to a Num
I am trying to change dec numbers to hex. It turned out to be harder than I thought. Maybe I think too much. I just want to turn change just non-fractional side of number.


doubleWeigth = 69 ...
  Topic: Modbus - Exception 0C
delilcodes

Replies: 2
Views: 16948

PostForum: General CCS C Discussion   Posted: Wed May 12, 2021 1:58 pm   Subject: Modbus - Exception 0C
Hello all,

I am new at Modbus and trying to communicate on PIC processors via RS485. I have using Modbus library. When I started the Proteus simulation this exception returns. Only this exception r ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group