Logger function for the HKM robot
(2024) In CODEN:LUTEDX/TEIE EIEL05 20241Industrial Electrical Engineering and Automation
- Abstract
- This thesis focuses on the PLC programming of a logger function using
structured text for the HKM robot. The aim was to create an improved and
user-friendly solution for logging messages of various levels, including trace,
debug, info, error and warn, to facilitate monitoring and debugging of PLC
programs for the HKM robot.
Through a systematic methodology and analysis of existing logging
functionalities, along with studies of the SLF4J concept, a logger function was
developed gradually. The logger function was coded using a combination of
modular design and sequential programming, resulting in a well-structured and
understandable code.
The results showed that the logger function worked during testing, both for
writing log... (More) - This thesis focuses on the PLC programming of a logger function using
structured text for the HKM robot. The aim was to create an improved and
user-friendly solution for logging messages of various levels, including trace,
debug, info, error and warn, to facilitate monitoring and debugging of PLC
programs for the HKM robot.
Through a systematic methodology and analysis of existing logging
functionalities, along with studies of the SLF4J concept, a logger function was
developed gradually. The logger function was coded using a combination of
modular design and sequential programming, resulting in a well-structured and
understandable code.
The results showed that the logger function worked during testing, both for
writing log messages to debug output trace and to files according to a
specified settings that the function had, such as the number of lines or number
of days that can be written to a file. Performance tests also showed that the
different execution times for all states that the logger function code consists
of.
In conclusion, this thesis led to a working and useful logger function for PLC
programming that can be used for debugging and monitoring of PLC codes. (Less) - Abstract (Swedish)
- Detta examensarbete fokuserar på PLC-programmering av en
loggningsfunktion med structured text för HKM-robot. Syftet var att skapa en
förbättrad och användarvänlig lösning för loggning av meddelanden på olika
nivåer, inklusive trace, debug, info, error och warn för att underlätta
övervakning och felsökning av PLC-program för HKM-robot.
Genom en systematisk metodik och analys av befintliga loggfunktioner och
studier av SLF4J-konceptet, utvecklades en loggningsfunktion stegvis.
Loggningsfunktionen var kodad i kombination av modulär design och
sekventiell programmering, vilket resulterade i en välstrukturerad och
lättförståelig kod.
Resultaten visade att loggningsfunktionen fungerade under testning, både för
skrivning av... (More) - Detta examensarbete fokuserar på PLC-programmering av en
loggningsfunktion med structured text för HKM-robot. Syftet var att skapa en
förbättrad och användarvänlig lösning för loggning av meddelanden på olika
nivåer, inklusive trace, debug, info, error och warn för att underlätta
övervakning och felsökning av PLC-program för HKM-robot.
Genom en systematisk metodik och analys av befintliga loggfunktioner och
studier av SLF4J-konceptet, utvecklades en loggningsfunktion stegvis.
Loggningsfunktionen var kodad i kombination av modulär design och
sekventiell programmering, vilket resulterade i en välstrukturerad och
lättförståelig kod.
Resultaten visade att loggningsfunktionen fungerade under testning, både för
skrivning av loggmedelande till debug output trace och till filer enligt angivna
inställningar som funktionen har, såsom antal rader eller antal dagar som får
skrivas till en fil. Prestandatesterna visade också olika exekveringstider för
alla tillstånd som loggfunktions koden består av.
Sammanfattningsvis ledde examensarbete till en fungerande och användbar
loggningsfunktion för PLC-programmering som kan användas för felsökning
och övervakning av PLC-koder. (Less)
Please use this url to cite or link to this publication:
http://lup.lub.lu.se/student-papers/record/9159305
- author
- El-Dimassi, Mohammed LU
- supervisor
- organization
- course
- EIEL05 20241
- year
- 2024
- type
- M2 - Bachelor Degree
- subject
- keywords
- PLC-Programmering Loggningsfunktion Structured Text SLF4J HKM-robot
- publication/series
- CODEN:LUTEDX/TEIE
- report number
- 3130
- language
- Swedish
- id
- 9159305
- date added to LUP
- 2025-02-05 17:10:15
- date last changed
- 2025-02-05 17:10:15
@misc{9159305, abstract = {{This thesis focuses on the PLC programming of a logger function using structured text for the HKM robot. The aim was to create an improved and user-friendly solution for logging messages of various levels, including trace, debug, info, error and warn, to facilitate monitoring and debugging of PLC programs for the HKM robot. Through a systematic methodology and analysis of existing logging functionalities, along with studies of the SLF4J concept, a logger function was developed gradually. The logger function was coded using a combination of modular design and sequential programming, resulting in a well-structured and understandable code. The results showed that the logger function worked during testing, both for writing log messages to debug output trace and to files according to a specified settings that the function had, such as the number of lines or number of days that can be written to a file. Performance tests also showed that the different execution times for all states that the logger function code consists of. In conclusion, this thesis led to a working and useful logger function for PLC programming that can be used for debugging and monitoring of PLC codes.}}, author = {{El-Dimassi, Mohammed}}, language = {{swe}}, note = {{Student Paper}}, series = {{CODEN:LUTEDX/TEIE}}, title = {{Logger function for the HKM robot}}, year = {{2024}}, }