Sample program: S7-1200 and DATA LOG
https://www.automation.siemens.com/W...anguage=en#top