In this paper, a system for measuring perpendicularity and parallelism derivation using a laser diode fiber aligned beam and CCD detector is described. A stable aligned laser diode beam is used to form datum planes by rotating scanner equipped with pentagonal prism. Using a linear array CCD detector as the sensing probe, the system can detect the deviation of height related to the datum plane directly and absolutely. The experiment result is shown in the paper.