Real-Time Maintenance in Industrial Automation