# Patent

## Title
Recording apparatus

## Abstract

A recording apparatus includes: first and second recording modules; a storage accommodating a recording medium; a first path extending from the storage to the first recording module; and a second path extending from the storage to the second recording module and including a first shared portion shared with the first path. The controller is configured to: determine whether a trailing edge of the recording medium on which recording is being performed by the first recording module is located downstream of the first branch position on the first path; and when the trailing edge of the recording medium is located downstream of the first branch position on the first path, cause a recording medium to be supplied from the storage to the second recording module along the second path via the first shared portion and the first branch position.

## Background
CROSS REFERENCE TO RELATED APPLICATION
The present application claims priority from Japanese Patent Application No. 2013-271992, which was filed on Dec. 27, 2013, the disclosure of which is herein incorporated by reference in its entirety.
BACKGROUND
1. Technical Field
The present invention relates to a recording apparatus including a plurality of recording modules.
2. Description of the Related Art
There is known a recording apparatus including a plurality of recording modules. Each of the recording modules includes a head, a carriage, and an individual conveyor. For example, in a printer including two recording modules arranged vertically, each of a conveying distance L1 between a branch point of a shared conveyance path and a recording starting position of a first carriage on a first conveyance path and a conveying distance L2 between the branch point and a recording starting position of a second carriage on a second conveyance path is set to be longer than or equal to the length of the maximum size sheet which can be used in the printer.
SUMMARY
In the above-described conventional printer, it is possible to consider that in a case where recording is performed on a sheet longer than each of the distances L1, L2 in a sheet conveying direction, a sheet is supplied toward a second image forming device via the branch point in a state in which a trailing edge of a sheet on which image recording is being performed by a first image forming device is located upstream of the branch point on the conveyance path. This construction unfortunately leads to a jam of a sheet (i.e., a recording medium).
This invention has been developed to provide a recording apparatus capable of preventing a jam of a recording medium.
The present invention provides a recording apparatus including: a plurality of recording modules each including: a head formed with a plurality of ejection openings for ejecting liquid; a carriage supporting the head and configured to move the head in a first direction; a module path; and an individual conveyor configured to convey a recording medium along the module path in a second direction perpendicular to the first direction, the plurality of recording modules including a first recording module and a second recording module different from the first recording module; a storage configured to accommodate the recording medium; a plurality of paths including (i) a first path through which the recording medium is to be conveyed from the storage to the module path of the first recording module, and (ii) a second path through which the recording medium is to be conveyed from the storage to the module path of the second recording module, the second path including, at an upstream portion thereof, a first shared portion shared with the first path, the second path being branched off from the first path at a first branch position located at an end portion of the first Shared portion; a first switcher configured to switch, at the first branch position, a destination of the recording medium between the first path and the second path; a first shared conveyor configured to convey the recording medico on the first shared portion; a first sensor configured to output a signal indicating presence or absence of the recording medium at a first sensing position located on the first shared portion; and a controller configured to control the plurality of recording modules, the first switcher, and the first shared conveyor. The controller being configured to execute: a first determination processing in which based on the signal output from the first sensor the controller determines whether a trailing edge of the recording medium on which recording is being performed by the first recording module is located downstream of the first branch position on the first path; and a first supply processing in which when the controller has determined in the first determination processing that the trailing edge of the recording medium is located downstream of the first branch position on the first path, the controller controls the first switcher and the first shared conveyor to supply a recording medium from the storage to the second recording module along the second path via the first shared portion and the first branch position.



BRIEF DESCRIPTION OF THE DRAWINGS
The objects, features, advantages, and technical and industrial significance of the present invention will be better understood by reading the following detailed description of the embodiments of the invention, when considered in connection with the accompanying drawings, in which:
FIG. 1 is a schematic side view illustrating an internal structure of an ink-jet printer according to a first embodiment of the present invention;
FIG. 2 is an enlarged view of the area II illustrated in FIG. 1;
FIG. 3 is a plan view of a recording module of the printer illustrated in FIG. 1;
FIG. 4 is a front elevational view of the recording module of the printer illustrated in FIG. 1;
FIG. 5 is a side view of the recording module of the printer illustrated in FIG. 1;
FIG. 6 is a block diagram illustrating an electric configuration of the printer illustrated in FIG. 1;
FIG. 7 is a flow chart illustrating a first portion of a recording module control routine to be executed by a controller of the printer illustrated in FIG. 1;
FIG. 8 is a flow chart illustrating a second portion of the recording module control routine to be executed by the controller of the printer illustrated in FIG. 1;
FIG. 9 is a flow chart illustrating a switcher control routine to be executed by the controller of the printer illustrated in FIG. 1;
FIG. 10 is a flow chart illustrating an upstream roller control routine to be executed by the controller of the printer illustrated in FIG. 1;
FIG. 11 is a diagram illustrating conveyance of sheets in a case where recording is successively performed on a plurality of sheets of the A4 size or the letter size;
FIG. 12 is a schematic side view, corresponding to FIG. 1, illustrating a first stage of a situation in which two sheets of the A4 size or the letter size are successively supplied to first and second recording modules in order from the top;
FIG. 13 is a schematic side view, corresponding to FIG. 1, illustrating a second stage of the situation in which the two sheets of the A4 size or the letter size are successively supplied to the first and second recording modules in order from the top;
FIG. 14 is a schematic side view, corresponding to FIG. 1, illustrating a first stage of a situation in which two sheets of the A3 size are successively supplied to first and third recording modules in order from the top;
FIG. 15 is a schematic side view, corresponding to FIG. 1, illustrating a second stage of the situation in which the two sheets of the A3 size are successively supplied to the first and third recording modules in order from the top;
FIG. 16 is a flow chart illustrating a sheet length determination routine to be executed by a controller in an inkjet printer according to a second embodiment of the present invention; and
FIG. 17 is a schematic side view, corresponding to FIG. 1, illustrating an internal structure of an inkjet printer according to a third embodiment of the present invention.



