A control device that controls a manufacturing line including:
- a mounter configured to place at least one electronic component of a designated type at a designated position;
- a resin shaping machine configured to shape into a shaped resin body in which the at least one electronic component disposed at the designated position is embedded;
- and a printing machine configured to form a wiring on a surface of the shaped resin body by ejecting conductive ink according to a designated pattern, the control device comprising:
- a specification setting unit configured to set a specification of a product to be manufactured through the manufacturing line and a planned number of products;
- a mounting program selector configured to select a mounting program to be used by the mounter from a plurality of mounting programs indicating the type and the position of the at least one electronic component;
- a first counter configured to count a mounting number from the mounter using the mounting program, for each of the mounting programs selected by the mounting program selector;
- a second counter configured to count a defective product number of the shaped resin body in which the at least one electronic component disposed using the mounting program is embedded for each of the mounting programs;
- a printing program selector configured to select a printing program to be used by the printing machine from a plurality of printing programs indicating the pattern;
- and
- a third counter configured to count a printing number from the printing machine using the printing program, for each of the printing programs selected by the printing program selector,
- wherein when the specification setting unit sets a first specification and a first planned number of products, and then sets a second specification and a second planned number of products,
- the mounting program selector is configured to select a first mounting program corresponding to the first specification, and then select a second mounting program corresponding to the second specification according to matching between the mounting number corresponding to the first mounting program and the first planned number of products,
- the printing program selector is configured to select a first printing program corresponding to the first specification, and then select a second printing program corresponding to the second specification according to matching between (i) a sum of the printing number corresponding to the first printing program and the defective product number corresponding to the first mounting program and (ii) the first planned number of products,
- the plurality of mounting programs include at least two mounting programs corresponding to a third specification, and
- when the specification setting unit sets the third specification and a third planned number of products, the mounting program selector is configured to arbitrarily select one mounting program from the at least two mounting programs.