VAR_GLOBAL (* do NOT make constant; else CoDeSys might not create the ROM part *)
(* no \0 possible. Else CoDeSys will detect end-of-string in assignment !
//'Lx_?z2.$01$1DDeviceName ProjectName Version $14AdditionalComment '; *)
gs_InfoBlock : STRING(99) := 'Lx_?z2.$01$1DESX2 CoDeSysProject V1.23r4 $14KenSentMe ';
END_VAR
Result:
File Information
================
Timestamp: 9:25:32 AM
Size: 16799 bytes
MD5 checksum: 83d9f9a2530673eef2eee3566029c570
Data Information
================
Number of bytes: 5960
32bit CRC: 0x6d9ac532
File Information Blocks
=======================
Number of blocks: 1
Block 01:
=========
Block type: Application
Version: 1
DeviceID: ESX2
Date and Time: undefined
Project name: CoDeSysProject
Project version: V1.23r4
Additional info: KenSentMe