joah im Prinzip schon! Schau mal hier, da hab ich schonmal nen Kilometer dazu geschrieben:

https://www.roboternetz.de/phpBB2/viewtopic.php?t=10556