Hi
I use a Schneider electric PLC to do exactly what you want.
I’m in my phone now, I can send more information later.
See this old thread:
João