Study and Applications of PLCs