In the course of this thesis, two translation methods were developed: the first dedicated to Ladder Diagram (LD) code generation and the second to conversion to Sequential Function Chart (SFC). The analysis showed that translation to SFC is more intuitive due to the inherent similarity between this language and Petri nets. However, the translation method requires stricter criteria and specific arrangements to ensure proper implementation. In contrast, Ladder translation is less straightforward but offers greater flexibility in adapting to real systems. One of the main results of this work was the development of a program in Python for the automation of Ladder translation. This tool, in addition to demonstrating the feasibility of the approach, proved effective in generating working and usable code. In addition, the software can be further extended to consider more general cases, improve interfacing with the external environment, and facilitate direct communication with PLCs.
Nel corso di questa tesi, sono stati sviluppati due metodi di traduzione: il primo dedicato alla generazione di codice Ladder Diagram (LD) e il secondo alla conversione verso Sequential Function Chart (SFC). L'analisi ha evidenziato come la traduzione in SFC sia più intuitiva, grazie alla somiglianza intrinseca tra questo linguaggio e le reti di Petri. Tuttavia, il metodo di traduzione richiede criteri più rigidi e accorgimenti specifici per garantire la corretta implementazione. Al contrario, la traduzione in Ladder risulta meno immediata ma offre una maggiore flessibilità nell'adattamento ai sistemi reali. Uno dei principali risultati di questo lavoro è stato lo sviluppo di un programma in Python per l'automazione della traduzione in Ladder. Questo strumento, oltre a dimostrare la fattibilità dell'approccio, si è rivelato efficace nel generare codice funzionante e utilizzabile. Inoltre, il software può essere ulteriormente esteso per considerare casi più generali, migliorare l'interfacciamento con l'ambiente esterno e facilitare la comunicazione diretta con i PLC.
Metodologie di conversione di controllori modellati con Reti di Petri per l’implementazione su PLC
HOXHA, EMANUEL
2023/2024
Abstract
In the course of this thesis, two translation methods were developed: the first dedicated to Ladder Diagram (LD) code generation and the second to conversion to Sequential Function Chart (SFC). The analysis showed that translation to SFC is more intuitive due to the inherent similarity between this language and Petri nets. However, the translation method requires stricter criteria and specific arrangements to ensure proper implementation. In contrast, Ladder translation is less straightforward but offers greater flexibility in adapting to real systems. One of the main results of this work was the development of a program in Python for the automation of Ladder translation. This tool, in addition to demonstrating the feasibility of the approach, proved effective in generating working and usable code. In addition, the software can be further extended to consider more general cases, improve interfacing with the external environment, and facilitate direct communication with PLCs.File | Dimensione | Formato | |
---|---|---|---|
tesi finale con frontespizio.pdf
embargo fino al 20/02/2028
Dimensione
1.2 MB
Formato
Adobe PDF
|
1.2 MB | Adobe PDF |
I documenti in UNITESI sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.
https://hdl.handle.net/20.500.12075/21106