02-05-2021 05:11 AM
I have used Ni modbus library. I want to send wrong TCP/IP modbus "CRC" to a device from LabVIEW, for testing some functionality of the device.
Could you please guide me?
How can i change the CRC value in the modbus library?
02-05-2021 05:27 AM
There are at least three Modbus libraries available. Only one of them (the old NI Modbus.llb) could be modified by the user, the other are password protected. Which one are you using? (hint: post one vi of yours or a picture of the BD showing the Modbus functions).
02-05-2021 09:01 AM
Is this library support NI Labview 2019?
Could you please share me the library file?
I have attached picture of block diagram.
02-05-2021 09:12 AM - edited 02-05-2021 09:13 AM
That purple library is supported in LabVIEW 2019, but its subVI's are locked once you get to a certain level, the level you'd need to play with in order to fake another CRC.
Here is a link to a library I've used and is fully open. You can dig all the way down the subVI hierarchy, find the subVI where the CRC is calculated, make a copy and apply some code to allow you to fake a bad CRC.
02-05-2021 09:24 AM
Consider that the interface of the library RavensFan suggested is different from the one you are using now.
02-05-2021 09:52 AM
If this is for testing purposes only another way to accomplish this would be to capture the data that gets sent to the device and simply use a raw TCP or serial connectiuon to the device and send the raw data. Using that you can manipulate any field within the packet.
02-08-2021 01:47 AM
Okay will check.
thank you
02-11-2021 01:38 AM
Hi,
Normal ModBus/TCP does not use the ModBus CRC. The data is transmitted without the CRC.
If the receiver is a converter from TCP to serial than that device will add the CRC
Kees
02-15-2021 05:18 AM
Yes, Thank you .