DETAILED DESCRIPTION OF THE EMBODIMENTS
Hereinafter, there will be described embodiments of the present invention by reference to the drawings.
First, there will be explained an overall configuration of an ink-jet printer 1 according to a first embodiment of the present invention with reference to FIG. 1.
The printer 1 includes a housing is having a Z-shape in cross section. Devices and components arranged in the housing 1a include recording modules 50a-50d, a conveying unit 20, a sheet storage 3, a sheet receiver 4, and a controller 100.
The recording modules 50a-50d are arranged in the vertical direction. A recording module 50a is the farthest from the sheet storage 3 and the nearest to the sheet receiver 4 among the recording modules 50a-50d. The recording module 50d is the nearest to the sheet storage 3 and the farthest from the sheet receiver 4 among the recording modules 50a-50d. 
The recording modules 50a-50d have the same construction and each includes a head 51. Four cartridges, not shown, are mountable on and removable from the housing 1a. Each of the cartridges stores black ink and is connected to a corresponding one of the heads 51 by a tube and a pump. The controller 100 drives the pump to supply the ink from the cartridge to the head 51 through the tube.
The conveying unit 20 is configured to convey a sheet P as one example of a recording medium from the sheet storage 3 to the sheet receiver 4 via any one of the module paths Ra-Rd formed in the respective recording modules 50a-50d. The conveying unit 20 includes an upstream unit 21 and a downstream unit 31. The upstream unit 21 has paths R1a-R4x through which the sheet P is conveyed from the sheet storage 3 to the respective module paths Ra-Rd. The downstream unit 31 has paths R1y-R4y through which the sheet P is conveyed from the downstream end portions of the respective module paths Ra-Rd to the sheet receiver 4.
The paths R1x-R4x extend from the sheet storage 3 to the respective upstream. end portions of the module paths Ra-Rd. The paths R1x, R2x extend from the sheet storage 3 to a branch position A1 by the same route and branch off at the branch position A2 so as to extend to the module paths Ra, Rh, respectively. The paths R2x, R3x extend from the sheet storage 3 to a branch position A2 by the same route and branch off at the branch position A2 so as to extend to the module paths Rb, Rc, respectively. The paths R3x, R4x extend from the sheet storage 3 to a branch position A3 by the same route and branch off at the branch position A3 so as to extend to the module paths Rc, Rd, respectively. The branch position A1 is a position of a boundary between a shared portion of the paths R1x, R2x and a non-shared portion of the paths R1x, R2x. The branch position A2 is a position of a boundary between a shared portion of the paths R2x, R3x and a non-shared portion of the paths R2x, R3x. The branch position A3 is a position of a boundary between a shared portion of the paths R3x, R4x and a non shared portion of the paths R3x, R4x. 
The upstream unit 21 includes a sheet-supply roller 22, roller pairs 26a-26d, guides 23, 25a-25d, and switchers 28a-28v. 
The sheet-supply roller 22 is disposed so as to contact an uppermost one of the sheets P stored in the sheet storage 3. The controller 100 drives a sheet-supply motor 22M (see FIG. 6) to rotate the sheet-supply roller 22. This rotation supplies the uppermost sheet P from the sheet storage 3.
Each of the roller pairs 26a-26d has two rollers contacting each other and conveys the sheet P, with the two rollers nipping the sheet P therebetween. One of the two rollers of each of the roller pairs 26a-26d is a drive roller which is rotated by an upstream conveying motor 26M (see FIG. 6) driven by the controller 100. The other of the two rollers of each of the roller pairs 26a-26d is a driven roller which is rotated, in a direction reverse to a direction of the rotation of the drive roller, by the rotation of the drive roller while contacting the drive roller. As a result, the sheet P supplied by the sheet-supply roller 22 from the sheet storage 3 is conveyed to any one of the module paths Ra-Rd. The roller pairs 26a-26d are driven in synchronization with each other by the upstream conveying motor 26M.
Each of the guides 23, 25a-25d defines a corresponding one or ones of the paths R1x-R4x and includes a pair of plates arranged spaced apart from each other. The guides 25a-25d extend in the horizontal direction and define the respective downstream portions of the paths R1x-R4x. The guide 23 extends obliquely with respect to the vertical direction and defines the upstream portions of the respective paths R1x-R4x. The guide 25a is connected to the other end portion of the guide 23 from the sheet storage 3, and the guides 25b-25d are connected to the guide 23 other than its end portions.
The switchers 28a-28e are respectively arranged at the branch positions A1-A3. The switcher 28a at the branch position A1 switches a destination of the sheet P between the path R1x and the path R2x. The switcher 28b at the branch position A2 switches a destination of the sheet P between one of the paths R1x, R2x and the path R3x. The switcher 28c at the branch position A3 switches a destination of the sheet P between one of the paths R1x-R3x and the path R4x. 
The switchers 28a-28c respectively include pivot members 28a1-28c1 (see FIG. 2) and switching motors 28aM-28cM (see FIG. 6). Each of the pivot members 28a1-28c1 is pivotable about a corresponding one of pins 1a4 provided in the housing 1a. The controller 100 drives each of the switching motors 28aM-28cM to switch a position of a corresponding one of the pivot members 28a1-28c1 between a first position indicated by solid lines in FIG. 2 and a second position indicated by broken lines in FIG. 2. At the first position, a distal end of each of the pivot members 28a1-28c1 is held in contact with the corresponding one of the guide 25b, 25c, 25d. At the second position, the distal end of each of the pivot members 28a1-28c1 is held in contact with the guide 23.
When the pivot member 28a1 is located at the first position, the path R1x is opened, and the path R2x is closed at the branch position A1. Accordingly, the sheet P having been conveyed from the sheet storage 3 to the branch portion A1 is conveyed to the module path Ra along the path R1x. When the pivot member 28a1 is located at the second position, the path R1x is closed, and the path R2x is opened at the branch position A1. Accordingly, the sheet P having been conveyed from the sheet storage 3 to the branch portion A1 is conveyed to the module path Rb along the path R2x. 
When the pivot member 28b1 is located at the first position, the paths R1x, R2x are opened, and the path R3x is dosed at the branch position A2. Accordingly, the sheet P having been conveyed from the sheet storage 3 to the branch portion A2 is conveyed to the branch position A1 along the shared portion of the paths R1x, R2x. When the pivot member 28b1 is located at the second position, the paths R1x, R2x are closed, and the path R3x is opened at the branch position A2. Accordingly, the sheet P having been conveyed from the sheet storage 3 to the branch portion A2 is conveyed to the module path Re along the path R3x. 
When the pivot member 28c1 is located at the first position, the paths R1x-R3x are opened, and the path R4x is closed at the branch position A3. Accordingly, the sheet P having been conveyed from the sheet storage 3 to the branch portion A3 is conveyed to the branch position A2 along the shared portion of the paths R1x-R3x. When the pivot member 28c1 is located at the second position, the paths R1x-R3x are closed, and the path R4x is opened at the branch position A3. Accordingly, the sheet P having been conveyed from the sheet storage 3 to the branch portion A3 is conveyed to the module path Rd along the path R4x. 
A first sensor 5 is disposed between the sheet-supply roller 22 and the roller pair 26d at a position opposite the shared portion of the paths R1x-R4x. Second sensors 6a-6d are disposed opposite the respective downstream end portions of the paths R1x-R4x. 
Each of the first sensor 5 and the second sensors 6a-6d is configured to output a signal indicating the presence or absence of the sheet P at a corresponding one of a first sensing position 5p and second sensing positions 6ap-6dp. Each of the first sensor 5 and the second sensors 6a-6d outputs an ON signal when there is a sheet P at the corresponding position, and outputs an OFF signal when there is no sheet P at the corresponding position. The first sensing position 5p is determined at a position near the shared portion of the paths R1x-R4x between the sheet-supply roller 22 and the roller pair 26d. Each of the second sensing positions 6ap-6dp is determined at a position near a corresponding one of the respective downstream end portions of the paths R1x-R4x. In other words, the second sensing positions 6ap-6dp are respectively determined at a position on the path R1x which is located downstream of the branch position A1, a position on the path R2x which is located downstream of the branch position A1, a position on the path R3x which is located downstream of the branch position A2, and a position on the path R4x which is located downstream of the branch position A3.
Each of the sensors 5, 6a-6d includes an ON counter and an OFF counter. When an ON signal is output, the ON counter produces a counter pulse which is proportional to an amount of rotation of the upstream conveying motor 26M and starts counting the number of pulses, and when another ON signal is thereafter output, the ON counter resets the count. When an OFF signal is output, the OFF counter produces a counter pulse which is proportional to an amount of rotation of the upstream conveying motor 26M and starts counting the number of pulses, and when another OFF signal is thereafter output, the OFF counter resets the count. Count data created by the ON counter represents an amount of conveyance of the sheet P from the timing when the leading edge of the sheet P has reached a sensing position of a corresponding one of the sensors 5, 6a-6d. Count data created by the OFF counter represents an amount of conveyance of the sheet P from the timing when the trailing edge of the sheet P has reached the sensing position of the corresponding one of the sensors 5, 6a-6d. 
In the present embodiment, it is possible to assume, as a first assumption, that the recording module 50a corresponds to a first recording module, the recording module 50b to a second recording module, the recording module 50c to a third recording module, the path R1x to a first path, the path R2x to a second path, the path R3x to a third path, the branch position A1 to a first branch position, the branch position A2 to a second branch position, the switcher 28a to a first switcher, and the switcher 28b to a second switch. In the first assumption, the path R2x includes, at its upstream portion, a first shared portion shared with the path R1x, and the path R2x is branched off from the path R1x at the branch position A1 provided on one end portion of the first shared portion. The path R3x includes, at its upstream portion, a second shared portion shared with the first shared portion, and the path R3x is branched of from the first shared portion at the branch position A2 provided on one end portion of the second shared portion. In the first assumption, each of the sheet-supply roller 22 and the roller pair 26b-26d serves as a first shared conveyor, and each of the sheet-supply roller 22 and the roller pair 26c, 26d serves as a second shared conveyor.
Alternatively, in the present embodiment, it is possible to assume, as a second assumption, that the recording module 50b corresponds to the first recording module, the recording module 50c to the second recording module, the recording module 50d to the third recording module, the path R2x to the first path, the path R3x to the second path, the path R4x to the third path, the branch position A2 to the first branch position, the branch position A3 to the second branch position, the switcher 28b to the first switcher, and the switcher 28c to the second switcher. In the second assumption, the path R3x includes, at its upstream portion, a first shared portion shared with the path R2x, and the path R3x is branched off from the path R2x at the branch position A2 provided on one end portion of the first shared portion. The path R4x includes, at its upstream portion, a second shared portion shared with the first shared portion, and the path R4x is branched of from the first shared portion at the branch position A3 provided on one end portion of the second shared portion. In the second assumption, each of the sheet-supply roller 22 and the roller pair 26c, 26d serves as the first shared conveyor, and each of the sheet-supply roller 22 and the roller pair 26d serves as the second shared conveyor.
The paths R1y-R4y extend from the respective downstream end portions of the module paths Ra-Rd to the sheet receiver 4. The paths R1y, R2y extend from the respective downstream end portions of the module paths Ra, Rb, then merge with each other at a joining position B1, and extend from the joining position B1 to the sheet receiver 4 by the same route. The paths R2y, R3y extend from the respective downstream end portions of the module paths Rb, Rc, then merge with each other at a joining position B2, and extend from the joining position B2 to the sheet receiver 4 by the same route. The paths R3y, R4y extend from the respective downstream end portions of the module paths Rc, Rd, then merge with each other at a joining position B3, and extend from the joining position B3 to the sheet receiver 4 by the same route.
The downstream unit 31 includes the roller pairs 36a-36d, a roller pair 36e, and guides 33, 35a-35d. 
Each of the roller pairs 36a-36e has two rollers contacting each other and conveys the sheet P, with the two rollers nipping the sheet P therebetween. One of the two rollers of each of the roller pairs 36a-36e is a drive roller which is rotated by a downstream conveying motor 36M (see FIG. 6) driven by the controller 100. The other of the two rollers of each of the roller pairs 36a-36e is a driven roller which is rotated, in a direction reverse to a direction of the rotation of the drive roller, by the rotation of the drive roller while contacting the drive roller. As a result, the sheet P conveyed from any of the module paths Ra-Rd is conveyed to the sheet receiver 4. The roller pairs 36a-36e are driven in synchronization with each other by the downstream conveying motor 36M.
Each of the guides 33, 35a-35d defines a corresponding one or ones of the paths R1y-R4y and includes a pair of plates arranged spaced apart from each other. The guides 35a-35d extend in the horizontal direction and define the respective upstream portions of the paths R1y-R4y. The guide 33 extends obliquely with respect to the vertical direction and defines the downstream portions of the respective paths R1y-R4y. The guide 35d is connected to the other end portion of the guide 33 from the sheet receiver 4, and the guides 35a-35c are connected to the guide 33 other than its end portions.
Each of the sheet storage 3 and the sheet receiver 4 is mountable on and removable from the housing 1a in a sub-seaming direction. The sheet storage 3 is a tray opening upward and can store a plurality of sheets P. The sheet receiver 4 is a tray opening upward and can receive or support a plurality of sheets P. Each of the sheet storage 3 and the sheet receiver 4 can store or receive the sheets P of various sizes including the postcard size, the A6 size, the A4 size, the letter size, and the A3 size.
In the present embodiment, the sheet P of the A3 size is one example of a first recording medium, and the sheet P of the A4 size or the letter size is one example of a second recording medium. Also, the length of the sheet P (i.e., the length of the sheet P in a direction D along the module paths Ra-Rd) is one example of the length of the recording medium.
The sub-scanning direction is parallel with the horizontal plane and parallel with the respective downstream portions of the paths R1x-R4x, the module paths Ra-Rd, and the respective upstream portions of the paths R1y-R4y. A main scanning direction is a direction parallel with the horizontal plane and perpendicular to the sub-scanning direction. The vertical direction is perpendicular to the sub-seaming direction and the main scanning direction.
The controller 100 includes a central processing unit (CPU) as a computing device, a read only memory (ROM), a random access memory (RAM) including a non-transitory RAM, an application specific integrated circuit (ASIC), an interface (I/F), and an input/output port (I/O). The ROM stores programs to be executed by the CPU, various kinds of fixed data, and other similar data. The RAM temporarily stores data necessary for execution of the programs, such as image data, count data of various counters, and various control flags. The ASIC executes rewriting and sorting of image data and other processings such as a signal processing and an image processing. The interface transmits and receives data to and from an external device such as a PC connected to the printer 1. The input/output port inputs and outputs signals produced by various sensors.
There will be next explained the recording modules 50a-50d with reference to FIGS. 3-5.
Each of the recording modules 50a-50d includes the head 51, a carriage 52, and an individual conveyor 53.
The head 51 is a serial head having a generally rectangular parallelepiped shape and supported by the housing 1a via the carriage 52. An upper surface of the head 51 is fixed to the carriage 52. A lower surface of the head 51 is an ejection surface 51a having the plurality of ejection openings 51b opening therein.
The carriage 52 is reciprocable in the main scanning direction by a carriage moving device 52x. The carriage 52 supports the head 51 and reciprocates the head 51 in the main scanning direction. The carriage moving device 52x includes guides 52g1, 52g2, pulleys 52p1, 52p2, a belt 52b, and a carriage motor 52M. Each of the guides 52g1, 52a2 has a rectangular shape when viewed in the vertical direction, and the guides 52g1, 52g2 are spaced apart from each other in the sub-scanning direction. An upper portion of the head 51 is interposed between the guides 52g1, 52g2 which respectively support opposite ends of the carriage 52 in the sub-scanning direction such that the carriage 52 is slidable in the main scanning direction. The pulleys 52p1, 52p2 are rotatably supported by opposite end portions of the guide 52g2 in the main scanning direction. The pulleys 52p1, 52p2 have the same diameter and are arranged at the same position in the sub-scanning direction. The belt 52b is an endless belt looped over the pulleys 52p1, 52p2 and travels by the rotation of the pulleys 52p1, 52p2. The carriage 52 is fixed to the belt 52b. The carriage motor 52M has a circular cylindrical shape elongated in the vertical direction and is fixed to a lower surface of the guide 52g2. A rotation shaft of the carriage motor 52M is mounted on the pulley 52p1 so as to extend in the vertical direction.
The pulley 52p1 is a drive pulley which is rotated forwardly and reversely by the carriage motor 52M driven by the controller 100. The rotation of the pulley 52p1 rotates the belt 52b. The pulley 52p2 is a driven pulley which is rotated by the rotation of the belt 52b. With the operations of the components and devices of the carriage moving device 52x, the carriage 52 supporting the head 51 is reciprocated in the main scanning direction. During this reciprocation, the controller 100 controls the head 51 to eject the ink from the ejection openings 51b at desired timings to record an image on the sheet P.
Each of the individual conveyors 53 is configured to intermittently convey the sheet P along the corresponding one of the module paths Ra-Rd in the direction D and includes roller pairs 53a, 53b and an individual conveying motor 53M (see FIG. 6). The roller pairs 53a, 53b are rotated by the individual conveying motor 53M driven by the controller 100. This rotation conveys the sheet P in the direction D. The direction D is a direction parallel with the sub-scanning direction and directed from an upstream side to a downstream side of each of the module paths Ra-Rd. The roller pairs 53a, 53b extend in the main scanning direction and interpose the head 51 in the sub-scanning direction. That is, in each of the module paths Ra-Rd, the roller pair 53a is disposed upstream of the head 51, and the roller pair 53b is disposed downstream of the head 51.
In the present embodiment, the sub-scanning direction is one example of a first direction, and the direction D is one example of a second direction.
A platen 54 is disposed between the roller pairs 53a, 53b at a position opposite the ejection surface 51a. The platen 54 has a flat upper surface 54a which can support a lower surface of the sheet P. A space appropriate for recording is formed between the ejection surface 51a and the upper surface 54a. 
The roller pairs 53a, 53b and the platen 54 are supported by a pair of flanges 56. The pair of flanges 56 extending in the sub-scanning direction are spaced apart from each other in the main scanning direction.
An upper one of two rollers of the roller pair 53b is a spur roller provided with a plurality of spurs, in order not to deteriorate the image recorded on the sheet P when the roller pair 53b nips the sheet P.
The controller 100 controls each of the recording modules 50a-50d to perform (i) an intermittently conveying operation in which the sheet P is intermittently conveyed in the direction D by the corresponding individual conveyor 53 and (ii) a reciprocating operation in which, during a conveyance stopped period in which the sheet P is stopped in the intermittently conveying operation, the ink is ejected from the ejection openings 51b while the carriage 52 is reciprocated in the main scanning direction.
The roller pair 53b is a one-way roller. That is, rotational power of the roller pair 53a is transmitted to the roller pair 53b, but rotational power of the roller pair 53b is not transmitted to the roller pair 53a. Accordingly, while the image-recorded sheet P is successively conveyed toward the sheet receiver 4 by successive drivings of the roller pair 53b, the next sheet P can be intermittently conveyed in a corresponding one of the module paths Ra-Rd by intermittent drivings of the roller pair 53a. This configuration can improve a throughput. In a configuration in which the roller pair 53b is not the one-way roller, but the roller pairs 53a 53b are driven in complete synchronization with each other, unlike the present embodiment, when a leading edge of the next sheet P reaches the roller pair 53a in the corresponding one of the module paths Ra-Rd before a trailing edge of the sheet P reaches a downstream side of the roller pair 53b, the roller pairs 53a, 53b are both driven intermittently, so that the image-recorded sheet P cannot be successively conveyed toward the sheet receiver 4 by the roller pair 53a. 
There will be next explained processings to be executed by the controller 100 with reference to FIGS. 7-10.
When a recording command is received from the external device, the controller 100 initially determines which recording module the sheet P is to be supplied to (that is, the controller determines a destination of supply of the sheet P) by referring to information contained in the recording command which represents the size and the number of sheets P and to a table representing correspondence between a destination of the supply and the size and the number of sheets P. The table is stored in the ROM, for example.
The recording modules 50a-50d are used in order from the top, i.e., the upper recording module in the case where the sheet P is of the A4 size or the letter size. Specifically, in a case where recording is successively performed on a plurality of sheets P of the A4 size or the letter size, the first sheet P is supplied to the recording module 50a, the second sheet P to the recording module 50b, the third sheet P to the recording module 50c, and the fourth sheet P to the recording module 50d. That is, in the case where the sheet P is of the A4 size or the letter size, the 4m+1th sheet (n=4m+1 (m is an integer greater than or equal to zero)) is supplied to the uppermost recording module 50a, the 4m+2th sheet P (n=4m+2) to the second recording module 50b from the top, the 4m+3th sheet P (n=4m+3) to the third recording module 50c from the top, and the 4m+4th sheet P (n=4m+4) to the fourth recording module 50d from the top (see FIG. 11).
FIG. 11 illustrates a situation of conveyance of sheets P in a case where recording is successively performed on seven sheets P of the A4 size or the letter size, with the horizontal axis representing time, and the vertical axis representing an amount of conveyance of the sheet P. The starting point (i.e., the origin point 0) of the vertical axis is the sheet storage 3. The characters “L36a” represent a distance from the sheet storage 3 to the roller pair 36a along the corresponding path. Each of the characters “L50a”-“L50d” represents a distance from the sheet storage 3 to a recording starting position in a corresponding one of the recording modules 50a-50d along the corresponding path. Each of the characters “LA1”-“LA3” represents a distance from the sheet storage 3 to a corresponding one of the branch positions A1-A3 along the corresponding path.
In the case where the sheet P is of the A3 size, the uppermost recording module 50a and the third recording module 50c from the top are repeatedly used in this order. Specifically, in a case where recording is successively performed on a plurality of sheets P of the A3 size, the first sheet P is supplied to the recording module 50a, the second sheet P to the recording module 50c, the third sheet P to the recording module 50a, and the fourth sheet P to the recording module 50c. That is, in the case where the sheet P is of the A3 size, the 4m+1th sheet P (n=4m+1) or the 4m+3th sheet P (n=4m+3) is supplied to the uppermost recording module 50a, and the 4m+2th sheet P (n=4m+2) or the 4m+4th sheet P (n=4m+4) is supplied to the third recording module 50c from the top.
After determination of the destination of supply of the sheet P, the controller 100 executes a recording module control routine (see FIGS. 7 and 8), a switcher control routine (see FIG. 9), an upstream roller control routine (see FIG. 10), and a downstream roller control routine, not shown, in parallel. The recording module control routine includes: a control to be executed for upstream rollers (including the sheet-supply roller 22 and the roller pairs 26a-26d), the switchers 28a-28c, and so on when the sheet P is conveyed from the sheet storage 3 toward a corresponding one of the recording modules 50a-50d as the destination of supply of the sheet P; and a control for the intermittently conveying operation and the reciprocating operation performed by the corresponding one of the recording modules 50a-50d. This recording module control routine is executed for the recording modules 50a-50d in parallel. The switcher control routine includes a control for switch of the position of each of the pivot members 28a1-28c1 of the switchers 28a-28c and is executed for the switchers 28a-28c in parallel. The upstream roller control routine includes a control for driving and stopping the upstream rollers. The downstream roller control routine includes a control for driving the downstream rollers (including the roller pairs 36a-36e). In the downstream roller control routine, the controller 100 controls the downstream conveying motor 36M to drive the downstream rollers to convey the sheet P along a corresponding one of the paths R1y-R4y onto the sheet receiver 4.
In the recording module control routine, as illustrated in FIG. 7, this flow begins with 51 at which the controller 100 determines whether a supply command has been output for the module N or not. The module N is an Nth recording module from the top among the recording modules 50a-50d. In the present embodiment, the recording module control routine is executed for the case where the variable N is 1, 2, 3, or 4.
When the supply command is not output for the module N (S1: NO), the controller 100 repeats the processing at S1. When the supply command is output for the module N (S1: YES), the controller 100 at S2 controls the sheet-supply motor 22M and the upstream conveying motor 26M to drive the upstream rollers to supply a sheet P to the module N. As a result, the sheet P stored in the sheet storage 3 is conveyed by the sheet-supply roller 22 and a corresponding one of the roller pairs 26a-26d along a corresponding one of the paths R1x-R4x to the module path (i.e., a corresponding one of the module paths Ra-Rd) of the module N.
After S2, the controller 100 at S3 determines, based on the signal output from the first sensor 5, whether a leading edge of the sheet P has reached the roller pair 53a of the module N or not. That is, the controller determines whether or not an amount of conveyance of the sheet P from the point in time when the leading edge of the sheet P has reached the first sensing position 5p has reached a distance or amount Lx between the first sensing position 5p and the roller pair 53a along the corresponding path. The amount of conveyance of the sheet P from the point in time when the leading edge of the sheet P has reached the first sensing position 5p is calculated based on the count data created by the ON counter of the first sensor 5. In FIG. 1, the distance Lx represents a distance along the path R1x between the first sensing position 5p and the roller pair 53a for the recording module 50a. 
When the leading edge of the sheet P has not reached the roller pair 53a of the module N (S3: NO), this flow returns to S2. When the leading edge of the sheet P has reached the roller pair 53a of the module N (S3: YES), the controller 100 at S4 controls the sheet-supply motor 22M and the upstream conveying motor 26M to drive the upstream rollers by a predetermined amount to cause a particular bend on the sheet P.
After S4, the controller 100 at S5 sets an independent operation permission flag for the module N to 0. The controller 100 at S6 sets a supply permission flag for the module N to 0. In the case where the independent operation permission flag for the module N is 0, the roller pair 53a of the module N and the upstream rollers are nipping the same sheet P at the same time and accordingly need to be driven in synchronization with each other. In the case where the independent operation permission flag for the module N is 1, the roller pair 53a of the module N and the upstream rollers are not nipping the same sheet P at the same time and accordingly can be driven independently of each other. In the case where the supply permission flag for the module N is 0, the roller pair 53a of the module N is nipping the sheet P, and accordingly the controller 100 cannot execute a processing for conveying another sheet P to the roller pair 53a. In the case where the supply permission flag for the module N is 1, the roller pair 53a of the module N is not nipping the sheet P, and accordingly the controller 100 can execute the processing for conveying another sheet P to the roller pair 53a. 
After S6, the controller 100 at S7 determines whether the independent operation permission flag for the module N is 1 or not. When the independent operation permission flag for the module N is 1 (S7: YES), the controller 100 at S8 controls the individual conveying motor 53M for the module N to drive the roller pairs 53a, 53b for the module N to convey the sheet P to the next instruction position. The next instruction position at the processing S8 executed for the first time is a position at which a leading edge portion of an image recording area on the sheet P is opposite the head 51, and the next instruction position at the processing S8 executed for the second or subsequent time is a position at which the sheet P has been moved forward by an amount corresponding to a single operation of the intermittently conveying operation.
When the independent operation permission flag for the module N is not 1 (S7: NO), the controller 100 at S9 determines whether the independent operation permission flag is 1 or not for each of all the recording modules other than the module N. When the independent operation permission flag is 1 for each of all the recording modules other than the module N (S9: YES), the controller 100 at S10 controls the individual conveying motor 53M for the module N and the upstream conveying motor 26M to drive the roller pairs 53a, 53b for the module N and the upstream rollers in synchronization with each other to convey the sheet P to the next instruction position.
When the independent operation permission flag is not 1 for each of all the recording modules other than the module N (S9: NO), the controller 100 at S11, for example, controls a voice output device (e.g., a speaker) and an image output device (e.g., a display) provided on the printer 1, to output a voice and an image for error notification. After S11, the controller 100 finishes all the controls including this recording module control routine and stops the operation of the printer 1.
After S8 or S10, the controller 100 at S12 sets a variable k to 3 (k=3). After S12, the controller 100 at S13 determines, based on the signal output from the first sensor 5, whether a trailing edge of the sheet P is located downstream of a branch position Ak on the corresponding path or not. That is, the controller 100 determines whether an amount of conveyance of the sheet P from the point in time when the trailing edge of the sheet P has reached the first sensing position 5p has exceeded a distance or amount Ly between the first sensing position 5p and the branch position Ak along the corresponding path or not. The amount of conveyance of the sheet P from the point in time when the trailing edge of the sheet P has reached the first sensing position 5p is calculated based on the count data created by the OFF counter of the first sensor 5. In FIG. 1, the distance by is a distance between the first sensing position 5p and the branch position A1 along the path R1x. 
When the trailing edge of the sheet P is located downstream of the branch position Ak on the corresponding path (S13: NO), the controller 100 at S14 sets a second position permission flag for one of the pivot members 28a1-28c1 which is provided at the branch position Ak to 0. When the trailing edge of the sheet P is located downstream of the branch position Ak on the corresponding path (S13: YES), the controller 100 at S15 sets the second position permission flag for one of the pivot members 28a1-28c1 which is provided at the branch position Ak to 1. In the case where the second position permission flag for one of the pivot members 28a1-28c1 which is provided at the branch position Ak is 0, the sheet P is present between the inner wall of the guide 23 and a distal end of the one of the pivot members 28a1-28c1, and when the one of the pivot members 28a1-28c1 which is provided at the branch position Ak is moved to the second position, the sheet P is nipped between the inner wall of the guide 23 and the distal end of the one of the pivot members 28a1-28c1, and accordingly the one of the pivot members 28a1-28c1 cannot be moved to the second position. In the case where the second position permission flag for one of the pivot members 28a1-28c1 which is provided at the branch position Ak is 1, no sheet P is present between the inner wall of the guide 23 and the distal end of the one of the pivot members 28a1-28c1, and accordingly the one of the pivot members 28a1-28c1 can be moved to the second position.
After S14 or S15, the controller 100 at S16 determines whether or not the variable k is smaller than or equal to the variable N (k≦N). When the variable k is not smaller than or equal to the variable N (S16: NO), the controller 100 at S17 sets the variable k to k−1 (k=k−1), and this flow returns to S13. When the variable k is smaller than or equal to the variable N (S16: YES), as in the processing at S13, the controller 100 at S18 determines, based on the signal output from the first sensor 5, whether the trailing edge of the sheet P is located downstream of a branch position A(N−1) (noted that this branch position A(N−1) is the branch position A1 in the case where the variable N is 1 (N=1)) on the corresponding path or not.
When the trailing edge of the sheet P is not located downstream of the branch position A(N−1) on the corresponding path (S18: NO), the controller 100 at S19 sets a first position permission flag for one of the pivot members 28a1-28e1 which is provided at the branch position A(N−1), to 0. When the trailing edge of the sheet P is located downstream of the branch position Ak on the corresponding path (S13: YES), the controller 100 at S20 sets the first position permission flag for the one of the pivot members 28a1-28c1. which is provided at the branch position A(N−1), to 1.
After S19 or S20, as illustrated in FIG. 8, the controller 100 at S21 determines the variable N is 4 (N=4) or not. When the variable N is 4 (S21: YES), this flow goes to S23. When the variable N is not 4 (S21: NO), the controller 100 at S22 sets the independent operation permission flag for the module N to 1. After S22, the controller 100 at S23 determines, based on the signal output from the first sensor 5, whether the trailing edge of the sheet P is located downstream of the roller pair 53a on the corresponding path or not. That is, the controller determines whether the amount of conveyance of the sheet P from the point in time when the trailing edge of the sheet P has reached the first sensing position 5p has exceeded the distance Lx or not.
When the trailing edge of the sheet P is not located downstream of the roller pair 53a on the corresponding path (S23: NO), the controller 100 at S24 sets the supply permission flag for the module N to 0. When the trailing edge of the sheet P is located downstream of the roller pair 53a on the corresponding path (S23: YES), the controller 100 at S25 sets the supply permission flag for the module N to 1.
After S24 or S25, the controller 100 at S26 refers to the image data contained in the recording command to determine whether recording for a target page is completed or not. That is, the controller determines whether or not recording is completed for a front surface of the sheet P which is a surface facing downward in the sheet storage 3 and facing the head 51 during recording. When the recording for the target page is completed (S26: YES), this flow returns to S1.
When the recording for the target page is not completed (S26: NO), the controller 100 at S27 refers to the image data contained in the recording command to determine whether recording for a target path (i.e., a path of the movement of the head S1 during a single reciprocating operation) is completed or not. That is, the controller 100 determines whether or not recording by an amount corresponding to a single reciprocating operation is completed for a portion of the sheet P which faces the head 51 at this point in time.
When the recording for the target path is completed (S27: YES), this flow returns to S7. When the recording for the target path is not completed (S27: NO), the controller 100 at S28 controls the head 51 and the carriage motor 52M for the module N to perform the reciprocating operation, and this flow returns to S7.
In the switcher control routine, as illustrated in FIG. 9, this flow begins with S41 at which the controller 100 acquires the number N of the recording module as a destination of supply of the sheet P to be conveyed through the branch position Ak next. The branch position Ak is one of the branch positions A1-A3. In the present embodiment, the switcher control routine is executed in parallel for the cases where the variable k is 1, 2, and 3.
After S41, the controller 100 at S42 determines whether the variable N is equal to the variable k+1 (N=k+1) or not. When the variable N is equal to the variable k+1 (S42: YES), the controller 100 at S43 determines whether one of the pivot members 28a1-28c1. which is provided at the branch position Ak is located at the second position or not. When the one of the pivot members 28a1-28c1 which is provided at the branch position Ak is located at the second position (S43: YES), this flow returns to S41. When the one of the pivot members 28a1-28c1 which is provided at the branch position Ak is not located at the second position (S43: NO), the controller 100 at S44 determines whether the second position permission flag for the one of the pivot members 28a1-28c1 is 1 or not. When the second position permission flag for the one of the pivot members 28a1-28c1 which is provided at the branch position Ak is not 1 (S44: NO), this flow returns to S41. When the second position permission flag for the one of the pivot members 28a1-28c1 which is provided at the branch position Ak is 1 (S44: YES), the controller 100 at S45 controls a corresponding one of the switching motors 28aM-28cM to move the one of the pivot members 28a1-28c1 to the second position and sets the first position permission flag for the one of the pivot members 28a1-28c1 to 0. After S45, this flow returns to S41.
When the variable N is not equal to the variable k+1 (S42: NO), the controller 100 at S46 determines whether or not the variable N is smaller than the variable k+1 (N<k+1) or not. When the variable N is not smaller than the variable k+1 (S46: NO), this flow returns to S41. When the variable N is smaller than the variable k+1 (S46: YES), the controller 100 at S47 determines whether the one of the pivot members 28a1-28c1 which is provided at the branch position Ak is located at the first position or not, When the one of the pivot members 28a1-28c1 which is provided at the branch position Ak is located at the first position (S47: YES), this flow returns to S41. When the one of the pivot members 28a1-28c1 which is provided at the branch position Ak is not located at the first position (S47: NO), the controller 100 at S48 determines whether the first position permission flag for the one of the pivot members 28a1-28c1 is 1 or not. When the first position permission flag for the one of the pivot members 28a1-28c1 which is provided at the branch position Ak is not 1 (S48: NO), this flow returns to S41, When the first position permission flag for the one of the pivot members 28a1-28c1 which is provided at the branch position Ak is 1 (S48: YES), the controller 100 at S49 controls a corresponding one of the switching motors 28aM-28cM to move the one of the pivot members 28a1-28c1 which is provided at the branch position Ak to the first position and sets the second position permission flag for the one of the pivot members 28a1-28c1 to 0. After S49, this flow returns to S41.
In the upstream roller control routine, as illustrated in FIG. 10, this flow begins with S81 at which the controller 100 acquires the number N of the recording module as a destination of supply of the sheet P on which recording is to be performed next.
After S81, the controller 100 at S82 sets the variable k to 3 (k=3). After S82, the controller 100 at S83 determines whether the variable k is smaller than the variable N−1 (k<N−1) or not. That is, the controller 100 determines whether or not the sheet P on which recording is to be performed next is not to pass through the branch position Ak. When the variable k is smaller than the variable N−1 (S83: YES), that is, when the sheet P on which recording is to be performed next is not to pass through the branch position Ak, this flow goes to S91.
When the variable k is not smaller than the variable N−1 (S83: NO), that is, when the sheet P on which recording is to be performed next is to pass through the branch position Ak, as in the processing at S13, the controller 100 at S84 determines, based on the signal output from the first sensor 5, whether the leading edge of the sheet P is located downstream of the branch position Ak on the corresponding path or not.
When the leading edge of the sheet P is located downstream of the branch position Ak on the corresponding path (S84: YES), this flow goes to S91. When the leading edge of the sheet P is not located downstream of the branch position Ak on the corresponding path (S84: NO), the controller 100 at S85 determines Whether or not the variable k is equal to the variable N−1 (k=N−1). That is, the controller 100 determines whether the sheet P on which recording is to be performed next is to pass through the branch position Ak and thereafter is to be conveyed horizontally to the corresponding module path or not.
When the variable k is equal to the variable N−1 (S85: YES), that is, when the sheet P on which recording is to be performed next is to be horizontally conveyed to the corresponding module path after passing through the branch position Ak, the controller 100 at S86 determines whether the one of the pivot members 28a1-28c1 which is provided at the branch position Ak is located at the second position or not. When the one of the pivot members 28a1-28c1 which is provided at the branch position Ak is located at the second position (S86: YES), this flow goes to S89. When the one of the pivot members 28a1-28c1 which is provided at the branch position Ak is not located at the second position (S86: NO), the controller 100 at S87 controls the upstream conveying motor 26M to stop the upstream rollers in a state in which the leading edge of the sheet P is located upstream of the branch position Ak on the corresponding path. After S87, this flow returns to S81.
When the variable k is not equal to the variable N−1 (S85: NO), that is, when the sheet P on which recording is to be performed next is not to be horizontally convoyed to the corresponding module path after passing through the branch position Ak, the controller 100 at S88 determines whether the one of the pivot members 28a1-28c1 which is provided at the branch position Ak is located at the first position or not. When the one of the pivot members 28a1-28c1 which is provided at the branch position Ak is not located at the first position (S88: NO), this flow goes to S87. When the one of the pivot members 28a1-28c1 which is provided at the branch position Ak is located at the first position (S88: YES), the controller 100 at S89 determines whether the independent operation permission flag for each of all the recording modules 50a-50d is 1 or not.
When the independent operation permission flag for each of all the recording modules 50a-50d is not 1 (that is, when the independent operation permission flag for at least one of the recording modules 50a-50d is 0) (S89: NO), this flow returns to S81. When the independent operation permission flag for each of all the recording modules 50a-50d is 1 (S89: YES), the controller 100 at S90 controls the upstream conveying motor 26M to drive the upstream rollers until the leading edge of the sheet P reaches a downstream side of the branch position Ak on the corresponding path.
After S90, the controller 100 at S91 sets the variable k to k−1 (k=k−1) and at S92 determines whether the variable k is equal to zero (k=0) or not. When the variable k is not equal to zero (S92: NO), this flow returns to S83. When the variable k is equal to zero (S92: YES), the controller 100 at S93 determines whether the supply permission flag for the module N is 1 or not.
When the supply permission flag for the module N is 1 (S93: YES), the controller 100 at S94 outputs the supply command for the module N. When the supply permission flag for the module N is not 1 (S93: NO), the controller 100 at S5 controls the upstream conveying motor 26M to stop the upstream rollers in a state in which the leading edge of the sheet P is located upstream of the roller pair 53a for the module N on the corresponding path. After S94 or S95, this flow returns to S81.
With the above-described control, the position of each of the pivot members 28a1-28c1 provided at the respective branch positions A1-A3 is switched depending upon conveyance of the sheets P, and each of the sheets P is successively supplied to the corresponding one of the recording modules 50a-50d. 
FIGS. 12 and 13 chronologically illustrate situations in which sheets Pn and Pn+1 of the A4 size or the letter size are successively supplied to the recording modules 50a, 50b. When the trailing edge of the sheet Pn supplied to the recording module 50a is located downstream of the branch position A1 on the path R1x, the sheet Pn+1 stored in the sheet storage 3 is conveyed to the recording module 50b via the branch position A1 along the path R2x. Also, during recording by the recording module 50a, the sheet Pn+1 stored in the sheet storage 3 is supplied to the recording module 50b such that the leading edge of the sheet Pn+1 passes through the branch position A1. FIG. 12 illustrates a situation in which recording in the first reciprocation for the sheet Pn is being performed by the recording module 50a (i.e., the first reciprocating operation), and in this situation the trailing edge of the sheet Pn is located downstream of the branch position A1 on the path R1x. 
FIGS. 14 and 15 chronologically illustrate situations in which sheets P and Pn+1 of the A3 size are successively supplied to the recording modules 50a, 50c. When the trailing edge of the sheet Pn supplied to the recording module 50a is located downstream of the branch position A2 and upstream of the branch position A1 on the path R1x, the sheet Pn+1 stored in the sheet storage 3 is supplied to the recording module 50c via the branch position A2 along the path R3x. FIG. 14 illustrates a situation in which a situation in which recording in the first reciprocation for the sheet Pn is being performed by the recording module 50a (i.e., the first reciprocating operation), and in this situation the trailing edge of the sheet P is located downstream of the branch position A2 and upstream of the branch position A1 on the path R1x. 
In the present embodiment, the processing at S13 corresponds to a first or second determination processing, and the processings at S2 and S90 (hereinafter referred to as “processing at S2”) correspond to a first or second supply processing. Specifically, the processing at S2 when the sheet P of the A4 size or the letter size is supplied to one of the recording modules 50b, 50c, 50d corresponds to a first supply processing (see FIGS. 12 and 13), and the processing at S2 when the sheet P of the A3 size is supplied to the recording module 50c corresponds to the second supply processing (see FIGS. 14 and 15). For the sheets P of the A4 size or the letter size, when the first supply processing is executed in a case where the nth sheet Pn is supplied. to the recording module 50a, the n+1th sheet Pn+1 is supplied to the recording module 50b, and when the first supply processing is executed in a case where the nth sheet P is supplied to the recording module 50b, the n+1th sheet Pn+1 is supplied to the recording module 50c, and when the first supply processing is executed in a case where the nth sheet P is supplied to the recording module 50c, the n+1th sheet Pn+1 is supplied to the recording module 50d. For the sheet P of the A3 size, when the second supply processing is executed in a case where the nth sheet P is supplied to the recording module 50a, the n+1th sheet Pn+1 is supplied to the recording module 500.
In the present embodiment as described above, the controller 100 executes the first supply processing at S2 based on the first determination processing at S13. This makes it possible to prevent an occurrence of a sheet jam.
Specifically, one example of the first supply processing at S2 based on the first determination processing at S13 is the following. In the case where the sheet P is of the A4 size or the letter size, for example, the first sheet P is supplied to the first recording module (e.g., the recording module 50a), and the second sheet P to the second. recording module (e.g. the recording module 50b). Here, when the controller 100 determines that the trailing edge of the first sheet P supplied to the recording module 50a is located downstream of the branch position A1 on the path R1x (S13: YES), the controller 100 at S15 sets the second position permission flag for the pivot member 28a1 provided at the branch position A1 to 1. Based on this flag, the pivot member 28a1 is at S45 moved to the second position. In the upstream roller control routine executed thereafter, the controller 100 at S86 determines whether the pivot member 28a1 provided at the branch position A1 is located at the second position or not. When the pivot member 28a1 provided at the branch position A1 is located at the second position (S86: YES), the controller 100 at S94 outputs a supply command for the second sheet P. Based on this supply command, the second sheet P is at S2 supplied to the recording module 50b. That is, after the first determination processing at S13 for the first sheet P, the independent operation permission flag for the module N is set to 1, and the supply command for the second sheet P is output based on this flag.
In the first supply processing at S2, the sheet P stored in the sheet storage 3 can be supplied to the second recording module the recording module 50b) such that the leading edge of the sheet P passes through the first branch position (e.g., the branch position A1) during recording by the first recording module (e.g., the recording module 50a) (see FIGS. 11-13), resulting in improved throughput.
As illustrated in FIG. 1, the first path and the module path of the first recording module (e.g., the path R1x and the module path Ra) are defined such that a first distance L1 along the corresponding path between the first branch position (e.g., the branch position A1) and a position Q opposite the most downstream one of the plurality of ejection openings 51b (see FIG. 3) of the first recording module (e.g., the recording module 50a) is shorter than the length of the sheet P of the A3 size. With this configuration, the first path can be made shorter, allowing downsizing of the printer 1. Also in a case where a long sheet P is used such as the sheet of the A3 size, the first supply processing at S2 is executed based on the first determination processing at S13, it is possible to prevent the sheet jam.
The first path and the module path of the first recording module (e.g., the path R1x and the module path Ra) are defined such that the first distance L1 is longer than or equal to a length obtained by subtracting the length of a margin formed on a leading edge portion of the sheet P in the direction D from the length of the sheet P of the A4 size or the letter size. With this configuration, even in a case where the sheet P of any of the A3 size, the A4 size, and the letter size is used, the first supply processing at S2 is executed based on the first determination processing at S13, making it possible to prevent the sheet jam. Also, when recording is started by the first recording module (e.g., the recording module 50a) for a sheet P of one of widely used sizes such as the A4 size and the letter size in particular, a trailing edge of the sheet P is located downstream of the first branch position (e.g., the branch position A1) on the first path (e.g., the path R1x), so that the sheet P stored in the sheet storage 3 can be supplied toward the second recording module (e.g., the recording module 50b). Accordingly, it is possible to reduce a waiting time and improve the throughput for the sheets P of widely used sizes such as the A4 size and the letter size.
The controller 100 executes the first determination processing at S13 based on the signal output from the first sensor 5 without using the signals output from the second sensors 6a-6d. With this configuration, the controller 100 only needs to execute the processing based on the signal output from the first sensor 5, simplifying the control. Also, the second sensors 6a-6d are not necessary for the first determination processing at S13.
The printer 1 includes three or more of the recording modules 50a-50d and three or more of the paths R1x-R4x, and the first sensing position 5p is defined on the second shared portion (i.e., the shared portion of the paths R1x-R3x in the first assumption and the shared portion of the paths R2x-R4x in the second assumption). This construction can reduce the number of the first sensors and simplify the processings. Specifically, in a case where the first sensing position 5p is defined at a position on a portion of the first shared portion other than the second shared portion, i.e., a position located downstream of the second branch position (i.e., the branch position A2 in the first assumption and the branch position A3 in the second assumption), the controller 100 determines whether the trailing edge of the sheet P is located downstream of the second branch position or not, which requires an additional first sensor configured to output a signal indicating the presence or absence of the sheet P on the second shared portion, resulting in increase in the number of the first sensors. In addition, a processing or processings based on signals output from the plurality of first sensors are additionally required, thereby complicating controls of the controller 100. In the above-described configuration, however, since the controller 100 determines whether the trailing edge of the sheet P is located downstream of the second branch position or not, only the first sensor 5 configured to output the signal indicating the presence or absence of the sheet P on the second shared portion needs to be provided, resulting in reduction in the number of the first sensors. Also, the controller 100 only needs to execute a processing based on the signal output from the one first sensor 5, thereby simplifying the controls.
When the controller 100 has determined, in the second determination processing, that the trailing edge of the sheet P on which recording is being performed by the first recording module (e.g., the recording module 50a) is located downstream of the second branch position (e.g., the branch position A2) on the first path (e.g., the path R1x) (S13: YES), the controller 100 executes the first supply processing (see FIGS. 12 and 13) or the second supply processing (see FIGS. 14 and 15) at S2 according to the size of the sheet P (the A4 size or the letter size, or the A3 size). With this configuration, the controller 100 executes the first supply processing or the second supply processing at S2 based on the second determination processing at S13, making it possible to prevent the sheet jam.
When the controller has determined, for the sheet P of the A4 size or the letter size in the second determination processing, that the trailing edge of the sheet P on which recording is being performed by the first recording module (e.g., the recording module 50a) is located downstream of the second branch position (e.g., the branch position A2) on the first path (e.g., the path R1x) (S13: YES) and when the controller has determined, in the first determination processing, that the trailing edge of the sheet P on which recording is being performed by the first recording module (e.g., the recording module 50a) is located downstream of the first branch position (e.g., the branch position A1) on the first path (e.g., the path R1x) (S13: YES), the controller 100 executes the first supply processing at S2. When the controller 100 has determined, for the sheet P of the A3 size in the second determination processing, that the trailing edge of the sheet P on which recording is being performed by the first recording module (e.g., the recording module 50a) is located downstream of the second branch position (e.g., the branch position A2) on the first path (e.g., the path R1x) (S13: YES) and when the controller 100 has determined, in the first determination processing, that the trailing edge of the sheet P on which recording is being performed by the first recording module (e.g., the recording module 50a) is not located downstream of the first branch position (e.g., the branch position A1) on the first path (e.g., the path R1x) (S13: NO), the controller 100 executes the second supply processing at S2. With this configuration, an area not occupied by the sheet P in each shared portion can be made relatively larger, improving the throughput.
The controller 100 executes the control such that the sheet P is conveyed to the first path (e.g., the path R1x) with a higher priority than the third path (e.g., the path R3x). With this configuration, the area not occupied by the sheet P in each shared portion can be made relatively larger, improving the throughput.
The controller 100 executes the control such that the sheet P is conveyed to the second path (e.g., the path R2x) with a higher priority than the third path (e.g., the path R3x). That is, in a case where the number of recording modules is greater than or equal to three, the controller 100 executes control such that the sheet P is to be conveyed, with a higher priority, to a path having many branch positions. With this configuration, the area not occupied by the sheet P in each shared portion can be made relatively larger, improving the throughput.
As illustrated in FIG. 1, the first path and the module path of the first recording module (e.g., the path R1x and the module path Ra) are defined such that the first distance L1 is longer than a second distance L2, along the second path and the module path of the second recording module (e.g., the path R2x and the module path Rb), between the first branch position (e.g., the branch position A1) and a position Q opposite the most downstream one of the plurality of ejection openings 51b (see FIG. 3) of the second recording module (e.g., the recording module 50b). The controller 100 executes control such that the sheet P is conveyed to the first path (e.g., the path R1x) with a higher priority than the second path (e.g., the path R2x). That is, in a case where there are two or more paths having the same number of branch positions, the controller 100 executes control such that the sheet 1 is conveyed with a higher priority to a path having a large length between the branch position and the position Q opposite the most downstream one of the ejection openings 51b. With this configuration, the area not occupied by the sheet P in the first shared portion can be made relatively larger, improving the throughput.
Each of the paths R1x-R4x includes, at its upstream portion, a complete shared portion which is shared by all the paths R1x-R4x (which is a portion extending from the sheet storage 3 to the branch position A3). The first sensing position 5p is defined at this complete shared portion. This construction can reduce the number of the first sensors 5.
There will be next explained an inkjet printer according to a second embodiment of the present invention with reference to FIG. 16.
The printer according to the second embodiment has the same construction as the printer 1 according to the first embodiment except for the processings executed by the controller 100. It is noted that the same reference numerals as used in the first embodiment are used to designate the corresponding elements of the second embodiment, and an explanation of which is dispensed with.
After determining the destination of supply of the sheet P, the controller 100 executes a sheet length determination routine (see FIG. 16) in parallel with the recording module control routine and other routines.
In the sheet length determination routine, the flow begins with S201 at which the controller 100 sets a variable n to one (n=1). After S201, the controller 100 at S202 determines whether conveyance of the nth sheet P is started or not based on a state of driving of the sheet-supply motor 22M. When the conveyance of the nth sheet P is not started (S202: NO), the controller 100 repeats the processing at S202.
When the conveyance of the nth sheet P is started (S202: YES), the controller 100 at S203 determines whether the ON signal has been output from the first sensor 5 or not. That is, the controller determines whether the leading edge of the nth sheet P has reached the first sensing position 5p or not. When the ON signal is not output from the first sensor 5 (S203: NO), the controller 100 repeats the processing at S203.
When the ON signal is output from the first sensor 5 (S203: YES), the controller 100 at S204 determines whether the OFF signal has been output from the first sensor 5 or not. That is, the controller determines whether the trailing edge of the nth sheet P has reached the first sensing position 5p or not. When the OFF signal is not output from the first sensor 5 (S204: NO), the controller 100 repeats the processing at S204.
When the OFF signal is output from the first sensor 5 (S204: YES), the controller 100 at S205 acquires the count data created by the ON counter of the first sensor 5. The controller 100 at S206 calculates and determines the length of the nth sheet P based on the acquired count data (a calculation processing). The controller 100 at S207 sets the variable n to n+1 (n=n+1), and this flow returns to S202.
In the present embodiment, the controller 100 executes the determination processings at S3, S13, S18, and S23 based on the signals output from the first sensor 5 and the second sensors 6a-6d. Specifically, the following processings are executed.
The controller 100 at S3 determines that the leading edge of the sheet P has reached the roller pair 53a of the module N (S3: YES), when the amount of conveyance of the sheet P from the point in time when the leading edge of the sheet P has reached the first sensing position 5p has reached the distance Lx and when the amount of conveyance of the sheet P from the point in time when the leading edge of the sheet P has reached the corresponding one of the second sensing positions 6ap-6dp has reached a distance or amount Lx2 along the corresponding path between the corresponding one of the second sensing positions 6ap-6dp and the roller pair 53a. The amount of conveyance of the sheet P from the point in time when the leading edge of the sheet P has reached the corresponding one of the second sensing positions 6ap-6dp is calculated based on the count data created by the ON counter of the corresponding one of the second sensors 6a-6d. In FIG. 1, the distance Lx2 represents a distance along the path R1x between the second sensing position 6ap to the roller pair 53a for the recording module 50a. 
The controller 100 at S13 determines that the trailing edge of the sheet P is located downstream of the branch position Ak on the corresponding path (S13: YES), when the sum of (i) the amount of conveyance of the sheet P from the point in time when the leading edge of the sheet P has reached the corresponding one of the second sensing positions 6ap-6dp and (ii) a distance or amount Ly2 along the corresponding path between the branch position Ak and the corresponding one of the second sensing positions 6ap-6dp is greater than the length of Sheet calculated at S206. This applies to the processing at S18. In FIG. 1, the distance Ly2 represents a distance along the path R1x between the branch position A1 and the second sensing position 6ap. 
The controller 100 at S23 determines that the trailing edge of the sheet P is located downstream of the roller pair 53a on the corresponding path (S23: YES), when the amount of conveyance of the sheet P from the point in time when the leading edge of the sheet P has reached the corresponding one of the second sensing positions 6ap-6dp is greater than the sum of the length of sheet calculated at S206 and the distance Lx2.
In the present embodiment as described above, the controller 100 executes the first determination processing at S13 based on the signals output from the first sensor 5 and the second sensors 6a-6d. If the controller executes the first determination processing at S13 only based on the signal output from the first sensor 5, a mistake may be made in the determination in a case where the sheet P is not being appropriately conveyed due to skid or other causes. In the present embodiment as described above, however, the controller 100 executes the first determination processing at S13 based on the signals output from the first sensor 5 and the second sensors 6a-6d, thereby reducing the possibility of mistake in the determination, resulting in improvement in reliability of the determination in the first determination processing at S13. Since the skid easily occurs on a short sheet P in particular, the above-described configuration is particularly effective for the short sheet P.
The controller 100 at S206 executes the calculation processing for calculating and determining the length of the sheet based on the signal output from the first sensor 5 and at S13 executes the first determination processing based on the signals output from the second sensors 6a-6d and the length of the sheet which is determined in the calculation processing at S206. This configuration can more effectively reduce the possibility of mistake in the determination, resulting in improvement in reliability of the determination in the first determination processing at S13.
There will be next explained an inkjet printer 301 according to a third embodiment of the present invention with reference to FIG. 17.
The printer 301 according to the third embodiment has the same construction as the printer 1 according to the first embodiment except for the number of recording modules and a construction of paths. It is noted that the same reference numerals as used in the first embodiment are used to designate the corresponding elements of the third embodiment, and an explanation of which is dispensed with.
The printer 301 includes two recording modules 50a, 50b. Two cartridges, not shown, are mountable on and removable from the housing 1a. The upstream unit 21 has two paths R1x, R2x through which the sheet P is conveyed from the sheet storage 3 to the respective module paths Ra, Rb formed in the respective recording modules 50a, 50b. The downstream unit 31 has two paths R1y, R2y through which the sheet P is conveyed from the downstream end portions of the respective module paths Ra, Rb to the sheet receiver 4.
Also in the third embodiment, the same construction as employed in the first embodiment can achieve the same effects as obtained in the first embodiment.
While the embodiments of the present invention have been described above, it is to be understood that the invention is not limited to the details of the illustrated embodiments, but may be embodied with various changes and modifications, which may occur to those skilled in the art, without departing from the spirit and scope of the invention.
The number of recording modules may be any number as long as a plurality of recording modules are provided. The recording modules are used in order from above in the above-described embodiment, but the present invention is not limited to this configuration. For example, the recording modules may be used in order from below and may be used in other orders.
The positional relationship between the recording modules is not limited in particular. For example, while the four recording modules 50a-50d are arranged at different positions in the sub-scanning direction in the above-described embodiment, the recording modules may be arranged without difference in positions in the sub-scanning direction, that is, the recording modules may be arranged at the same position in the sub-scanning direction. Two recording modules adjacent to each other in the vertical direction may be arranged at different positions in a direction, in the plane of the module paths, which differs from the sub-scanning direction (e.g., the main scanning direction). The plurality of recording modules may not be arranged in the vertical direction, and the plurality of recording modules may be arranged in the horizontal direction and may not be arranged in one direction.
Recording modules assumed to be the first recording module, the second recording module, and the third recording module among the plurality of recording modules may be changed as needed according to, e.g., the construction of the paths.
Another recording module may be disposed between the first recording module and the second recording module. Likewise, another recording module may be disposed between the second recording module and the third recording module.
The plurality of recording modules may have different constructions. For example, the plurality of recording modules may be different from each other in, e.g., recordable color, resolution, recording speed, recording method, type of recordable recording medium, and size of recordable recording medium.
The plurality of roller pairs constituting the individual conveyor may be driven by the same drive source and may be driven respectively by individual drive sources. In the above-described embodiment, the roller pair 53b may not be the one-way roller, and the roller pairs 53a, 53b may be driven in complete synchronization with each other.
The intersecting angle of a plurality of paths and the angle of a curved. portion of one path may be any angles. For example, the guide 23 and each of the guides 25a-25d are not perpendicular to each other in the above-described embodiment but may be perpendicular to each other. Likewise, the guide 33 and each of the guides 35a-35d are not perpendicular to each other in the above-described embodiment but may be perpendicular to each other.
Relationship of position, angle, and so on between the plurality of paths may be any relationship. In the above-described embodiment, for example, the angles of the guide 23, 33 with respect to the vertical direction may or may not be the same as each other. The plurality of paths may not include the complete shared portion which is shared by all the paths. The number of paths and the construction of each path may be changed according to the number and/or arrangement of recording modules. Limitation on the length of the path (e.g., a first length and a second length) is not essential in the present invention.
The plurality of pivot members constituting the switcher may be driven by the same drive source and may be driven respectively by individual drive sources. The switcher may not include the pivot members used in the above-described embodiment. For example, the switcher may be configured to switch the path by applying an external force to the recording medium by, e.g., an electrostatic force or air without contacting the recording medium.
Each of the first sensor and the second sensor may be any type of sensor such as an optical sensor, a mechanical sensor, and a magnetic sensor. The first sensing position may be any position as long as the first sensing position is located at the first shared portion. For example, the first sensing position may be located downstream of the second branch position and may overlap the first branch position. Also, the first sensing position may not be located on the second shared portion or the complete shared portion. The second sensing position may be defined in the module path of the first recording module. A plurality of the first sensors may be provided. The second sensor may be omitted.
Components constituting the shared conveyor may be changed depending upon the recording modules to be focused on, a construction of the shared portion, and the like. For example, in a case where the shared portion is short, the shared conveyor may be constituted by only the sheet-supply roller and the sheet-supply motor.
A calculating method in the determination processing may be changed as needed. For example, in a case where the first sensing position 5p is located at the first branch position, a distance between the first sensing position 5p and the first branch position is zero. In this case, accordingly, the controller may determine, without calculating the conveyance amount, that the trailing edge of the sheet P is located downstream of the first branch position (S13: YES), at a point in time when the trailing edge of the sheet P has reached the first sensing position 5p. 
When the controller has determined that the trailing edge of the recording medium is located downstream of the branch position in each determination processing, the controller may not always execute the supply processing.
The controller may execute the first determination processing with reference to a predetermined position located downstream of the first branch position on the first path. That is, the controller may determine, in the first determination processing, that the trailing edge of the recording medium is located downstream of the first branch position on the first path, when the trailing edge of the recording medium has reached the above-described predetermined position.
The controller may execute the second determination processing with reference to a predetermined position located downstream of the second branch position on the first path. That is, the controller may determine, in the second determination processing, that the trailing edge of the recording medium is located downstream of the second branch position on the first path, when the trailing edge of the recording medium has reached the above-described predetermined position. The controller may not execute the second determination processing or the second supply processing.
A higher priority may be given to any of the plurality of paths for conveyance of the recording medium. The controller may determine, at any timing, combination of the recording media and paths to which the recording media are to be conveyed. The timing is not limited to a point in time between the reception of the recording command and the start of the conveyance of the recording medium and may be a point in time after the recording operation is started (e.g., a point in time after a start of conveyance of the preceding recording medium or a point in time between the start of conveyance of the recording medium and a start of operation of the switcher). Recording may be performed on a first surface of the recording medium and a second surface of the recording medium which is a back side from the first surface (e.g., a front surface and a back surface of the sheet P).
The size of the first recording medium is not limited to the A3 size and may be any size such as the postcard size, the A6 size, the A4 size, the letter size, or the like. The size of the second recording medium is not limited to the A4 size or the letter size and may be the postcard size, the A6 size, or the like. The recording medium is not limited to the sheet and may be any recording medium.
Each of the sheet storage and the sheet receiver may be disposed any position. For example, the sheet receiver may be disposed at a position at which only a part of the plurality of recording modules is interposed between the sheet receiver and the sheet storage in a direction of the arrangement of the recording modules. The sheet storage and the sheet receiver may be disposed on the same side of the plurality of recording modules. The sheet storage and/or the sheet receiver may be disposed at a position not overlapping any of the recording modules in the direction of the arrangement of the recording modules. A recording-medium support surface of the sheet storage and/or the sheet receiver may be inclined with respect to the horizontal direction.
The present invention is applicable not only to the serial printer but also to a line printer. The present invention is applicable not only to the printer but also to other devices such as a facsimile machine and a copying machine.

