Apparatus and method for processing data

The present invention relates to an apparatus and method for processing a command for executing a program on a PLC. The present invention comprises: a receiving unit for receiving a command with a type can be driven in a PLC and a command processing function address; a storage unit for storing a command processing function; and a control unit for searching a command processing function stored at a location that the command processing function address indicates, on the storage unit, and executes the searched command processing function. According to the present invention, it is possible to process PLC commands more rapidly. [Reference numerals] (401) Confirm a command; (403) Confirm a command processing function address in a PLC internal memory; (405) Complete compilation; (407) Download to a PLC; (AA) Start; (BB) End