1. A computer-readable recording medium which records a programmable logic controller (PLC) code comprising a plurality of PLC symbols, wherein a structure of each of a plurality of the PLC symbols comprises a plurality of levels identified by an identifier and a computer automatically generates an input/output model using the structure of each of the PLC symbols and performs a simulation for testing the PLC code.