RECORDING DEVICE, CONTROL METHOD, AND NON-TRANSITORY COMPUTER READABLE MEDIUM

20260116685 ยท 2026-04-30

    Inventors

    Cpc classification

    International classification

    Abstract

    A recording device includes: a conveying mechanism; a recording unit; and a controller. The conveying mechanism selectively conveys a first sheet-shaped medium and a second sheet-shaped medium. The controller performs, based on a recording command, recording processing in which the conveying mechanism is caused to convey the sheet-shaped medium from one of a first and a second accommodation portions. The recording unit is caused to record an image on the sheet-shaped medium. The controller does not cause the recording unit to record the image in one or both of a case where accommodation portion information regarding an accommodation portion included in the recording command indicates the first accommodation portion and medium information regarding the sheet-shaped medium included in the recording command indicates the second sheet-shaped medium, and a case where the accommodation portion information indicates the second accommodation portion and the medium information indicates the first sheet-shaped medium.

    Claims

    1. A recording device comprising: a conveying mechanism configured to convey a sheet-shaped medium in a conveying direction; a recording unit configured to record an image on the sheet-shaped medium conveyed by the conveying mechanism; and a controller, wherein the conveying mechanism is configured to selectively convey a first sheet-shaped medium accommodated in a first accommodation portion and a second sheet-shaped medium accommodated in a second accommodation portion, the second sheet-shaped medium being longer than the first sheet-shaped medium in the conveying direction, and the controller is configured to: perform, based on a recording command, recording processing in which the conveying mechanism is caused to convey the sheet-shaped medium from one of the first accommodation portion and the second accommodation portion, and the recording unit is caused to record the image on the sheet-shaped medium; and not to cause the recording unit to record the image in one or both of a case where accommodation portion information regarding an accommodation portion included in the recording command indicates the first accommodation portion and medium information regarding the sheet-shaped medium included in the recording command indicates the second sheet-shaped medium, and a case where the accommodation portion information indicates the second accommodation portion and the medium information indicates the first sheet-shaped medium.

    2. The recording device according to claim 1, further comprising: a notification unit, wherein in one or both of the case where the accommodation portion information indicates the first accommodation portion and the medium information indicates the second sheet-shaped medium and the case where the accommodation portion information indicates the second accommodation portion and the medium information indicates the first sheet-shaped medium, the controller causes the notification unit to perform a notification indicating that the image cannot be recorded since the accommodation portion information and the medium information do not correspond to each other.

    3. The recording device according to claim 1, further comprising: a cutter configured to cut the second sheet-shaped medium in a direction intersecting the conveying direction, wherein the cutter is disposed between the second accommodation portion and the recording unit in a conveyance path along which the second sheet-shaped medium is conveyed from the second accommodation portion toward the recording unit, the conveying mechanism includes a plurality of roller pairs disposed apart from each other in the conveying direction between the cutter and the recording unit in the conveyance path, the recording command further includes size information regarding a size of the sheet-shaped medium, and in one or both of the case where the accommodation portion information indicates the second accommodation portion and the case where the medium information indicates the second sheet-shaped medium, when a length in the conveying direction indicated by the size information is shorter than a shortest distance between the plurality of roller pairs, the controller does not cause the conveying mechanism to convey the second sheet-shaped medium from the second accommodation portion.

    4. The recording device according to claim 3, further comprising: a notification unit, wherein in one or both of the case where the accommodation portion information indicates the second accommodation portion and the case where the medium information indicates the second sheet-shaped medium, when the length in the conveying direction indicated by the size information is shorter than the shortest distance, the controller causes the notification unit to perform a notification indicating that the second sheet-shaped medium cannot be conveyed from the second accommodation portion since the length in the conveying direction indicated by the size information is short.

    5. The recording device according to claim 4, further comprising: an input unit configured to receive an input from a user, wherein the controller causes the notification unit to perform a notification for prompting a determination as to whether to use the first sheet-shaped medium when the length in the conveying direction indicated by the size information is shorter than the shortest distance in one or both of the case where the accommodation portion information indicates the second accommodation portion and the case where the medium information indicates the second sheet-shaped medium, and causes the conveying mechanism to convey the first sheet-shaped medium from the first accommodation portion and causes the recording unit to record the image on the first sheet-shaped medium in a case where a signal indicating the use of the first sheet-shaped medium is input to the input unit after the notification.

    6. The recording device according to claim 1, wherein the recording command further includes size information related to a size of the sheet-shaped medium, and in one or both of the case where the accommodation portion information indicates the first accommodation portion and the case where the medium information indicates the first sheet-shaped medium, when a length in the conveying direction indicated by the size information is longer than a maximum length of the first sheet-shaped medium in the conveying direction that is configured to be accommodated in the first accommodation portion, the controller does not cause the conveying mechanism to convey the first sheet-shaped medium from the first accommodation portion.

    7. The recording device according to claim 6, further comprising: a notification unit, wherein in one or both of the case where the accommodation portion information indicates the first accommodation portion and the case where the medium information indicates the first sheet-shaped medium, when the length in the conveying direction indicated by the size information is longer than the maximum length, the controller causes the notification unit to perform a notification indicating that the first sheet-shaped medium cannot be conveyed from the first accommodation portion since the length in the conveying direction indicated by the size information is long.

    8. The recording device according to claim 7, further comprising: an input unit configured to receive an input from a user, wherein the controller causes the notification unit to perform a notification for prompting a determination as to whether to use the second sheet-shaped medium when the length in the conveying direction indicated by the size information is longer than the maximum length in one or both of the case where the accommodation portion information indicates the first accommodation portion and the case where the medium information indicates the first sheet-shaped medium, and causes the conveying mechanism to convey the second sheet-shaped medium from the second accommodation portion and causes the recording unit to record the image on the second sheet-shaped medium in a case where a signal indicating the use of the second sheet-shaped medium is input to the input unit after the notification.

    9. The recording device according to claim 1, further comprising: a storage unit, wherein the controller causes the storage unit to store recording data including data of the image, the accommodation portion information, and the medium information each being included in the recording command after receiving the recording command, and erases the recording data stored in the storage unit in one or both of the case where the accommodation portion information indicates the first accommodation portion and the medium information indicates the second sheet-shaped medium and the case where the accommodation portion information indicates the second accommodation portion and the medium information indicates the first sheet-shaped medium.

    10. A control method of controlling a recording device, which includes a conveying mechanism configured to convey a sheet-shaped medium in a conveying direction, and a recording unit configured to record an image on the sheet-shaped medium conveyed by the conveying mechanism, the conveying mechanism being configured to selectively convey a first sheet-shaped medium accommodated in a first accommodation portion and a second sheet-shaped medium accommodated in a second accommodation portion, the second sheet-shaped medium being longer than the first sheet-shaped medium in the conveying direction, the control method comprising: performing, based on a recording command, recording processing in which the conveying mechanism is caused to convey the sheet-shaped medium from one of the first accommodation portion and the second accommodation portion, and the recording unit is caused to record the image on the sheet-shaped medium; and not causing the recording unit to record the image in a case where accommodation portion information regarding an accommodation portion included in the recording command indicates the first accommodation portion and medium information regarding the sheet-shaped medium included in the recording command indicates the second sheet-shaped medium.

    11. A non-transitory computer readable storage medium storing a control program for causing a recording device, which includes a conveying mechanism configured to convey a sheet-shaped medium in a conveying direction, and a recording unit configured to record an image on the sheet-shaped medium conveyed by the conveying mechanism, the conveying mechanism being configured to selectively convey a first sheet-shaped medium accommodated in a first accommodation portion and a second sheet-shaped medium accommodated in a second accommodation portion, the second sheet-shaped medium being longer than the first sheet-shaped medium in the conveying direction, to: function as a means for executing, based on a recording command, recording processing in which the conveying mechanism is caused to convey the sheet-shaped medium from one of the first accommodation portion and the second accommodation portion, and the recording unit is caused to record the image on the sheet-shaped medium; and not cause the recording unit to record the image in a case where accommodation portion information regarding an accommodation portion included in the recording command indicates the first accommodation portion and medium information regarding the sheet-shaped medium included in the recording command indicates the second sheet-shaped medium.

    12. A recording device comprising: a first accommodation portion configured to accommodate a plurality of a first sheet-shaped medium in a state of being stacked; a second accommodation portion configured to accommodate a roll in which a second sheet-shaped medium being wound; a conveying mechanism configured to selectively convey the first sheet-shaped medium and the second sheet-shaped medium; a recording unit configured to record an image on the sheet-shaped medium conveyed by the conveying mechanism; and a controller configured to: perform, based on a recording command, recording processing in which the conveying mechanism is caused to convey the sheet-shaped medium from one of the first accommodation portion and the second accommodation portion, and the recording unit is caused to record the image on the sheet-shaped medium; and not to cause the recording unit to record the image in one or both of a case where accommodation portion information regarding an accommodation portion included in the recording command indicates the first accommodation portion and medium information regarding the sheet-shaped medium included in the recording command indicates the second sheet-shaped medium, and a case where the accommodation portion information indicates the second accommodation portion and the medium information indicates the first sheet-shaped medium.

    Description

    BRIEF DESCRIPTION OF DRAWINGS

    [0009] FIG. 1 is a side view illustrating a state in which a cut sheet is accommodated in a printer according to an embodiment of the present invention.

    [0010] FIG. 2 is a side view illustrating a state in which a roll body is accommodated in the printer of FIG. 1.

    [0011] FIG. 3 is a block diagram illustrating an electrical configuration of the printer of FIG. 1.

    [0012] FIG. 4 is a diagram illustrating a table stored in a ROM of the printer of FIG. 1.

    [0013] FIG. 5 is a flowchart illustrating a program executed by a CPU of the printer of FIG. 1.

    [0014] FIG. 6 is a flowchart illustrating a subroutine of error processing of FIG. 5.

    DESCRIPTION

    Embodiment

    [0015] In one embodiment of the present disclosure, as illustrated in FIGS. 1 and 2, a printer 1 includes a housing 1A, sheet feed trays 10 and 20, a sheet discharging tray 6, a conveying mechanism 3, a cutter 4, a head 5, and a control device 100.

    [0016] The printer 1 corresponds to a "recording device" of the present invention. The sheet feed tray 10 corresponds to a "first accommodation portion" of the present invention. The sheet feed tray 20 corresponds to a "second accommodation portion" of the present invention. The head 5 corresponds to a "recording unit" of the present disclosure.

    [0017] In the following description, upper, lower, left, right, and front and rear directions of the printer 1 are defined based on a state in which the printer 1 is installed in a usable manner.

    [0018] The sheet feed trays 10 and 20 are detachable from the housing 1A. The sheet feed trays 10 and 20 are pulled out from the housing 1A by moving forward with respect to the housing 1A, and is attached to the housing 1A by moving rearward with respect to the housing 1A. As illustrated in FIGS. 1 and 2, in a state in which the sheet feed trays 10 and 20 are attached to the housing 1A, the sheet feed tray 10 overlaps the sheet feed tray 20 in an upper-lower direction and is disposed above the sheet feed tray 20.

    [0019] As illustrated in FIG. 1, the sheet feed tray 10 can accommodate a plurality of cut sheets Cs in a state of being stacked in the upper-lower direction. The cut sheets Cs are supported on an upper surface of a bottom wall 11 of the sheet feed tray 10. The cut sheet Cs corresponds to a "first sheet-shaped medium" of the present disclosure.

    [0020] As illustrated in FIG. 2, the sheet feed tray 20 can accommodate a roll body R. The roll body R is formed by winding a roll sheet Rs in a roll shape around an outer peripheral surface of a cylindrical core member Rc. The roll sheet Rs is a sheet-shaped medium unwound from the roll body R. The roll sheet Rs corresponds to a "second sheet-shaped medium" of the present disclosure.

    [0021] In the following description, the cut sheet Cs and the roll sheet Rs may be collectively referred to as a "sheet". The sheet corresponds to a "sheet-shaped medium" of the present invention.

    [0022] Two rollers 24 and 25 are disposed at the bottom of the sheet feed tray 20. The two rollers 24 and 25 are rotatable about a shaft extending in a left-right direction. When the roll body R is accommodated in the sheet feed tray 20, a central shaft Rx of the core member Rc is along the left-right direction, and an outer peripheral surface of a lower portion of the roll body R is supported by the two rollers 24 and 25.

    [0023] The sheet discharging tray 6 is implemented by a front side wall of an upper portion of the housing 1A. The sheet discharging tray 6 can be opened and closed with respect to the housing 1A by rotating about a shaft 6X along the left-right direction.

    [0024] The conveying mechanism 3, the cutter 4, the head 5, and the control device 100 are disposed in the housing 1A.

    [0025] The conveying mechanism 3 can selectively convey an uppermost cut sheet Cs among the plurality of cut sheets Cs accommodated in the sheet feed tray 10 and the roll sheet Rs unwound from the roll body R accommodated in the sheet feed tray 20. The conveying mechanism 3 conveys the cut sheet Cs or the roll sheet Rs in the conveying direction from the sheet feed tray 10 or the sheet feed tray 20 toward the sheet discharging tray 6.

    [0026] For example, when the cut sheet Cs is A4 size and placed in the sheet feed tray 10 with a longitudinal direction thereof is along the left-right direction, a length thereof in the conveying direction is 210 mm. When the cut sheet Cs is A3 size and placed in the sheet feed tray 10 with the longitudinal direction thereof is along the left-right direction, the length thereof in the conveying direction is 420 mm. In the present embodiment, a maximum length of the cut sheet Cs in the conveying direction that can be accommodated in the sheet feed tray 10 is 1200 mm. A length of the roll sheet Rs in the conveying direction in the new roll body R is, for example, 900 mm, 1200 mm, or 2700 mm. The conveying mechanism 3 includes rollers 31 and 32 and roller pairs 33 to 36. Each of the roller pairs 33 to 36 includes a drive roller and a driven roller that rotates together with the drive roller. The rollers 31 and 32 and the drive rollers of the roller pairs 33 to 36 are rotated by driving of a conveyance motor 30 illustrated in FIG. 3. The roller pairs 33 to 36 are disposed apart from each other in the conveying direction. The roller pairs 33 to 36 rotate while pinching the cut sheet Cs or the roll sheet Rs to convey the cut sheet Cs or the roll sheet Rs in the conveying direction. As illustrated in FIG. 1, a conveyance path T1 along which the cut sheet Cs is conveyed from the sheet feed tray 10 to the sheet discharging tray 6 through below the head 5 includes the roller 31 and the roller pairs 34 to 36. As illustrated in FIG. 2, the conveyance path T2 along which the roll sheet Rs is conveyed from the sheet feed tray 20 to the sheet discharging tray 6 through below the head 5 includes the roller 32 and the roller pairs 33 to 36. In the conveyance paths T1 and T2, a portion from the roller pair 34 to the sheet discharging tray 6 is common. As illustrated in FIG. 2, the roller pairs 33 to 35 are disposed apart from each other in the conveying direction between the cutter 4 and the head 5 in the conveyance path T2. A distance D1 between the roller pairs 33 and 34 is shorter than a distance D2 between the roller pairs 34 and 35, and is, for example, 210 mm. The distance D1 corresponds to a "shortest distance" of the present invention. The cutter 4 is disposed between the sheet feed tray 20 and the head 5 and between the roller 32 and the roller pair 33 in the conveyance path T2. The cutter 4 includes a fixed blade extending in the left-right direction and a disk-shaped rotary blade disposed at a position in contact with the fixed blade. When a cutting motor 40 illustrated in FIG. 3 is driven to move the rotary blade in the left-right direction, the roll sheet Rs is cut in the left-right direction. The left- right direction is a direction intersecting the conveying direction.

    [0027] The length of the roll sheet Rs in the conveying direction is longer than the length of the cut sheet Cs in the conveying direction.

    [0028] The roller 31 is rotatably supported by an end of an arm 38. The other end of the arm 38 is supported by the housing 1A via a shaft 38X extending in the left-right direction. The arm 38 is rotatable about the shaft 38X. The arm 38 is urged by an urging member (not illustrated) in a direction in which the roller 31 approaches the bottom wall 11 of the sheet feed tray 10.

    [0029] The roller 32 is rotatably supported by an end of the arm 39. The other end of the arm 39 is supported by the housing 1A via a shaft 39X extending in the left-right direction. The arm 39 is rotatable about the shaft 39X. The arm 39 is urged by an urging member (not illustrated) in a direction in which the roller 32 approaches a bottom wall 21 of the sheet feed tray 20.

    [0030] When the cut sheet Cs is not accommodated in the sheet feed tray 10 in a state in which the sheet feed tray 10 is attached to the housing 1A, the roller 31 comes into contact with the upper surface of the bottom wall 11 as illustrated in FIG. 2. When the cut sheet Cs is accommodated in the sheet feed tray 10 in the state in which the sheet feed tray 10 is attached to the housing 1A, the roller 31 comes into contact with the uppermost cut sheet Cs among the plurality of cut sheets Cs accommodated in the sheet feed tray 10, as illustrated in FIG. 1. When the conveyance motor 30 is driven and the roller 31 rotates in this state, the cut sheet Cs is fed rearward. The fed cut sheet Cs comes into contact with the rear wall 12 of the sheet feed tray 10, moves along the rear wall 12, and is guided to the roller pair 34.

    [0031] When the roll body R is accommodated in the sheet feed tray 20, the user of the printer 1 manually rotates the roll body R counterclockwise in FIG. 2 to unwind the roll sheet Rs from the roll body R. Then, the user pinches a leading end of the roll sheet Rs between the roller 32 and the bottom wall 21 of the sheet feed tray 20. When the conveyance motor 30 is driven and the roller 32 rotates in this state, the roll sheet Rs is fed rearward. The fed roll sheet Rs comes into contact with the rear wall 22 of the sheet feed tray 20, moves along the rear wall 22, and is guided to the cutter 4.

    [0032] The head 5 is disposed between the roller pair 35 and the roller pair 36 in the conveying direction. The head 5 has a plurality of nozzles opened in a lower surface. When the cut sheet Cs or the roll sheet Rs conveyed by the conveying mechanism 3 passes below the head 5, ink is ejected from the nozzles by the driving of the driver IC 50 illustrated in FIG. 3, and the ink adheres to the cut sheet Cs or the roll sheet Rs. Accordingly, an image is recorded on the cut sheet Cs or the roll sheet Rs.

    [0033] As illustrated in FIG. 3, the control device 100 is connected to the input unit 150, the output unit 160, the conveyance motor 30, the driver IC 50, and the cutting motor 40 via an internal bus (not illustrated). The input unit 150 is an element for receiving an input from the user of the printer 1, and includes, for example, a switch, a button, a keyboard, a mouse, and a touch panel. The output unit 160 is an element for performing a notification to the user of the printer 1, and corresponds to the "notification unit" of the present invention. The output unit 160 includes, for example, a display that performs image output and a speaker that performs audio output.

    [0034] The control device 100 is further communicably connected to a PC 200. The PC 200 may have, for example, a general-purpose print function without having a driver dedicated to the printer 1 installed.

    [0035] The control device 100 includes a CPU 101, a ROM 102, and a RAM 103. The CPU 101 corresponds to a "controller" of the present invention. The RAM 103 corresponds to a "storage unit" of the present invention. The recording command includes, in addition to image data, "tray information" regarding the sheet feed trays 10 and 20, "sheet information" regarding the cut sheet Cs and the roll sheet Rs, and "size information" regarding the size of the cut sheet Cs or the roll sheet Rs. The "tray information" corresponds to "accommodation portion information" of the present disclosure. The "sheet information" corresponds to "medium information" of the present invention.

    [0036] The ROM 102 stores a program and data for the CPU 101 to control various operations. The data includes a table to be described later.

    [0037] The RAM 103 temporarily stores data used when the CPU 101 executes the program. The data includes a recording command received from the PC 200, data input from the input unit 150, and the like.

    [0038] The CPU 101 executes recording processing based on the program and the data stored in the ROM 102, a recording command stored in the RAM 103, and the like.

    [0039] The recording processing is processing for recording an image on the cut sheet Cs or the roll sheet Rs, and refers to processing for causing the conveying mechanism 3 to convey the cut sheet Cs or the roll sheet Rs from one of the sheet feed trays 10 and 20 and causing the head 5 to record the image on the cut sheet Cs or the roll sheet Rs. In the recording processing, the conveyance motor 30 and the driver IC 50 (and the cutting motor 40 when recording the image on the roll sheet Rs) are controlled.

    [0040] After receiving the recording command from the PC 200, the CPU 101 causes the RAM 103 to store recording data including the image data, the tray information, and the sheet information included in the recording command.

    [0041] The "tray information" is information indicating whether the cut sheet Cs is to be conveyed from the sheet feed tray 10, the roll sheet Rs is to be conveyed from the sheet feed tray 20, or any the cut sheet Cs may be conveyed from the sheet feed tray 10 or the roll sheet Rs may be conveyed from the sheet feed tray 20) in the recording processing. The "sheet information" is information indicating whether the sheet as a target of the recording processing is the cut sheet Cs, the roll sheet Rs, or any (one of the cut sheet Cs and the roll sheet Rs). The "size information" is information indicating the size of the sheet as the target of the recording processing.

    [0042] The data input from the input unit 150 includes "priority information" indicating which of the sheet feed trays 10 and 20 is prioritized.

    [0043] As illustrated in FIG. 4, the ROM 102 stores a table indicating the type of sheet (one of the cut sheet Cs and the roll sheet Rs) selected as the target of the recording processing according to the "size information", the "sheet information", and the "tray information". The basic priority order is set as "size information > sheet information > tray information".

    [0044] When receiving the recording command from the PC 200, the CPU 101 selects one of the cut sheet Cs and the roll sheet Rs as the target of the recording processing based on the table stored in the ROM 102 and the data read from the RAM 103, and executes the recording processing on the selected sheet. When the recording command does not include the "sheet information" or the "tray information", the CPU 101 performs processing on the assumption that the information is any information. The CPU 101 may execute error processing without executing the recording processing. The error processing will be described later with reference to FIG. 6.

    [0045] Alternatively, when the table is not stored in the ROM 102, the CPU 101 executes the program illustrated in FIG. 5.

    [0046] In the program, the CPU 101 first determines whether the recording command has been received from the PC 200 (S1). When it is determined that the recording command has not been received from the PC 200 (S1: NO), the CPU 101 repeats the processing of S1.

    [0047] When it is determined that the recording command has been received from the PC 200 (S1: YES), the CPU 101 determines whether a length L in the conveying direction indicated by the size information included in the recording command exceeds 2700 mm (S2). 2700 mm is a maximum length of the roll sheet Rs in the conveying direction of the new roll body R.

    [0048] When it is determined that the length L exceeds 2700 mm (S2: YES), the CPU 101 executes the error processing (S3). The error processing will be described later with reference to FIG. 6.

    [0049] After S3, the CPU 101 ends the program.

    [0050] When it is determined that the length L does not exceed 2700 mm (S2: NO), the CPU 101 determines whether the length L exceeds 1200 mm (S4). 1200 mm is the maximum length of the cut sheet Cs in the conveying direction that can be accommodated in the sheet feed tray 10.

    [0051] When it is determined that the length L exceeds 1200 mm (S4: YES), the CPU 101 determines whether the sheet information included in the recording command indicates the cut sheet Cs (S5).

    [0052] When it is determined that the sheet information indicates the cut sheet Cs (S5: YES), the CPU 101 executes the error processing (S3).

    [0053] When it is determined that the sheet information does not indicate the cut sheet Cs (S5: NO), that is, when it is determined that the processing is to be performed on the assumption that the sheet information indicates the roll sheet Rs, or the recording command does not include the sheet information and the sheet information is any information, the CPU 101 determines whether the tray information included in the recording command indicates the cut sheet Cs (S6).

    [0054] When it is determined that the tray information indicates the cut sheet Cs (S6: YES), the CPU 101 executes the error processing (S3).

    [0055] When it is determined that the tray information does not indicate the cut sheet Cs (S6: NO), that is, when it is determined that the processing is to be performed on the assumption that the tray information indicates the roll sheet Rs, or the recording command does not include the tray information and the tray information is any information, the CPU 101 performs the recording processing on the roll sheet Rs (S7).

    [0056] After S7, the CPU 101 ends the program.

    [0057] When it is determined that the length L does not exceed 1200 mm (S4: NO), the CPU 101 determines whether the length L is 210 mm or more (S8). 210 mm is the distance D1 between the roller pairs 33 and 34.

    [0058] When it is determined that the length L is 210 mm or more (S8: YES), the CPU 101 determines whether the sheet information included in the recording command indicates the roll sheet Rs (S9).

    [0059] When it is determined that the sheet information indicates the roll sheet Rs (S9: YES), the CPU 101 determines whether the tray information included in the recording command indicates the cut sheet Cs (S10).

    [0060] When it is determined that the tray information indicates the cut sheet Cs (S10: YES), the CPU 101 executes the error processing (S3).

    [0061] When it is determined that the tray information does not indicate the cut sheet Cs (S10: NO), that is, when it is determined that the processing is to be performed on the assumption that the tray information indicates the roll sheet Rs, or the recording command does not include the tray information and the tray information is any information, the CPU 101 performs the recording processing on the roll sheet Rs (S7).

    [0062] When it is determined that the sheet information does not indicate the roll sheet Rs (S9: NO), the CPU 101 determines whether the sheet information indicates the cut sheet Cs (S11).

    [0063] When it is determined that the sheet information indicates the cut sheet Cs (S11: YES), the CPU 101 determines whether the tray information included in the recording command indicates the roll sheet Rs (S12).

    [0064] When it is determined that the tray information indicates the roll sheet Rs (S12: YES), the CPU 101 executes the error processing (S3).

    [0065] When it is determined that the tray information does not indicate the roll sheet Rs (S12: NO), that is, when it is determined that the processing is to be performed on the assumption that the tray information indicates the cut sheet Cs, or the recording command does not include the tray information and the tray information is any information, the CPU 101 performs the recording processing on the cut sheet Cs (S13).

    [0066] After S13, the CPU 101 ends the program.

    [0067] When it is determined that the sheet information does not indicate the cut sheet Cs (S11: NO), the CPU 101 determines whether the tray information included in the recording command indicates the roll sheet Rs (S14).

    [0068] When it is determined that the tray information indicates the roll sheet Rs (S14: YES), the CPU 101 performs the recording processing on the roll sheet Rs (S7).

    [0069] When it is determined that the tray information does not indicate the roll sheet Rs (S14: NO), the CPU 101 determines whether the tray information indicates the cut sheet Cs (S15).

    [0070] When it is determined that the tray information indicates the cut sheet Cs (S15:

    [0071] YES), the CPU 101 performs the recording processing on the cut sheet Cs (S13).

    [0072] When it is determined that the tray information does not indicate the cut sheet Cs (S15: NO), that is, when it is determined that the processing is to be performed on the assumption that the recording command does not include the tray information and the tray information is any information, the CPU 101 performs the recording processing on the sheet corresponding to the "priority information" input from the input unit 150 (S16).

    [0073] After S16, the CPU 101 ends the program.

    [0074] Next, the error processing (S3) will be described with reference to FIG. 6.

    [0075] In the error processing (S3), the CPU 101 first performs a notification indicating that recording is not possible via the output unit 160 illustrated in FIG. 3 (S31).

    [0076] The content indicated by the notification of S31 differs as follows depending on the circumstances up to the error processing (S3) in the program of FIG. 5.

    [0077] For example, the notification of the error processing (S3) when "S6: YES", "S10: YES", "S12: YES", or "S18: YES" (S31) is determined indicates that "the image cannot be recorded since the tray information and the sheet information do not correspond to each other".

    [0078] The notification of the error processing (S3) when "S2: YES" is determined (S31) indicates that "the sheet cannot be conveyed from any of the sheet feed trays 10 and 20 since the length in the conveying direction indicated by the size information is long".

    [0079] The notification of the error processing (S3) when "S5: YES" is determined (S31) indicates that "the cut sheet Cs cannot be conveyed from the sheet feed tray 10 since the length in the conveying direction indicated by the size information is long". Further, the notification in this case (S31) includes a notification for prompting the user to determine whether to use the roll sheet Rs.

    [0080] The notification of the error processing (S3) when "S17: YES" is determined (S31) indicates that "the roll sheet Rs cannot be conveyed from the sheet feed tray 20 since the length in the conveying direction indicated by the size information is short". Further, the notification in this case (S31) includes a notification for prompting the user to determine whether to use the cut sheet Cs.

    [0081] After S31, the CPU 101 determines whether a signal indicating the use of the roll sheet Rs is input to the input unit 150 (S32).

    [0082] When it is determined that the signal indicating the use of the roll sheet Rs is input to the input unit 150 (S32: YES), the processing exits a subroutine of FIG. 6 and proceeds to S7 in the program of FIG. 5, and the recording processing is performed on the roll sheet Rs.

    [0083] When it is determined that the signal indicating the use of the roll sheet Rs is not input to the input unit 150 (S32: NO), the CPU 101 determines whether a signal indicating the use of the cut sheet Cs is input to the input unit 150 (S33).

    [0084] When it is determined that the signal indicating the use of the cut sheet Cs is input to the input unit 150 (S33: YES), the processing exits the subroutine of FIG. 6 and proceeds to S13 in the program of FIG. 5, and the recording processing is performed on the cut sheet Cs.

    [0085] When it is determined that the signal indicating the use of the cut sheet Cs is not input to the input unit 150 (S33: NO), the recording data stored in the RAM 103 is erased (S34).

    [0086] After S34, the CPU 101 ends this subroutine.

    [0087] As described above, when the error processing (S3) is executed, the CPU 101 ends the program without executing the recording processing unless "S32: YES" or "S33: YES" is determined. Not executing the recording processing means not causing the conveying mechanism 3 to convey the sheet and not causing the head 5 to record the image. In the error processing (S3) when "S6: YES", "S10: YES", "S12: YES", or "S18: YES" is determined, the CPU 101 causes the output unit 160 to perform a notification indicating that "the image cannot be recorded since the tray information and the sheet information do not correspond to each other". In this case, the user can take appropriate measures according to the notification. In the error processing (S3) when "S17: YES" is determined, the CPU 101 causes the output unit 160 to perform a notification indicating that "the roll sheet Rs cannot be conveyed from the sheet feed tray 20 since the length in the conveying direction indicated by the size information is short". In this case, the user can take appropriate measures according to the notification. In the error processing (S3), the CPU 101 erases the recording data (S34). As

    [0088] As described above, in the present embodiment, the CPU 101 executes the error processing and does not cause the head 5 to record the image in both the case where the tray information indicates the cut sheet Cs and the sheet information indicates the roll sheet Rs (see a second row from the top of the table illustrated in FIG. 4) and the case where the tray information indicates the roll sheet Rs and the sheet information indicates the cut sheet Cs (see a fourth row from the top of the table illustrated in FIG. 4). This control also corresponds to the execution of the error processing (S3) in accordance with the determination of "S6: YES", "S10: YES", "S12: YES", or "S18: YES" in the program illustrated in FIG. 5. By this control, it is possible to prevent a recording result not desired by the user from being obtained.

    [0089] In both the case where the tray information indicates the roll sheet Rs and the case where the sheet information indicates the roll sheet Rs, when the length L in the conveying direction indicated by the size information is shorter than 210 mm (the distance D1 illustrated in FIG. 2), the CPU 101 executes the error processing as illustrated in FIG. 4, and does not cause the conveying mechanism 3 to convey the roll sheet Rs from the sheet feed tray 20. This control also corresponds to the execution of the error processing (S3) in accordance with the determination of "S17: YES" in the program illustrated in FIG. 5. By this control, it is possible to prevent the occurrence of a conveyance failure due to the failure of pinching the cut roll sheet Rs by the roller pairs 33 and 34.

    [0090] In the error processing (S3) when "S17: YES" is determined, the CPU 101 causes the output unit 160 to perform the notification for prompting the user to determine whether to use the cut sheet Cs (S31), in addition to the above notification. After S31, when it is determined that the signal indicating the use of the cut sheet Cs is input to the input unit 150 (S33: YES), the CPU 101 performs the recording processing on the cut sheet Cs (S13). By this control, even when the size information does not correspond to the tray information or the sheet information, a recording result desired by the user can be obtained.

    [0091] In both the case where the tray information indicates the cut sheet Cs and the case where the sheet information indicates the cut sheet Cs, when the length L in the conveying direction indicated by the size information is longer than 1200 mm (the maximum length in the conveying direction of the cut sheet Cs that can be accommodated in the sheet feed tray 10), the CPU 101 executes the error processing as illustrated in FIG. 4, and does not cause the conveying mechanism 3 to convey the cut sheet Cs from the sheet feed tray 10. This control also corresponds to the execution of the error processing (S3) in accordance with the determination of "S5: YES" in the program illustrated in FIG. 5. By this control, since the recording processing is not performed on the cut sheet Cs having a length shorter than the length indicated by the size information, it is possible to prevent a recording result not desired by the user from being obtained.

    [0092] In the error processing (S3) when "S5: YES" is determined, the CPU 101 causes the output unit 160 to perform a notification indicating that "the cut sheet Cs cannot be conveyed from the sheet feed tray 10 since the length in the conveying direction indicated by the size information is long". In this case, the user can take appropriate measures according to the notification.

    [0093] In the error processing (S3) when "S5: YES" is determined, the CPU 101 causes the output unit 160 to perform the notification for prompting the user to determine whether to use the roll sheet Rs (S31), in addition to the above notification. After S31, when it is determined that the signal indicating the use of the roll sheet Rs is input to the input unit 150 (S32: YES), the CPU 101 performs the recording processing on the roll sheet Rs (S7). By this control, even when the size information does not correspond to the tray information or the sheet information, a recording result desired by the user can be obtained.

    [0094] described above, a storage capacity of the RAM 103 can be ensured by erasing the recording data without holding the recording data.

    Modification

    [0095] Although a preferred embodiment of the present invention has been described above, the present invention is not limited to the embodiment described above, and various design modifications can be made within the scope of the claims.

    [0096] For example, in the above-described embodiment, three roller pairs 33 to 35 are disposed between the cutter 4 and the head 5 in the conveyance path T2, but two or four or more roller pairs may be disposed. When two roller pairs are disposed between the cutter 4 and the head 5 in the conveyance path T2, the distance between the two roller pairs corresponds to the "shortest distance".

    [0097] In the above-described embodiment, the second sheet-shaped medium is a sheet-shaped medium unwound from the roll body, but is not limited thereto. For example, the second sheet-shaped medium may be a sheet-shaped medium folded in a bellows shape.

    [0098] A positional relationship between the first accommodation portion and the second accommodation portion is not particularly limited. For example, in the above-described embodiment, the first accommodation portion is located above the second accommodation portion, but the first accommodation portion may be located below the second accommodation portion. The first accommodation portion and the second accommodation portion may be located at the same position in the upper-lower direction and may be arranged in the left-right direction or the front-rear direction.

    [0099] In the above-described embodiment, the first accommodation portion and the second accommodation portion are implemented by the sheet feed trays 10 and 20, respectively, but the present disclosure is not limited thereto. For example, the recording device may include one tray having the first accommodation portion and the second accommodation portion.

    [0100] The first accommodation portion and the second accommodation portion may not be implemented by the tray. For example, when a sheet folded in the bellows shape is placed on the floor, a space in which the sheet is placed corresponds to the first accommodation portion or the second accommodation portion.

    [0101] The controller may be configured not to cause the recording unit to record an image only in one of the case where the accommodation portion information indicates the first accommodation portion and the medium information indicates the second sheet-shaped medium and the case where the accommodation portion information indicates the second accommodation portion and the medium information indicates the first sheet-shaped medium.

    [0102] In the above case, the controller may cause the conveying mechanism to convey the sheet-shaped medium unless the recording unit is caused to record the image.

    [0103] The sheet-shaped medium is not limited to a sheet, and may be cloth or a plastic film. That is, the sheet-shaped medium may be made of any material as long as it has a sheet shape.

    [0104] The recording unit, in the case of a liquid ejection type, may eject a liquid other than the ink (for example, a processing liquid for aggregating or precipitating components in the ink).

    [0105] The recording unit is not limited to the liquid ejecting type, and may be a laser type, a thermal transfer type, or the like.

    [0106] The present invention is not limited to a printer, and is also applicable to a facsimile, a copier, a multi function device, or the like.

    [0107] The program according to the present invention can be distributed by being recorded on a removable recording medium such as a flexible disk or a fixed recording medium such as a hard disk, and can also be distributed via a communication line.

    [0108] While the invention has been described in conjunction with various example structures outlined above and illustrated in the figures, various alternatives, modifications, variations, improvements, and/or substantial equivalents, whether known or that may be presently unforeseen, may become apparent to those having at least ordinary skill in the art. Accordingly, the example embodiments of the disclosure, as set forth above, are intended to be illustrative of the invention, and not limiting the invention. Various changes may be made without departing from the spirit and scope of the disclosure. Therefore, the disclosure is intended to embrace all known or later developed alternatives, modifications, variations, improvements, and/or substantial equivalents.