Author |
Message |
Topic: Modbus CRC variable modbus_serial_crc.d |
lisek_lichu
Replies: 6
Views: 8564
|
Forum: General CCS C Discussion Posted: Wed Sep 04, 2013 1:44 pm Subject: Modbus CRC variable modbus_serial_crc.d |
Hi,
I have analyzed this code and right now I think that I understand it.
It goes like this:
MASTER
in send_start function we set modbus_serial_new=FALSE so it means that we are waiting f ... |
Topic: Modbus 3,5 byte length at beginning and end of ADU |
lisek_lichu
Replies: 10
Views: 15656
|
Forum: General CCS C Discussion Posted: Wed Sep 04, 2013 1:30 pm Subject: Modbus 3,5 byte length at beginning and end of ADU |
Ok thanks a lot for answers,
In my system everybody uses exactly Modbus_over_serial_line_V1_02 spec so i will try to do it like it is described in this document.
I see the problem. The idea of t ... |
Topic: Modbus 3,5 byte length at beginning and end of ADU |
lisek_lichu
Replies: 10
Views: 15656
|
Forum: General CCS C Discussion Posted: Mon Sep 02, 2013 1:05 pm Subject: Modbus 3,5 byte length at beginning and end of ADU |
hi,
thanks for answer. I see that during this 3,5Tz nothing is received by slave because line is in logic one during this time.
But how we handle this:
reset the receive state machine if a paus ... |
Topic: Modbus 3,5 byte length at beginning and end of ADU |
lisek_lichu
Replies: 10
Views: 15656
|
Forum: General CCS C Discussion Posted: Mon Sep 02, 2013 11:19 am Subject: Modbus 3,5 byte length at beginning and end of ADU |
Hello,
Can somebody explain me how we handle receiving this 3,5 length at front of ADU and at end of ADU?
if master sends request, at the beginning minimum 3,5 Tz should be sent, so how we handl ... |
Topic: Modbus CRC variable modbus_serial_crc.d |
lisek_lichu
Replies: 6
Views: 8564
|
Forum: General CCS C Discussion Posted: Fri Aug 16, 2013 9:13 am Subject: Modbus CRC variable modbus_serial_crc.d |
Ok i get it, so normally I don't even need 16 bit d value because it can be used if I want to operate in one 16 bit variable instead of two 8bit variables.
Tkats ok,
Can You explain me another t ... |
Topic: Modbus CRC variable modbus_serial_crc.d |
lisek_lichu
Replies: 6
Views: 8564
|
Forum: General CCS C Discussion Posted: Fri Aug 16, 2013 6:11 am Subject: Modbus CRC variable modbus_serial_crc.d |
Hi Ttelmah,
I understand what is union and for what is it but my question was a little different.
I asked for what is 16 bit variable modbus_serial_crc.d and not what is union
in modbus.c ... |
Topic: Modbus CRC variable modbus_serial_crc.d |
lisek_lichu
Replies: 6
Views: 8564
|
Forum: General CCS C Discussion Posted: Thu Aug 15, 2013 12:58 pm Subject: Modbus CRC variable modbus_serial_crc.d |
Hello,
can someone help me and explain for what is 16 bit variable modbus_serial_crc.d in modbus.c driver file?
modbus_serial_crc.b is used do calculate CRC code but where we use modbus_serial_c ... |
Topic: modbus RTU example code explanation |
lisek_lichu
Replies: 21
Views: 42461
|
Forum: General CCS C Discussion Posted: Tue Aug 13, 2013 4:14 pm Subject: modbus RTU example code explanation |
I think that i gave too many questions at one time so nobody wants to answer it
5) I get answer for this. In modbus_exception_rsp function in modbus.c file is added one bit in MSB "func|0x8 ... |
Topic: access to a RAM array in a loop |
lisek_lichu
Replies: 8
Views: 10117
|
Forum: General CCS C Discussion Posted: Sun Aug 11, 2013 3:27 pm Subject: access to a RAM array in a loop |
are these bound ok or You are laughing at me beacuse they are unnecessary for some reason? |
Topic: modbus RTU example code explanation |
lisek_lichu
Replies: 21
Views: 42461
|
Forum: General CCS C Discussion Posted: Sun Aug 11, 2013 3:22 pm Subject: modbus RTU example code explanation |
hello,
I am trying to use modbus with my PIC16f628A microcontroller and I started to read and analyze example codes given from CCS modbus.c, ex_modbus_slave.
I have few questions about using som ... |
Topic: access to a RAM array in a loop |
lisek_lichu
Replies: 8
Views: 10117
|
Forum: General CCS C Discussion Posted: Sun Aug 11, 2013 1:53 pm Subject: access to a RAM array in a loop |
Ok i created two functions and tested them on device, they works
thanks for help
LCD array of 32 signs is located in RAM memory starting from 0x20
#define LCD_data_address 0x20
cha ... |
Topic: access to a RAM array in a loop |
lisek_lichu
Replies: 8
Views: 10117
|
Forum: General CCS C Discussion Posted: Thu Aug 08, 2013 3:01 pm Subject: access to a RAM array in a loop |
Ok something I am doing wrong:
#define LCD_data_address 0x20
char LCDtext[32];
#locate LCDtext = LCD_data_address
int get_value(*(int8 *)(LCD_data_address + int off ... |
Topic: access to a RAM array in a loop |
lisek_lichu
Replies: 8
Views: 10117
|
Forum: General CCS C Discussion Posted: Thu Aug 08, 2013 2:15 pm Subject: access to a RAM array in a loop |
Thanks a lot, I will try it in a moment |
Topic: access to a RAM array in a loop |
lisek_lichu
Replies: 8
Views: 10117
|
Forum: General CCS C Discussion Posted: Thu Aug 08, 2013 12:45 pm Subject: access to a RAM array in a loop |
Hello,
I am looking for some solution to my program. I am trying to write a LCD routine to display some text from specified RAM memory in a loop.
I want to allocate some array 2x16 int8 LCDtex ... |
Topic: RS485 enable pin - manual or automatic (strange behaviour) |
lisek_lichu
Replies: 6
Views: 11706
|
Forum: General CCS C Discussion Posted: Wed Aug 29, 2012 9:07 am Subject: RS485 enable pin - manual or automatic (strange behaviour) |
Why did you start a new thread on this issue? You've already got the the same problem being discussed in your original thread.
John
Hello John, this is not the same problem. this is another thin ... |
|