Menu

CRC Check Failed Exception

speed
2016-09-01
2020-08-11
  • speed

    speed - 2016-09-01

    I am using the identical code, except for the com port, on 2 different windows machines. one is a laptop running windows 8.1, the other a virtual machine running windows 7. the code runs great on the windows 8.1 machine, but i get EasyModbus.Exceptions.CRCCheckFailedException when i run it on the windows 7 machine. i have changed the code to vb.net, but that is the same on both machines. i can run other programs in python or vb6 on the win 7 machine and they run fine. does anyone know what might be causing this?

     
    • Rossmann Engineering

      Can you send me your Code, and a Screenshot showing the Values you are trying to send?

       
  • Anonymous

    Anonymous - 2016-09-27

    I'm interested in the result of this, because I might have similar experience: A lot CRC errors with a Win7 machine but on the scope the data looks fine and with other tools (like ModbusPoll) I don't get any errors.

     
  • Anonymous

    Anonymous - 2017-06-07

    I recently was encountering a similar problem while using an RS232 to RS485 adapter. Sporatic CRC check failures would occur during long tests due to a leading zero value. I suggest re-assigning COM1 to another COM port as Windows 7 32-bit uses COM1 as a debug port for some reason (Windows 7 64-bit does not). You can also enable the FIFO buffers and move the sliders up to the maximum. Lastly, make sure you're running EasyModbus 2.9 or newer as I think there may have been an issue in version 2.8. These steps seemed to fix it for me.

     
  • Anonymous

    Anonymous - 2018-04-12

    Hello ;
    I have similar problem

    Dim mdBusclient As ModbusClient
    Dim BB As Boolean()

       Private Sub ToolStripButton2_Click(sender As Object, e As EventArgs) Handles ToolStripButton2.Click
    
        MesajKutusu.Items.Add("Sinyal gönder")
        'FTChipID.ChipID.GetNumDevices()
        Try
            mdBusclient = New ModbusClient("COM4")
            mdBusclient.Connect()
            MesajKutusu.Items.Add("Bağlantı yapıldı başarılı")
        Catch
            MesajKutusu.Items.Add("Bağlantı yapılamadı")
            Throw
    
            End
    
        End Try
        BB = {True, False, False}
        MesajKutusu.Items.Add("Açılışa geldi")
        mdBusclient.WriteMultipleCoils(1, BB)
    
    
    
    End Sub
    
    
    MultipleCoils returns with CRC Failure
    Any ideas?
    
     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.