## Claims

1. A recording apparatus, comprising:
a plurality of recording modules each comprising:
a head formed with a plurality of ejection openings for ejecting liquid;
a carriage supporting the head and configured to move the head in a first direction;
a module path; and
an individual conveyor configured to convey a recording medium along the module path in a second direction perpendicular to the first direction;
the plurality of recording modules comprising a first recording module and a second recording module different from the first recording module; and
the second direction being a direction in which the recording media is conveyed by the conveyor while the recording module is recording;

a storage configured to accommodate the recording medium;
a plurality of paths comprising:
(i) a first path through which the recording medium is to be conveyed from the storage to the module path of the first recording module; and
(ii) a second path through which the recording medium is to be conveyed from the storage to the module path of the second recording module;
the second path comprising, at an upstream portion thereof, a first shared portion shared with the first path; and
the second path being branched off from the first path at a first branch position located at an end portion of the first shared portion;

a first switcher configured to switch, at the first branch position, a destination of the recording medium between the first path and the second path;
a first shared conveyor configured to convey the recording medium on the first shared portion;
a first sensor configured to output a signal indicating presence or absence of the recording medium at a first sensing position located on the first shared portion; and
a controller configured to control the plurality of recording modules, the first switcher, and the first shared conveyor,
the controller being configured to execute:
a first determination processing in which, based on an amount of conveyance of the recording medium in the second direction calculated by the signal output from the first sensor and a distance between the first sensing position and the first branch position, the controller determines whether a trailing edge of the recording medium conveyed in the second direction on which recording is being performed by the first recording module is located downstream of the first branch position on the first path in the second direction; and
a first supply processing in which, when the controller has determined in the first determination processing that the trailing edge of the recording medium is located downstream of the first branch position on the first path in the second direction, the controller controls the first switcher and the first shared conveyor to supply a recording medium from the storage to the second recording module along the second path in the second direction via the first shared portion and the first branch position.

