News:

  • August 19, 2026, 10:22:30 PM

Login with username, password and session length

Author Topic: Ability to read a CRC of the PLC program  (Read 11265 times)

jcottrill

  • Full Member
  • ***
  • Posts: 43
Ability to read a CRC of the PLC program
« on: December 14, 2017, 12:44:39 PM »
I am using Do-More to develop an automated test platform using some BRX PLCs.  So far I am very impressed.  In order to ensure process control it is desired to know if a PLC program (or all programs on a given PLC) have changed.  My initial thought is to be able to read a CRC/hash of the programs on the PLC and compare to a known value on boot.  Is it possible to read a value such as this from the PLC's memory? 

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: Ability to read a CRC of the PLC program
« Reply #1 on: December 14, 2017, 01:11:03 PM »
Not currently. Wouldn't be hard to add.
"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

jcottrill

  • Full Member
  • ***
  • Posts: 43
Re: Ability to read a CRC of the PLC program
« Reply #2 on: December 15, 2017, 12:19:31 PM »
Is this functionality that could just be added to the designer or would it also require a firmware update to the PLC?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: Ability to read a CRC of the PLC program
« Reply #3 on: December 15, 2017, 12:32:19 PM »
Is this functionality that could just be added to the designer or would it also require a firmware update to the PLC?

Firmware. There is already a 32 bit checksum associated with the program that we use for a quick validation. Would probably just publish that to a DST location.
"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

eman5oh

  • Sr. Member
  • ****
  • Posts: 59
Re: Ability to read a CRC of the PLC program
« Reply #4 on: December 19, 2017, 03:46:33 PM »
I have asked this before but will second this request here, and reading the value form a DST location would be a great way to do it.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: Ability to read a CRC of the PLC program
« Reply #5 on: December 20, 2017, 10:25:00 AM »
Added. $ProgramChecksum(DST58) will be in the next release of firmware. Don't yet have a specific date for this release, but we expect late Q1 or early Q2.

It's just a 32 bit checksum (not a CRC), but should still be a pretty good indication.
"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

jcottrill

  • Full Member
  • ***
  • Posts: 43
Re: Ability to read a CRC of the PLC program
« Reply #6 on: December 20, 2017, 04:54:51 PM »
This is great BobO!  Thanks for the quick action on this.