Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Could u please sent the library And model files for max 232 for proteus. İ have one but its sayin for all the pins of max232 not modeled when i rün a simulatiion
Read Coil Status (FC=01)
Request
This command is requesting the ON/OFF status of discrete coils # 20 to 56
from the slave device with address 17.
11 01 0013 0025 0E84
11: The Slave Address (17 = 11 hex)
01: The Function Code (read Coil Status)
0013: The Data Address of the first coil to read...
Read Coil Status (FC=01)
0A 01 04A1 0001 AC63
0A: The Slave Address (10 = 0A hex)
01: The Function Code (read Coil Status)
04A1: The Data Address of the first coil to read. (Coil 1186 - 1 = 1185 = 04A1 hex)
0001: The total number of coils requested.
AC63: The CRC (cyclic redundancy check) for...
confused!!!! :((
- - - Updated - - -
just tell me which values should be in buffer[1] and buffer[6] if my counter is 15 to do execute return?
if ((buffer[1] == 16)&(((unsigned int) buffer[6] + 9)!=counter)) return 2 ;
buffer[1]=0x10 and buffer[6] different than 0x06 ?
this means that (buffer[1]==16) if it gives zero and (((unsigned int) buffer[6] + 9)!=counter) if this also gives zero
then if do & i will get zero but if i do && i will get 1 ?
if ((buffer[1] == 16)&(((unsigned int) buffer[6] + 9)!=counter)) is it the same thing
if ((buffer[1] == 16)&&(((unsigned int) buffer[6] + 9)!=counter))
if not which one is correct? if both of them correct what is the difference?
if ((buffer[1] == 16)&(((unsigned int) buffer[6] + 9)!=counter))
(buffer[1]==16) gives one bit result 1 or 0
(((unsigned int) buffer[6] + 9)!=counter) gives one bit result 1 or 0
then and (&) these two values and see if it is 1 or zero ? is this correct ...
unsigned int modbuscrc(unsigned char *buf,int len)
{
unsigned int crc = 0xffff;
int pos;
for (pos = 0; pos < len; pos++)
{
crc ^= (unsigned int)buf[pos]; // XOR byte into least sig. byte of crc
for (int i = 8; i>0; i--) { // Loop over each bit...
In my opinion the important think is matching the battery voltages times charge currents must be bigger than your solar panel can produce. if so you have achieved mppt.
for example you have 12 volt battery and its capacity is lets say 20Ah. so you have to charge it with 14 volt and max 2 A...
after plus 1 it is showing minus, like -1.115 :) nbut i have make some corrections. i think you overlooked the errors.
LongToStr((int)(-Value), String); this line corrected like this. sLongToStr((int)(Value), String);
and ty again. you are so helpfull.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.