2. The recording apparatus according to claim 1;
wherein the controller is configured to, in the first supply processing, control the first switcher and the first shared conveyor to supply the recording medium from the storage to the second recording module such that a leading edge of a second recording medium passes through the first branch position during recording for a first recording medium performed by the first recording module, the first recording medium and the second recording medium being successively conveyed from the storage.

3. The recording apparatus according to claim 1;
wherein the first path and the module path of the first recording module are defined such that a first distance along the first path and the module path of the first recording module between the first branch position and a position opposite a most downstream one of the plurality of ejection openings of the first recording module is less than a length of a first recording medium in the second direction, and the first recording medium is greatest in length among a plurality of sizes of recording media accommodatable in the storage.

4. The recording apparatus according to claim 3;
wherein the first path and the module path of the first recording module are defined such that the first distance is greater than or equal to a length obtained by subtracting a length of a margin formed on a leading edge portion of a second recording medium in the second direction, from a length of the second recording medium in the second direction, and the second recording medium is one of the plurality of sizes of recording media accommodatable in the storage and less in length than the first recording medium in the second direction.

5. The recording apparatus according to claim 4;
wherein the second recording medium is of an A4 size.

6. The recording apparatus according to claim 4;
wherein the second recording medium is of a letter size.

7. A recording apparatus comprising;
a plurality of recording modules each comprising:
a head formed with a plurality of ejection openings for ejecting liquid;
a carriage supporting the head and configured to move the head in a first direction;
a module path; and
an individual conveyor configured to convey a recording medium along the module path in a second direction perpendicular to the first direction;
the plurality of recording modules comprising a first recording module and a second recording module different from the first recording module;

