How does MES(Manufacturing Execution System)  work?