Inital version of scaler_d after adopting for EPICS R3.14.*