| B4J Question Calculating CRC16-CCITT FCS to match C implementation [solved] - Didier9    Sep 2, 2020                  // CRC16-CCITT FCS (X^16+X^12+X^5+1)
    crc = crc ^ newbyte;
    for( i = 0; i < 8;... needs unsigned int16
    Dim crc As Int = 0, i As Int
    For i = 0 To numBytes-1
        crc...  B4A Question Modbus CRC16 calculation - FreeWolF    Apr 10, 2014 Hello, I have to calculate the CRC16 of a MODBUS string. Unfortunately I have no idea how can I do..., there is an another solution for the calculation of the CRC16 modbus?
Thanks a lot!!!...  B4A Question CRC16A problrem - Theera    Jan 24, 2023 I would like the experts to help me about the code ,I have VB6.0 code is
Function CRC16A(buffer...
            Next j
Next i
CRC16A = crc And &HFFFF
    
End Function
 
 and 
...
...
Dim m As String
m...  B4A Question CRC-16 algorhitm checksum - Lello1964    Nov 16, 2019 I must calculate crc-16 checksum using a forward CRC-16 algorithm with the polynomial (X16 + X15 + X2 + 1) initialised using the seed 0xFFFF.
example :
0x90 0x01 0x11   
crc= 0x26 0x03...  B4A Question CRC-16 /ARC - potduang    Mar 13, 2018 Hi All,
Sorry for my poor English ability. Can anyone help me on CRC-16/ARC type? I've looked and try on various functions CRC-16 Modbus, CRC-16 CCITT in forums but result are differ. Can I modify from any type?
Thank you....  B4A Question Custom checksum crc16 - Pesciolina    Jun 14, 2020 Hi, WORD CRC16Table ; // initialize the CRC16 table extern void InitCRC16( void ) { WORD... ) ; CRC16Table = crc ; } } // calculate the crc of a char array pointed at by p extern WORD CalcCRC16( unsigned char * p, WORD size ) { WORD crc = 0xFFFF ; WORD i ; for ( i = 0 ; i < size ; i++, p++ ) // for all chars crc = CRC16Table ^ ( crc << 8 ) ^ *p ; return crc ; } // …assuming a preceding InitCRC16() has initialized the CRC16... B4A Question Modbus_CRC16 VB6 To B4A Code problem help - Hawk151    Apr 25, 2020 CRC16(data() As Byte) As String Dim CRC16Lo As Byte, CRC16Hi As Byte Dim CL As Byte... Flag As Integer CRC16Lo = &HFF CRC16Hi = &HFF CL = &H1 CH = &HA0 For i = 0 To UBound(data) CRC16Lo = CRC16Lo Xor data(i) For Flag = 0 To 7 SaveHi = CRC16Hi SaveLo = CRC16Lo CRC16Hi = CRC16Hi \ 2 CRC16Lo = CRC16Lo \ 2 If ((SaveHi And &H1) = &H1) Then... B4A Question CRC-16 - OliverA (first post)    Apr 7, 2018 src\b4a\example\main.java:422: error: class, interface, or enum expected
}
^
1 error
Take out the l...  Italian Calcolare CRC16 Modbus - billyrudi (first post)    Dec 14, 2014 Ciao ragazzi. Ho visto il vostro post e premetto che non ho mai lavorato con questa protocollo. Qual...  B4R Library rConvert - rwblinn    Oct 23, 2025   (9 reactions) 
    TestModbusCRC16
    TestBitWise
    TestCSVParsing
    TestByteConverter
    Log(CRLF, " Done", CRLF... Done")
End Sub
Private Sub TestModbusCRC16
    Dim testframe() As Byte = Array As Byte(0x01...))
    testbytes = Convert.ModbusCRC16(testframe)
    Log(" CRC bytes =", Convert.BytesToHex...  Page: 1   2   3   4   5   6   |