A recording medium recording a PLC-use system program, the program configured to be executed by a microprocessor after being stored in a storage section in a CPU unit in the PLC, the CPU unit comprising the microprocessor, the storage section, and a communication circuit to control a control target, wherein:
- the storage section is used to store the system program, a control program, and schedule-building data;
- the microprocessor is configured to execute the system program and the control program stored in the storage section;
- the communication circuit is configured to transmit output data generated through execution of the control program and receive input data to be used in execution of the control program;
- the system program includes a procedure library in which at least a procedure for controlling execution of the control program and a procedure for controlling output of the output data and input of the input data are included;
- and
- if the schedule-building data including execution order specifications for the procedures included in the procedure library is stored in the storage section, the system program causes the microprocessor to execute the procedures included in the procedure library in accordance with the procedure execution order specifications included in schedule-building data.