Hello @BAD, you could have a look at this post by @Este:
Its build for Beckhoff ADS but maybe you can make s.th. of it.