Time Based Industrial Automation Using Rtc