a storage configured to accommodate the recording medium;
a plurality of paths comprising:
(i) a first path through which the recording medium is to be conveyed from the storage to the module path of the first recording module; and
(ii) a second path through which the recording medium is to be conveyed from the storage to the module path of the second recording module;
the second path comprising, at an upstream portion thereof, a first shared portion shared with the first path; and
the second path being branched off from the first path at a first branch position located at an end portion of the first shared portion;

a first switcher configured to switch, at the first branch position, a destination of the recording medium between the first path and the second path;
a first shared conveyor configured to convey the recording medium on the first shared portion;
a first sensor configured to output a signal indicating presence or absence of the recording medium at a first sensing position located on the first shared portion; and
a second sensor configured to output a signal indicating presence or absence of the recording medium at a second sensing position located on one of the module path of the first recording module and a portion of the first path which is located downstream of the first branch position;
a controller configured to control the plurality of recording modules, the first switcher, and the first shared conveyor,
the controller being configured to execute:
a calculation processing in which the controller calculates a length of the recording medium in the second direction based on the signal output from the first sensor;
a first determination processing in which, based on the signal output from the first sensor and the signal output from the second sensor and the length of the recording medium which is calculated in the calculation processing, the controller determines whether a trailing edge of the recording medium on which recording is being performed by the first recording module is located downstream of the first branch position on the first path; and
a first supply processing in which, when the controller has determined in the first determination processing that the trailing edge of the recording medium is located downstream of the first branch position on the first path, the controller controls the first switcher and the first shared conveyor to supply a recording medium from the storage to the second recording module along the second path via the first shared portion and the first branch position.

