An image forming apparatus, comprising:
- a standard conveying path configured to form a path for sheets;
- a sheet feeding device configured to sequentially feed a plurality of sheets to the standard conveying path;
- a sheet conveying device configured to convey each of the plurality of sheets along the standard conveying path;
- a printing device configured to form an image on each of the plurality of sheets at a printing position on the standard conveying path;
- a jam detecting device configured to detect a jam in each of a plurality of detection areas on the standard conveying path;
- and
- a control device configured to control the sheet conveying device;
- wherein
- the sheet conveying device comprises a plurality of switching portions each having a plurality of branch paths configured to branch off from a plurality of branch positions on the standard conveying path and a plurality of sheet collection portions(30b) configured to collect sheets at a later stage of the plurality of branch paths (30a);
- the plurality of switching portions are capable of selectively executing:
- a normal conveying process of conveying each of the plurality of sheets along the standard conveying path toward an outlet of the standard conveying path at each of the plurality of branch positions;
- and
- an emergency conveying process of conveying each of the plurality of sheets from the standard conveying path to each of the plurality of sheet collection portions via each of the plurality of branch paths at each of the plurality of branch positions;
- the control device, when a jam is detected by the jam detecting device, executes upstream conveying control for one or more upstream switching portions that are part of the plurality of switching portions, and downstream conveying control for one or more downstream switching portions that are another part of the plurality of switching portions;
- the upstream switching portion has a path branching from an upstream area that is an area upstream in the sheet conveying direction of the standard conveying path from a jam area where the jam has been detected;
- the downstream switching portion has a path branching off from a downstream area that is an area downstream of the jam area on the standard conveying path in the sheet conveying direction;
- in the upstream conveying control, the control device causes an upstream terminating end switching portion located at a farthest downstream side in the sheet conveying direction among the upstream switching portions to execute the emergency conveying process, and further causes upstream switching portions other than the upstream terminating end switching portion to execute the normal conveying process or the emergency conveying process;
- and
- in the downstream conveying control, the control device causes the downstream switching portions to execute the normal conveying process or the emergency conveying process.