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 19 matches
CCS Forum Index
Author Message
  Topic: Modbus & ticker
greenbridge

Replies: 19
Views: 54427

PostForum: General CCS C Discussion   Posted: Wed Mar 17, 2021 6:59 am   Subject: Modbus & ticker
Thanks a bunch Very Happy
  Topic: Modbus & ticker
greenbridge

Replies: 19
Views: 54427

PostForum: General CCS C Discussion   Posted: Wed Mar 17, 2021 2:32 am   Subject: Modbus & ticker
The thing is that the unit is used in potentially "noisy" environment. I hope to fix the problem by replacing the current PIC with the one with dedicated data eeprom (like PIC16F17xx).
  Topic: Modbus & ticker
greenbridge

Replies: 19
Views: 54427

PostForum: General CCS C Discussion   Posted: Wed Mar 17, 2021 12:16 am   Subject: Modbus & ticker
RTC is not necessary. I prefer the pin compatible PIC to avoid the changes in the hardware design.
  Topic: Modbus & ticker
greenbridge

Replies: 19
Views: 54427

PostForum: General CCS C Discussion   Posted: Tue Mar 16, 2021 4:04 pm   Subject: Modbus & ticker
Hi.

I added BORV25 without success (My bad overseeing this, anyway).

All of the chips on the PCB are decoupled with 100 nF capacitors.
Power supply has a proper common mode choke filtering (te ...
  Topic: Modbus & ticker
greenbridge

Replies: 19
Views: 54427

PostForum: General CCS C Discussion   Posted: Tue Mar 16, 2021 10:08 am   Subject: Modbus & ticker
How was the PIC programmed ?
ICD-U64

Only one PIC with this problem ?
Multiple devices installed in identical units (refrigerant compressors). Some working without problems, some having the probl ...
  Topic: Modbus & ticker
greenbridge

Replies: 19
Views: 54427

PostForum: General CCS C Discussion   Posted: Tue Mar 16, 2021 9:43 am   Subject: Modbus communication stop
It seems like large chunks of the program memory are being deleted after some time (hours). I am not sure what causes this. Could it be RF or an error in virtual eeprom write functions.?

Any ideas ...
  Topic: Modbus & ticker
greenbridge

Replies: 19
Views: 54427

PostForum: General CCS C Discussion   Posted: Wed Mar 03, 2021 2:25 am   Subject: Modbus communication stop
Hi guys,

Can point anything in the code below that can cause communication stop or the PIC to stop executing the code:
  Topic: Modbus poll period
greenbridge

Replies: 4
Views: 15142

PostForum: General CCS C Discussion   Posted: Tue Nov 17, 2020 7:19 am   Subject: Modbus poll period
Ok. Thanks. I will check.
  Topic: Modbus poll period
greenbridge

Replies: 4
Views: 15142

PostForum: General CCS C Discussion   Posted: Tue Nov 17, 2020 4:42 am   Subject: Modbus poll period
Hi,

What would be a physical limitation for the code below in terms of how often the slave unit can be polled by the master ? Previously polling was once per second.
In the new setup polling occur ...
  Topic: Modbus holding registers map
greenbridge

Replies: 18
Views: 38051

PostForum: General CCS C Discussion   Posted: Fri Aug 09, 2019 7:44 am   Subject: Modbus holding registers map
It worked fine. Thanks a lot!
  Topic: Modbus holding registers map
greenbridge

Replies: 18
Views: 38051

PostForum: General CCS C Discussion   Posted: Thu Aug 08, 2019 7:51 am   Subject: Modbus holding registers map
I have up to date compiler 5.087

//////////////////////////////////////////////////////////////////////////////////////////
//// modbus_phy_layer.h ...
  Topic: Modbus holding registers map
greenbridge

Replies: 18
Views: 38051

PostForum: General CCS C Discussion   Posted: Thu Aug 08, 2019 7:01 am   Subject: Modbus holding registers map
I have quite new PC running Win10.

I tried to alter the data array definition in modbus_rx structure to unsigned int16 but it messes up the CRC.
  Topic: Modbus holding registers map
greenbridge

Replies: 18
Views: 38051

PostForum: General CCS C Discussion   Posted: Thu Aug 08, 2019 5:45 am   Subject: Modbus holding registers map
Thanks. Works fine for holding registers with offset 200.

Now I have a new problem (surprise!):

The input registers have offset 300.

300 = 0b000100101100
is read by slave as
43 =0b‭001010 ...
  Topic: Modbus holding registers map
greenbridge

Replies: 18
Views: 38051

PostForum: General CCS C Discussion   Posted: Thu Aug 08, 2019 3:55 am   Subject: Modbus holding registers map
From the supplied modbus_phy_layer.h:

struct
{
unsigned int8 address;
unsigned int8 len; //number of bytes in the message received
function func; ...
  Topic: Modbus holding registers map
greenbridge

Replies: 18
Views: 38051

PostForum: General CCS C Discussion   Posted: Thu Aug 08, 2019 3:00 am   Subject: Modbus holding registers map
I am compiling for PIC16F1518.
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group