8. A recording apparatus comprising:
a plurality of recording modules each comprising:
a head formed with a plurality of ejection openings for ejecting liquid;
a carriage supporting the head and configured to move the head in a first direction;
a module path; and
an individual conveyor configured to convey a recording medium along the module path in a second direction perpendicular to the first direction;
the plurality of recording modules comprising a first recording module and a second recording module different from the first recording module;

a storage configured to accommodate the recording medium;
a plurality of paths comprising:
(i) a first path through which the recording medium is to be conveyed from the storage to the module path of the first recording module; and
(ii) a second path through which the recording medium is to be conveyed from the storage to the module path of the second recording module;
the second path comprising, at an upstream portion thereof, a first shared portion shared with the first path; and
the second path being branched off from the first path at a first branch position located at an end portion of the first shared portion;

a first switcher configured to switch, at the first branch position, a destination of the recording medium between the first path and the second path;
a first shared conveyor configured to convey the recording medium on the first shared portion;
a first sensor configured to output a signal indicating presence or absence of the recording medium at a first sensing position located on the first shared portion; and
a controller configured to control the plurality of recording modules, the first switcher, and the first shared conveyor,
the controller being configured to execute:
a first determination processing in which, based on an amount of conveyance of the recording medium in the second direction calculated by the signal output from the first sensor and a distance between the first sensing position and the first branch position, the controller determines whether a trailing edge of the recording medium conveyed in the second direction on which recording is being performed by the first recording module is located downstream of the first branch position on the first path in the second direction; and
a first supply processing in which, when the controller has determined in the first determination processing that the trailing edge of the recording medium is located downstream of the first branch position on the first path in the second direction, the controller controls the first switcher and the first shared conveyor to supply a recording medium from the storage to the second recording module along the second path via the first shared portion and the first branch position;

