A method for controlling a processing apparatus capable of performing a plurality of types of processes and connecting to an external apparatus, the processing apparatus including an instruction unit configured to instruct the processing apparatus to execute a process, the method comprising the steps of:
- receiving an instruction regarding a process to the processing apparatus from the external apparatus;
- setting a type of process to the instruction unit from the plurality of types of processes in accordance with a type of process of the received instruction;
- and
- causing the image processing apparatus to execute a process,
- wherein the image processing apparatus includes,
- a first mode in which the processing apparatus is able to execute a predetermined type of process set to the instruction unit based on the instruction made by the instruction unit, and
- a second mode in which a process based on the instruction made by the instruction unit and a process based on the received instruction are able to be executed independently of each other,
- wherein, if the processing apparatus is in the second mode, the type of process set to the instruction unit is changed in accordance with a type of process of the received instruction,
- wherein, in a case where the type of process is set based on the received instruction in the second mode, the type of process being set based on the received instruction is able to be executed based on the instruction made by the instruction unit in the second mode, and
- wherein the method further includes setting, after the second mode is cancelled and the first mode is established, the predetermined type of process as the type of process to the instruction unit.