Implementation of SCADA Algorithm Using FPGA for Industry 4.0 Applications