wherein the plurality of recording modules further comprise a third recording module different from the first recording module and the second recording module;
wherein the plurality of paths further comprise;
a third path through which the recording medium is to be conveyed from the storage to the module path of the third recording module;
the third path comprising, at an upstream portion thereof, a second shared portion shared with the first shared portion; and
the third path being branched off from the first shared portion at a second branch position located at an end portion of the second shared portion; and

wherein the first sensing position is located on the second shared portion.

9. The recording apparatus according to claim 8, further comprising:
a second switcher configured to switch, at the second branch position, a destination of the recording medium between the third path and one of the first path and the second path; and
a second shared conveyor configured to convey the recording medium on the second shared portion;
wherein the controller is configured to execute:
a second determination processing in which, based on an amount of conveyance of the recording medium in the second direction calculated by the signal output from the first sensor and a distance between the first sensing position and the second branch position, the controller determines whether the trailing edge of the recording medium in the second direction on which recording is being performed by the first recording module is located downstream of the second branch position on the first path in the second direction; and
one of the first supply processing and a second supply processing in which the controller controls the second switcher and the second shared conveyor to supply the recording medium from the storage to the third recording module along the third path via the second shared portion and the second branch position, when the controller has determined in the second determination processing that the trailing edge of the recording medium is located downstream of the second branch position on the first path.

