M87: Real-time Work Shift from digital indcator
This code is used to set work shift according to input from digital indicator.