Timestamping over MODBUS TCP from Siemens S7
Wargh, Joakim (2013)
Wargh, Joakim
Yrkeshögskolan Novia
2013
All rights reserved
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-201305209500
https://urn.fi/URN:NBN:fi:amk-201305209500
Tiivistelmä
This Bachelor’s thesis work was done for ABB Power Generation Systems in Vaasa. I have been given the task of researching the possibilities of sending timestamp information to external systems from the PLC. Timestamping involves storing time information about when certain events have occurred. The aim of my thesis is to get a complete system that is able to create and store time information for certain events in milliseconds since 1/1/1970. In order to get an accurate representation of the time a 48 bits resolution is used. Communication over MODBUS TCP/IP requires the data that is sent to be stored in bytes or word format. The results of this thesis work are a working program for sending timestamps over MODBUS TCP and a manual on how to use and set up a working MODBUS TCP connection. Detta examensrbete gjordes åt ABB Power Generation Systems i Vasa. Jag hade fått till uppgift att forska om möjligheterna om att sända timestamping information till externa system från PLC. Timestamping innebär att man lagrar tidsinformation när vissa händelser har inträffat. Syftet med detta lärdomsprov är att få ett färdigt system som ska kunna skapa och lagra tidsinformation för vissa händelser i millisekunder sedan 1.1.1970. Överföringen med modbus tcp/ip kräver att data som skickas ska vara i byte eller word-format och därför används 48 bits upplösning på tidsinformationen som skickas. Detta lärdomsprov resulterade i ett fungerande funktionsblock som skapar tidsdata och skickar dessa over MODBUS TCP samt en manual över hur man använder detta funktionsblock och hur man öppnar en fungerande kommunikation.