A system for fabricating an integrated circuit is disclosed that includes providing a semiconductor substrate, and forming a gate oxide layer on an active area on the substrate. The protruding amount from a cylinder end wall is detected by a position detecting mechanism comprising a detecting coil housed in a bobbin provided at the cylinder end, a flange portion formed on the piston rod, and a coil spring. A signal obtained by the discriminated reproducing head is supplied to a C2 correcting unit to generate an output signal.