News:

  • October 02, 2026, 06:10:22 AM

Login with username, password and session length

Author Topic: CRC Check for SDCard files  (Read 8981 times)

Andrew S

  • Hero Member
  • *****
  • Posts: 144
CRC Check for SDCard files
« on: July 12, 2019, 05:25:28 PM »
Is there a command to do a CRC check on a file?

Andrew.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: CRC Check for SDCard files
« Reply #1 on: July 12, 2019, 07:25:28 PM »
No. Wouldn't be hard to do it in the PLC code though.
« Last Edit: July 12, 2019, 07:27:05 PM by BobO »
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Andrew S

  • Hero Member
  • *****
  • Posts: 144
Re: CRC Check for SDCard files
« Reply #2 on: July 12, 2019, 08:01:52 PM »
I thought of that Bob but it's a large binary file. I wouldn't want to have to read it all in just to do a CRC check. Feature request?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: CRC Check for SDCard files
« Reply #3 on: July 12, 2019, 08:32:51 PM »
I thought of that Bob but it's a large binary file. I wouldn't want to have to read it all in just to do a CRC check. Feature request?

Program block with about 4 stages. Read 256 bytes at a time. Easy.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: CRC Check for SDCard files
« Reply #4 on: July 12, 2019, 08:58:34 PM »
We use a modified BRX CPU as a test and programming station for production. Do a whole lot of stuff like this.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO