Skip to content

Obtaining version and build number

Hi guys,

I am looking for a way to display in the code and HMI the version number and build number so that documented software changes and history can be checked by users and surveyors in the field.

Inside PLCnext Engineer, there is a form for adding version number, date and other information. As far as I can tell, this info is not avaiable outside PLCnext engineer (e.g. in WBM or in variables etc).

However, when downloading to the PLC, a json file is created which reflects some of the information. I am hoping to de-serialize the json information and provide some of that information to the user.

My questions:

  • Why is "release" shown as false when the version IS configured as a release? (and not alpha/beta)
  • The build number behind the version is NOT the same CRC build number which is shown in the system variable PLC_CRC_PRJ. Why is that?


Comments

  • After some testing I have found the following:


    • the last part of the sofwareRevision in the JSON-file (what I believe is some sort of build number) changes when installing on a different PLC or a simulated PLC.
    • the system variable PLC_CRC_PRJ stays the same across every PLC


    I have also successfully parsed the json file into a PLC structure using the json FBs in the IIoT-library.


  • More testing,

    I have figured out why "Release = FALSE". It has nothing to do with the software version, but rather the "user metadata" table in PLCnext. I have at some point earlier by coincidence entered "release" as a key with value=FALSE.. my bad.


Sign In or Register to comment.