10. The recording apparatus according to claim 9;
wherein the controller is configured to execute the first supply processing when the controller has determined in the second determination processing that the trailing edge of the recording medium is located downstream of the second branch position on the first path and when the controller has determined in the first determination processing that the trailing edge of the recording medium is located downstream of the first branch position on the first path; and
wherein the controller is configured to execute the second supply processing when the controller has determined in the second determination processing that the trailing edge of the recording medium is located downstream of the second branch position on the first path and when the controller has determined in the first determination processing that the trailing edge of the recording medium is not located downstream of the first branch position on the first path.

11. The recording apparatus according to claim 8;
wherein the controller is configured to execute control such that the recording medium is conveyed to the first path with higher priority than the third path.

12. The recording apparatus according to claim 8;
wherein the controller is configured to execute control such that the recording medium is conveyed to the second path with higher priority than the third path.

13. A recording apparatus comprising:
a plurality of recording modules each comprising:
a head formed with a plurality of ejection openings for ejecting liquid;
a carriage supporting the head and configured to move the head in a first direction;
a module path; and
an individual conveyor configured to convey a recording medium along the module path in a second direction perpendicular to the first direction;
the plurality of recording modules comprising a first recording module and a second recording module different from the first recording module;

a storage configured to accommodate the recording medium;
a plurality of paths comprising:
(i) a first path through which the recording medium is to be conveyed from the storage to the module path of the first recording module; and
(ii) a second path through which the recording medium is to be conveyed from the storage to the module path of the second recording module;
the second path comprising, at an upstream portion thereof, a first shared portion shared with the first path; and
the second path being branched off from the first path at a first branch position located at an end portion of the first shared portion;

a first switcher configured to switch, at the first branch position, a destination of the recording medium between the first path and the second path;
a first shared conveyor configured to convey the recording medium on the first shared portion;
a first sensor configured to output a signal indicating presence or absence of the recording medium at a first sensing position located on the first shared portion; and
a controller configured to control the plurality of recording modules, the first switcher, and the first shared conveyor,
the controller being configured to execute:
a first determination processing in which, based on an amount of conveyance of the recording medium in the second direction calculated by the signal output from the first sensor and a distance between the first sensing position and the first branch position, the controller determines whether a trailing edge of the recording medium conveyed in the second direction on which recording is being performed by the first recording module is located downstream of the first branch position on the first path; and
a first supply processing in which, when the controller has determined in the first determination processing that the trailing edge of the recording medium is located downstream of the first branch position on the first path in the second direction, the controller controls the first switcher and the first shared conveyor to supply a recording medium from the storage to the second recording module along the second path via the first shared portion and the first branch position;

wherein the first path and the module path of the first recording module are defined such that a first distance along the first path and the module path of the first recording module between the first branch position and a position opposite a most downstream one of the plurality of ejection openings of the first recording module is greater than a second distance along the second path and the module path of the second recording module between the first branch position and a position opposite a most downstream one of the plurality of ejection openings of the second recording module; and
wherein the controller is configured to execute control such that the recording medium is conveyed to the first path with higher priority than the second path.

14. The recording apparatus according to claim 1;
wherein the plurality of paths further comprise a complete shared portion shared with all the plurality of paths, and the complete shared portion is located at an upstream portion of each of the plurality of paths; and
wherein the first sensing position is located on the complete shared portion.