WO2022034659A1 - Medium conveyance device, control method, and control program - Google Patents

Medium conveyance device, control method, and control program Download PDF

Info

Publication number
WO2022034659A1
WO2022034659A1 PCT/JP2020/030720 JP2020030720W WO2022034659A1 WO 2022034659 A1 WO2022034659 A1 WO 2022034659A1 JP 2020030720 W JP2020030720 W JP 2020030720W WO 2022034659 A1 WO2022034659 A1 WO 2022034659A1
Authority
WO
WIPO (PCT)
Prior art keywords
medium
printing
unit
printing device
image
Prior art date
Application number
PCT/JP2020/030720
Other languages
French (fr)
Japanese (ja)
Inventor
雅晃 堺
Original Assignee
株式会社Pfu
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社Pfu filed Critical 株式会社Pfu
Priority to JP2022542542A priority Critical patent/JP7430266B2/en
Priority to PCT/JP2020/030720 priority patent/WO2022034659A1/en
Publication of WO2022034659A1 publication Critical patent/WO2022034659A1/en

Links

Images

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03GELECTROGRAPHY; ELECTROPHOTOGRAPHY; MAGNETOGRAPHY
    • G03G15/00Apparatus for electrographic processes using a charge pattern
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/04Scanning arrangements, i.e. arrangements for the displacement of active reading or reproducing elements relative to the original or reproducing medium, or vice versa

Definitions

  • the present invention relates to a medium transport device, a control method and a control program, and more particularly to a medium transport device, a control method and a control program that captures an image of the transported medium and prints on the medium.
  • a function of printing information such as predetermined characters or numbers is used in order to leave a trail on the scanned medium.
  • a printing device for printing on the transported medium is provided so as to be movable in a direction orthogonal to the medium transporting direction so that the printing device is set at a desired position by the user.
  • the predetermined information may not be printed correctly on the conveyed medium.
  • a document reading device that reads a document and stamps the scanned document with two stamps is disclosed (see Patent Document 1).
  • This document reading device detects the width of the document based on the arrangement position of the document guide, and stamps the finished stamp with two stamps separated by a distance corresponding to the detected width.
  • a document transporting device that can move along a document width direction substantially orthogonal to the document transporting direction and is provided with a printing means for performing predetermined printing on the transported document is disclosed (see Patent Document 2).
  • the detection means provided in the transfer path on the upstream side in the transfer direction from the printing means detects whether or not the transferred document passes within the range of the printing area by the printing means.
  • a medium transporting device that captures an image of a transported medium and prints on the medium, it is desired to control printing on the medium well while suppressing an increase in device cost.
  • An object of the present invention is to provide a medium transfer device, a control method, and a control program capable of satisfactorily controlling printing on a medium while suppressing an increase in device cost.
  • the medium transport device includes a transport unit that transports the medium, a printing unit that is movably provided in a direction orthogonal to the medium transport direction and that prints on the transported medium, and a medium transport direction.
  • a detection unit that detects the placement position of the printing unit in a direction orthogonal to the It has a determination unit for determining whether or not printing is possible on the medium, and a control unit for executing an abnormality process when the determination unit determines that printing on the medium is not possible.
  • the control method includes a transport unit for transporting a medium, a printing unit movably provided in a direction orthogonal to the medium transport direction, and a printing unit for printing on the transported medium, and a medium transport direction. It is a control method of a medium transport device having a detection unit that detects the arrangement position of the print unit in the orthogonal direction and an image pickup unit that captures an image of the conveyed medium to generate an input image, and is detected from the input image. It is determined whether or not printing by the printing unit is possible on the medium by comparing the printed medium position and the arranged position, and when it is determined that printing is not possible on the medium, an abnormality process is executed.
  • the control program includes a transport unit for transporting a medium, a printing unit movably provided in a direction orthogonal to the medium transport direction, and a printing unit for printing on the transported medium, and a medium transport direction. It is a control program of a medium transport device having a detection unit that detects the arrangement position of the printing unit in the orthogonal direction and an image pickup unit that captures an image of the conveyed medium and generates an input image, and is detected from the input image. It is determined that whether or not the printing unit can print on the medium is possible by comparing the position of the medium and the position of the printed image, and if it is determined that printing is not possible on the medium, an abnormality process is executed. Let the media transfer device execute.
  • the medium transfer device, the control method, and the control program can satisfactorily control printing on the medium while suppressing an increase in device cost.
  • FIG. 1 is a perspective view showing a medium transfer device 100 configured as an image scanner.
  • the medium transport device 100 transports a medium as a document, takes an image, and prints predetermined information on the medium.
  • the medium is paper, cardboard, plastic cards, booklets, passports, and the like.
  • the predetermined information is characters or numbers preset to the user in order to leave a trail in which the medium is imaged.
  • the medium transfer device 100 may be a facsimile, a copying machine, a multifunction printer (MFP, Multifunction Peripheral) or the like.
  • the medium to be conveyed may be a print object or the like instead of the original, and the medium transfer device 100 may be a printer or the like.
  • the medium transfer device 100 includes a main body 101, a printer unit 102, a mounting table 103, a discharging table 104, and the like.
  • the main body 101 includes a main body lower housing 105, a main body upper housing 106, an operating device 107, a display device 108, and the like.
  • the printer unit 102 includes a printer lower housing 109, a printer upper housing 110, and the like.
  • the lower housing 105 of the main body is placed on the printer unit 102 so as to be detachably engaged with the printer unit 102.
  • the printer unit 102 is formed in an L shape.
  • the side surface and the lower surface on the mounting table 103 side are on the side surface on the discharge table 104 side of the portion extending in the substantially vertical direction of the printer unit 102 and the upper surface of the portion extending in the substantially horizontal direction, respectively.
  • the main body upper housing 106 is arranged at a position covering the upper surface of the main body 101, and is engaged with the main body lower housing 105 by a hinge so as to be openable and closable when the medium, that is, when cleaning the inside of the main body 101.
  • the upper housing 106 of the main body is arranged so that the side surface of the mounting table 103 side comes into contact with the side surface of the printer unit 102 on the discharging table 104 side.
  • the operation device 107 has an input device such as a button and an interface circuit for acquiring a signal from the input device, accepts an input operation by the user, and outputs an operation signal according to the input operation of the user.
  • the display device 108 has a display including a liquid crystal display, an organic EL (Electro-Luminescence), and an interface circuit for outputting image data to the display, and displays the image data on the display.
  • the printer unit 102 is an imprinter that prints predetermined information on a conveyed medium.
  • the printer upper housing 110 is arranged at a position that covers the upper surface of the printer unit 102, and is engaged with the printer lower housing 109 by a hinge so that the printer unit can be opened and closed when the medium is blocked, that is, when the inside of the printer unit 102 is cleaned, and the like. There is.
  • the printer unit 102 may not be configured separately from the main body 101, but may be integrally configured with the main body 101.
  • the mounting table 103 is engaged with the printer lower housing 109 so that the medium to be transported can be mounted.
  • the discharge table 104 is engaged with the main body upper housing 106 so as to be able to hold the discharged medium.
  • the discharge table 104 is provided so as to be foldable so as to face the front surface of the medium transfer device 100 (main body upper housing 106).
  • FIG. 2 is a diagram for explaining a transport path inside the medium transport device 100.
  • the transfer path inside the medium transfer device 100 is a first medium sensor 111, a feed roller 112, a brake roller 113, a printing device 114, a printing device sensor 115, a first transfer roller 116, and a second transfer roller inside the printer unit 102. It has 117 and the like.
  • This transport path includes a second medium sensor 121, a third transport roller 122, a fourth transport roller 123, a fifth transport roller 124, a sixth transport roller 125, a third medium sensor 126, and a first image pickup device inside the main body 101. It has 127a, a second image pickup device 127b, a seventh transfer roller 128, an eighth transfer roller 129, and the like.
  • the number of each roller is not limited to one, and the number of each roller may be plural.
  • the first image pickup device 127a and the second image pickup device 127b may be collectively referred to as an image pickup device 127.
  • the main body 101 is fitted with the printer unit 102 by fitting the claws 118 provided on the upper surface of the lower housing 109 of the printer into the recess 132 via the holes 131 provided on the lower surface of the lower housing 105 of the main body. Be engaged.
  • the medium discharge port of the printer unit 102 faces the medium inlet of the main body 101.
  • the upper surfaces of the printer lower housing 109 and the main body lower housing 105 form the lower guide 120a of the medium transport path, and the lower surfaces of the printer upper housing 110 and the main body upper housing 106 form the medium transport path.
  • the upper guide 120b is formed.
  • the printer upper housing 110 has a cover 110a that can be opened and closed, and the user can move the arrangement position of the printing device 114 by opening the cover 110a.
  • the arrow A1 indicates the medium transport direction.
  • the upstream means the upstream of the medium transport direction A1
  • the downstream means the downstream of the medium transport direction A1.
  • the first medium sensor 111 is arranged on the upstream side of the feed roller 112 and the brake roller 113.
  • the first medium sensor 111 has a contact detection sensor and detects whether or not a medium is mounted on the mounting table 103.
  • the first medium sensor 111 generates and outputs a first medium signal whose signal value changes depending on whether the medium is mounted on the mounting table 103 or not.
  • the feed roller 112 and the brake roller 113 are provided on the upstream side of the printing device 114 in the medium transport direction A1.
  • the feeding roller 112 is provided in the lower housing 109 of the printer, and feeds the media mounted on the mounting table 103 in order from the lower side.
  • the brake roller 113 is provided in the upper housing 110 of the printer and is arranged so as to face the feeding roller 112.
  • the second medium sensor 121 is arranged on the upstream side of the third transfer roller 122 and the fourth transfer roller 123.
  • the second medium sensor 121 has a contact detection sensor and detects whether or not a medium is present at the position thereof.
  • the second medium sensor 121 generates and outputs a second medium signal whose signal value changes depending on whether a medium is present or not at the position of the second medium sensor 121.
  • the third medium sensor 126 is arranged on the downstream side of the fifth transfer roller 124 and the sixth transfer roller 125 and on the upstream side of the image pickup apparatus 127.
  • the third medium sensor 126 detects whether or not a medium is present at that position.
  • the third medium sensor 126 is a reflection of a light emitter and a light receiver provided on one side of the medium transport path and a mirror or the like provided at a position facing the light emitter and the light receiver across the transport path. Including members.
  • the light emitter irradiates light toward the transport path.
  • the light receiver receives the light irradiated by the light emitter and reflected by the reflecting member, and generates and outputs a third medium signal which is an electric signal according to the intensity of the received light.
  • the light emitted by the light emitter is shielded by the medium, so that the light emitted by the light emitter is shielded by the medium.
  • the signal value of the medium signal changes.
  • the light emitter and the light receiver are provided at positions facing each other across the transport path, and the reflective member may be omitted.
  • the first image sensor 127a has a line sensor by a 1x optical system type CIS (Contact Image Sensor) having a CMOS (Complementary Metal Oxide Semiconductor) image sensor arranged linearly in the main scanning direction. Further, the first image pickup device 127a has a lens that forms an image on the image pickup element and an A / D converter that amplifies an electric signal output from the image pickup element and converts it into analog / digital (A / D). The first image pickup apparatus 127a images the surface of the conveyed medium and generates and outputs an input image according to the control from the processing circuit described later.
  • CIS Contact Image Sensor
  • CMOS Complementary Metal Oxide Semiconductor
  • the first image pickup apparatus 127a generates, as an input image, an image for one line in which a region facing the line sensor of the conveyed medium is imaged at regular intervals.
  • the first image pickup apparatus 127a may generate an image for a predetermined number of lines as an input image.
  • the second image pickup device 127b has a line sensor by CIS of the same magnification optical system type having a CMOS image pickup element linearly arranged in the main scanning direction. Further, the second image pickup apparatus 127b has a lens that forms an image on the image pickup element and an A / D converter that amplifies and A / D-converts an electric signal output from the image pickup element.
  • the second image pickup apparatus 127b captures the back surface of the conveyed medium according to the control from the processing circuit, generates an input image, and outputs the input image.
  • the second image pickup apparatus 127b generates, as an input image, an image for one line in which a region facing the line sensor of the conveyed medium is imaged at regular intervals.
  • the second image pickup apparatus 127b may generate an image for a predetermined number of lines as an input image.
  • the first image pickup device 127a and the second image pickup device 127b are examples of the image pickup unit.
  • the medium transfer device 100 only one of the first image pickup device 127a and the second image pickup device 127b may be arranged, and only one side of the medium may be read.
  • the line sensor by the 1x optical system type CIS equipped with the image sensor by CMOS the line sensor by the 1x optical system type CIS provided by the image pickup element by CCD (Charge Coupled Device) may be used.
  • CCD Charge Coupled Device
  • a reduced optical system type line sensor including a CMOS or CCD image sensor may be used.
  • the 7th transfer roller 128 and the 8th transfer roller 129 are arranged on the most downstream side of the rollers included in the medium transfer device 100, and function as discharge rollers for discharging the medium to the discharge table 104.
  • the shaft that supports the 7th transfer roller 128 and / or the 8th transfer roller 129 as a rotation axis is along the transfer surface of the medium transfer path centering on one end in the width direction orthogonal to the medium transfer direction according to the control from the processing circuit. It is provided so that it can swing. That is, the 7th transfer roller 128 and / or the 8th transfer roller 129 is provided so that the discharge direction of the medium can be changed according to the control from the processing circuit.
  • the medium mounted on the mounting table 103 is conveyed in the medium transport direction A1 between the lower guide 120a and the upper guide 120b by the feeding roller 112 rotating in the direction of the arrow A2 in FIG. ..
  • the brake roller 113 rotates in the direction of arrow A3 when the medium is conveyed.
  • the medium is fed to the position of the printing apparatus 114 while being guided by the lower guide 120a and the upper guide 120b.
  • the medium printed by the printing apparatus 114 is fed between the first transfer roller 116 and the second transfer roller 117.
  • the medium is fed between the first image pickup apparatus 127a and the second image pickup apparatus 127b by rotating the first to sixth transport rollers 116 to 117 and 122 to 125 in the directions of the arrows A4 to A9, respectively.
  • the medium read by the image pickup apparatus 127 is discharged onto the discharge table 104 by rotating the seventh to eighth transport rollers 128 to 129 in the directions of the arrows A10 to A11, respectively.
  • the feeding roller 112, the brake roller 113, and the first to eighth transport rollers 116 to 117, 122 to 125, and 128 to 129 are examples of transport units that transport media.
  • FIG. 3 is a schematic diagram for explaining the printing device 114, the printing device sensor 115, and the like.
  • FIG. 3 is a schematic view of a part of the printer upper housing 110 viewed from above with the cover 110a open.
  • the printing apparatus 114 is an example of a printing unit, and is provided so as to be movable in the width direction A12 along a rail 114a provided so as to extend in the width direction A12 orthogonal to the medium transport direction. Be done. Further, as shown in FIG. 2, the printing device 114 is arranged in the upper housing 110 of the printer on the upstream side of the image pickup device 127 in the medium transport direction A1. As a result, the image pickup apparatus 127 can read the medium printed by the printing apparatus 114, and the medium transfer apparatus 100 can store the printing result by the printing apparatus 114 as data.
  • the printing device 114 is arranged at a predetermined position in the width direction A12 according to the operation by the user. Then, the printing device 114 prints predetermined information at a position facing the predetermined position on the back surface of the conveyed medium according to the control from the processing circuit.
  • the predetermined information is information such as characters and numbers specified by the user using the operation device 107 or an information processing device (for example, a personal computer, a personal digital assistant, etc.) (not shown).
  • the printing device 114 is an inkjet type printer, has a printer head formed with a plurality of ink ejection ports, and ejects ink to a medium passing through the position of the printing device 114 to transmit predetermined information to the medium. Print.
  • a printing device provided in the lower housing 109 of the printer and printing predetermined information on the surface of the conveyed medium may be used. Further, the printing device 114 may be a printer other than the inkjet type such as a laser type.
  • the printing device sensor 115 is arranged so as to overlap the printing device 114 in the medium transport direction A1 and at a predetermined position on the side wall side of the transport path in the width direction A12, and measures the distance from the arranged predetermined position to the printing device 114. It is a distance measuring sensor.
  • the printing device sensor 115 measures the distance to an object existing at an opposite position from the time difference between irradiating infrared rays and receiving the reflected infrared rays.
  • the printing device sensor 115 includes a light emitter 115a and a light receiver 115b.
  • the light emitter 115a irradiates light (infrared light) toward the center side in the width direction A12, that is, toward the printing apparatus 114.
  • the photophore 115b is irradiated by the light emitter 115a, receives the light reflected by the printing device 114, and corresponds to the time from when the light emitter 115a irradiates the light until the light receiver 115b receives the light.
  • a detection signal which is an electrical signal, is generated and output. That is, the detection signal is a signal corresponding to the distance from the predetermined position where the printing device sensor 115 is arranged to the printing device 114.
  • the printing device sensor 115 includes a transmitter for transmitting ultrasonic waves and a receiver for receiving ultrasonic waves instead of the light emitting device 115a and the light receiving device 115b, from transmitting ultrasonic waves to receiving reflected ultrasonic waves.
  • the distance to the printing device 114 may be measured from the time difference.
  • the printing device sensor 115 generates an electric signal as a detection signal according to the time from the transmitter transmitting the ultrasonic wave to the receiver receiving the ultrasonic wave.
  • the printing device sensor 115 includes a transmitter for transmitting an audible sound and a receiver for receiving the audible sound, and measures the distance to the printing device 114 from the time difference between transmitting the audible sound and receiving the reflected audible sound. You may. In that case, the printing device sensor 115 generates an electric signal as a detection signal according to the time from the transmitter transmitting the audible sound to the receiver receiving the audible sound.
  • a conductor such as metal is attached to the printing device 114, and an inductive proximity sensor including a coil and detecting magnetic loss due to an eddy current generated on the conductor surface may be used as the printing device sensor 115. .. In that case, the printing device sensor 115 generates an electric signal as a detection signal according to the magnitude of the impedance in the coil.
  • a metal or dielectric is attached to the printing device 114, and a capacitance type proximity sensor that detects a change in capacitance between the printing device 114 and the printing device sensor 115 is used as the printing device sensor 115. May be good. In that case, the printing device sensor 115 generates an electric signal as a detection signal according to the magnitude of the capacitance between the printing device 114 and the printing device sensor 115.
  • a magnet may be attached to the printing device 114, and a magnetic sensor for detecting the magnitude of the field (magnetic field) between the printing device 114 and the printing device sensor 115 may be used as the printing device sensor 115.
  • the printing device sensor 115 generates an electric signal as a detection signal according to the magnitude of the magnetic field between the printing device 114 and the printing device sensor 115.
  • the printing device sensor 115 a sensor including an optical rotary encoder and detecting the amount of movement of the printing device 114 from the initial position (predetermined position) may be used.
  • the rotary encoder has a disk in which a large number of slits are formed and is provided so as to rotate according to the movement of the printing device 114, and a light emitter and a light receiver provided so as to face each other across the disk.
  • the printing device sensor 115 detects an electric signal according to the number of changes between the state where the slit exists between the light emitter and the light receiver and the state where the slit does not exist and is blocked by the disk. Generate as.
  • the printing device sensor 115 a sensor including an optical linear encoder and detecting the amount of movement of the printing device 114 from the initial position (predetermined position) may be used.
  • the optical linear encoder has a glass scale on which a grid scale is formed, and a light emitter and a light receiver provided so as to face each other across the glass scale and move according to the movement of the printing device 114. In that case, the printing device sensor 115 generates an electric signal as a detection signal according to the number of changes in the amount of light in the light receiver.
  • the printing device sensor 115 a sensor including a magnetic linear encoder and detecting the amount of movement of the printing device 114 from the initial position (predetermined position) may be used.
  • the magnetic linear encoder has a magnetic scale on which a predetermined magnetic pattern is formed, and a magnetic detection head provided so as to face the magnetic scale and move according to the movement of the printing device 114. In that case, the printing device sensor 115 generates an electric signal as a detection signal according to the number of magnetic changes detected by the magnetic detection head.
  • the printing device sensor 115 a sensor including a sliding resistor and detecting a voltage by the sliding resistor may be used.
  • the sliding resistor is a resistor that is stretched in the width direction A12 and a constant voltage is applied from the terminals at both ends, and a contact (sliding) that moves according to the movement of the printing device 114 while abutting against the resistor. Has a child).
  • the printing device sensor 115 generates an electric signal as a detection signal according to the magnitude of the voltage applied from one end of the resistor to the slider.
  • FIG. 4 is a block diagram showing a schematic configuration of the medium transfer device 100.
  • the medium transfer device 100 further includes a first motor 141, a second motor 142, an interface device 143, a storage device 150, a processing circuit 160, and the like, in addition to the above-described configuration.
  • the first motor 141 includes one or a plurality of motors, and the feed roller 112, the brake roller 113, the first to eighth conveyor rollers 116 to 117, 122 to 125, 128 to the control signal from the processing circuit 160 are used.
  • the 129 is driven and rotated to feed and convey the medium.
  • the second motor 142 receives a control signal from the processing circuit 160 to support a shaft that supports the seventh transfer roller 128 and / or the eighth transfer roller 129 as a rotation axis, and the transfer surface of the medium transfer path centering on one end in the width direction A12. Rotate along. As a result, the second motor 142 changes the discharge direction of the medium by the seventh transfer roller 128 and the eighth transfer roller 129.
  • the interface device 143 has an interface circuit similar to a serial bus such as USB, and is electrically connected to an information processing device to transmit and receive input images and various information. Further, instead of the interface device 143, a communication unit having an antenna for transmitting and receiving a wireless signal and a wireless communication interface device for transmitting and receiving a signal through a wireless communication line according to a predetermined communication protocol may be used.
  • the predetermined communication protocol is, for example, a wireless LAN (Local Area Network).
  • the storage device 150 includes a memory device such as a RAM (RandomAccessMemory) and a ROM (ReadOnlyMemory), a fixed disk device such as a hard disk, or a portable storage device such as a flexible disk and an optical disk. Further, the storage device 150 stores computer programs, databases, tables, etc. used for various processes of the medium transfer device 100.
  • the computer program may be installed in the storage device 150 from a computer-readable portable recording medium using a known setup program or the like.
  • the portable recording medium is, for example, a CD-ROM (compact disc read only memory), a DVD-ROM (digital versatile disc read only memory), or the like.
  • the processing circuit 160 operates based on a program stored in the storage device 150 in advance.
  • the processing circuit is, for example, a CPU (Central Processing Unit).
  • a DSP digital signal processor
  • an LSI large scale integration
  • an ASIC Application Specific Integrated Circuit
  • an FPGA Field-Programmable Gate Array
  • the processing circuit 160 includes an operation device 107, a display device 108, a first medium sensor 111, a printing device 114, a printing device sensor 115, a second medium sensor 121, a third medium sensor 126, an image pickup device 127, a first motor 141, and a first. 2 It is connected to a motor 142, an interface device 143, a storage device 150, and the like, and controls each of these parts.
  • the processing circuit 160 drives a first motor 141 to convey a medium to each roller, causes a printing device 114 to print predetermined information on the medium, acquires an input image from the image pickup device 127, and transmits the input image via the interface device 143. And send it to the information processing device.
  • the processing circuit 160 determines whether or not printing is possible on the medium based on the detection signal received from the printing device sensor 115 and the input image, and executes abnormality processing based on the determination result.
  • FIG. 5 is a diagram showing a schematic configuration of a storage device 150 and a processing circuit 160.
  • the storage device 150 stores a control program 151, a detection program 152, a determination program 153, a print determination program 154, an output control program 155, and the like.
  • Each of these programs is a functional module implemented by software running on the processor.
  • the processing circuit 160 reads each program stored in the storage device 150 and operates according to each read program. As a result, the processing circuit 160 functions as a control unit 161, a detection unit 162, a determination unit 163, a print determination unit 164, and an output control unit 165.
  • 6 and 7 are flowcharts showing an example of the operation of the medium reading process of the medium transport device 100.
  • FIGS. 6 and 7 The operation flow described below is mainly executed by the processing circuit 160 in cooperation with each element of the medium transfer device 100 based on the program stored in the storage device 150 in advance. The flow of operations shown in FIGS. 6 and 7 is periodically executed.
  • control unit 161 waits until the user inputs an instruction to read the medium using the operation device 107 and receives an operation signal instructing to read the medium from the operation device 107 (step S101).
  • control unit 161 acquires the first medium signal from the first medium sensor 111, and determines whether or not the medium is mounted on the mounting table 103 based on the acquired first medium signal (step). S102).
  • control unit 161 When the medium is not mounted on the mounting table 103, the control unit 161 returns the process to step S101 and waits until a new operation signal is received from the operating device 107.
  • the detection unit 162 detects the placement position of the printing device 114 in the width direction A12 orthogonal to the medium transport direction (step S103).
  • the detection unit 162 acquires a detection signal from the printing device sensor 115, and detects the arrangement position of the printing device 114 based on the acquired detection signal.
  • the medium transfer device 100 stores in advance a position table that stores the correspondence between the signal value of the detection signal and the arrangement position of the printing device 114 in the width direction A12 in the storage device 150.
  • the detection unit 162 detects the arrangement position of the printing apparatus 114 by referring to the position table and specifying the arrangement position corresponding to the signal value of the detection signal.
  • the print area of the printing device 114 is stored as the placement position of the printing device 114 in the position table, and the detection unit 162 is used as the placement position of the printing device 114.
  • the print area of the printing apparatus 114 may be detected.
  • the detection unit 162 detects the arrangement position of the printing device 114 in the width direction A12 based on the distance from the predetermined position to the printing device 114 detected by the printing device sensor 115.
  • the detection unit 162 can accurately specify the arrangement position of the printing device 114 by using the distance sensor.
  • control unit 161 drives and rotates the first motor 141 to rotate the feed roller 112, the brake roller 113, and the first to eighth transport rollers 116 to 117, 122 to 125, and 128 to 129. , Feeding and transporting the medium (step S104).
  • the determination unit 163 acquires an input image from the image pickup device 127 (step S105).
  • the determination unit 163 may start acquiring the input image when the tip of the medium reaches the front of the image pickup apparatus 127.
  • the determination unit 163 periodically receives the third medium signal from the third medium sensor 126, and the signal value of the third medium signal is changed from the value indicating that the medium does not exist to the value indicating that the medium exists. If it changes, it is determined that the tip of the medium has reached the front of the image pickup apparatus 127. As a result, the determination unit 163 can reduce the processing load of the medium reading process.
  • the determination unit 163 detects the medium position, which is the position in the width direction A12 orthogonal to the medium transport direction of the medium, from the acquired input image (step S106).
  • the determination unit 163 first detects edge pixels for each input image sequentially generated.
  • the determination unit 163 calculates the absolute value of the difference in gradation value between each pixel and the pixel adjacent to the right side of each pixel or the pixel separated by a predetermined distance in order from the left end of the input image (hereinafter referred to as an adjacent difference value). do.
  • the gradation value is a luminance value or a color value.
  • the determination unit 163 detects the first (leftmost) pixel whose adjacent difference value is equal to or greater than the edge threshold value as the leftmost edge pixel.
  • the edge threshold value can be set, for example, to a difference in gradation value (for example, 20) in which a person can visually discriminate the difference in brightness on the image.
  • the determination unit 163 calculates the adjacent difference value between each pixel and the pixel on the left side of each pixel in order from the right end of the input image, and detects the first pixel whose adjacent difference value is equal to or greater than the edge threshold value as the right end edge pixel. do.
  • the determination unit 163 calculates the adjacent difference value between each pixel and the pixel on the left side of each pixel in order from the left end of the input image, and detects the last pixel whose adjacent difference value is equal to or greater than the edge threshold value as the right end edge pixel. good.
  • the determination unit 163 may calculate the absolute value of the difference between the gradation values of the pixels on both sides of each pixel or the two pixels separated by a predetermined distance as the adjacent difference value. Further, when the gradation value of the specific pixel is less than the threshold value and the gradation value of the pixel adjacent to the specific pixel or the pixel separated by a predetermined distance is equal to or more than the threshold value, the determination unit 163 specifies the specific pixel. Pixels adjacent to the pixels of the above or pixels separated by a predetermined distance may be extracted as edge pixels.
  • the determination unit 163 does not detect the edge pixel from the input image.
  • the determination unit 163 detects the region sandwiched between the left end edge pixel and the right end edge pixel as the medium position.
  • the determination unit 163 determines whether or not the medium position is detected from the input image (step S107). If the medium position is not detected from the input image, the determination unit 163 returns the process to step S105, and repeats the processes of steps S105 to S107 for the input image in which a new line is captured.
  • the determination unit 163 can compare the medium position detected from the input image with the arrangement position of the printing device 114 and print on the medium by the printing device 114. It is determined whether or not there is (step S108). The determination unit 163 determines whether or not the arrangement position (area) of the printing device 114 is included in the actual medium position (area) corresponding to the medium position detected from the input image. When the entire arrangement position (area) of the printing device 114 is located inside the actual medium position (area), the determination unit 163 determines that printing by the printing device 114 is possible on the medium. On the other hand, when at least a part of the arrangement position (area) of the printing device 114 is located outside the actual medium position (area), the determination unit 163 determines that printing by the printing device 114 cannot be performed on the medium.
  • the control unit 161 executes an abnormality process (step S109).
  • an abnormality process the control unit 161 stops printing on the medium by the printing device 114, and shifts the process to step S115. Further, the control unit 161 is used by displaying information indicating that printing on the medium by the printing device 114 has been stopped on the display device 108 or transmitting the information to the information processing device via the interface device 143 as an abnormality process. May be notified.
  • the medium transfer device 100 can prevent the ink from being accidentally ejected to a position where the medium does not exist.
  • control unit 161 may stop the first motor 141, stop the feeding and transporting of the medium by the transport unit, and end a series of steps as an error handling. In that case, the control unit 161 displays to the user information indicating that the feeding and transporting of the medium has been stopped as an abnormal process on the display device 108 or transmits the information to the information processing device via the interface device 143 to the user. You may notify. In this case as well, the medium transfer device 100 can prevent the ink from being accidentally ejected to a position where the medium does not exist.
  • control unit 161 may temporarily stop the first motor 141 to temporarily stop the feeding and transporting of the medium by the transport unit as an error handling. In that case, the control unit 161 notifies the user by displaying information instructing the position of the printing device 114 to be changed on the display device 108 or transmitting the information to the information processing device via the interface device 143.
  • the control unit 161 receives from the user that the position of the printing device 114 has been changed by using the operating device 107 or the information processing device, the control unit 161 repositions the printing device 114 in the same manner as in the process of step S103. To detect.
  • control unit 161 returns the process to step S108, and the determination unit 163 compares the media position detected from the input image with the re-detected placement position of the printing device 114, and prints on the medium. It is redetermined whether or not printing by 114 is possible.
  • the control unit 161 redrives the first motor 141 and executes the processes after step S110. As a result, the user can continue the medium reading process without remounting the medium on the mounting table 103, and the medium transfer device 100 can improve the convenience of the user.
  • control unit 161 may change the ejection position of the medium as an abnormal process.
  • the control unit 161 drives the second motor 142 to change the discharge direction of the medium by the seventh and eighth transfer rollers 128 and 129 from the initial direction, and shifts the process to step S115.
  • the medium on which the predetermined information is printed and the medium on which the predetermined information is not printed are loaded on the discharge table 104 so as to be distinguishable. The user can easily separate the medium on which the predetermined information is printed and the medium on which the predetermined information is not printed, and the medium transfer device 100 can improve the convenience of the user.
  • the control unit 161 controls the printing device 114 so as to print predetermined information on the medium (step S110).
  • the medium transfer device 100 may receive the designation of the print area in the medium transfer direction A1 from the user in advance by using the operation device 107 or the information processing device. In that case, the control unit 161 controls the printing device 114 so as to print the predetermined information on the medium when the first predetermined time has elapsed from the start of feeding the medium.
  • the first predetermined time is an added value obtained by adding the distance from the tip of the medium to the designated printing area to the distance from the nip position of the feeding roller 112 and the brake roller 113 to the printing position of the printing device 114. It is set to a divided value divided by the transport speed of the medium by the motor 141.
  • the print determination unit 164 determines whether or not a second predetermined time has elapsed since the printing device 114 was made to print (step S111).
  • the second predetermined time is set to a value obtained by adding a margin to a division value obtained by dividing the distance from the printing position of the printing device 114 to the imaging position of the image pickup device 127 by the transport speed of the medium by the first motor 141. That is, the second predetermined time is set to a time during which the printed area in the medium can sufficiently pass through the image pickup position of the image pickup apparatus 127 when printing is performed on the medium by the printing apparatus 114.
  • the print determination unit 164 generates a partial image based on the input image (step S112).
  • the print determination unit 164 generates a partial image by synthesizing the input images generated by the image pickup apparatus 127 within a certain time immediately before the second predetermined time elapses after the printing apparatus 114 is made to print.
  • the print determination unit 164 may generate a partial image by synthesizing all the input images generated by the image pickup apparatus 127 up to now.
  • the print determination unit 164 determines whether or not the conveyed medium is printed by the printing device 114 based on the partial image (step S113).
  • the print determination unit 164 uses, for example, a known OCR (Optical Character Recognition / Reader) technique to determine whether or not the partial image contains unique characters that are always included in the predetermined information. When the unique character is included in the partial image, the print determination unit 164 determines that the partial image contains predetermined information.
  • the print determination unit 164 determines that the printed medium is printed by the printing device 114 when the partial image contains predetermined information, and when the partial image does not contain the predetermined information, the print determination unit 164 is conveyed. It is determined that the medium is not printed by the printing device 114.
  • the print determination unit 164 may determine whether or not the partial image contains predetermined information by using a known pattern matching technique.
  • the medium transfer device 100 stores in advance a sample image including a unique shape or a watermark included in the predetermined information in the storage device 150.
  • the print determination unit 164 cuts out an area having the same size as the sample image while shifting the cutout position in the partial image, and calculates the degree of similarity between the cut out area and the sample image.
  • a degree of similarity for example, a normalized cross-correlation value is used.
  • the print determination unit 164 determines that the partial image contains predetermined information.
  • the print determination unit 164 has the number of pixels having color values of the colors printed by the printing device 114 (or pixels having color values whose difference from the color values is within a predetermined range) in the partial image. When the ratio is equal to or greater than the threshold value, it may be determined that the partial image contains predetermined information.
  • the control unit 161 executes the second abnormality processing (step S114).
  • the control unit 161 displays information indicating that printing on the medium by the printing device 114 has failed on the display device 108, or transmits the information to the information processing device via the interface device 143 to the user. Notify to.
  • the user can recognize that the printing apparatus 114 is out of ink or clogged with ink, and can take appropriate measures.
  • control unit 161 may prohibit subsequent printing on the medium by the printing device 114 as the second abnormality processing.
  • the control unit 161 displays on the display device 108 information indicating that printing on the medium by the printing device 114 is prohibited, or transmits the information to the information processing device via the interface device 143. May be notified to the user.
  • the user can recognize that the printing apparatus 114 is out of ink or clogged with ink, and can take appropriate measures.
  • the medium transporting apparatus 100 can omit unnecessary printing processing for the media to be transported thereafter, and can reduce the processing load of the medium reading processing.
  • control unit 161 may stop the first motor 141 to stop the feeding and transporting of the medium by the transporting unit, as in the exception handling.
  • the control unit 161 may temporarily stop the first motor 141 to temporarily stop the feeding and transporting of the medium by the transport unit, as in the exception handling. In that case, the control unit 161 notifies the user by displaying information indicating that printing on the medium by the printing device 114 has failed on the display device 108 or transmitting the information to the information processing device via the interface device 143. ..
  • the control unit 161 receives from the user that the ink of the printing device 114 has been replaced by using the operating device 107 or the information processing device, the control unit 161 re-drives the first motor 141 and performs the same as the process of step S110. , The printing device 114 is controlled to print predetermined information on the medium.
  • control unit 161 returns the process to step S112, and the print determination unit 164 redetermines whether or not the conveyed medium is printed by the printing device 114.
  • the user can continue the medium reading process without remounting the medium on the mounting table 103, and the medium transfer device 100 can improve the convenience of the user.
  • control unit 161 may change the ejection position of the medium as the second exception handling, as in the exception handling.
  • the output control unit 165 determines whether or not the rear end of the medium has passed the image pickup position of the image pickup device 127. (Step S115).
  • the output control unit 165 periodically receives the third medium signal from the third medium sensor 126, and the signal value of the third medium signal changes from a value indicating the presence of the medium to a value indicating the absence of the medium. In this case, it is determined that the rear end of the medium has passed the position of the third medium sensor 126.
  • the output control unit 165 determines that the rear end of the medium has passed the imaging position when the third predetermined time has elapsed since the rear end of the medium passed the position of the third medium sensor 126.
  • the third predetermined time is set to a value obtained by dividing the distance from the position of the third medium sensor 126 to the imaging position by the carrier speed of the medium by the first motor 141 and adding a margin.
  • the output control unit 165 synthesizes the input images generated by the image pickup device 127 to date to generate a read image, and sends the scanned image to the information processing device via the interface device 143. It is output by transmitting (step S116).
  • the scanned image is an example of an image based on the input image.
  • the output control unit 165 may output the input image as it is to the information processing apparatus. In that case, the information processing apparatus synthesizes the input images to generate a scanned image.
  • control unit 161 determines whether or not the medium remains on the mounting table 103 based on the first medium signal acquired from the first medium sensor 111 (step S117).
  • the control unit 161 returns the process to step S103 and repeats the processes of steps S103 to S117.
  • the control unit 161 detects the arrangement position of the printing apparatus 114 each time the medium is conveyed, so that the printing apparatus 114 can print on the medium even if the printing apparatus 114 is moved during the medium conveying. Whether or not it can be appropriately determined. If the printing device 114 is prohibited from being moved during the medium transfer, the control unit 161 may return the process to step S104. As a result, the medium transfer device 100 can reduce the processing load of the medium reading process.
  • control unit 161 stops the first motor 141 (step S118) and ends a series of steps.
  • steps S111 to S114 may be omitted.
  • the medium transport device 100 compares the media position detected from the input image obtained by capturing the image of the transported medium with the arrangement position of the printing device 114, and prints on the conveyed medium. Determine if it is possible. As a result, the medium transfer device 100 can determine whether or not printing is possible on the transferred medium by using the image pickup device 127 for scanning the medium, and the device cost increases. It has become possible to control printing on a medium well while suppressing this.
  • the medium transport device 100 suppresses printing omission to the media when the set position of the printing device 114 is inappropriate, or when a plurality of media having different sizes are collectively transported. It became possible to do.
  • the medium transfer device 100 can suppress the injection of ink to an erroneous position, and as a result, it is possible to reduce the amount of ink consumed. As a result, the medium transfer device 100 can improve the convenience of the user.
  • the printing device 114 is arranged on the upstream side of the image pickup device 127.
  • the medium transfer device 100 can determine whether or not the transferred medium is printed by the printing device 114 based on the input image generated by the image pickup device 127. Therefore, the medium transfer device 100 can appropriately detect the occurrence of ink shortage or ink clogging in the printing device 114 while suppressing the increase in device cost.
  • FIG. 8 is a schematic diagram for explaining the printing device sensor 215 and the like of the medium transport device according to another embodiment.
  • FIG. 8 is a schematic view of a part of the printer upper housing 110 viewed from above with the cover 110a open.
  • the printing device sensor 215 is an array-shaped sensor that is arranged side by side at intervals in the width direction A12 orthogonal to the medium transport direction and detects the printing device 114.
  • Each printing device sensor 215 includes a light emitter 215a and a light receiving device 215b arranged below the printing device 114 (on the medium transport path side).
  • Each light emitter 215a irradiates light (infrared light) upward (cover 110a side).
  • each photoreceiver 215b receives the light irradiated by the corresponding light emitter 215a and reflected by the printing device 114 or the cover 110a.
  • each light receiver 215b generates a detection signal whose signal value changes depending on whether or not the time from the light emitting device 215a irradiating the light to the light receiving device 215b receiving the light is less than the threshold value.
  • the threshold value is the time until the photoreceiver 215b receives light when the printing device 114 is present at the position facing each printing device sensor 215, and the light receiver 215b is light when the printing device 114 is not present at that position. Is set to a value between the time until light is received.
  • the signal value of the detection signal indicates that the printing device 114 is present at the position facing the printing device sensor 215.
  • the signal value of the detection signal indicates that the printing device 114 does not exist at the position facing the printing device sensor 215.
  • the detection signal is a signal indicating whether or not the printing device 114 is present at the position where each printing device sensor 215 is arranged.
  • a reflection member such as a mirror is provided at a position facing each light emitter 215a and each light receiver 215b with the printing device 114 interposed therebetween, and each light receiver 215b is irradiated by the corresponding light emitter 215a, and the printing device 114 or The light reflected by the reflective member may be received.
  • each light receiver 215b may generate an electric signal corresponding to the intensity of the received light as a third medium signal.
  • each light emitter and a light receiver may be arranged above the printing device 114 (on the cover 110a side), and each light emitting device may irradiate light downward (on the medium transport path side). Further, the light emitters and the light receivers are arranged so as to face each other vertically with the position where the printing device 114 is arranged, and each light emitter may irradiate light toward each light receiver. In that case, each light receiver generates a signal whose signal value changes depending on whether or not the intensity of the received light is equal to or higher than the threshold value as a detection signal.
  • the thresholds are the intensity of the light received by the photoreceiver 215b when the printing device 114 is present at the position facing each printing device sensor 215, and the light received by the photoreceiver 215b when the printing device 114 is not present at that position. Is set to a value between the intensity of.
  • each printing device sensor 215 includes, for example, a push-in switch that is pressed toward the printing device 114 side by a spring or the like and is pushed to the opposite side of the printing device 114 when it comes into contact with the printing device 114.
  • Each printing device sensor 215 generates a signal whose signal value changes depending on whether or not each pushing switch is pushed to the opposite side of the printing device 114 as a detection signal.
  • each printing device sensor 2115 generates a signal whose signal value changes depending on whether or not the magnitude of the impedance in the coil is equal to or greater than the threshold value as a detection signal.
  • the threshold value is set to a value between the magnitude of the impedance when the printing apparatus 114 is present at the position facing each printing apparatus sensor 215 and the magnitude of the impedance when the printing apparatus 114 is not present at that position.
  • a magnet is attached to the printing device 114, and as each printing device sensor 215, a magnetic sensor that detects the magnitude of the field (magnetic field) between the printing device 114 and the printing device sensor 215 may be used. In that case, each printing device sensor 215 generates a signal whose signal value changes depending on whether or not the magnitude of the magnetic field between the printing device 114 and the printing device sensor 215 is equal to or greater than the threshold value as a detection signal.
  • the threshold value is set to a value between the magnitude of the magnetic field when the printing device 114 is present at the position facing each printing device sensor 215 and the magnitude of the magnetic field when the printing device 114 is not present at that position.
  • the detection unit 162 acquires a detection signal from each of the plurality of printing device sensors 215.
  • the detection unit 162 detects the arrangement position of the printing device 114 depending on whether or not the signal value of the detection signal acquired from each printing device sensor 215 indicates that the printing device 114 is present at the position of each printing device sensor 215. do.
  • the detection unit 162 detects the arrangement position of the printing device 114 in the width direction A12 based on the detection results of the plurality of printing device sensors 215.
  • the array-shaped sensor is relatively inexpensive, and the medium transfer device can reduce the device cost of the medium transfer device by using the array-shaped sensor.
  • the medium transfer device can satisfactorily control printing on the medium while suppressing an increase in the device cost even when the array sensor is used.
  • FIG. 9 is a schematic diagram for explaining the printing device sensor 315 and the like of the medium transport device according to still another embodiment.
  • FIG. 9 is a schematic view of a part of the printer upper housing 110 viewed from above with the cover 110a open.
  • the printing device sensor 315 is an image pickup sensor that generates an image in which the movable range of the printing device 114 is captured.
  • the printing device sensor 315 is arranged on the upstream side of the printing device 114 so as to take an image of the printing device 114 side.
  • the printing device sensor 315 may be arranged on the downstream side of the printing device 114 so as to take an image of the printing device 114 side.
  • the printing device sensor 315 generates and outputs a printing device image that captures the movable range of the printing device 114.
  • the detection unit 162 acquires the printing device image from the printing device sensor 315.
  • the detection unit 162 detects the position including the printing device 114 in the printing device image by using, for example, a known pattern matching technique.
  • the medium transfer device 100 stores in advance the sample image captured by the printing device 114 in the storage device 150.
  • the detection unit 162 cuts out a region having the same size as the sample image while shifting the cutout position in the printing apparatus image, and calculates the degree of similarity between the cutout region and the sample image.
  • a degree of similarity for example, a normalized cross-correlation value is used.
  • the detection unit 162 determines that the printing device 114 is included in the area having the maximum calculated degree of similarity in the printing device image, and determines that the actual position in the medium transporting device 100 corresponding to the area is the printing device 114. Detected as the placement position of.
  • the detection unit 162 detects the arrangement position of the printing device 114 in the width direction A12 based on the printing device image generated by the printing device sensor 315.
  • the detection unit 162 can flexibly detect the arrangement position of the printing device 114 by using the image pickup sensor, and can detect the arrangement position of each printing device 114 even when the medium transporting device 100 has a plurality of printing devices 114, for example. ..
  • the medium transfer device can satisfactorily control printing on the medium while suppressing an increase in the device cost even when the image pickup sensor is used.
  • FIG. 10 is a perspective view showing a medium transfer device 400 according to another embodiment.
  • the medium transfer device 400 has each part of the medium transfer device 100, and has a printer unit 402 instead of the printer unit 102.
  • the printer unit 402 includes a printer lower housing 409, a printer upper housing 410, and the like.
  • the lower housing 105 of the main body is mounted on the printer unit 402 so as to be detachably engaged with the printer unit 402.
  • the printer unit 402 is formed in an L shape.
  • the lower housing 105 of the main body has a side surface and a lower surface on the discharge table 104 side, respectively, on the side surface on the mounting table 103 side of the portion extending in the substantially vertical direction of the printer unit 402 and the upper surface of the portion extending in the substantially horizontal direction. Arranged to abut.
  • the upper housing 106 of the main body is arranged so that the side surface of the discharge table 104 side comes into contact with the side surface of the printer unit 402 on the mounting table 103 side.
  • the printer unit 402 is an imprinter that prints predetermined information on a conveyed medium.
  • the printer upper housing 410 is arranged at a position that covers the upper surface of the printer unit 402, and is engaged with the printer lower housing 409 by a hinge so that it can be opened and closed when the medium is blocked, that is, when cleaning the inside of the printer unit 402, or the like. There is.
  • the printer unit 402 may not be configured separately from the main body 101, but may be integrally configured with the main body 101.
  • the mounting table 103 is engaged with the lower housing 105 of the main body so that the medium to be transported can be mounted.
  • the ejection table 104 is engaged with the printer upper housing 410 so as to be able to hold the ejected medium.
  • the discharge table 104 is provided so as to be foldable so as to face the front surface (printer upper housing 410) of the medium transfer device 400.
  • FIG. 11 is a diagram for explaining a transport path inside the medium transport device 400.
  • the transfer path inside the medium transfer device 400 is such that the first medium sensor 411, the ninth transfer roller 412, the tenth transfer roller 413, the printing device 414, the printing device sensor 415, the eleventh transfer roller 416, and the first medium transfer roller 411 are arranged inside the printer unit 402. It has 12 transport rollers 417 and the like. Further, this transport path has each part of the main body 101 of the medium transport device 100. However, the second medium sensor 121 detects whether or not the medium is mounted on the mounting table 103, and the signal value is measured depending on whether the medium is mounted or not mounted on the mounting table 103. A changing second medium signal is generated and output. Further, the third transport roller 122 and the fourth transport roller 123 function as a feed roller and a brake roller, and the fourth transport roller 123 rotates in the direction A13 opposite to the feed direction of the medium.
  • the main body 101 is fitted with the printer unit 402 by fitting the claws 418 provided on the upper surface of the lower housing 409 of the printer into the recess 132 via the holes 131 provided on the lower surface of the lower housing 105 of the main body. Be engaged.
  • the medium discharge port of the main body 101 faces the medium inlet of the printer unit 402.
  • the upper surfaces of the main body lower housing 105 and the printer lower housing 409 form the lower guide 420a of the medium transport path, and the lower surfaces of the main body upper housing 106 and the printer upper housing 410 are the media transport paths.
  • the upper guide 420b is formed.
  • the printer upper housing 410 has a cover 410a that can be opened and closed, and the user can move the arrangement position of the printing device 414 by opening the cover 410a.
  • the first medium sensor 411 is arranged on the downstream side of the seventh transfer roller 128 and the eighth transfer roller 129 and on the downstream side of the ninth transfer roller 412 and the tenth transfer roller 413.
  • the first medium sensor 411 has the same configuration as the third medium sensor 126, and detects whether or not a medium is present at that position.
  • the printing device 414 and the printing device sensor 415 have the same configurations as the printing device 114 and the printing device sensor 115, 215 or 315, respectively. However, the printing device 414 and the printing device sensor 415 are arranged in the upper housing 410 of the printer on the downstream side of the image pickup device 127 in the medium transport direction A1. As a result, the image pickup apparatus 127 can read the medium before being printed by the printing apparatus 414, and the medium transfer apparatus 400 can store an image that does not include the printing result by the printing apparatus 414.
  • the eleventh transfer roller 416 and the twelfth transfer roller 417 are arranged on the most downstream side of the rollers included in the medium transfer device 400, and function as discharge rollers for discharging the medium to the discharge table 104.
  • the shaft that supports the 11th transfer roller 416 and / or the 12th transfer roller 417 as a rotation axis can swing along the transfer surface of the medium transfer path around one end of the width direction A12 according to the control from the processing circuit 160. It is provided in. That is, the 11th transfer roller 416 and / or the 12th transfer roller 417 is provided so that the discharge direction of the medium can be changed according to the control from the processing circuit 160.
  • the third transport roller 122 which functions as a feeding roller, rotates in the direction of the arrow A6 in FIG. 11 to move the medium between the lower guide 420a and the upper guide 420b in the medium transport direction. It is transported toward A1.
  • the fourth transfer roller 123 which functions as a brake roller, rotates in the direction of arrow A13 when the medium is transferred.
  • the medium is guided by the lower guide 420a and the upper guide 420b, and the fifth to sixth transport rollers 124 to 125 rotate in the directions of arrows A8 to A9, respectively, whereby the first image pickup device 127a and the second image pickup device 127a and the second image pickup device. It is sent during 127b.
  • the medium read by the image pickup apparatus 127 is sent to the position of the printing apparatus 414 by rotating the seventh to tenth transport rollers 128 to 129, 421 to 413 in the directions of the arrows A10 to A11 and A13 to A14, respectively.
  • the medium printed by the printing apparatus 414 is discharged onto the discharge table 104 by rotating the eleventh to twelfth transfer rollers 416 to 417 in the directions of the arrows A15 to A16, respectively.
  • the third to twelfth transport rollers 122 to 125, 128 to 129, 421 to 413, and 416 to 417 are examples of transport units for transporting the medium.
  • FIG. 12 is a block diagram showing a schematic configuration of the medium transfer device 400.
  • the medium transfer device 400 further includes a first motor 441, a second motor 442, an interface device 143, a storage device 150, a processing circuit 160, and the like, in addition to the above-described configuration.
  • the interface device 143, the storage device 150, and the processing circuit 160 have the same configurations as the interface device 143, the storage device 150, and the processing circuit 160 included in the medium transfer device 100.
  • the first motor 441 includes one or a plurality of motors, and drives the third to twelfth transfer rollers 122 to 125, 128 to 129, 421 to 413, and 416 to 417 by a control signal from the processing circuit 160. Rotate to feed and transport the medium.
  • the second motor 442 receives a control signal from the processing circuit 160 to support a shaft that supports the eleventh transport roller 416 and / or the twelfth transport roller 417 as a rotation axis, and the transport surface of the medium transport path centering on one end in the width direction A12. Rotate along. As a result, the second motor 442 changes the discharge direction of the medium by the 11th transfer roller 416 and the 12th transfer roller 417.
  • FIG. 13 and 14 are flowcharts showing an example of the operation of the medium reading process of the medium transport device 400.
  • the medium reading process shown in FIGS. 13 and 14 is executed in place of the medium reading process shown in FIGS. 6 and 7.
  • the processing of steps S201 to S208 and S215 to S216 of the flowchart shown in FIGS. 13 and 14 is the same as the processing of steps S101 to S108 and S117 to S118 of the flowchart shown in FIGS. Is omitted.
  • the control unit 161 acquires the second medium signal from the second medium sensor 121, and based on the acquired second medium signal, whether or not the medium is mounted on the mounting table 103. To judge. Further, in step S203, the detection unit 162 acquires a detection signal from the printing device sensor 415, and detects the arrangement position of the printing device 414 based on the acquired detection signal. Further, in step S204, the control unit 161 drives and rotates the first motor 441 to rotate the third to twelfth transport rollers 122 to 125, 128 to 129, 421 to 413, 416 to 417, and causes the medium. Is delivered and transported. Further, in step S216, the control unit 161 stops the first motor 441.
  • step S209 the control unit 161 executes an abnormality process (step S209).
  • the control unit 161 stops printing on the medium by the printing device 414, and shifts the process to step S212. In this case, the control unit 161 does not execute the processes of steps S210 to S211. Further, the control unit 161 may execute each process described in step S109 of FIGS. 6 and 7 as an error process.
  • control unit 161 drives the second motor 442 to change the ejection direction of the medium by the eleventh and twelfth transport rollers 416 and 417 from the initial direction. The process proceeds to step S212.
  • the control unit 161 determines whether or not predetermined information has been printed on the medium, and the tip of the medium has passed the print position of the printing device 414. Whether or not it is determined (step S210).
  • the control unit 161 periodically receives the first medium signal from the first medium sensor 411 and the signal value of the first medium signal changes from a value indicating that the medium does not exist to a value indicating that the medium exists. , It is determined that the tip of the medium has passed the position of the first medium sensor 411.
  • the control unit 161 determines that the tip of the medium has passed the printing position of the printing device 414 when the fourth predetermined time has elapsed since the tip of the medium passed the position of the first medium sensor 411.
  • the fourth predetermined time is set to a value obtained by dividing the distance from the position of the first medium sensor 411 to the printing position by the transfer speed of the medium by the first motor 441 and adding a margin.
  • the control unit 161 may determine whether or not the print area of the medium designated by the user, not the tip of the medium, has passed the print position.
  • control unit 161 shifts the process to step S212.
  • control unit 161 performs the same as the process of step S110 in FIG.
  • the printing device 414 is controlled to print predetermined information on the medium (step S211).
  • the output control unit 165 determines whether or not the scanned image has been generated and whether or not the rear end of the medium has passed the image pickup position of the image pickup device 127 (step S212).
  • the output control unit 165 determines whether or not the rear end of the medium has passed the image pickup position of the image pickup apparatus 127 in the same manner as in the process of step S115 of FIG. If the scanned image has already been generated, or if the rear end of the medium has not passed the image pickup position of the image pickup apparatus 127, the output control unit 165 shifts the process to step S214.
  • the output control unit 165 performs the same process as in step S116 of FIG. A scanned image is generated and output (step S213).
  • control unit 161 determines whether or not the predetermined information has been printed on the medium and whether or not the scanned image has been generated (step S214). If the predetermined information has not been printed on the medium or the scanned image has not been generated yet, the control unit 161 returns the process to step S210 and repeats the processes of steps S210 to S214. On the other hand, when the predetermined information has been printed on the medium and the scanned image has been generated, the control unit 161 shifts the process to step S215. When printing on the medium by the printing apparatus 414 is stopped in step S209, the control unit 161 shifts the process to step S215 only on condition that the scanned image has already been generated.
  • the medium transfer device 400 satisfactorily controls printing on the medium while suppressing an increase in the device cost. It became possible to do.
  • FIG. 15 is a diagram showing a schematic configuration of a processing circuit 560 in a medium transfer device according to another embodiment.
  • the processing circuit 560 is used in place of the processing circuit 160 of the medium transfer device 100 or the medium transfer device 400, and executes the medium reading process in place of the processing circuit 160.
  • the processing circuit 560 includes a control circuit 561, a detection circuit 562, a determination circuit 563, a print determination circuit 564, an output control circuit 565, and the like. Each of these parts may be composed of an independent integrated circuit, a microprocessor, firmware, or the like.
  • the control circuit 561 is an example of the control unit and has the same function as the control unit 161.
  • the control circuit 561 receives an operation signal from the operation device 107, a first medium signal from the first medium sensor 111 or 411, and a second medium signal from the second medium sensor 121, and determines whether or not to print from the storage device 150. And read out the judgment result of printing on the medium.
  • the control circuit 561 is connected to the first motor 141 or 441, the second motor 142 or 442, and the printing device 114 or 414 so as to control the transfer and printing of the medium according to each received signal and the read determination result. Output a control signal.
  • the control circuit 561 executes an abnormality process when the printability determination result indicates that printing cannot be performed on the medium.
  • the detection circuit 562 is an example of the detection unit and has the same function as the detection unit 162.
  • the detection circuit 562 receives a detection signal or a printing device image from the printing device sensor 115, 215, 315 or 415, and detects the arrangement position of the printing device 114 or 414 based on the received detection signal or the printing device image.
  • the detection result is stored in the storage device 150.
  • the determination circuit 563 is an example of the determination unit and has the same function as the determination unit 163.
  • the determination circuit 563 receives the input image from the image pickup device 127, and reads out the detection result of the arrangement position of the printing device 114 or 414 from the storage device 150.
  • the determination circuit 563 determines whether or not printing is possible on the medium based on the received input image and the read detection result, and stores the determination result in the storage device 150.
  • the print determination circuit 564 is an example of the print determination unit and has the same function as the print determination unit 164.
  • the print determination circuit 564 receives an input image from the image pickup apparatus 127, determines whether or not printing is performed on the medium based on the received input image, and stores the determination result in the storage device 150.
  • the output control circuit 565 is an example of the output control unit and has the same function as the output control unit 165.
  • the output control circuit 565 receives the third medium signal from the third medium sensor 126, and receives the input image from the image pickup apparatus 127 according to the third medium signal.
  • the output control circuit 565 generates a read image based on the received input image and transmits it to the information processing device via the interface device 143.
  • the medium transfer device 100 or the medium transfer device 400 can satisfactorily control printing on a medium while suppressing an increase in device cost even when the processing circuit 560 is used. It became.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Controlling Sheets Or Webs (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

Provided are a medium conveyance device, a control method, and a control program by which printing on a medium can be favorably controlled while suppressing increases in device costs. The medium conveyance device comprises: a conveyance unit that conveys a medium; a printing unit that prints on the conveyed medium and is provided so as to be moveable in a direction orthogonal to the medium conveyance direction; a detection unit that detects the installation position of the printing unit in a direction orthogonal to the medium conveyance direction; an imaging unit that images the conveyed medium and generates an input image; a determination unit that compares the installation position with the medium position detected from the input image and determines whether printing by the printing unit can be carried out on the medium; and a control unit that executes an abnormality process if it is determined by the determination unit that printing cannot be carried out on the medium.

Description

媒体搬送装置、制御方法及び制御プログラムMedia transfer device, control method and control program
 本発明は、媒体搬送装置、制御方法及び制御プログラムに関し、特に、搬送される媒体を撮像するとともに媒体上に印刷を行う媒体搬送装置、制御方法及び制御プログラムに関する。 The present invention relates to a medium transport device, a control method and a control program, and more particularly to a medium transport device, a control method and a control program that captures an image of the transported medium and prints on the medium.
 原稿等の媒体を搬送させて読み取るスキャナ等の媒体搬送装置において、読み取った媒体に証跡を残すために、所定の文字又は数字等の情報を印刷する機能が利用されている。このような媒体搬送装置では、搬送される媒体に印刷する印刷装置が、利用者によって所望の位置にセットされるように、媒体搬送方向と直交する方向に移動可能に設けられている。しかしながら、搬送される媒体の端部より外側のように不適切な位置に印刷装置がセットされた場合、搬送される媒体に所定の情報が正しく印刷されない可能性がある。 In a medium transport device such as a scanner that transports and reads a medium such as a document, a function of printing information such as predetermined characters or numbers is used in order to leave a trail on the scanned medium. In such a medium transporting device, a printing device for printing on the transported medium is provided so as to be movable in a direction orthogonal to the medium transporting direction so that the printing device is set at a desired position by the user. However, if the printing device is set at an inappropriate position such as outside the end of the conveyed medium, the predetermined information may not be printed correctly on the conveyed medium.
 原稿を読み取り、読み取られた原稿に、2つのスタンプによって済スタンプを押印する原稿読取装置が開示されている(特許文献1を参照)。この原稿読取装置は、原稿ガイドの配置位置に基づいて原稿の幅を検知し、検知した幅に相当する距離だけ離間した2つのスタンプによって済スタンプを押印する。 A document reading device that reads a document and stamps the scanned document with two stamps is disclosed (see Patent Document 1). This document reading device detects the width of the document based on the arrangement position of the document guide, and stamps the finished stamp with two stamps separated by a distance corresponding to the detected width.
 原稿搬送方向と略直交する原稿幅方向に沿って移動でき、搬送される原稿に対して所定の印刷を行なうための印刷手段を備える原稿搬送装置が開示されている(特許文献2を参照)。この原稿搬送装置では、印刷手段よりも搬送方向上流側の搬送経路中に設けられた検出手段が、搬送される原稿が印刷手段による印刷領域の範囲内を通過するか否かを検出する。 A document transporting device that can move along a document width direction substantially orthogonal to the document transporting direction and is provided with a printing means for performing predetermined printing on the transported document is disclosed (see Patent Document 2). In this document transfer device, the detection means provided in the transfer path on the upstream side in the transfer direction from the printing means detects whether or not the transferred document passes within the range of the printing area by the printing means.
特開2006-173898号公報Japanese Unexamined Patent Publication No. 2006-1738998 特開2008-162728号公報Japanese Unexamined Patent Publication No. 2008-162728
 搬送される媒体を撮像するとともに媒体上に印刷を行う媒体搬送装置では、装置コストが増大することを抑制しつつ、媒体への印刷を良好に制御することが望まれている。 In a medium transporting device that captures an image of a transported medium and prints on the medium, it is desired to control printing on the medium well while suppressing an increase in device cost.
 本発明の目的は、装置コストが増大することを抑制しつつ、媒体への印刷を良好に制御することが可能な媒体搬送装置、制御方法及び制御プログラムを提供することにある。 An object of the present invention is to provide a medium transfer device, a control method, and a control program capable of satisfactorily controlling printing on a medium while suppressing an increase in device cost.
 本発明の一側面に係る媒体搬送装置は、媒体を搬送する搬送部と、媒体搬送方向と直交する方向に移動可能に設けられ、且つ、搬送される媒体に印刷する印刷部と、媒体搬送方向と直交する方向における印刷部の配置位置を検出する検出部と、搬送される媒体を撮像して入力画像を生成する撮像部と、入力画像から検出された媒体位置と配置位置とを比較して、媒体上に印刷部による印刷が可能であるか否かを判定する判定部と、判定部により媒体上に印刷ができないと判定された場合に、異常処理を実行する制御部と、を有する。 The medium transport device according to one aspect of the present invention includes a transport unit that transports the medium, a printing unit that is movably provided in a direction orthogonal to the medium transport direction and that prints on the transported medium, and a medium transport direction. A detection unit that detects the placement position of the printing unit in a direction orthogonal to the It has a determination unit for determining whether or not printing is possible on the medium, and a control unit for executing an abnormality process when the determination unit determines that printing on the medium is not possible.
 本発明の一側面に係る制御方法は、媒体を搬送する搬送部と、媒体搬送方向と直交する方向に移動可能に設けられ、且つ、搬送される媒体に印刷する印刷部と、媒体搬送方向と直交する方向における印刷部の配置位置を検出する検出部と、搬送される媒体を撮像して入力画像を生成する撮像部と、を有する媒体搬送装置の制御方法であって、入力画像から検出された媒体位置と配置位置とを比較して、媒体上に印刷部による印刷が可能であるか否かを判定し、媒体上に印刷ができないと判定された場合に、異常処理を実行する。 The control method according to one aspect of the present invention includes a transport unit for transporting a medium, a printing unit movably provided in a direction orthogonal to the medium transport direction, and a printing unit for printing on the transported medium, and a medium transport direction. It is a control method of a medium transport device having a detection unit that detects the arrangement position of the print unit in the orthogonal direction and an image pickup unit that captures an image of the conveyed medium to generate an input image, and is detected from the input image. It is determined whether or not printing by the printing unit is possible on the medium by comparing the printed medium position and the arranged position, and when it is determined that printing is not possible on the medium, an abnormality process is executed.
 本発明の一側面に係る制御プログラムは、媒体を搬送する搬送部と、媒体搬送方向と直交する方向に移動可能に設けられ、且つ、搬送される媒体に印刷する印刷部と、媒体搬送方向と直交する方向における印刷部の配置位置を検出する検出部と、搬送される媒体を撮像して入力画像を生成する撮像部と、を有する媒体搬送装置の制御プログラムであって、入力画像から検出された媒体位置と配置位置とを比較して、媒体上に印刷部による印刷が可能であるか否かを判定し、媒体上に印刷ができないと判定された場合に、異常処理を実行することを媒体搬送装置に実行させる。 The control program according to one aspect of the present invention includes a transport unit for transporting a medium, a printing unit movably provided in a direction orthogonal to the medium transport direction, and a printing unit for printing on the transported medium, and a medium transport direction. It is a control program of a medium transport device having a detection unit that detects the arrangement position of the printing unit in the orthogonal direction and an image pickup unit that captures an image of the conveyed medium and generates an input image, and is detected from the input image. It is determined that whether or not the printing unit can print on the medium is possible by comparing the position of the medium and the position of the printed image, and if it is determined that printing is not possible on the medium, an abnormality process is executed. Let the media transfer device execute.
 本発明によれば、媒体搬送装置、制御方法及び制御プログラムは、装置コストが増大することを抑制しつつ、媒体への印刷を良好に制御することが可能となる。 According to the present invention, the medium transfer device, the control method, and the control program can satisfactorily control printing on the medium while suppressing an increase in device cost.
 本発明の目的及び効果は、特に請求項において指摘される構成要素及び組み合わせを用いることによって認識され且つ得られるだろう。前述の一般的な説明及び後述の詳細な説明の両方は、例示的及び説明的なものであり、特許請求の範囲に記載されている本発明を制限するものではない。 The object and effect of the present invention will be recognized and obtained specifically by using the components and combinations pointed out in the claims. Both the general description described above and the detailed description below are exemplary and descriptive and do not limit the invention described in the claims.
実施形態に係る媒体搬送装置100を示す斜視図である。It is a perspective view which shows the medium transporting apparatus 100 which concerns on embodiment. 媒体搬送装置100内部の搬送経路を説明するための図である。It is a figure for demonstrating the transfer path in the medium transfer apparatus 100. 印刷装置センサ115等について説明するための模式図である。It is a schematic diagram for demonstrating the printing apparatus sensor 115 and the like. 媒体搬送装置100の概略構成を示すブロック図である。It is a block diagram which shows the schematic structure of the medium transfer apparatus 100. 記憶装置150及び処理回路160の概略構成を示す図である。It is a figure which shows the schematic structure of the storage device 150 and the processing circuit 160. 媒体読取処理の動作の例を示すフローチャートである。It is a flowchart which shows the example of the operation of a medium reading process. 媒体読取処理の動作の例を示すフローチャートである。It is a flowchart which shows the example of the operation of a medium reading process. 他の印刷装置センサ215等について説明するための模式図である。It is a schematic diagram for demonstrating another printing apparatus sensor 215 and the like. 他の印刷装置センサ315等について説明するための模式図である。It is a schematic diagram for demonstrating another printing apparatus sensor 315 and the like. 他の実施形態に係る媒体搬送装置400を示す斜視図である。It is a perspective view which shows the medium transfer apparatus 400 which concerns on other embodiment. 媒体搬送装置400内部の搬送経路を説明するための図である。It is a figure for demonstrating the transfer path in the medium transfer apparatus 400. 媒体搬送装置400の概略構成を示すブロック図である。It is a block diagram which shows the schematic structure of the medium transfer apparatus 400. 他の媒体読取処理の動作の例を示すフローチャートである。It is a flowchart which shows the example of the operation of another medium reading process. 他の媒体読取処理の動作の例を示すフローチャートである。It is a flowchart which shows the example of the operation of another medium reading process. 他の処理回路560の概略構成を示す図である。It is a figure which shows the schematic structure of another processing circuit 560.
 以下、本発明の一側面に係る媒体搬送装置について図を参照しつつ説明する。但し、本発明の技術的範囲はそれらの実施の形態に限定されず、特許請求の範囲に記載された発明とその均等物に及ぶ点に留意されたい。 Hereinafter, the medium transfer device according to one aspect of the present invention will be described with reference to the drawings. However, it should be noted that the technical scope of the present invention is not limited to those embodiments, but extends to the inventions described in the claims and their equivalents.
 図1は、イメージスキャナとして構成された媒体搬送装置100を示す斜視図である。媒体搬送装置100は、原稿である媒体を搬送し、撮像するとともに、その媒体に所定の情報を印刷する。媒体は、用紙、厚紙、プラスチックカード、冊子又はパスポート等である。所定の情報は、媒体が撮像された証跡を残すために利用者に予め設定された文字又は数字等である。媒体搬送装置100は、ファクシミリ、複写機、プリンタ複合機(MFP、Multifunction Peripheral)等でもよい。なお、搬送される媒体は、原稿でなく印刷対象物等でもよく、媒体搬送装置100はプリンタ等でもよい。 FIG. 1 is a perspective view showing a medium transfer device 100 configured as an image scanner. The medium transport device 100 transports a medium as a document, takes an image, and prints predetermined information on the medium. The medium is paper, cardboard, plastic cards, booklets, passports, and the like. The predetermined information is characters or numbers preset to the user in order to leave a trail in which the medium is imaged. The medium transfer device 100 may be a facsimile, a copying machine, a multifunction printer (MFP, Multifunction Peripheral) or the like. The medium to be conveyed may be a print object or the like instead of the original, and the medium transfer device 100 may be a printer or the like.
 媒体搬送装置100は、本体101、プリンタユニット102、載置台103及び排出台104等を備える。本体101は、本体下側筐体105、本体上側筐体106、操作装置107及び表示装置108等を備える。プリンタユニット102は、プリンタ下側筐体109及びプリンタ上側筐体110等を備える。 The medium transfer device 100 includes a main body 101, a printer unit 102, a mounting table 103, a discharging table 104, and the like. The main body 101 includes a main body lower housing 105, a main body upper housing 106, an operating device 107, a display device 108, and the like. The printer unit 102 includes a printer lower housing 109, a printer upper housing 110, and the like.
 本体下側筐体105は、プリンタユニット102に対して着脱可能に係合されるように、プリンタユニット102上に載置される。プリンタユニット102は、L字状に形成されている。本体下側筐体105は、載置台103側の側面と下面とが、それぞれプリンタユニット102の略鉛直方向に延伸する部分の排出台104側の側面と略水平方向に延伸する部分の上面とに当接するように配置される。本体上側筐体106は、本体101の上面を覆う位置に配置され、媒体つまり時、本体101内部の清掃時等に開閉可能なようにヒンジにより本体下側筐体105に係合している。本体上側筐体106は、載置台103側の側面がプリンタユニット102の排出台104側の側面と当接するように配置される。 The lower housing 105 of the main body is placed on the printer unit 102 so as to be detachably engaged with the printer unit 102. The printer unit 102 is formed in an L shape. In the lower housing 105 of the main body, the side surface and the lower surface on the mounting table 103 side are on the side surface on the discharge table 104 side of the portion extending in the substantially vertical direction of the printer unit 102 and the upper surface of the portion extending in the substantially horizontal direction, respectively. Arranged to abut. The main body upper housing 106 is arranged at a position covering the upper surface of the main body 101, and is engaged with the main body lower housing 105 by a hinge so as to be openable and closable when the medium, that is, when cleaning the inside of the main body 101. The upper housing 106 of the main body is arranged so that the side surface of the mounting table 103 side comes into contact with the side surface of the printer unit 102 on the discharging table 104 side.
 操作装置107は、ボタン等の入力デバイス及び入力デバイスから信号を取得するインタフェース回路を有し、利用者による入力操作を受け付け、利用者の入力操作に応じた操作信号を出力する。表示装置108は、液晶、有機EL(Electro-Luminescence)等を含むディスプレイ及びディスプレイに画像データを出力するインタフェース回路を有し、画像データをディスプレイに表示する。 The operation device 107 has an input device such as a button and an interface circuit for acquiring a signal from the input device, accepts an input operation by the user, and outputs an operation signal according to the input operation of the user. The display device 108 has a display including a liquid crystal display, an organic EL (Electro-Luminescence), and an interface circuit for outputting image data to the display, and displays the image data on the display.
 プリンタユニット102は、搬送される媒体に所定の情報を印刷するインプリンタである。プリンタ上側筐体110は、プリンタユニット102の上面を覆う位置に配置され、媒体つまり時、プリンタユニット102内部の清掃時等に開閉可能なようにヒンジによりプリンタ下側筐体109に係合している。なお、プリンタユニット102は、本体101と別体で構成されるのでなく、本体101と一体に構成されてもよい。 The printer unit 102 is an imprinter that prints predetermined information on a conveyed medium. The printer upper housing 110 is arranged at a position that covers the upper surface of the printer unit 102, and is engaged with the printer lower housing 109 by a hinge so that the printer unit can be opened and closed when the medium is blocked, that is, when the inside of the printer unit 102 is cleaned, and the like. There is. The printer unit 102 may not be configured separately from the main body 101, but may be integrally configured with the main body 101.
 載置台103は、搬送される媒体を載置可能にプリンタ下側筐体109に係合している。排出台104は、排出された媒体を保持可能に本体上側筐体106に係合している。排出台104は、媒体搬送装置100の前面(本体上側筐体106)と対向するように折り畳み可能に設けられている。 The mounting table 103 is engaged with the printer lower housing 109 so that the medium to be transported can be mounted. The discharge table 104 is engaged with the main body upper housing 106 so as to be able to hold the discharged medium. The discharge table 104 is provided so as to be foldable so as to face the front surface of the medium transfer device 100 (main body upper housing 106).
 図2は、媒体搬送装置100内部の搬送経路を説明するための図である。 FIG. 2 is a diagram for explaining a transport path inside the medium transport device 100.
 媒体搬送装置100内部の搬送経路は、プリンタユニット102内部に、第1媒体センサ111、給送ローラ112、ブレーキローラ113、印刷装置114、印刷装置センサ115、第1搬送ローラ116及び第2搬送ローラ117等を有する。この搬送経路は、本体101内部に、第2媒体センサ121、第3搬送ローラ122、第4搬送ローラ123、第5搬送ローラ124、第6搬送ローラ125、第3媒体センサ126、第1撮像装置127a、第2撮像装置127b、第7搬送ローラ128及び第8搬送ローラ129等を有している。なお、各ローラの数は一つに限定されず、各ローラの数はそれぞれ複数でもよい。以下では、第1撮像装置127a及び第2撮像装置127bを総じて撮像装置127と称する場合がある。 The transfer path inside the medium transfer device 100 is a first medium sensor 111, a feed roller 112, a brake roller 113, a printing device 114, a printing device sensor 115, a first transfer roller 116, and a second transfer roller inside the printer unit 102. It has 117 and the like. This transport path includes a second medium sensor 121, a third transport roller 122, a fourth transport roller 123, a fifth transport roller 124, a sixth transport roller 125, a third medium sensor 126, and a first image pickup device inside the main body 101. It has 127a, a second image pickup device 127b, a seventh transfer roller 128, an eighth transfer roller 129, and the like. The number of each roller is not limited to one, and the number of each roller may be plural. Hereinafter, the first image pickup device 127a and the second image pickup device 127b may be collectively referred to as an image pickup device 127.
 本体101は、プリンタ下側筐体109の上面に設けられたツメ118を、本体下側筐体105の下面に設けられた穴131を介して凹部132に嵌合させることにより、プリンタユニット102と係合される。本体101がプリンタユニット102と係合した状態では、プリンタユニット102の媒体排出口が本体101の媒体流入口と対向する。プリンタ下側筐体109及び本体下側筐体105の上面は、媒体の搬送路の下側ガイド120aを形成し、プリンタ上側筐体110及び本体上側筐体106の下面は、媒体の搬送路の上側ガイド120bを形成する。プリンタ上側筐体110は、開閉可能なカバー110aを有し、利用者はカバー110aを開くことにより印刷装置114の配置位置を移動させることができる。 The main body 101 is fitted with the printer unit 102 by fitting the claws 118 provided on the upper surface of the lower housing 109 of the printer into the recess 132 via the holes 131 provided on the lower surface of the lower housing 105 of the main body. Be engaged. When the main body 101 is engaged with the printer unit 102, the medium discharge port of the printer unit 102 faces the medium inlet of the main body 101. The upper surfaces of the printer lower housing 109 and the main body lower housing 105 form the lower guide 120a of the medium transport path, and the lower surfaces of the printer upper housing 110 and the main body upper housing 106 form the medium transport path. The upper guide 120b is formed. The printer upper housing 110 has a cover 110a that can be opened and closed, and the user can move the arrangement position of the printing device 114 by opening the cover 110a.
 図2において矢印A1は媒体搬送方向を示す。以下では、上流とは媒体搬送方向A1の上流のことをいい、下流とは媒体搬送方向A1の下流のことをいう。 In FIG. 2, the arrow A1 indicates the medium transport direction. In the following, the upstream means the upstream of the medium transport direction A1, and the downstream means the downstream of the medium transport direction A1.
 第1媒体センサ111は、給送ローラ112及びブレーキローラ113より上流側に配置される。第1媒体センサ111は、接触検出センサを有し、載置台103に媒体が載置されているか否かを検出する。第1媒体センサ111は、載置台103に媒体が載置されている状態と載置されていない状態とで信号値が変化する第1媒体信号を生成して出力する。 The first medium sensor 111 is arranged on the upstream side of the feed roller 112 and the brake roller 113. The first medium sensor 111 has a contact detection sensor and detects whether or not a medium is mounted on the mounting table 103. The first medium sensor 111 generates and outputs a first medium signal whose signal value changes depending on whether the medium is mounted on the mounting table 103 or not.
 給送ローラ112及びブレーキローラ113は、媒体搬送方向A1において印刷装置114より上流側に設けられる。給送ローラ112は、プリンタ下側筐体109に設けられ、載置台103に載置された媒体を下側から順に給送する。ブレーキローラ113は、プリンタ上側筐体110に設けられ、給送ローラ112と対向して配置される。 The feed roller 112 and the brake roller 113 are provided on the upstream side of the printing device 114 in the medium transport direction A1. The feeding roller 112 is provided in the lower housing 109 of the printer, and feeds the media mounted on the mounting table 103 in order from the lower side. The brake roller 113 is provided in the upper housing 110 of the printer and is arranged so as to face the feeding roller 112.
 第2媒体センサ121は、第3搬送ローラ122及び第4搬送ローラ123より上流側に配置される。第2媒体センサ121は、接触検出センサを有し、その位置に媒体が存在するか否かを検出する。第2媒体センサ121は、第2媒体センサ121の位置に媒体が存在する状態と存在しない状態とで信号値が変化する第2媒体信号を生成して出力する。 The second medium sensor 121 is arranged on the upstream side of the third transfer roller 122 and the fourth transfer roller 123. The second medium sensor 121 has a contact detection sensor and detects whether or not a medium is present at the position thereof. The second medium sensor 121 generates and outputs a second medium signal whose signal value changes depending on whether a medium is present or not at the position of the second medium sensor 121.
 第3媒体センサ126は、第5搬送ローラ124及び第6搬送ローラ125より下流側且つ撮像装置127より上流側に配置される。第3媒体センサ126は、その位置に媒体が存在するか否かを検出する。第3媒体センサ126は、媒体の搬送路に対して一方の側に設けられた発光器及び受光器と、搬送路を挟んで発光器及び受光器と対向する位置に設けられたミラー等の反射部材とを含む。発光器は、搬送路に向けて光を照射する。一方、受光器は、発光器により照射され、反射部材により反射された光を受光し、受光した光の強度に応じた電気信号である第3媒体信号を生成して出力する。第3媒体センサ126の位置に媒体が存在する場合、発光器により照射された光はその媒体により遮光されるため、第3媒体センサ126の位置に媒体が存在する状態と存在しない状態とで第3媒体信号の信号値は変化する。なお、発光器及び受光器は、搬送路を挟んで相互に対向する位置に設けられ、反射部材は省略されてもよい。 The third medium sensor 126 is arranged on the downstream side of the fifth transfer roller 124 and the sixth transfer roller 125 and on the upstream side of the image pickup apparatus 127. The third medium sensor 126 detects whether or not a medium is present at that position. The third medium sensor 126 is a reflection of a light emitter and a light receiver provided on one side of the medium transport path and a mirror or the like provided at a position facing the light emitter and the light receiver across the transport path. Including members. The light emitter irradiates light toward the transport path. On the other hand, the light receiver receives the light irradiated by the light emitter and reflected by the reflecting member, and generates and outputs a third medium signal which is an electric signal according to the intensity of the received light. When a medium is present at the position of the third medium sensor 126, the light emitted by the light emitter is shielded by the medium, so that the light emitted by the light emitter is shielded by the medium. 3 The signal value of the medium signal changes. The light emitter and the light receiver are provided at positions facing each other across the transport path, and the reflective member may be omitted.
 第1撮像装置127aは、主走査方向に直線状に配列されたCMOS(Complementary Metal Oxide Semiconductor)による撮像素子を有する等倍光学系タイプのCIS(Contact Image Sensor)によるラインセンサを有する。また、第1撮像装置127aは、撮像素子上に像を結ぶレンズと、撮像素子から出力された電気信号を増幅し、アナログ/デジタル(A/D)変換するA/D変換器とを有する。第1撮像装置127aは、後述する処理回路からの制御に従って、搬送される媒体の表面を撮像して入力画像を生成し、出力する。第1撮像装置127aは、入力画像として、搬送されている媒体のラインセンサと対向する領域を撮像した1ライン分の画像を一定間隔毎に生成する。なお、第1撮像装置127aは、入力画像として所定ライン数分の画像を生成してもよい。 The first image sensor 127a has a line sensor by a 1x optical system type CIS (Contact Image Sensor) having a CMOS (Complementary Metal Oxide Semiconductor) image sensor arranged linearly in the main scanning direction. Further, the first image pickup device 127a has a lens that forms an image on the image pickup element and an A / D converter that amplifies an electric signal output from the image pickup element and converts it into analog / digital (A / D). The first image pickup apparatus 127a images the surface of the conveyed medium and generates and outputs an input image according to the control from the processing circuit described later. The first image pickup apparatus 127a generates, as an input image, an image for one line in which a region facing the line sensor of the conveyed medium is imaged at regular intervals. The first image pickup apparatus 127a may generate an image for a predetermined number of lines as an input image.
 同様に、第2撮像装置127bは、主走査方向に直線状に配列されたCMOSによる撮像素子を有する等倍光学系タイプのCISによるラインセンサを有する。また、第2撮像装置127bは、撮像素子上に像を結ぶレンズと、撮像素子から出力された電気信号を増幅し、A/D変換するA/D変換器とを有する。第2撮像装置127bは、処理回路からの制御に従って、搬送される媒体の裏面を撮像して入力画像を生成し、出力する。第2撮像装置127bは、入力画像として、搬送されている媒体のラインセンサと対向する領域を撮像した1ライン分の画像を一定間隔毎に生成する。なお、第2撮像装置127bは、入力画像として所定ライン数分の画像を生成してもよい。 Similarly, the second image pickup device 127b has a line sensor by CIS of the same magnification optical system type having a CMOS image pickup element linearly arranged in the main scanning direction. Further, the second image pickup apparatus 127b has a lens that forms an image on the image pickup element and an A / D converter that amplifies and A / D-converts an electric signal output from the image pickup element. The second image pickup apparatus 127b captures the back surface of the conveyed medium according to the control from the processing circuit, generates an input image, and outputs the input image. The second image pickup apparatus 127b generates, as an input image, an image for one line in which a region facing the line sensor of the conveyed medium is imaged at regular intervals. The second image pickup apparatus 127b may generate an image for a predetermined number of lines as an input image.
 第1撮像装置127a及び第2撮像装置127bは、撮像部の一例である。なお、媒体搬送装置100は、第1撮像装置127a及び第2撮像装置127bを一方だけ配置し、媒体の片面だけを読み取ってもよい。また、CMOSによる撮像素子を備える等倍光学系タイプのCISによるラインセンサの代わりに、CCD(Charge Coupled Device)による撮像素子を備える等倍光学系タイプのCISによるラインセンサが利用されてもよい。また、CMOS又はCCDによる撮像素子を備える縮小光学系タイプのラインセンサが利用されてもよい。 The first image pickup device 127a and the second image pickup device 127b are examples of the image pickup unit. In the medium transfer device 100, only one of the first image pickup device 127a and the second image pickup device 127b may be arranged, and only one side of the medium may be read. Further, instead of the line sensor by the 1x optical system type CIS equipped with the image sensor by CMOS, the line sensor by the 1x optical system type CIS provided by the image pickup element by CCD (Charge Coupled Device) may be used. Further, a reduced optical system type line sensor including a CMOS or CCD image sensor may be used.
 第7搬送ローラ128及び第8搬送ローラ129は、媒体搬送装置100が有するローラの中で最も下流側に配置され、媒体を排出台104に排出するための排出ローラとして機能する。第7搬送ローラ128及び/又は第8搬送ローラ129を回転軸として支持するシャフトは、処理回路からの制御に従って、媒体搬送方向と直交する幅方向の一端を中心に媒体搬送路の搬送面に沿って揺動可能に設けられる。即ち、第7搬送ローラ128及び/又は第8搬送ローラ129は、処理回路からの制御に従って、媒体の排出方向を変更可能に設けられる。 The 7th transfer roller 128 and the 8th transfer roller 129 are arranged on the most downstream side of the rollers included in the medium transfer device 100, and function as discharge rollers for discharging the medium to the discharge table 104. The shaft that supports the 7th transfer roller 128 and / or the 8th transfer roller 129 as a rotation axis is along the transfer surface of the medium transfer path centering on one end in the width direction orthogonal to the medium transfer direction according to the control from the processing circuit. It is provided so that it can swing. That is, the 7th transfer roller 128 and / or the 8th transfer roller 129 is provided so that the discharge direction of the medium can be changed according to the control from the processing circuit.
 載置台103に載置された媒体は、給送ローラ112が図2の矢印A2の方向に回転することによって、下側ガイド120aと上側ガイド120bの間を媒体搬送方向A1に向かって搬送される。ブレーキローラ113は、媒体搬送時、矢印A3の方向に回転する。給送ローラ112及びブレーキローラ113の働きにより、載置台103に複数の媒体が載置されている場合、載置台103に載置されている媒体のうち給送ローラ112と接触している媒体のみが分離される。これにより、分離された媒体以外の媒体の搬送が制限されるように動作する(重送の防止)。 The medium mounted on the mounting table 103 is conveyed in the medium transport direction A1 between the lower guide 120a and the upper guide 120b by the feeding roller 112 rotating in the direction of the arrow A2 in FIG. .. The brake roller 113 rotates in the direction of arrow A3 when the medium is conveyed. When a plurality of media are mounted on the mounting table 103 due to the functions of the feeding roller 112 and the brake roller 113, only the media in contact with the feeding roller 112 among the media mounted on the mounting table 103. Is separated. As a result, it operates so as to limit the transport of media other than the separated medium (prevention of double feeding).
 媒体は、下側ガイド120aと上側ガイド120bによりガイドされながら、印刷装置114の位置に送り込まれる。印刷装置114により印刷された媒体は、第1搬送ローラ116と第2搬送ローラ117の間に送り込まれる。媒体は、第1~第6搬送ローラ116~117、122~125がそれぞれ矢印A4~A9の方向に回転することによって、第1撮像装置127aと第2撮像装置127bの間に送り込まれる。撮像装置127により読み取られた媒体は、第7~第8搬送ローラ128~129がそれぞれ矢印A10~A11の方向に回転することによって排出台104上に排出される。給送ローラ112、ブレーキローラ113及び第1~第8搬送ローラ116~117、122~125、128~129は、媒体を搬送する搬送部の一例である。 The medium is fed to the position of the printing apparatus 114 while being guided by the lower guide 120a and the upper guide 120b. The medium printed by the printing apparatus 114 is fed between the first transfer roller 116 and the second transfer roller 117. The medium is fed between the first image pickup apparatus 127a and the second image pickup apparatus 127b by rotating the first to sixth transport rollers 116 to 117 and 122 to 125 in the directions of the arrows A4 to A9, respectively. The medium read by the image pickup apparatus 127 is discharged onto the discharge table 104 by rotating the seventh to eighth transport rollers 128 to 129 in the directions of the arrows A10 to A11, respectively. The feeding roller 112, the brake roller 113, and the first to eighth transport rollers 116 to 117, 122 to 125, and 128 to 129 are examples of transport units that transport media.
 図3は、印刷装置114及び印刷装置センサ115等について説明するための模式図である。図3は、カバー110aを開いた状態でプリンタ上側筐体110の一部を上方から見た模式図である。 FIG. 3 is a schematic diagram for explaining the printing device 114, the printing device sensor 115, and the like. FIG. 3 is a schematic view of a part of the printer upper housing 110 viewed from above with the cover 110a open.
 図3に示すように、印刷装置114は、印刷部の一例であり、媒体搬送方向と直交する幅方向A12に延伸するように設けられたレール114aに沿って、幅方向A12に移動可能に設けられる。また、図2に示すように、印刷装置114は、プリンタ上側筐体110に、媒体搬送方向A1において撮像装置127より上流側に配置される。これにより、撮像装置127は、印刷装置114により印刷された媒体を読み取ることが可能となり、媒体搬送装置100は、印刷装置114による印刷結果を含めてデータとして保存することが可能となる。 As shown in FIG. 3, the printing apparatus 114 is an example of a printing unit, and is provided so as to be movable in the width direction A12 along a rail 114a provided so as to extend in the width direction A12 orthogonal to the medium transport direction. Be done. Further, as shown in FIG. 2, the printing device 114 is arranged in the upper housing 110 of the printer on the upstream side of the image pickup device 127 in the medium transport direction A1. As a result, the image pickup apparatus 127 can read the medium printed by the printing apparatus 114, and the medium transfer apparatus 100 can store the printing result by the printing apparatus 114 as data.
 印刷装置114は、利用者による操作に従って、幅方向A12における所定位置に配置される。そして、印刷装置114は、処理回路からの制御に従って、搬送される媒体の裏面のその所定位置と対向する位置に所定の情報を印刷する。所定の情報は、操作装置107又は不図示の情報処理装置(例えば、パーソナルコンピュータ、携帯情報端末等)を用いて利用者により指定された文字、数字等の情報である。印刷装置114は、インクジェットタイプのプリンタであり、複数のインク噴射口が形成されたプリンタヘッドを有し、印刷装置114の位置を通過する媒体にインクを噴射することにより、媒体に所定の情報を印刷する。 The printing device 114 is arranged at a predetermined position in the width direction A12 according to the operation by the user. Then, the printing device 114 prints predetermined information at a position facing the predetermined position on the back surface of the conveyed medium according to the control from the processing circuit. The predetermined information is information such as characters and numbers specified by the user using the operation device 107 or an information processing device (for example, a personal computer, a personal digital assistant, etc.) (not shown). The printing device 114 is an inkjet type printer, has a printer head formed with a plurality of ink ejection ports, and ejects ink to a medium passing through the position of the printing device 114 to transmit predetermined information to the medium. Print.
 なお、印刷装置114に代えて、又は加えて、プリンタ下側筐体109に設けられ、搬送される媒体の表面に所定の情報を印刷する印刷装置が使用されてもよい。また、印刷装置114は、レーザータイプ等、インクジェットタイプ以外のプリンタでもよい。 In addition to or in addition to the printing device 114, a printing device provided in the lower housing 109 of the printer and printing predetermined information on the surface of the conveyed medium may be used. Further, the printing device 114 may be a printer other than the inkjet type such as a laser type.
 印刷装置センサ115は、媒体搬送方向A1において印刷装置114と重なるように、且つ、幅方向A12において搬送路側壁側の所定位置に配置され、配置された所定位置から印刷装置114までの距離を測定する測距センサである。印刷装置センサ115は、赤外線を照射してから反射した赤外線を受信するまでの時間差から、対向する位置に存在する物体までの距離を測定する。印刷装置センサ115は、発光器115a及び受光器115bを含む。発光器115aは、幅方向A12の中央側、即ち印刷装置114に向けて光(赤外光)を照射する。一方、受光器115bは、発光器115aにより照射され、印刷装置114により反射された光を受光し、発光器115aが光を照射してから受光器115bが光を受光するまでの時間に応じた電気信号である検出信号を生成して出力する。即ち、検出信号は、印刷装置センサ115が配置された所定位置から印刷装置114までの距離に応じた信号である。 The printing device sensor 115 is arranged so as to overlap the printing device 114 in the medium transport direction A1 and at a predetermined position on the side wall side of the transport path in the width direction A12, and measures the distance from the arranged predetermined position to the printing device 114. It is a distance measuring sensor. The printing device sensor 115 measures the distance to an object existing at an opposite position from the time difference between irradiating infrared rays and receiving the reflected infrared rays. The printing device sensor 115 includes a light emitter 115a and a light receiver 115b. The light emitter 115a irradiates light (infrared light) toward the center side in the width direction A12, that is, toward the printing apparatus 114. On the other hand, the photophore 115b is irradiated by the light emitter 115a, receives the light reflected by the printing device 114, and corresponds to the time from when the light emitter 115a irradiates the light until the light receiver 115b receives the light. A detection signal, which is an electrical signal, is generated and output. That is, the detection signal is a signal corresponding to the distance from the predetermined position where the printing device sensor 115 is arranged to the printing device 114.
 なお、印刷装置センサ115は、発光器115a及び受光器115bの代わりに、超音波を発信する発信器及び受信する受信器を含み、超音波を発信してから反射した超音波を受信するまでの時間差から、印刷装置114までの距離を測定してもよい。その場合、印刷装置センサ115は、発信器が超音波を発信してから受信器が超音波を受信するまでの時間に応じた電気信号を検出信号として生成する。または、印刷装置センサ115は、可聴音を発信する発信器及び受信する受信器を含み、可聴音を発信してから反射した可聴音を受信するまでの時間差から、印刷装置114までの距離を測定してもよい。その場合、印刷装置センサ115は、発信器が可聴音を発信してから受信器が可聴音を受信するまでの時間に応じた電気信号を検出信号として生成する。 The printing device sensor 115 includes a transmitter for transmitting ultrasonic waves and a receiver for receiving ultrasonic waves instead of the light emitting device 115a and the light receiving device 115b, from transmitting ultrasonic waves to receiving reflected ultrasonic waves. The distance to the printing device 114 may be measured from the time difference. In that case, the printing device sensor 115 generates an electric signal as a detection signal according to the time from the transmitter transmitting the ultrasonic wave to the receiver receiving the ultrasonic wave. Alternatively, the printing device sensor 115 includes a transmitter for transmitting an audible sound and a receiver for receiving the audible sound, and measures the distance to the printing device 114 from the time difference between transmitting the audible sound and receiving the reflected audible sound. You may. In that case, the printing device sensor 115 generates an electric signal as a detection signal according to the time from the transmitter transmitting the audible sound to the receiver receiving the audible sound.
 また、印刷装置114に金属等の導体が貼り付けられ、印刷装置センサ115として、コイルを含み、且つ、導体表面に発生する渦電流による磁気損失を検出する誘導型近接センサが使用されてもよい。その場合、印刷装置センサ115は、コイルにおけるインピーダンスの大きさに応じた電気信号を検出信号として生成する。または、印刷装置114に金属又は誘電体が貼り付けられ、印刷装置センサ115として、印刷装置114と印刷装置センサ115の間の静電容量の変化を検出する静電容量型近接センサが使用されてもよい。その場合、印刷装置センサ115は、印刷装置114と印刷装置センサ115の間の静電容量の大きさに応じた電気信号を検出信号として生成する。 Further, a conductor such as metal is attached to the printing device 114, and an inductive proximity sensor including a coil and detecting magnetic loss due to an eddy current generated on the conductor surface may be used as the printing device sensor 115. .. In that case, the printing device sensor 115 generates an electric signal as a detection signal according to the magnitude of the impedance in the coil. Alternatively, a metal or dielectric is attached to the printing device 114, and a capacitance type proximity sensor that detects a change in capacitance between the printing device 114 and the printing device sensor 115 is used as the printing device sensor 115. May be good. In that case, the printing device sensor 115 generates an electric signal as a detection signal according to the magnitude of the capacitance between the printing device 114 and the printing device sensor 115.
 また、印刷装置114に磁石が貼り付けられ、印刷装置センサ115として、印刷装置114と印刷装置センサ115の間の地場(磁界)の大きさを検出する磁気センサが使用されてもよい。その場合、印刷装置センサ115は、印刷装置114と印刷装置センサ115の間の磁界の大きさに応じた電気信号を検出信号として生成する。 Further, a magnet may be attached to the printing device 114, and a magnetic sensor for detecting the magnitude of the field (magnetic field) between the printing device 114 and the printing device sensor 115 may be used as the printing device sensor 115. In that case, the printing device sensor 115 generates an electric signal as a detection signal according to the magnitude of the magnetic field between the printing device 114 and the printing device sensor 115.
 また、印刷装置センサ115として、光学式のロータリエンコーダを含み、且つ、印刷装置114の初期位置(所定位置)からの移動量を検出するセンサが使用されてもよい。ロータリエンコーダは、多数のスリットが形成され且つ印刷装置114の移動に従って回転するように設けられた円板と、その円板を挟んで対向するように設けられた発光器及び受光器とを有する。その場合、印刷装置センサ115は、発光器と受光器の間にスリットが存在する状態と、スリットが存在せずに円板により遮られている状態との変化回数に応じた電気信号を検出信号として生成する。 Further, as the printing device sensor 115, a sensor including an optical rotary encoder and detecting the amount of movement of the printing device 114 from the initial position (predetermined position) may be used. The rotary encoder has a disk in which a large number of slits are formed and is provided so as to rotate according to the movement of the printing device 114, and a light emitter and a light receiver provided so as to face each other across the disk. In that case, the printing device sensor 115 detects an electric signal according to the number of changes between the state where the slit exists between the light emitter and the light receiver and the state where the slit does not exist and is blocked by the disk. Generate as.
 また、印刷装置センサ115として、光学式のリニアエンコーダを含み、且つ、印刷装置114の初期位置(所定位置)からの移動量を検出するセンサが使用されてもよい。光学式のリニアエンコーダは、格子目盛が形成されたガラススケールと、そのガラススケールを挟んで対向し且つ印刷装置114の移動に従って移動するように設けられた発光器及び受光器とを有する。その場合、印刷装置センサ115は、受光器における光量変化回数に応じた電気信号を検出信号として生成する。 Further, as the printing device sensor 115, a sensor including an optical linear encoder and detecting the amount of movement of the printing device 114 from the initial position (predetermined position) may be used. The optical linear encoder has a glass scale on which a grid scale is formed, and a light emitter and a light receiver provided so as to face each other across the glass scale and move according to the movement of the printing device 114. In that case, the printing device sensor 115 generates an electric signal as a detection signal according to the number of changes in the amount of light in the light receiver.
 また、印刷装置センサ115として、磁気式のリニアエンコーダを含み、且つ、印刷装置114の初期位置(所定位置)からの移動量を検出するセンサが使用されてもよい。磁気式のリニアエンコーダは、所定の磁気パターンが形成された磁気スケールと、その磁気スケールと対向し且つ印刷装置114の移動に従って移動するように設けられた磁気検出ヘッドとを有する。その場合、印刷装置センサ115は、磁気検出ヘッドが検出した磁気変化回数に応じた電気信号を検出信号として生成する。 Further, as the printing device sensor 115, a sensor including a magnetic linear encoder and detecting the amount of movement of the printing device 114 from the initial position (predetermined position) may be used. The magnetic linear encoder has a magnetic scale on which a predetermined magnetic pattern is formed, and a magnetic detection head provided so as to face the magnetic scale and move according to the movement of the printing device 114. In that case, the printing device sensor 115 generates an electric signal as a detection signal according to the number of magnetic changes detected by the magnetic detection head.
 また、印刷装置センサ115として、摺動抵抗器を含み、且つ、摺動抵抗器による電圧を検出するセンサが使用されてもよい。摺動抵抗器は、幅方向A12に延伸し且つ両端の端子から定電圧がかけられる抵抗体と、その抵抗体に当接しながら印刷装置114の移動に従って移動するように設けられた接点(摺動子)とを有する。その場合、印刷装置センサ115は、抵抗体の一端から摺動子までにかかる電圧の大きさに応じた電気信号を検出信号として生成する。 Further, as the printing device sensor 115, a sensor including a sliding resistor and detecting a voltage by the sliding resistor may be used. The sliding resistor is a resistor that is stretched in the width direction A12 and a constant voltage is applied from the terminals at both ends, and a contact (sliding) that moves according to the movement of the printing device 114 while abutting against the resistor. Has a child). In that case, the printing device sensor 115 generates an electric signal as a detection signal according to the magnitude of the voltage applied from one end of the resistor to the slider.
 図4は、媒体搬送装置100の概略構成を示すブロック図である。 FIG. 4 is a block diagram showing a schematic configuration of the medium transfer device 100.
 媒体搬送装置100は、前述した構成に加えて、第1モータ141、第2モータ142、インタフェース装置143、記憶装置150及び処理回路160等をさらに有する。 The medium transfer device 100 further includes a first motor 141, a second motor 142, an interface device 143, a storage device 150, a processing circuit 160, and the like, in addition to the above-described configuration.
 第1モータ141は、一つ又は複数のモータを含み、処理回路160からの制御信号によって、給送ローラ112、ブレーキローラ113、第1~第8搬送ローラ116~117、122~125、128~129を駆動して回転させ、媒体を給送及び搬送させる。 The first motor 141 includes one or a plurality of motors, and the feed roller 112, the brake roller 113, the first to eighth conveyor rollers 116 to 117, 122 to 125, 128 to the control signal from the processing circuit 160 are used. The 129 is driven and rotated to feed and convey the medium.
 第2モータ142は、処理回路160からの制御信号によって、第7搬送ローラ128及び/又は第8搬送ローラ129を回転軸として支持するシャフトを幅方向A12の一端を中心に媒体搬送路の搬送面に沿って回転させる。これにより、第2モータ142は、第7搬送ローラ128及び第8搬送ローラ129による媒体の排出方向を変更する。 The second motor 142 receives a control signal from the processing circuit 160 to support a shaft that supports the seventh transfer roller 128 and / or the eighth transfer roller 129 as a rotation axis, and the transfer surface of the medium transfer path centering on one end in the width direction A12. Rotate along. As a result, the second motor 142 changes the discharge direction of the medium by the seventh transfer roller 128 and the eighth transfer roller 129.
 インタフェース装置143は、例えばUSB等のシリアルバスに準じるインタフェース回路を有し、情報処理装置と電気的に接続して入力画像及び各種の情報を送受信する。また、インタフェース装置143の代わりに、無線信号を送受信するアンテナと、所定の通信プロトコルに従って、無線通信回線を通じて信号の送受信を行うための無線通信インタフェース装置とを有する通信部が用いられてもよい。所定の通信プロトコルは、例えば無線LAN(Local Area Network)である。 The interface device 143 has an interface circuit similar to a serial bus such as USB, and is electrically connected to an information processing device to transmit and receive input images and various information. Further, instead of the interface device 143, a communication unit having an antenna for transmitting and receiving a wireless signal and a wireless communication interface device for transmitting and receiving a signal through a wireless communication line according to a predetermined communication protocol may be used. The predetermined communication protocol is, for example, a wireless LAN (Local Area Network).
 記憶装置150は、RAM(Random Access Memory)、ROM(Read Only Memory)等のメモリ装置、ハードディスク等の固定ディスク装置、又はフレキシブルディスク、光ディスク等の可搬用の記憶装置等を有する。また、記憶装置150には、媒体搬送装置100の各種処理に用いられるコンピュータプログラム、データベース、テーブル等が格納される。コンピュータプログラムは、コンピュータ読み取り可能な可搬型記録媒体から、公知のセットアッププログラム等を用いて記憶装置150にインストールされてもよい。可搬型記録媒体は、例えばCD-ROM(compact disc read only memory)、DVD-ROM(digital versatile disc read only memory)等である。 The storage device 150 includes a memory device such as a RAM (RandomAccessMemory) and a ROM (ReadOnlyMemory), a fixed disk device such as a hard disk, or a portable storage device such as a flexible disk and an optical disk. Further, the storage device 150 stores computer programs, databases, tables, etc. used for various processes of the medium transfer device 100. The computer program may be installed in the storage device 150 from a computer-readable portable recording medium using a known setup program or the like. The portable recording medium is, for example, a CD-ROM (compact disc read only memory), a DVD-ROM (digital versatile disc read only memory), or the like.
 処理回路160は、予め記憶装置150に記憶されているプログラムに基づいて動作する。処理回路は、例えばCPU(Central Processing Unit)である。処理回路160として、DSP(digital signal processor)、LSI(large scale integration)、ASIC(Application Specific Integrated Circuit)、FPGA(Field-Programmable Gate Array)等が用いられてもよい。 The processing circuit 160 operates based on a program stored in the storage device 150 in advance. The processing circuit is, for example, a CPU (Central Processing Unit). As the processing circuit 160, a DSP (digital signal processor), an LSI (large scale integration), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or the like may be used.
 処理回路160は、操作装置107、表示装置108、第1媒体センサ111、印刷装置114、印刷装置センサ115、第2媒体センサ121、第3媒体センサ126、撮像装置127、第1モータ141、第2モータ142、インタフェース装置143及び記憶装置150等と接続され、これらの各部を制御する。処理回路160は、第1モータ141を駆動して各ローラに媒体を搬送させ、印刷装置114にその媒体に所定の情報を印刷させ、撮像装置127から入力画像を取得してインタフェース装置143を介して情報処理装置に送信する。特に、処理回路160は、印刷装置センサ115から受信した検出信号と入力画像とに基づいて、媒体上に印刷が可能であるか否かを判定し、判定結果に基づいて異常処理を実行する。 The processing circuit 160 includes an operation device 107, a display device 108, a first medium sensor 111, a printing device 114, a printing device sensor 115, a second medium sensor 121, a third medium sensor 126, an image pickup device 127, a first motor 141, and a first. 2 It is connected to a motor 142, an interface device 143, a storage device 150, and the like, and controls each of these parts. The processing circuit 160 drives a first motor 141 to convey a medium to each roller, causes a printing device 114 to print predetermined information on the medium, acquires an input image from the image pickup device 127, and transmits the input image via the interface device 143. And send it to the information processing device. In particular, the processing circuit 160 determines whether or not printing is possible on the medium based on the detection signal received from the printing device sensor 115 and the input image, and executes abnormality processing based on the determination result.
 図5は、記憶装置150及び処理回路160の概略構成を示す図である。 FIG. 5 is a diagram showing a schematic configuration of a storage device 150 and a processing circuit 160.
 図5に示すように、記憶装置150には、制御プログラム151、検出プログラム152、判定プログラム153、印刷判定プログラム154及び出力制御プログラム155等が記憶される。これらの各プログラムは、プロセッサ上で動作するソフトウェアにより実装される機能モジュールである。処理回路160は、記憶装置150に記憶された各プログラムを読み取り、読み取った各プログラムに従って動作する。これにより、処理回路160は、制御部161、検出部162、判定部163、印刷判定部164及び出力制御部165として機能する。 As shown in FIG. 5, the storage device 150 stores a control program 151, a detection program 152, a determination program 153, a print determination program 154, an output control program 155, and the like. Each of these programs is a functional module implemented by software running on the processor. The processing circuit 160 reads each program stored in the storage device 150 and operates according to each read program. As a result, the processing circuit 160 functions as a control unit 161, a detection unit 162, a determination unit 163, a print determination unit 164, and an output control unit 165.
 図6、図7は、媒体搬送装置100の媒体読取処理の動作の例を示すフローチャートである。 6 and 7 are flowcharts showing an example of the operation of the medium reading process of the medium transport device 100.
 以下、図6、図7に示したフローチャートを参照しつつ、媒体搬送装置100の媒体読取処理の動作の例を説明する。なお、以下に説明する動作のフローは、予め記憶装置150に記憶されているプログラムに基づき主に処理回路160により媒体搬送装置100の各要素と協働して実行される。図6、図7に示す動作のフローは、定期的に実行される。 Hereinafter, an example of the operation of the medium reading process of the medium transporting apparatus 100 will be described with reference to the flowcharts shown in FIGS. 6 and 7. The operation flow described below is mainly executed by the processing circuit 160 in cooperation with each element of the medium transfer device 100 based on the program stored in the storage device 150 in advance. The flow of operations shown in FIGS. 6 and 7 is periodically executed.
 最初に、制御部161は、利用者により操作装置107を用いて媒体の読み取りの指示が入力されて、媒体の読み取りを指示する操作信号を操作装置107から受信するまで待機する(ステップS101)。 First, the control unit 161 waits until the user inputs an instruction to read the medium using the operation device 107 and receives an operation signal instructing to read the medium from the operation device 107 (step S101).
 次に、制御部161は、第1媒体センサ111から第1媒体信号を取得し、取得した第1媒体信号に基づいて、載置台103に媒体が載置されているか否かを判定する(ステップS102)。 Next, the control unit 161 acquires the first medium signal from the first medium sensor 111, and determines whether or not the medium is mounted on the mounting table 103 based on the acquired first medium signal (step). S102).
 載置台103に媒体が載置されていない場合、制御部161は、ステップS101へ処理を戻し、操作装置107から新たに操作信号を受信するまで待機する。 When the medium is not mounted on the mounting table 103, the control unit 161 returns the process to step S101 and waits until a new operation signal is received from the operating device 107.
 一方、載置台103に媒体が載置されている場合、検出部162は、媒体搬送方向と直交する幅方向A12における印刷装置114の配置位置を検出する(ステップS103)。検出部162は、印刷装置センサ115から検出信号を取得し、取得した検出信号に基づいて、印刷装置114の配置位置を検出する。媒体搬送装置100は、検出信号の信号値と、幅方向A12における印刷装置114の配置位置との対応関係を記憶した位置テーブルを予め記憶装置150に記憶する。検出部162は、位置テーブルを参照して、検出信号の信号値に対応する配置位置を特定することにより、印刷装置114の配置位置を検出する。なお、幅方向A12における印刷装置114の印刷範囲を考慮して、位置テーブルにおいて、印刷装置114の配置位置として印刷装置114の印刷領域が記憶され、検出部162は、印刷装置114の配置位置として印刷装置114の印刷領域を検出してもよい。 On the other hand, when the medium is mounted on the mounting table 103, the detection unit 162 detects the placement position of the printing device 114 in the width direction A12 orthogonal to the medium transport direction (step S103). The detection unit 162 acquires a detection signal from the printing device sensor 115, and detects the arrangement position of the printing device 114 based on the acquired detection signal. The medium transfer device 100 stores in advance a position table that stores the correspondence between the signal value of the detection signal and the arrangement position of the printing device 114 in the width direction A12 in the storage device 150. The detection unit 162 detects the arrangement position of the printing apparatus 114 by referring to the position table and specifying the arrangement position corresponding to the signal value of the detection signal. In consideration of the printing range of the printing device 114 in the width direction A12, the print area of the printing device 114 is stored as the placement position of the printing device 114 in the position table, and the detection unit 162 is used as the placement position of the printing device 114. The print area of the printing apparatus 114 may be detected.
 このように、検出部162は、印刷装置センサ115により検出された、所定位置から印刷装置114までの距離に基づいて、幅方向A12における印刷装置114の配置位置を検出する。検出部162は、距離センサを利用することにより、精度良く印刷装置114の配置位置を特定することができる。 As described above, the detection unit 162 detects the arrangement position of the printing device 114 in the width direction A12 based on the distance from the predetermined position to the printing device 114 detected by the printing device sensor 115. The detection unit 162 can accurately specify the arrangement position of the printing device 114 by using the distance sensor.
 次に、制御部161は、第1モータ141を駆動して回転させ、給送ローラ112、ブレーキローラ113、第1~第8搬送ローラ116~117、122~125、128~129を回転させて、媒体を給送及び搬送させる(ステップS104)。 Next, the control unit 161 drives and rotates the first motor 141 to rotate the feed roller 112, the brake roller 113, and the first to eighth transport rollers 116 to 117, 122 to 125, and 128 to 129. , Feeding and transporting the medium (step S104).
 次に、判定部163は、撮像装置127から入力画像を取得する(ステップS105)。なお、判定部163は、媒体の先端が撮像装置127の手前に到達した時に入力画像の取得を開始してもよい。その場合、判定部163は、第3媒体センサ126から第3媒体信号を定期的に受信し、第3媒体信号の信号値が、媒体が存在しないことを示す値から存在することを示す値に変化した場合、媒体の先端が撮像装置127の手前に到達したと判定する。これにより、判定部163は、媒体読取処理の処理負荷を低減させることができる。 Next, the determination unit 163 acquires an input image from the image pickup device 127 (step S105). The determination unit 163 may start acquiring the input image when the tip of the medium reaches the front of the image pickup apparatus 127. In that case, the determination unit 163 periodically receives the third medium signal from the third medium sensor 126, and the signal value of the third medium signal is changed from the value indicating that the medium does not exist to the value indicating that the medium exists. If it changes, it is determined that the tip of the medium has reached the front of the image pickup apparatus 127. As a result, the determination unit 163 can reduce the processing load of the medium reading process.
 次に、判定部163は、取得した入力画像から、媒体の媒体搬送方向と直交する幅方向A12における位置である媒体位置を検出する(ステップS106)。 Next, the determination unit 163 detects the medium position, which is the position in the width direction A12 orthogonal to the medium transport direction of the medium, from the acquired input image (step S106).
 判定部163は、まず、順次生成された入力画像毎にエッジ画素を検出する。判定部163は、入力画像の左端から順に各画素と各画素の右側に隣接する画素又は所定距離だけ離れた画素との階調値の差の絶対値(以下、隣接差分値と称する)を算出する。階調値は、輝度値又は色値である。判定部163は、隣接差分値がエッジ閾値以上である最初(最も左側)の画素を左端エッジ画素として検出する。エッジ閾値は、例えば、人が画像上の輝度の違いを目視により判別可能な階調値の差(例えば20)に設定することができる。同様に、判定部163は、入力画像の右端から順に各画素と各画素の左側の画素との隣接差分値を算出し、隣接差分値がエッジ閾値以上である最初の画素を右端エッジ画素として検出する。判定部163は、入力画像の左端から順に各画素と各画素の左側の画素との隣接差分値を算出し、隣接差分値がエッジ閾値以上である最後の画素を右端エッジ画素として検出してもよい。 The determination unit 163 first detects edge pixels for each input image sequentially generated. The determination unit 163 calculates the absolute value of the difference in gradation value between each pixel and the pixel adjacent to the right side of each pixel or the pixel separated by a predetermined distance in order from the left end of the input image (hereinafter referred to as an adjacent difference value). do. The gradation value is a luminance value or a color value. The determination unit 163 detects the first (leftmost) pixel whose adjacent difference value is equal to or greater than the edge threshold value as the leftmost edge pixel. The edge threshold value can be set, for example, to a difference in gradation value (for example, 20) in which a person can visually discriminate the difference in brightness on the image. Similarly, the determination unit 163 calculates the adjacent difference value between each pixel and the pixel on the left side of each pixel in order from the right end of the input image, and detects the first pixel whose adjacent difference value is equal to or greater than the edge threshold value as the right end edge pixel. do. The determination unit 163 calculates the adjacent difference value between each pixel and the pixel on the left side of each pixel in order from the left end of the input image, and detects the last pixel whose adjacent difference value is equal to or greater than the edge threshold value as the right end edge pixel. good.
 なお、判定部163は、各画素の両隣の画素又は所定距離だけ離れた二つの画素の階調値の差の絶対値を隣接差分値として算出してもよい。また、判定部163は、特定の画素の階調値が閾値未満であり、特定の画素に隣接する画素又は所定距離だけ離れた画素の階調値が閾値以上である場合、特定の画素、特定の画素に隣接する画素又は所定距離だけ離れた画素をエッジ画素として抽出してもよい。 Note that the determination unit 163 may calculate the absolute value of the difference between the gradation values of the pixels on both sides of each pixel or the two pixels separated by a predetermined distance as the adjacent difference value. Further, when the gradation value of the specific pixel is less than the threshold value and the gradation value of the pixel adjacent to the specific pixel or the pixel separated by a predetermined distance is equal to or more than the threshold value, the determination unit 163 specifies the specific pixel. Pixels adjacent to the pixels of the above or pixels separated by a predetermined distance may be extracted as edge pixels.
 隣接差分値がエッジ閾値以上である画素が存在しない場合、判定部163は、その入力画像からエッジ画素を検出しない。入力画像から左端エッジ画素及び右端エッジ画素を検出した場合、判定部163は、左端エッジ画素と右端エッジ画素で挟まれた領域を媒体位置として検出する。 If there is no pixel whose adjacent difference value is equal to or greater than the edge threshold value, the determination unit 163 does not detect the edge pixel from the input image. When the left end edge pixel and the right end edge pixel are detected from the input image, the determination unit 163 detects the region sandwiched between the left end edge pixel and the right end edge pixel as the medium position.
 次に、判定部163は、入力画像から媒体位置が検出されたか否かを判定する(ステップS107)。入力画像から媒体位置が検出されなかった場合、判定部163は、処理をステップS105へ戻し、新たなラインが撮像された入力画像についてステップS105~S107の処理を繰り返す。 Next, the determination unit 163 determines whether or not the medium position is detected from the input image (step S107). If the medium position is not detected from the input image, the determination unit 163 returns the process to step S105, and repeats the processes of steps S105 to S107 for the input image in which a new line is captured.
 一方、入力画像から媒体位置が検出された場合、判定部163は、入力画像から検出された媒体位置と印刷装置114の配置位置とを比較して、媒体上に印刷装置114による印刷が可能であるか否かを判定する(ステップS108)。判定部163は、印刷装置114の配置位置(領域)が、入力画像から検出された媒体位置に対応する実際の媒体位置(領域)に含まれるか否かを判定する。印刷装置114の配置位置(領域)の全体が実際の媒体位置(領域)の内側に位置する場合、判定部163は、媒体上に印刷装置114による印刷が可能であると判定する。一方、印刷装置114の配置位置(領域)の少なくとも一部が、実際の媒体位置(領域)の外側に位置する場合、判定部163は、媒体上に印刷装置114による印刷ができないと判定する。 On the other hand, when the medium position is detected from the input image, the determination unit 163 can compare the medium position detected from the input image with the arrangement position of the printing device 114 and print on the medium by the printing device 114. It is determined whether or not there is (step S108). The determination unit 163 determines whether or not the arrangement position (area) of the printing device 114 is included in the actual medium position (area) corresponding to the medium position detected from the input image. When the entire arrangement position (area) of the printing device 114 is located inside the actual medium position (area), the determination unit 163 determines that printing by the printing device 114 is possible on the medium. On the other hand, when at least a part of the arrangement position (area) of the printing device 114 is located outside the actual medium position (area), the determination unit 163 determines that printing by the printing device 114 cannot be performed on the medium.
 判定部163により媒体上に印刷ができないと判定された場合、制御部161は、異常処理を実行する(ステップS109)。制御部161は、異常処理として、印刷装置114による媒体への印刷を停止し、処理をステップS115へ移行する。また、制御部161は、異常処理として、印刷装置114による媒体への印刷を停止させたことを示す情報を表示装置108に表示し又はインタフェース装置143を介して情報処理装置に送信することにより利用者に通知してもよい。これにより、媒体搬送装置100は、媒体が存在しない位置に誤ってインクを噴射してしまうことを抑制できる。 When the determination unit 163 determines that printing cannot be performed on the medium, the control unit 161 executes an abnormality process (step S109). As an abnormality process, the control unit 161 stops printing on the medium by the printing device 114, and shifts the process to step S115. Further, the control unit 161 is used by displaying information indicating that printing on the medium by the printing device 114 has been stopped on the display device 108 or transmitting the information to the information processing device via the interface device 143 as an abnormality process. May be notified. As a result, the medium transfer device 100 can prevent the ink from being accidentally ejected to a position where the medium does not exist.
 なお、制御部161は、異常処理として、第1モータ141を停止して、搬送部による媒体の給送及び搬送を停止し、一連のステップを終了してもよい。その場合、制御部161は、異常処理として、媒体の給送及び搬送を停止したことを示す情報を表示装置108に表示し又はインタフェース装置143を介して情報処理装置に送信することにより利用者に通知してもよい。この場合も、媒体搬送装置100は、媒体が存在しない位置に誤ってインクを噴射してしまうことを抑制できる。 Note that the control unit 161 may stop the first motor 141, stop the feeding and transporting of the medium by the transport unit, and end a series of steps as an error handling. In that case, the control unit 161 displays to the user information indicating that the feeding and transporting of the medium has been stopped as an abnormal process on the display device 108 or transmits the information to the information processing device via the interface device 143 to the user. You may notify. In this case as well, the medium transfer device 100 can prevent the ink from being accidentally ejected to a position where the medium does not exist.
 また、制御部161は、異常処理として、第1モータ141を一時的に停止して、搬送部による媒体の給送及び搬送を一時的に停止してもよい。その場合、制御部161は、印刷装置114の位置を変更することを指示する情報を表示装置108に表示し又はインタフェース装置143を介して情報処理装置に送信することにより利用者に通知する。制御部161は、操作装置107又は情報処理装置を用いて、利用者から印刷装置114の位置が変更された旨を受け付けると、ステップS103の処理と同様にして、印刷装置114の配置位置を再検出する。次に、制御部161は、ステップS108へ処理を戻し、判定部163は、入力画像から検出された媒体位置と、再検出した印刷装置114の配置位置とを比較して、媒体上に印刷装置114による印刷が可能であるか否かを再判定する。判定部163により、媒体上に印刷装置114による印刷が可能であると判定された場合、制御部161は、第1モータ141を再駆動し、ステップS110以降の処理を実行する。これにより、利用者は媒体を載置台103に再載置することなく、媒体読取処理を継続させることが可能となり、媒体搬送装置100は、利用者の利便性を向上させることが可能となる。 Further, the control unit 161 may temporarily stop the first motor 141 to temporarily stop the feeding and transporting of the medium by the transport unit as an error handling. In that case, the control unit 161 notifies the user by displaying information instructing the position of the printing device 114 to be changed on the display device 108 or transmitting the information to the information processing device via the interface device 143. When the control unit 161 receives from the user that the position of the printing device 114 has been changed by using the operating device 107 or the information processing device, the control unit 161 repositions the printing device 114 in the same manner as in the process of step S103. To detect. Next, the control unit 161 returns the process to step S108, and the determination unit 163 compares the media position detected from the input image with the re-detected placement position of the printing device 114, and prints on the medium. It is redetermined whether or not printing by 114 is possible. When the determination unit 163 determines that printing by the printing device 114 is possible on the medium, the control unit 161 redrives the first motor 141 and executes the processes after step S110. As a result, the user can continue the medium reading process without remounting the medium on the mounting table 103, and the medium transfer device 100 can improve the convenience of the user.
 また、制御部161は、異常処理として、媒体の排出位置を変更してもよい。その場合、制御部161は、第2モータ142を駆動して、第7、第8搬送ローラ128、129による媒体の排出方向を初期方向から変更し、処理をステップS115へ移行する。これにより、排出台104上において、所定の情報が印刷された媒体と、印刷されなかった媒体とが区別可能に積載される。利用者は、所定の情報が印刷された媒体と、印刷されなかった媒体とを容易に分別することができ、媒体搬送装置100は利用者の利便性を向上させることができる。 Further, the control unit 161 may change the ejection position of the medium as an abnormal process. In that case, the control unit 161 drives the second motor 142 to change the discharge direction of the medium by the seventh and eighth transfer rollers 128 and 129 from the initial direction, and shifts the process to step S115. As a result, the medium on which the predetermined information is printed and the medium on which the predetermined information is not printed are loaded on the discharge table 104 so as to be distinguishable. The user can easily separate the medium on which the predetermined information is printed and the medium on which the predetermined information is not printed, and the medium transfer device 100 can improve the convenience of the user.
 一方、判定部163により媒体上に印刷可能であると判定された場合、制御部161は、媒体に所定情報を印刷するように印刷装置114を制御する(ステップS110)。なお、媒体搬送装置100は、操作装置107又は情報処理装置を用いて、利用者から媒体搬送方向A1における印刷領域の指定を予め受け付けていてもよい。その場合、制御部161は、媒体の給送を開始してから第1所定時間が経過した時に、媒体に所定情報を印刷するように印刷装置114を制御する。第1所定時間は、給送ローラ112とブレーキローラ113のニップ位置から印刷装置114の印刷位置までの距離に、媒体の先端から指定された印刷領域までの距離を加算した加算値を、第1モータ141による媒体の搬送速度で除算した除算値に設定される。 On the other hand, when the determination unit 163 determines that printing is possible on the medium, the control unit 161 controls the printing device 114 so as to print predetermined information on the medium (step S110). The medium transfer device 100 may receive the designation of the print area in the medium transfer direction A1 from the user in advance by using the operation device 107 or the information processing device. In that case, the control unit 161 controls the printing device 114 so as to print the predetermined information on the medium when the first predetermined time has elapsed from the start of feeding the medium. For the first predetermined time, the first predetermined time is an added value obtained by adding the distance from the tip of the medium to the designated printing area to the distance from the nip position of the feeding roller 112 and the brake roller 113 to the printing position of the printing device 114. It is set to a divided value divided by the transport speed of the medium by the motor 141.
 次に、印刷判定部164は、印刷装置114に印刷をさせてから第2所定時間が経過したか否かを判定する(ステップS111)。第2所定時間は、印刷装置114の印刷位置から撮像装置127の撮像位置までの距離を、第1モータ141による媒体の搬送速度で除算した除算値にマージンを加算した値に設定される。即ち、第2所定時間は、印刷装置114により媒体に印刷がされた場合に、媒体内で印刷された領域が撮像装置127の撮像位置を十分に通過可能な時間に設定される。 Next, the print determination unit 164 determines whether or not a second predetermined time has elapsed since the printing device 114 was made to print (step S111). The second predetermined time is set to a value obtained by adding a margin to a division value obtained by dividing the distance from the printing position of the printing device 114 to the imaging position of the image pickup device 127 by the transport speed of the medium by the first motor 141. That is, the second predetermined time is set to a time during which the printed area in the medium can sufficiently pass through the image pickup position of the image pickup apparatus 127 when printing is performed on the medium by the printing apparatus 114.
 次に、印刷判定部164は、入力画像に基づいて部分画像を生成する(ステップS112)。印刷判定部164は、印刷装置114に印刷をさせてから第2所定時間が経過する直前の一定時間内に撮像装置127によって生成された入力画像を合成して部分画像を生成する。なお、印刷判定部164は、現在までに撮像装置127によって生成された全ての入力画像を合成して部分画像を生成してもよい。 Next, the print determination unit 164 generates a partial image based on the input image (step S112). The print determination unit 164 generates a partial image by synthesizing the input images generated by the image pickup apparatus 127 within a certain time immediately before the second predetermined time elapses after the printing apparatus 114 is made to print. The print determination unit 164 may generate a partial image by synthesizing all the input images generated by the image pickup apparatus 127 up to now.
 次に、印刷判定部164は、部分画像に基づいて、搬送される媒体に印刷装置114による印刷がされているか否かを判定する(ステップS113)。印刷判定部164は、例えば公知のOCR(Optical Character Recognition/Reader)技術を用いて、所定情報に必ず含まれる固有文字が部分画像に含まれているか否かを判定する。印刷判定部164は、固有文字が部分画像に含まれる場合、部分画像に所定情報が含まれると判定する。印刷判定部164は、部分画像に所定情報が含まれている場合、搬送される媒体に印刷装置114による印刷がされていると判定し、部分画像に所定情報が含まれていない場合、搬送される媒体に印刷装置114による印刷がされていないと判定する。 Next, the print determination unit 164 determines whether or not the conveyed medium is printed by the printing device 114 based on the partial image (step S113). The print determination unit 164 uses, for example, a known OCR (Optical Character Recognition / Reader) technique to determine whether or not the partial image contains unique characters that are always included in the predetermined information. When the unique character is included in the partial image, the print determination unit 164 determines that the partial image contains predetermined information. The print determination unit 164 determines that the printed medium is printed by the printing device 114 when the partial image contains predetermined information, and when the partial image does not contain the predetermined information, the print determination unit 164 is conveyed. It is determined that the medium is not printed by the printing device 114.
 なお、印刷判定部164は、公知のパターンマッチング技術を用いて、部分画像に所定情報が含まれるか否かを判定してもよい。その場合、媒体搬送装置100は、所定情報に必ず含まれる固有形状又はウォーターマーク等を含むサンプル画像を予め記憶装置150に記憶しておく。印刷判定部164は、部分画像内で切り出し位置をずらしながら、サンプル画像と同一サイズの領域を切り出し、切り出した領域とサンプル画像の類似の程度を算出する。類似の程度として、例えば正規化相互相関値が使用される。印刷判定部164は、算出した類似の程度が閾値以上である場合、部分画像に所定情報が含まれると判定する。 Note that the print determination unit 164 may determine whether or not the partial image contains predetermined information by using a known pattern matching technique. In that case, the medium transfer device 100 stores in advance a sample image including a unique shape or a watermark included in the predetermined information in the storage device 150. The print determination unit 164 cuts out an area having the same size as the sample image while shifting the cutout position in the partial image, and calculates the degree of similarity between the cut out area and the sample image. As a degree of similarity, for example, a normalized cross-correlation value is used. When the calculated degree of similarity is equal to or greater than the threshold value, the print determination unit 164 determines that the partial image contains predetermined information.
 また、印刷判定部164は、部分画像内で、印刷装置114により印刷される色の色値を有する画素(又はその色値との差が所定範囲内である色値を有する画素)の数又は割合が閾値以上である場合に、部分画像に所定情報が含まれると判定してもよい。 Further, the print determination unit 164 has the number of pixels having color values of the colors printed by the printing device 114 (or pixels having color values whose difference from the color values is within a predetermined range) in the partial image. When the ratio is equal to or greater than the threshold value, it may be determined that the partial image contains predetermined information.
 印刷判定部164により、媒体に印刷装置114による印刷がされていないと判定された場合、制御部161は、第2異常処理を実行する(ステップS114)。制御部161は、第2異常処理として、印刷装置114による媒体への印刷が失敗したことを示す情報を表示装置108に表示し又はインタフェース装置143を介して情報処理装置に送信することにより利用者に通知する。これにより、利用者は、印刷装置114においてインク切れ又はインク詰まり等が発生していることを認識し、適切に対処することができる。 When the print determination unit 164 determines that the medium is not printed by the printing device 114, the control unit 161 executes the second abnormality processing (step S114). As the second abnormality processing, the control unit 161 displays information indicating that printing on the medium by the printing device 114 has failed on the display device 108, or transmits the information to the information processing device via the interface device 143 to the user. Notify to. As a result, the user can recognize that the printing apparatus 114 is out of ink or clogged with ink, and can take appropriate measures.
 なお、制御部161は、第2異常処理として、以降の印刷装置114による媒体への印刷を禁止してもよい。その場合、制御部161は、第2異常処理として、印刷装置114による媒体への印刷を禁止したことを示す情報を表示装置108に表示し又はインタフェース装置143を介して情報処理装置に送信することにより利用者に通知してもよい。これにより、利用者は、印刷装置114においてインク切れ又はインク詰まり等が発生していることを認識し、適切に対処することができる。また、媒体搬送装置100は、以降に搬送される媒体に対して無駄な印刷処理の実行を省略でき、媒体読取処理の処理負荷を低減させることができる。 Note that the control unit 161 may prohibit subsequent printing on the medium by the printing device 114 as the second abnormality processing. In that case, as the second abnormality processing, the control unit 161 displays on the display device 108 information indicating that printing on the medium by the printing device 114 is prohibited, or transmits the information to the information processing device via the interface device 143. May be notified to the user. As a result, the user can recognize that the printing apparatus 114 is out of ink or clogged with ink, and can take appropriate measures. Further, the medium transporting apparatus 100 can omit unnecessary printing processing for the media to be transported thereafter, and can reduce the processing load of the medium reading processing.
 また、制御部161は、第2異常処理として、異常処理と同様に、第1モータ141を停止して、搬送部による媒体の給送及び搬送を停止してもよい。 Further, as the second exception handling, the control unit 161 may stop the first motor 141 to stop the feeding and transporting of the medium by the transporting unit, as in the exception handling.
 また、制御部161は、第2異常処理として、異常処理と同様に、第1モータ141を一時的に停止して、搬送部による媒体の給送及び搬送を一時的に停止してもよい。その場合、制御部161は、印刷装置114による媒体への印刷が失敗したことを示す情報を表示装置108に表示し又はインタフェース装置143を介して情報処理装置に送信することにより利用者に通知する。制御部161は、操作装置107又は情報処理装置を用いて、利用者から印刷装置114のインクが交換された旨を受け付けると、第1モータ141を再駆動し、ステップS110の処理と同様にして、媒体に所定情報を印刷するように印刷装置114を制御する。次に、制御部161は、ステップS112へ処理を戻し、印刷判定部164は、搬送される媒体に印刷装置114による印刷がされているか否かを再判定する。これにより、利用者は媒体を載置台103に再載置することなく、媒体読取処理を継続させることが可能となり、媒体搬送装置100は、利用者の利便性を向上させることが可能となる。 Further, as the second exception handling, the control unit 161 may temporarily stop the first motor 141 to temporarily stop the feeding and transporting of the medium by the transport unit, as in the exception handling. In that case, the control unit 161 notifies the user by displaying information indicating that printing on the medium by the printing device 114 has failed on the display device 108 or transmitting the information to the information processing device via the interface device 143. .. When the control unit 161 receives from the user that the ink of the printing device 114 has been replaced by using the operating device 107 or the information processing device, the control unit 161 re-drives the first motor 141 and performs the same as the process of step S110. , The printing device 114 is controlled to print predetermined information on the medium. Next, the control unit 161 returns the process to step S112, and the print determination unit 164 redetermines whether or not the conveyed medium is printed by the printing device 114. As a result, the user can continue the medium reading process without remounting the medium on the mounting table 103, and the medium transfer device 100 can improve the convenience of the user.
 また、制御部161は、第2異常処理として、異常処理と同様に、媒体の排出位置を変更してもよい。 Further, the control unit 161 may change the ejection position of the medium as the second exception handling, as in the exception handling.
 一方、印刷判定部164により、媒体に印刷装置114による印刷がされていると判定された場合、出力制御部165は、媒体の後端が撮像装置127の撮像位置を通過したか否かを判定する(ステップS115)。出力制御部165は、第3媒体センサ126から第3媒体信号を定期的に受信し、第3媒体信号の信号値が、媒体が存在することを示す値から存在しないことを示す値に変化した場合、媒体の後端が第3媒体センサ126の位置を通過したと判定する。出力制御部165は、媒体の後端が第3媒体センサ126の位置を通過してから第3所定時間が経過した場合に、媒体の後端が撮像位置を通過したと判定する。第3所定時間は、第3媒体センサ126の位置から撮像位置までの距離を、第1モータ141による媒体の搬送速度で除算した除算値にマージンを加算した値に設定される。 On the other hand, when the print determination unit 164 determines that the medium is printed by the printing device 114, the output control unit 165 determines whether or not the rear end of the medium has passed the image pickup position of the image pickup device 127. (Step S115). The output control unit 165 periodically receives the third medium signal from the third medium sensor 126, and the signal value of the third medium signal changes from a value indicating the presence of the medium to a value indicating the absence of the medium. In this case, it is determined that the rear end of the medium has passed the position of the third medium sensor 126. The output control unit 165 determines that the rear end of the medium has passed the imaging position when the third predetermined time has elapsed since the rear end of the medium passed the position of the third medium sensor 126. The third predetermined time is set to a value obtained by dividing the distance from the position of the third medium sensor 126 to the imaging position by the carrier speed of the medium by the first motor 141 and adding a margin.
 媒体の後端が撮像位置を通過した場合、出力制御部165は、現在までに撮像装置127により生成された入力画像を合成して読取画像を生成し、インタフェース装置143を介して情報処理装置へ送信することにより出力する(ステップS116)。読取画像は、入力画像に基づく画像の一例である。なお、出力制御部165は、入力画像をそのまま情報処理装置へ出力してもよい。その場合、情報処理装置が、入力画像を合成して読取画像を生成する。 When the rear end of the medium passes the image pickup position, the output control unit 165 synthesizes the input images generated by the image pickup device 127 to date to generate a read image, and sends the scanned image to the information processing device via the interface device 143. It is output by transmitting (step S116). The scanned image is an example of an image based on the input image. The output control unit 165 may output the input image as it is to the information processing apparatus. In that case, the information processing apparatus synthesizes the input images to generate a scanned image.
 次に、制御部161は、第1媒体センサ111から取得する第1媒体信号に基づいて載置台103に媒体が残っているか否かを判定する(ステップS117)。載置台103に媒体が残っている場合、制御部161は、ステップS103へ処理を戻し、ステップS103~S117の処理を繰り返す。制御部161は、媒体が搬送されるたびに印刷装置114の配置位置を検出することにより、媒体搬送中に印刷装置114が移動された場合でも、媒体上に印刷装置114による印刷が可能であるか否かを適切に判定することができる。なお、媒体搬送中に印刷装置114が移動されることが禁止されている場合、制御部161は、ステップS104へ処理を戻してもよい。これにより、媒体搬送装置100は、媒体読取処理の処理負荷を低減させることができる。 Next, the control unit 161 determines whether or not the medium remains on the mounting table 103 based on the first medium signal acquired from the first medium sensor 111 (step S117). When the medium remains on the mounting table 103, the control unit 161 returns the process to step S103 and repeats the processes of steps S103 to S117. The control unit 161 detects the arrangement position of the printing apparatus 114 each time the medium is conveyed, so that the printing apparatus 114 can print on the medium even if the printing apparatus 114 is moved during the medium conveying. Whether or not it can be appropriately determined. If the printing device 114 is prohibited from being moved during the medium transfer, the control unit 161 may return the process to step S104. As a result, the medium transfer device 100 can reduce the processing load of the medium reading process.
 一方、載置台103に媒体が残っていない場合、制御部161は、第1モータ141を停止させて(ステップS118)、一連のステップを終了する。 On the other hand, when no medium remains on the mounting table 103, the control unit 161 stops the first motor 141 (step S118) and ends a series of steps.
 なお、媒体読取処理において、ステップS111~S114の処理は省略されてもよい。 In the medium reading process, the processes of steps S111 to S114 may be omitted.
 以上詳述したように、媒体搬送装置100は、搬送される媒体を撮像した入力画像から検出された媒体位置と、印刷装置114の配置位置とを比較して、搬送される媒体上に印刷が可能であるか否かを判定する。これにより、媒体搬送装置100は、媒体をスキャンするための撮像装置127を利用して、搬送される媒体上に印刷が可能であるか否かを判定することが可能となり、装置コストが増大することを抑制しつつ、媒体への印刷を良好に制御することが可能となった。 As described in detail above, the medium transport device 100 compares the media position detected from the input image obtained by capturing the image of the transported medium with the arrangement position of the printing device 114, and prints on the conveyed medium. Determine if it is possible. As a result, the medium transfer device 100 can determine whether or not printing is possible on the transferred medium by using the image pickup device 127 for scanning the medium, and the device cost increases. It has become possible to control printing on a medium well while suppressing this.
 また、媒体搬送装置100は、印刷装置114のセット位置が不適切な場合、又は、それぞれサイズが異なる複数の媒体がまとめて搬送される場合等に、媒体への印刷漏れが発生することを抑制することが可能となった。また、媒体搬送装置100は、誤った位置へのインクの噴射を抑制することが可能となり、結果として、インクの消費量を低減させることが可能となった。これらにより、媒体搬送装置100は、利用者の利便性を向上させることが可能となった。 Further, the medium transport device 100 suppresses printing omission to the media when the set position of the printing device 114 is inappropriate, or when a plurality of media having different sizes are collectively transported. It became possible to do. In addition, the medium transfer device 100 can suppress the injection of ink to an erroneous position, and as a result, it is possible to reduce the amount of ink consumed. As a result, the medium transfer device 100 can improve the convenience of the user.
 特に、媒体搬送装置100において、印刷装置114は、撮像装置127より上流側に配置される。これにより、媒体搬送装置100は、撮像装置127により生成された入力画像に基づいて、搬送される媒体に印刷装置114による印刷がされているか否かを判定することが可能となった。したがって、媒体搬送装置100は、装置コストが増大することを抑制しつつ、印刷装置114におけるインク切れ又はインク詰まり等の発生を適切に検出することが可能となった。 In particular, in the medium transfer device 100, the printing device 114 is arranged on the upstream side of the image pickup device 127. As a result, the medium transfer device 100 can determine whether or not the transferred medium is printed by the printing device 114 based on the input image generated by the image pickup device 127. Therefore, the medium transfer device 100 can appropriately detect the occurrence of ink shortage or ink clogging in the printing device 114 while suppressing the increase in device cost.
 図8は、他の実施形態に係る媒体搬送装置の印刷装置センサ215等について説明するための模式図である。図8は、カバー110aを開いた状態でプリンタ上側筐体110の一部を上方から見た模式図である。 FIG. 8 is a schematic diagram for explaining the printing device sensor 215 and the like of the medium transport device according to another embodiment. FIG. 8 is a schematic view of a part of the printer upper housing 110 viewed from above with the cover 110a open.
 図8に示すように、印刷装置センサ215は、媒体搬送方向と直交する幅方向A12において間隔を空けて複数並べて配置され且つ印刷装置114を検出するアレイ状センサである。各印刷装置センサ215は、印刷装置114より下方(媒体搬送路側)に配置された発光器215a及び受光器215bを含む。各発光器215aは、上方(カバー110a側)に向けて光(赤外光)を照射する。一方、各受光器215bは、対応する発光器215aにより照射され、印刷装置114又はカバー110aにより反射された光を受光する。そして、各受光器215bは、発光器215aが光を照射してから受光器215bが光を受光するまでの時間が閾値未満であるか否かにより、信号値が変化する検出信号を生成して出力する。閾値は、各印刷装置センサ215に対向する位置に印刷装置114が存在する場合に受光器215bが光を受光するまでの時間と、その位置に印刷装置114が存在しない場合に受光器215bが光を受光するまでの時間との間の値に設定される。 As shown in FIG. 8, the printing device sensor 215 is an array-shaped sensor that is arranged side by side at intervals in the width direction A12 orthogonal to the medium transport direction and detects the printing device 114. Each printing device sensor 215 includes a light emitter 215a and a light receiving device 215b arranged below the printing device 114 (on the medium transport path side). Each light emitter 215a irradiates light (infrared light) upward (cover 110a side). On the other hand, each photoreceiver 215b receives the light irradiated by the corresponding light emitter 215a and reflected by the printing device 114 or the cover 110a. Then, each light receiver 215b generates a detection signal whose signal value changes depending on whether or not the time from the light emitting device 215a irradiating the light to the light receiving device 215b receiving the light is less than the threshold value. Output. The threshold value is the time until the photoreceiver 215b receives light when the printing device 114 is present at the position facing each printing device sensor 215, and the light receiver 215b is light when the printing device 114 is not present at that position. Is set to a value between the time until light is received.
 即ち、受光器215bが光を受光するまでの時間が閾値未満である場合、検出信号の信号値は、印刷装置センサ215に対向する位置に印刷装置114が存在することを示す。一方、受光器215bが光を受光するまでの時間が閾値以上である場合、検出信号の信号値は、印刷装置センサ215に対向する位置に印刷装置114が存在しないことを示す。このように、検出信号は、各印刷装置センサ215が配置された位置に印刷装置114が存在するか否かを示す信号である。 That is, when the time until the light receiver 215b receives light is less than the threshold value, the signal value of the detection signal indicates that the printing device 114 is present at the position facing the printing device sensor 215. On the other hand, when the time until the light receiver 215b receives light is equal to or longer than the threshold value, the signal value of the detection signal indicates that the printing device 114 does not exist at the position facing the printing device sensor 215. As described above, the detection signal is a signal indicating whether or not the printing device 114 is present at the position where each printing device sensor 215 is arranged.
 なお、印刷装置114を挟んで各発光器215a及び各受光器215bと対向する位置にミラー等の反射部材が設けられ、各受光器215bは、対応する発光器215aにより照射され、印刷装置114又は反射部材により反射された光を受光してもよい。その場合、各受光器215bは、受光した光の強度に応じた電気信号を第3媒体信号として生成してもよい。印刷装置センサ215と対向する位置に印刷装置114が存在する場合、発光器215aにより照射された光は印刷装置114により遮光される。そのため、印刷装置センサ215と対向する位置に印刷装置114が存在する状態と存在しない状態とで第3媒体信号の信号値は変化する。 A reflection member such as a mirror is provided at a position facing each light emitter 215a and each light receiver 215b with the printing device 114 interposed therebetween, and each light receiver 215b is irradiated by the corresponding light emitter 215a, and the printing device 114 or The light reflected by the reflective member may be received. In that case, each light receiver 215b may generate an electric signal corresponding to the intensity of the received light as a third medium signal. When the printing device 114 is present at a position facing the printing device sensor 215, the light emitted by the light emitter 215a is shielded by the printing device 114. Therefore, the signal value of the third medium signal changes depending on whether the printing device 114 is present or not at the position facing the printing device sensor 215.
 また、各発光器及び受光器は、印刷装置114より上方(カバー110a側)に配置され、各発光器は、下方(媒体搬送路側)に向けて光を照射してもよい。また、各発光器及び受光器は、印刷装置114が配置される位置を挟んで上下に対向して配置され、各発光器は、各受光器に向けて光を照射してもよい。その場合、各受光器は、受光した光の強度が閾値以上であるか否かにより信号値が変化する信号を検出信号として生成する。閾値は、各印刷装置センサ215に対向する位置に印刷装置114が存在する場合に受光器215bが受光する光の強度と、その位置に印刷装置114が存在しない場合に受光器215bが受光する光の強度との間の値に設定される。 Further, each light emitter and a light receiver may be arranged above the printing device 114 (on the cover 110a side), and each light emitting device may irradiate light downward (on the medium transport path side). Further, the light emitters and the light receivers are arranged so as to face each other vertically with the position where the printing device 114 is arranged, and each light emitter may irradiate light toward each light receiver. In that case, each light receiver generates a signal whose signal value changes depending on whether or not the intensity of the received light is equal to or higher than the threshold value as a detection signal. The thresholds are the intensity of the light received by the photoreceiver 215b when the printing device 114 is present at the position facing each printing device sensor 215, and the light received by the photoreceiver 215b when the printing device 114 is not present at that position. Is set to a value between the intensity of.
 また、各印刷装置センサ215として、接触検出センサが使用されてもよい。その場合、各印刷装置センサ215は、例えば、ばね等により印刷装置114側に向けて付圧されつつ、印刷装置114に当接すると印刷装置114の反対側に押し込まれる押し込みスイッチを含む。各印刷装置センサ215は、各押し込みスイッチが印刷装置114の反対側に押し込まれているか否かにより信号値が変化する信号を検出信号として生成する。 Further, a contact detection sensor may be used as each printing device sensor 215. In that case, each printing device sensor 215 includes, for example, a push-in switch that is pressed toward the printing device 114 side by a spring or the like and is pushed to the opposite side of the printing device 114 when it comes into contact with the printing device 114. Each printing device sensor 215 generates a signal whose signal value changes depending on whether or not each pushing switch is pushed to the opposite side of the printing device 114 as a detection signal.
 また、印刷装置114に金属等の導体が貼り付けられ、各印刷装置センサ215として、コイルを含み、且つ、導体表面に発生する渦電流による磁気損失を検出する誘導型近接センサが使用されてもよい。その場合、各印刷装置センサ215は、コイルにおけるインピーダンスの大きさが閾値以上であるか否かにより信号値が変化する信号を検出信号として生成する。閾値は、各印刷装置センサ215に対向する位置に印刷装置114が存在する場合のインピーダンスの大きさと、その位置に印刷装置114が存在しない場合のインピーダンスの大きさとの間の値に設定される。 Further, even if a conductor such as metal is attached to the printing device 114, and as each printing device sensor 215, an inductive proximity sensor including a coil and detecting magnetic loss due to an eddy current generated on the conductor surface is used. good. In that case, each printing device sensor 215 generates a signal whose signal value changes depending on whether or not the magnitude of the impedance in the coil is equal to or greater than the threshold value as a detection signal. The threshold value is set to a value between the magnitude of the impedance when the printing apparatus 114 is present at the position facing each printing apparatus sensor 215 and the magnitude of the impedance when the printing apparatus 114 is not present at that position.
 また、印刷装置114に磁石が貼り付けられ、各印刷装置センサ215として、印刷装置114と印刷装置センサ215の間の地場(磁界)の大きさを検出する磁気センサが使用されてもよい。その場合、各印刷装置センサ215は、印刷装置114と印刷装置センサ215の間の磁界の大きさが閾値以上であるか否かにより信号値が変化する信号を検出信号として生成する。閾値は、各印刷装置センサ215に対向する位置に印刷装置114が存在する場合の磁界の大きさと、その位置に印刷装置114が存在しない場合の磁界の大きさとの間の値に設定される。 Further, a magnet is attached to the printing device 114, and as each printing device sensor 215, a magnetic sensor that detects the magnitude of the field (magnetic field) between the printing device 114 and the printing device sensor 215 may be used. In that case, each printing device sensor 215 generates a signal whose signal value changes depending on whether or not the magnitude of the magnetic field between the printing device 114 and the printing device sensor 215 is equal to or greater than the threshold value as a detection signal. The threshold value is set to a value between the magnitude of the magnetic field when the printing device 114 is present at the position facing each printing device sensor 215 and the magnitude of the magnetic field when the printing device 114 is not present at that position.
 印刷装置センサ215が使用される場合、図6のステップS103において、検出部162は、複数の印刷装置センサ215のそれぞれから検出信号を取得する。検出部162は、各印刷装置センサ215から取得した検出信号の信号値が、各印刷装置センサ215の位置に印刷装置114が存在することを示すか否かにより、印刷装置114の配置位置を検出する。 When the printing device sensor 215 is used, in step S103 of FIG. 6, the detection unit 162 acquires a detection signal from each of the plurality of printing device sensors 215. The detection unit 162 detects the arrangement position of the printing device 114 depending on whether or not the signal value of the detection signal acquired from each printing device sensor 215 indicates that the printing device 114 is present at the position of each printing device sensor 215. do.
 このように、検出部162は、複数の印刷装置センサ215による検知結果に基づいて、幅方向A12における印刷装置114の配置位置を検出する。アレイ状センサは比較的安価であり、媒体搬送装置は、アレイ状センサを利用することにより、媒体搬送装置の装置コストを低減させることができる。 As described above, the detection unit 162 detects the arrangement position of the printing device 114 in the width direction A12 based on the detection results of the plurality of printing device sensors 215. The array-shaped sensor is relatively inexpensive, and the medium transfer device can reduce the device cost of the medium transfer device by using the array-shaped sensor.
 以上詳述したように、媒体搬送装置は、アレイ状センサを使用する場合においても、装置コストが増大することを抑制しつつ、媒体への印刷を良好に制御することが可能となった。 As described in detail above, the medium transfer device can satisfactorily control printing on the medium while suppressing an increase in the device cost even when the array sensor is used.
 図9は、さらに他の実施形態に係る媒体搬送装置の印刷装置センサ315等について説明するための模式図である。図9は、カバー110aを開いた状態でプリンタ上側筐体110の一部を上方から見た模式図である。 FIG. 9 is a schematic diagram for explaining the printing device sensor 315 and the like of the medium transport device according to still another embodiment. FIG. 9 is a schematic view of a part of the printer upper housing 110 viewed from above with the cover 110a open.
 図9に示すように、印刷装置センサ315は、印刷装置114の移動可能範囲を撮像した画像を生成する撮像センサである。印刷装置センサ315は、印刷装置114より上流側に、印刷装置114側を撮像するように配置される。なお、印刷装置センサ315は、印刷装置114より下流側に、印刷装置114側を撮像するように配置されてもよい。印刷装置センサ315は、印刷装置114の移動可能範囲を撮像した印刷装置画像を生成して出力する。 As shown in FIG. 9, the printing device sensor 315 is an image pickup sensor that generates an image in which the movable range of the printing device 114 is captured. The printing device sensor 315 is arranged on the upstream side of the printing device 114 so as to take an image of the printing device 114 side. The printing device sensor 315 may be arranged on the downstream side of the printing device 114 so as to take an image of the printing device 114 side. The printing device sensor 315 generates and outputs a printing device image that captures the movable range of the printing device 114.
 印刷装置センサ315が使用される場合、図6のステップS103において、検出部162は、印刷装置センサ315から印刷装置画像を取得する。検出部162は、例えば公知のパターンマッチング技術を用いて、印刷装置画像内で印刷装置114が含まれる位置を検出する。媒体搬送装置100は、印刷装置114が撮像されたサンプル画像を予め記憶装置150に記憶しておく。検出部162は、印刷装置画像内で切り出し位置をずらしながら、サンプル画像と同一サイズの領域を切り出し、切り出した領域とサンプル画像の類似の程度を算出する。類似の程度として、例えば正規化相互相関値が使用される。検出部162は、印刷装置画像内で、算出した類似の程度が最大である領域に印刷装置114が含まれると判定し、その領域に対応する媒体搬送装置100内の実際の位置を印刷装置114の配置位置として検出する。 When the printing device sensor 315 is used, in step S103 of FIG. 6, the detection unit 162 acquires the printing device image from the printing device sensor 315. The detection unit 162 detects the position including the printing device 114 in the printing device image by using, for example, a known pattern matching technique. The medium transfer device 100 stores in advance the sample image captured by the printing device 114 in the storage device 150. The detection unit 162 cuts out a region having the same size as the sample image while shifting the cutout position in the printing apparatus image, and calculates the degree of similarity between the cutout region and the sample image. As a degree of similarity, for example, a normalized cross-correlation value is used. The detection unit 162 determines that the printing device 114 is included in the area having the maximum calculated degree of similarity in the printing device image, and determines that the actual position in the medium transporting device 100 corresponding to the area is the printing device 114. Detected as the placement position of.
 このように、検出部162は、印刷装置センサ315により生成された印刷装置画像に基づいて、幅方向A12における印刷装置114の配置位置を検出する。検出部162は、撮像センサを利用することにより、印刷装置114の配置位置を柔軟に検出でき、例えば媒体搬送装置100が印刷装置114を複数有する場合でも、各印刷装置114の配置位置を検出できる。 As described above, the detection unit 162 detects the arrangement position of the printing device 114 in the width direction A12 based on the printing device image generated by the printing device sensor 315. The detection unit 162 can flexibly detect the arrangement position of the printing device 114 by using the image pickup sensor, and can detect the arrangement position of each printing device 114 even when the medium transporting device 100 has a plurality of printing devices 114, for example. ..
 以上詳述したように、媒体搬送装置は、撮像センサを使用する場合においても、装置コストが増大することを抑制しつつ、媒体への印刷を良好に制御することが可能となった。 As described in detail above, the medium transfer device can satisfactorily control printing on the medium while suppressing an increase in the device cost even when the image pickup sensor is used.
 図10は、他の実施形態に係る媒体搬送装置400を示す斜視図である。 FIG. 10 is a perspective view showing a medium transfer device 400 according to another embodiment.
 媒体搬送装置400は、媒体搬送装置100が有する各部を有し、プリンタユニット102の代わりに、プリンタユニット402を有する。プリンタユニット402は、プリンタ下側筐体409及びプリンタ上側筐体410等を備える。 The medium transfer device 400 has each part of the medium transfer device 100, and has a printer unit 402 instead of the printer unit 102. The printer unit 402 includes a printer lower housing 409, a printer upper housing 410, and the like.
 本体下側筐体105は、プリンタユニット402に対して着脱可能に係合されるように、プリンタユニット402上に載置される。プリンタユニット402は、L字状に形成されている。本体下側筐体105は、排出台104側の側面と下面とがそれぞれ、プリンタユニット402の略鉛直方向に延伸する部分の載置台103側の側面と略水平方向に延伸する部分の上面とに当接するように配置される。本体上側筐体106は、排出台104側の側面がプリンタユニット402の載置台103側の側面と当接するように配置される。 The lower housing 105 of the main body is mounted on the printer unit 402 so as to be detachably engaged with the printer unit 402. The printer unit 402 is formed in an L shape. The lower housing 105 of the main body has a side surface and a lower surface on the discharge table 104 side, respectively, on the side surface on the mounting table 103 side of the portion extending in the substantially vertical direction of the printer unit 402 and the upper surface of the portion extending in the substantially horizontal direction. Arranged to abut. The upper housing 106 of the main body is arranged so that the side surface of the discharge table 104 side comes into contact with the side surface of the printer unit 402 on the mounting table 103 side.
 プリンタユニット402は、搬送される媒体に所定の情報を印刷するインプリンタである。プリンタ上側筐体410は、プリンタユニット402の上面を覆う位置に配置され、媒体つまり時、プリンタユニット402内部の清掃時等に開閉可能なようにヒンジによりプリンタ下側筐体409に係合している。なお、プリンタユニット402は、本体101と別体で構成されるのでなく、本体101と一体に構成されてもよい。 The printer unit 402 is an imprinter that prints predetermined information on a conveyed medium. The printer upper housing 410 is arranged at a position that covers the upper surface of the printer unit 402, and is engaged with the printer lower housing 409 by a hinge so that it can be opened and closed when the medium is blocked, that is, when cleaning the inside of the printer unit 402, or the like. There is. The printer unit 402 may not be configured separately from the main body 101, but may be integrally configured with the main body 101.
 載置台103は、搬送される媒体を載置可能に本体下側筐体105に係合している。排出台104は、排出された媒体を保持可能にプリンタ上側筐体410に係合している。排出台104は、媒体搬送装置400の前面(プリンタ上側筐体410)と対向するように折り畳み可能に設けられている。 The mounting table 103 is engaged with the lower housing 105 of the main body so that the medium to be transported can be mounted. The ejection table 104 is engaged with the printer upper housing 410 so as to be able to hold the ejected medium. The discharge table 104 is provided so as to be foldable so as to face the front surface (printer upper housing 410) of the medium transfer device 400.
 図11は、媒体搬送装置400内部の搬送経路を説明するための図である。 FIG. 11 is a diagram for explaining a transport path inside the medium transport device 400.
 媒体搬送装置400内部の搬送経路は、プリンタユニット402内部に、第1媒体センサ411、第9搬送ローラ412、第10搬送ローラ413、印刷装置414、印刷装置センサ415、第11搬送ローラ416及び第12搬送ローラ417等を有する。また、この搬送経路は、媒体搬送装置100の本体101が有する各部を有する。但し、第2媒体センサ121は、載置台103に媒体が載置されているか否かを検出し、載置台103に媒体が載置されている状態と載置されていない状態とで信号値が変化する第2媒体信号を生成して出力する。また、第3搬送ローラ122及び第4搬送ローラ123は、給送ローラ及びブレーキローラとして機能し、第4搬送ローラ123は、媒体の給送方向と反対方向A13に回転する。 The transfer path inside the medium transfer device 400 is such that the first medium sensor 411, the ninth transfer roller 412, the tenth transfer roller 413, the printing device 414, the printing device sensor 415, the eleventh transfer roller 416, and the first medium transfer roller 411 are arranged inside the printer unit 402. It has 12 transport rollers 417 and the like. Further, this transport path has each part of the main body 101 of the medium transport device 100. However, the second medium sensor 121 detects whether or not the medium is mounted on the mounting table 103, and the signal value is measured depending on whether the medium is mounted or not mounted on the mounting table 103. A changing second medium signal is generated and output. Further, the third transport roller 122 and the fourth transport roller 123 function as a feed roller and a brake roller, and the fourth transport roller 123 rotates in the direction A13 opposite to the feed direction of the medium.
 本体101は、プリンタ下側筐体409の上面に設けられたツメ418を、本体下側筐体105の下面に設けられた穴131を介して凹部132に嵌合させることにより、プリンタユニット402と係合される。本体101がプリンタユニット402と係合した状態では、本体101の媒体排出口がプリンタユニット402の媒体流入口と対向する。本体下側筐体105及びプリンタ下側筐体409の上面は、媒体の搬送路の下側ガイド420aを形成し、本体上側筐体106及びプリンタ上側筐体410の下面は、媒体の搬送路の上側ガイド420bを形成する。プリンタ上側筐体410は、開閉可能なカバー410aを有し、利用者はカバー410aを開くことにより印刷装置414の配置位置を移動させることができる。 The main body 101 is fitted with the printer unit 402 by fitting the claws 418 provided on the upper surface of the lower housing 409 of the printer into the recess 132 via the holes 131 provided on the lower surface of the lower housing 105 of the main body. Be engaged. When the main body 101 is engaged with the printer unit 402, the medium discharge port of the main body 101 faces the medium inlet of the printer unit 402. The upper surfaces of the main body lower housing 105 and the printer lower housing 409 form the lower guide 420a of the medium transport path, and the lower surfaces of the main body upper housing 106 and the printer upper housing 410 are the media transport paths. The upper guide 420b is formed. The printer upper housing 410 has a cover 410a that can be opened and closed, and the user can move the arrangement position of the printing device 414 by opening the cover 410a.
 第1媒体センサ411は、第7搬送ローラ128及び第8搬送ローラ129より下流側且つ第9搬送ローラ412及び第10搬送ローラ413より下流側に配置される。第1媒体センサ411は、第3媒体センサ126と同様の構成を有し、その位置に媒体が存在するか否かを検出する。 The first medium sensor 411 is arranged on the downstream side of the seventh transfer roller 128 and the eighth transfer roller 129 and on the downstream side of the ninth transfer roller 412 and the tenth transfer roller 413. The first medium sensor 411 has the same configuration as the third medium sensor 126, and detects whether or not a medium is present at that position.
 印刷装置414及び印刷装置センサ415は、それぞれ印刷装置114及び印刷装置センサ115、215又は315と同様の構成を有する。但し、印刷装置414及び印刷装置センサ415は、プリンタ上側筐体410に、媒体搬送方向A1において撮像装置127より下流側に配置される。これにより、撮像装置127は、印刷装置414により印刷される前の媒体を読み取ることが可能となり、媒体搬送装置400は、印刷装置414による印刷結果を含まない画像を保存することが可能となる。 The printing device 414 and the printing device sensor 415 have the same configurations as the printing device 114 and the printing device sensor 115, 215 or 315, respectively. However, the printing device 414 and the printing device sensor 415 are arranged in the upper housing 410 of the printer on the downstream side of the image pickup device 127 in the medium transport direction A1. As a result, the image pickup apparatus 127 can read the medium before being printed by the printing apparatus 414, and the medium transfer apparatus 400 can store an image that does not include the printing result by the printing apparatus 414.
 第11搬送ローラ416及び第12搬送ローラ417は、媒体搬送装置400が有するローラの中で最も下流側に配置され、媒体を排出台104に排出するための排出ローラとして機能する。第11搬送ローラ416及び/又は第12搬送ローラ417を回転軸として支持するシャフトは、処理回路160からの制御に従って、幅方向A12の一端を中心に媒体搬送路の搬送面に沿って揺動可能に設けられる。即ち、第11搬送ローラ416及び/又は第12搬送ローラ417は、処理回路160からの制御に従って、媒体の排出方向を変更可能に設けられる。 The eleventh transfer roller 416 and the twelfth transfer roller 417 are arranged on the most downstream side of the rollers included in the medium transfer device 400, and function as discharge rollers for discharging the medium to the discharge table 104. The shaft that supports the 11th transfer roller 416 and / or the 12th transfer roller 417 as a rotation axis can swing along the transfer surface of the medium transfer path around one end of the width direction A12 according to the control from the processing circuit 160. It is provided in. That is, the 11th transfer roller 416 and / or the 12th transfer roller 417 is provided so that the discharge direction of the medium can be changed according to the control from the processing circuit 160.
 載置台103に載置された媒体は、給送ローラとして機能する第3搬送ローラ122が図11の矢印A6の方向に回転することによって、下側ガイド420aと上側ガイド420bの間を媒体搬送方向A1に向かって搬送される。ブレーキローラとして機能する第4搬送ローラ123は、媒体搬送時、矢印A13の方向に回転する。第3搬送ローラ122及び第4搬送ローラ123の働きにより、載置台103に複数の媒体が載置されている場合、載置台103に載置されている媒体のうち第3搬送ローラ122と接触している媒体のみが分離される。 In the medium mounted on the mounting table 103, the third transport roller 122, which functions as a feeding roller, rotates in the direction of the arrow A6 in FIG. 11 to move the medium between the lower guide 420a and the upper guide 420b in the medium transport direction. It is transported toward A1. The fourth transfer roller 123, which functions as a brake roller, rotates in the direction of arrow A13 when the medium is transferred. When a plurality of media are mounted on the mounting table 103 by the action of the third transport roller 122 and the fourth transport roller 123, they come into contact with the third transport roller 122 among the media mounted on the mounting table 103. Only the medium is separated.
 媒体は、下側ガイド420aと上側ガイド420bによりガイドされながら、第5~第6搬送ローラ124~125がそれぞれ矢印A8~A9の方向に回転することによって、第1撮像装置127aと第2撮像装置127bの間に送り込まれる。撮像装置127により読み取られた媒体は、第7~第10搬送ローラ128~129、412~413がそれぞれ矢印A10~A11、A13~A14の方向に回転することによって印刷装置414の位置に送り込まれる。印刷装置414により印刷された媒体は、第11~第12搬送ローラ416~417がそれぞれ矢印A15~A16の方向に回転することによって排出台104上に排出される。第3~第12搬送ローラ122~125、128~129、412~413、416~417は、媒体を搬送する搬送部の一例である。 The medium is guided by the lower guide 420a and the upper guide 420b, and the fifth to sixth transport rollers 124 to 125 rotate in the directions of arrows A8 to A9, respectively, whereby the first image pickup device 127a and the second image pickup device 127a and the second image pickup device. It is sent during 127b. The medium read by the image pickup apparatus 127 is sent to the position of the printing apparatus 414 by rotating the seventh to tenth transport rollers 128 to 129, 421 to 413 in the directions of the arrows A10 to A11 and A13 to A14, respectively. The medium printed by the printing apparatus 414 is discharged onto the discharge table 104 by rotating the eleventh to twelfth transfer rollers 416 to 417 in the directions of the arrows A15 to A16, respectively. The third to twelfth transport rollers 122 to 125, 128 to 129, 421 to 413, and 416 to 417 are examples of transport units for transporting the medium.
 図12は、媒体搬送装置400の概略構成を示すブロック図である。 FIG. 12 is a block diagram showing a schematic configuration of the medium transfer device 400.
 媒体搬送装置400は、前述した構成に加えて、第1モータ441、第2モータ442、インタフェース装置143、記憶装置150及び処理回路160等をさらに有する。インタフェース装置143、記憶装置150及び処理回路160は、媒体搬送装置100が有するインタフェース装置143、記憶装置150及び処理回路160と同様の構成を有する。 The medium transfer device 400 further includes a first motor 441, a second motor 442, an interface device 143, a storage device 150, a processing circuit 160, and the like, in addition to the above-described configuration. The interface device 143, the storage device 150, and the processing circuit 160 have the same configurations as the interface device 143, the storage device 150, and the processing circuit 160 included in the medium transfer device 100.
 第1モータ441は、一つ又は複数のモータを含み、処理回路160からの制御信号によって、第3~第12搬送ローラ122~125、128~129、412~413、416~417を駆動して回転させ、媒体を給送及び搬送させる。 The first motor 441 includes one or a plurality of motors, and drives the third to twelfth transfer rollers 122 to 125, 128 to 129, 421 to 413, and 416 to 417 by a control signal from the processing circuit 160. Rotate to feed and transport the medium.
 第2モータ442は、処理回路160からの制御信号によって、第11搬送ローラ416及び/又は第12搬送ローラ417を回転軸として支持するシャフトを幅方向A12の一端を中心に媒体搬送路の搬送面に沿って回転させる。これにより、第2モータ442は、第11搬送ローラ416及び第12搬送ローラ417による媒体の排出方向を変更する。 The second motor 442 receives a control signal from the processing circuit 160 to support a shaft that supports the eleventh transport roller 416 and / or the twelfth transport roller 417 as a rotation axis, and the transport surface of the medium transport path centering on one end in the width direction A12. Rotate along. As a result, the second motor 442 changes the discharge direction of the medium by the 11th transfer roller 416 and the 12th transfer roller 417.
 図13及び図14は、媒体搬送装置400の媒体読取処理の動作の例を示すフローチャートである。 13 and 14 are flowcharts showing an example of the operation of the medium reading process of the medium transport device 400.
 図13及び図14に示す媒体読取処理は、図6及び図7に示した媒体読取処理の代わりに実行される。図13及び図14に示すフローチャートのステップS201~S208、S215~S216の処理は、図6及び図7に示したフローチャートのステップS101~S108、S117~S118の処理と同様であるため、詳細な説明を省略する。 The medium reading process shown in FIGS. 13 and 14 is executed in place of the medium reading process shown in FIGS. 6 and 7. The processing of steps S201 to S208 and S215 to S216 of the flowchart shown in FIGS. 13 and 14 is the same as the processing of steps S101 to S108 and S117 to S118 of the flowchart shown in FIGS. Is omitted.
 但し、ステップS202及びS215において、制御部161は、第2媒体センサ121から第2媒体信号を取得し、取得した第2媒体信号に基づいて、載置台103に媒体が載置されているか否かを判定する。また、ステップS203において、検出部162は、印刷装置センサ415から検出信号を取得し、取得した検出信号に基づいて、印刷装置414の配置位置を検出する。また、ステップS204において、制御部161は、第1モータ441を駆動して回転させ、第3~第12搬送ローラ122~125、128~129、412~413、416~417を回転させて、媒体を給送及び搬送させる。また、ステップS216において、制御部161は、第1モータ441を停止させる。 However, in steps S202 and S215, the control unit 161 acquires the second medium signal from the second medium sensor 121, and based on the acquired second medium signal, whether or not the medium is mounted on the mounting table 103. To judge. Further, in step S203, the detection unit 162 acquires a detection signal from the printing device sensor 415, and detects the arrangement position of the printing device 414 based on the acquired detection signal. Further, in step S204, the control unit 161 drives and rotates the first motor 441 to rotate the third to twelfth transport rollers 122 to 125, 128 to 129, 421 to 413, 416 to 417, and causes the medium. Is delivered and transported. Further, in step S216, the control unit 161 stops the first motor 441.
 以下では、ステップS209~S214の処理について説明する。ステップS208において、判定部163により媒体上に印刷ができないと判定された場合、制御部161は、異常処理を実行する(ステップS209)。制御部161は、異常処理として、印刷装置414による媒体への印刷を停止し、処理をステップS212へ移行する。この場合、制御部161は、ステップS210~S211の処理を実行しない。また、制御部161は、異常処理として、図6及び図7のステップS109で説明した各処理を実行してもよい。なお、異常処理として媒体の排出位置を変更する場合、制御部161は、第2モータ442を駆動して、第11、第12搬送ローラ416、417による媒体の排出方向を初期方向から変更し、処理をステップS212へ移行する。 Hereinafter, the processing of steps S209 to S214 will be described. When the determination unit 163 determines in step S208 that printing cannot be performed on the medium, the control unit 161 executes an abnormality process (step S209). As an abnormality process, the control unit 161 stops printing on the medium by the printing device 414, and shifts the process to step S212. In this case, the control unit 161 does not execute the processes of steps S210 to S211. Further, the control unit 161 may execute each process described in step S109 of FIGS. 6 and 7 as an error process. When changing the ejection position of the medium as an abnormal process, the control unit 161 drives the second motor 442 to change the ejection direction of the medium by the eleventh and twelfth transport rollers 416 and 417 from the initial direction. The process proceeds to step S212.
 一方、判定部163により媒体上に印刷可能であると判定された場合、制御部161は、媒体に所定情報を印刷済みであるか否かと、媒体の先端が印刷装置414の印刷位置を通過したか否かと、を判定する(ステップS210)。制御部161は、第1媒体センサ411から第1媒体信号を定期的に受信し、第1媒体信号の信号値が、媒体が存在しないことを示す値から存在することを示す値に変化した場合、媒体の先端が第1媒体センサ411の位置を通過したと判定する。制御部161は、媒体の先端が第1媒体センサ411の位置を通過してから第4所定時間が経過した場合に、媒体の先端が印刷装置414の印刷位置を通過したと判定する。第4所定時間は、第1媒体センサ411の位置から印刷位置までの距離を、第1モータ441による媒体の搬送速度で除算した除算値にマージンを加算した値に設定される。なお、制御部161は、媒体の先端でなく、利用者により指定された媒体の印刷領域が印刷位置を通過したか否かを判定してもよい。 On the other hand, when the determination unit 163 determines that printing is possible on the medium, the control unit 161 determines whether or not predetermined information has been printed on the medium, and the tip of the medium has passed the print position of the printing device 414. Whether or not it is determined (step S210). When the control unit 161 periodically receives the first medium signal from the first medium sensor 411 and the signal value of the first medium signal changes from a value indicating that the medium does not exist to a value indicating that the medium exists. , It is determined that the tip of the medium has passed the position of the first medium sensor 411. The control unit 161 determines that the tip of the medium has passed the printing position of the printing device 414 when the fourth predetermined time has elapsed since the tip of the medium passed the position of the first medium sensor 411. The fourth predetermined time is set to a value obtained by dividing the distance from the position of the first medium sensor 411 to the printing position by the transfer speed of the medium by the first motor 441 and adding a margin. The control unit 161 may determine whether or not the print area of the medium designated by the user, not the tip of the medium, has passed the print position.
 媒体に所定情報を印刷済みである場合、又は、媒体の先端が印刷装置414の印刷位置を通過していない場合、制御部161は、処理をステップS212へ移行する。 If the predetermined information has been printed on the medium, or if the tip of the medium has not passed through the print position of the printing device 414, the control unit 161 shifts the process to step S212.
 一方、まだ媒体に所定情報を印刷しておらず、且つ、媒体の先端が印刷装置414の印刷位置を通過している場合、制御部161は、図6のステップS110の処理と同様にして、媒体に所定情報を印刷するように印刷装置414を制御する(ステップS211)。 On the other hand, when the predetermined information has not been printed on the medium and the tip of the medium has passed the printing position of the printing apparatus 414, the control unit 161 performs the same as the process of step S110 in FIG. The printing device 414 is controlled to print predetermined information on the medium (step S211).
 次に、出力制御部165は、読取画像を生成済みであるか否かと、媒体の後端が撮像装置127の撮像位置を通過したか否かと、を判定する(ステップS212)。出力制御部165は、図6のステップS115の処理と同様にして、媒体の後端が撮像装置127の撮像位置を通過したか否かを判定する。読取画像を生成済みである場合、又は、媒体の後端が撮像装置127の撮像位置を通過していない場合、出力制御部165は、処理をステップS214へ移行する。 Next, the output control unit 165 determines whether or not the scanned image has been generated and whether or not the rear end of the medium has passed the image pickup position of the image pickup device 127 (step S212). The output control unit 165 determines whether or not the rear end of the medium has passed the image pickup position of the image pickup apparatus 127 in the same manner as in the process of step S115 of FIG. If the scanned image has already been generated, or if the rear end of the medium has not passed the image pickup position of the image pickup apparatus 127, the output control unit 165 shifts the process to step S214.
 一方、まだ読取画像を生成しておらず、且つ、媒体の後端が撮像装置127の撮像位置を通過している場合、出力制御部165は、図7のステップS116の処理と同様にして、読取画像を生成し、出力する(ステップS213)。 On the other hand, when the scanned image has not been generated yet and the rear end of the medium has passed the image pickup position of the image pickup apparatus 127, the output control unit 165 performs the same process as in step S116 of FIG. A scanned image is generated and output (step S213).
 次に、制御部161は、媒体に所定情報を印刷済みであるか否かと、読取画像を生成済みであるか否かと、を判定する(ステップS214)。まだ媒体に所定情報を印刷していない場合、又は、まだ読取画像を生成していない場合、制御部161は、処理をステップS210へ戻して、ステップS210~S214の処理を繰り返す。一方、媒体に所定情報を印刷済みであり、且つ、読取画像を生成済みである場合、制御部161は、処理をステップS215へ移行する。なお、ステップS209において印刷装置414による媒体への印刷を停止していた場合、制御部161は、読取画像が生成済みであることのみを条件として処理をステップS215へ移行する。 Next, the control unit 161 determines whether or not the predetermined information has been printed on the medium and whether or not the scanned image has been generated (step S214). If the predetermined information has not been printed on the medium or the scanned image has not been generated yet, the control unit 161 returns the process to step S210 and repeats the processes of steps S210 to S214. On the other hand, when the predetermined information has been printed on the medium and the scanned image has been generated, the control unit 161 shifts the process to step S215. When printing on the medium by the printing apparatus 414 is stopped in step S209, the control unit 161 shifts the process to step S215 only on condition that the scanned image has already been generated.
 以上詳述したように、印刷装置414が撮像装置127より下流側に配置される場合においても、媒体搬送装置400は、装置コストが増大することを抑制しつつ、媒体への印刷を良好に制御することが可能となった。 As described in detail above, even when the printing device 414 is arranged on the downstream side of the image pickup device 127, the medium transfer device 400 satisfactorily controls printing on the medium while suppressing an increase in the device cost. It became possible to do.
 図15は、他の実施形態に係る媒体搬送装置における処理回路560の概略構成を示す図である。処理回路560は、媒体搬送装置100又は媒体搬送装置400の処理回路160の代わりに使用され、処理回路160の代わりに、媒体読取処理を実行する。処理回路560は、制御回路561、検出回路562、判定回路563、印刷判定回路564及び出力制御回路565等を有する。なお、これらの各部は、それぞれ独立した集積回路、マイクロプロセッサ、ファームウェア等で構成されてもよい。 FIG. 15 is a diagram showing a schematic configuration of a processing circuit 560 in a medium transfer device according to another embodiment. The processing circuit 560 is used in place of the processing circuit 160 of the medium transfer device 100 or the medium transfer device 400, and executes the medium reading process in place of the processing circuit 160. The processing circuit 560 includes a control circuit 561, a detection circuit 562, a determination circuit 563, a print determination circuit 564, an output control circuit 565, and the like. Each of these parts may be composed of an independent integrated circuit, a microprocessor, firmware, or the like.
 制御回路561は、制御部の一例であり、制御部161と同様の機能を有する。制御回路561は、操作装置107から操作信号を、第1媒体センサ111又は411から第1媒体信号を、第2媒体センサ121から第2媒体信号を受信し、記憶装置150から印刷可否の判定結果及び媒体への印刷の判定結果を読み出す。制御回路561は、受信した各信号及び読み出した判定結果に応じて媒体の搬送及び印刷を制御するように、第1モータ141又は441、第2モータ142又は442、及び、印刷装置114又は414に制御信号を出力する。特に、制御回路561は、印刷可否の判定結果が媒体上に印刷ができないことを示す場合に異常処理を実行する。 The control circuit 561 is an example of the control unit and has the same function as the control unit 161. The control circuit 561 receives an operation signal from the operation device 107, a first medium signal from the first medium sensor 111 or 411, and a second medium signal from the second medium sensor 121, and determines whether or not to print from the storage device 150. And read out the judgment result of printing on the medium. The control circuit 561 is connected to the first motor 141 or 441, the second motor 142 or 442, and the printing device 114 or 414 so as to control the transfer and printing of the medium according to each received signal and the read determination result. Output a control signal. In particular, the control circuit 561 executes an abnormality process when the printability determination result indicates that printing cannot be performed on the medium.
 検出回路562は、検出部の一例であり、検出部162と同様の機能を有する。検出回路562は、印刷装置センサ115、215、315又は415から検出信号又は印刷装置画像を受信し、受信した検出信号又は印刷装置画像に基づいて、印刷装置114又は414の配置位置を検出し、検出結果を記憶装置150に記憶する。 The detection circuit 562 is an example of the detection unit and has the same function as the detection unit 162. The detection circuit 562 receives a detection signal or a printing device image from the printing device sensor 115, 215, 315 or 415, and detects the arrangement position of the printing device 114 or 414 based on the received detection signal or the printing device image. The detection result is stored in the storage device 150.
 判定回路563は、判定部の一例であり、判定部163と同様の機能を有する。判定回路563は、撮像装置127から入力画像を受信し、記憶装置150から印刷装置114又は414の配置位置の検出結果を読み出す。判定回路563は、受信した入力画像及び読み出した検出結果に基づいて、媒体上に印刷が可能であるか否かを判定し、判定結果を記憶装置150に記憶する。 The determination circuit 563 is an example of the determination unit and has the same function as the determination unit 163. The determination circuit 563 receives the input image from the image pickup device 127, and reads out the detection result of the arrangement position of the printing device 114 or 414 from the storage device 150. The determination circuit 563 determines whether or not printing is possible on the medium based on the received input image and the read detection result, and stores the determination result in the storage device 150.
 印刷判定回路564は、印刷判定部の一例であり、印刷判定部164と同様の機能を有する。印刷判定回路564は、撮像装置127から入力画像を受信し、受信した入力画像に基づいて、媒体に印刷がされているか否かを判定し、判定結果を記憶装置150に記憶する。 The print determination circuit 564 is an example of the print determination unit and has the same function as the print determination unit 164. The print determination circuit 564 receives an input image from the image pickup apparatus 127, determines whether or not printing is performed on the medium based on the received input image, and stores the determination result in the storage device 150.
 出力制御回路565は、出力制御部の一例であり、出力制御部165と同様の機能を有する。出力制御回路565は、第3媒体センサ126から第3媒体信号を受信し、第3媒体信号に従って、撮像装置127から入力画像を受信する。出力制御回路565は、受信した入力画像に基づいて読取画像を生成し、インタフェース装置143を介して情報処理装置へ送信する。 The output control circuit 565 is an example of the output control unit and has the same function as the output control unit 165. The output control circuit 565 receives the third medium signal from the third medium sensor 126, and receives the input image from the image pickup apparatus 127 according to the third medium signal. The output control circuit 565 generates a read image based on the received input image and transmits it to the information processing device via the interface device 143.
 以上詳述したように、媒体搬送装置100又は媒体搬送装置400は、処理回路560を用いる場合においても、装置コストが増大することを抑制しつつ、媒体への印刷を良好に制御することが可能となった。 As described in detail above, the medium transfer device 100 or the medium transfer device 400 can satisfactorily control printing on a medium while suppressing an increase in device cost even when the processing circuit 560 is used. It became.
 100、400 媒体搬送装置、112 給送ローラ、113 ブレーキローラ、114 印刷装置、115、215、315、415 印刷装置センサ、116 第1搬送ローラ、117 第2搬送ローラ、122 第3搬送ローラ、123 第4搬送ローラ、124 第5搬送ローラ、125 第6搬送ローラ、127 撮像装置、128 第7搬送ローラ、129 第8搬送ローラ、161 制御部、162 検出部、163 判定部、164 印刷判定部、165 出力制御部、412 第9搬送ローラ、413 第10搬送ローラ、416 第11搬送ローラ、417 第12搬送ローラ 100, 400 media transfer device, 112 feed roller, 113 brake roller, 114 printing device, 115, 215, 315, 415 printing device sensor, 116 first transfer roller, 117 second transfer roller, 122 third transfer roller, 123 4th transfer roller, 124 5th transfer roller, 125 6th transfer roller, 127 image pickup device, 128 7th transfer roller, 129 8th transfer roller, 161 control unit, 162 detection unit, 163 judgment unit, 164 print judgment unit, 165 Output control unit, 412 9th transfer roller, 413 10th transfer roller, 416 11th transfer roller, 417 12th transfer roller

Claims (9)

  1.  媒体を搬送する搬送部と、
     媒体搬送方向と直交する方向に移動可能に設けられ、且つ、搬送される媒体に印刷する印刷部と、
     媒体搬送方向と直交する方向における前記印刷部の配置位置を検出する検出部と、
     搬送される媒体を撮像して入力画像を生成する撮像部と、
     前記入力画像から検出された媒体位置と前記配置位置とを比較して、媒体上に前記印刷部による印刷が可能であるか否かを判定する判定部と、
     前記判定部により媒体上に印刷ができないと判定された場合に、異常処理を実行する制御部と、
     を有することを特徴とする媒体搬送装置。
    A transport unit that transports the medium and
    A printing unit that is movably provided in a direction orthogonal to the medium transport direction and that prints on the transport medium.
    A detection unit that detects the placement position of the printing unit in a direction orthogonal to the medium transport direction, and a detection unit.
    An image pickup unit that captures an image of the transported medium and generates an input image,
    A determination unit that compares the media position detected from the input image with the arrangement position and determines whether or not printing by the printing unit is possible on the medium.
    A control unit that executes an abnormality process when it is determined by the determination unit that printing cannot be performed on the medium.
    A medium transfer device characterized by having.
  2.  前記印刷部は、媒体搬送方向において前記撮像部より上流側に配置される、請求項1に記載の媒体搬送装置。 The medium transfer device according to claim 1, wherein the printing unit is arranged on the upstream side of the image pickup unit in the medium transfer direction.
  3.  前記入力画像に基づいて、搬送される媒体に前記印刷部による印刷がされているか否かを判定する印刷判定部をさらに有し、
     前記制御部は、前記印刷判定部により媒体に前記印刷部による印刷がされていないと判定された場合に、第2異常処理を実行する、請求項2に記載の媒体搬送装置。
    Further, it has a print determination unit for determining whether or not printing by the printing unit is performed on the conveyed medium based on the input image.
    The medium transfer device according to claim 2, wherein the control unit executes a second abnormality process when the print determination unit determines that the medium is not printed by the print unit.
  4.  所定位置から前記印刷部までの距離を測定するセンサをさらに有し、
     前記検出部は、前記距離に基づいて前記配置位置を検出する、請求項1~3の何れか一項に記載の媒体搬送装置。
    It also has a sensor that measures the distance from the predetermined position to the printing unit.
    The medium transfer device according to any one of claims 1 to 3, wherein the detection unit detects the arrangement position based on the distance.
  5.  媒体搬送方向と直交する方向において間隔を空けて配置され且つ前記印刷部を検出する複数のセンサをさらに有し、
     前記検出部は、前記複数のセンサによる検知結果に基づいて前記配置位置を検出する、請求項1~3の何れか一項に記載の媒体搬送装置。
    Further having a plurality of sensors arranged at intervals in a direction orthogonal to the medium transport direction and detecting the printed portion.
    The medium transfer device according to any one of claims 1 to 3, wherein the detection unit detects the arrangement position based on the detection results of the plurality of sensors.
  6.  前記印刷部の移動可能範囲を撮像した画像を生成するセンサをさらに有し、
     前記検出部は、前記生成された画像に基づいて前記配置位置を検出する、請求項1~3の何れか一項に記載の媒体搬送装置。
    It further has a sensor that generates an image that captures the movable range of the printing unit.
    The medium transfer device according to any one of claims 1 to 3, wherein the detection unit detects the arrangement position based on the generated image.
  7.  前記入力画像に基づく画像を出力する出力制御部をさらに有する、請求項1に記載の媒体搬送装置。 The medium transfer device according to claim 1, further comprising an output control unit that outputs an image based on the input image.
  8.  媒体を搬送する搬送部と、媒体搬送方向と直交する方向に移動可能に設けられ、且つ、搬送される媒体に印刷する印刷部と、媒体搬送方向と直交する方向における前記印刷部の配置位置を検出する検出部と、搬送される媒体を撮像して入力画像を生成する撮像部と、を有する媒体搬送装置の制御方法であって、
     前記入力画像から検出された媒体位置と前記配置位置とを比較して、媒体上に前記印刷部による印刷が可能であるか否かを判定し、
     媒体上に印刷ができないと判定された場合に、異常処理を実行する、
     ことを特徴とする制御方法。
    The arrangement position of the transport unit for transporting the medium, the printing unit movably provided in the direction orthogonal to the medium transport direction and printing on the transported medium, and the printing unit in the direction orthogonal to the medium transport direction. It is a control method of a medium transport device having a detection unit for detecting and an image pickup unit for capturing an image of a conveyed medium to generate an input image.
    By comparing the medium position detected from the input image with the arrangement position, it is determined whether or not printing by the printing unit is possible on the medium.
    If it is determined that printing is not possible on the medium, an error process is executed.
    A control method characterized by that.
  9.  媒体を搬送する搬送部と、媒体搬送方向と直交する方向に移動可能に設けられ、且つ、搬送される媒体に印刷する印刷部と、媒体搬送方向と直交する方向における前記印刷部の配置位置を検出する検出部と、搬送される媒体を撮像して入力画像を生成する撮像部と、を有する媒体搬送装置の制御プログラムであって、
     前記入力画像から検出された媒体位置と前記配置位置とを比較して、媒体上に前記印刷部による印刷が可能であるか否かを判定し、
     媒体上に印刷ができないと判定された場合に、異常処理を実行する、
     ことを前記媒体搬送装置に実行させることを特徴とする制御プログラム。
    The arrangement position of the transport unit for transporting the medium, the printing unit movably provided in the direction orthogonal to the medium transport direction and printing on the transported medium, and the printing unit in the direction orthogonal to the medium transport direction. A control program for a medium transport device having a detection unit for detection and an image pickup unit that captures an image of a conveyed medium to generate an input image.
    By comparing the medium position detected from the input image with the arrangement position, it is determined whether or not printing by the printing unit is possible on the medium.
    If it is determined that printing is not possible on the medium, an error process is executed.
    A control program characterized by causing the medium transfer device to execute the above.
PCT/JP2020/030720 2020-08-12 2020-08-12 Medium conveyance device, control method, and control program WO2022034659A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2022542542A JP7430266B2 (en) 2020-08-12 2020-08-12 Media transport device, control method and control program
PCT/JP2020/030720 WO2022034659A1 (en) 2020-08-12 2020-08-12 Medium conveyance device, control method, and control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2020/030720 WO2022034659A1 (en) 2020-08-12 2020-08-12 Medium conveyance device, control method, and control program

Publications (1)

Publication Number Publication Date
WO2022034659A1 true WO2022034659A1 (en) 2022-02-17

Family

ID=80247051

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2020/030720 WO2022034659A1 (en) 2020-08-12 2020-08-12 Medium conveyance device, control method, and control program

Country Status (2)

Country Link
JP (1) JP7430266B2 (en)
WO (1) WO2022034659A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008162728A (en) * 2006-12-27 2008-07-17 Nisca Corp Document conveying device and image reading device
JP2015186848A (en) * 2014-03-26 2015-10-29 船井電機株式会社 printer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008162728A (en) * 2006-12-27 2008-07-17 Nisca Corp Document conveying device and image reading device
JP2015186848A (en) * 2014-03-26 2015-10-29 船井電機株式会社 printer

Also Published As

Publication number Publication date
JP7430266B2 (en) 2024-02-09
JPWO2022034659A1 (en) 2022-02-17

Similar Documents

Publication Publication Date Title
US6646768B1 (en) Single automatic document feeder sensor for media leading edge and top cover being opened detection
TWI701939B (en) Image reading apparatus
CN107018249B (en) Image reading apparatus
US8842346B2 (en) Document reading device which includes automatic document conveying mechanism and reads plural documents one by one
JP4379366B2 (en) Medium edge detection apparatus and image recording apparatus
JP2007182265A (en) Sheet carrying device
US7916359B2 (en) Image forming apparatus
KR20050011398A (en) Paper feeding device
US20060110197A1 (en) Automatic document transportation device
US10603926B2 (en) Image forming apparatus
WO2022034659A1 (en) Medium conveyance device, control method, and control program
JP2023083336A (en) Medium transport device, controlling method and controlling program
JP2020104946A (en) Sheet conveying device and image forming device including the same
US20070134037A1 (en) Document handler systems and methods
US11050890B1 (en) Medium conveying apparatus for determining conveyance abnormality based on images acquired by changing backing member
JP2022131544A (en) Medium conveyance device, control method and control program
JP2022131523A (en) Medium conveyance device, control method and control program
JP2021197715A (en) Media transfer device, control method, and control program
JP7417007B2 (en) Media transport device, control method and control program
JP7453870B2 (en) Media transport device, control method and control program
JP7201470B2 (en) MEDIUM CONVEYING DEVICE, CONTROL METHOD AND CONTROL PROGRAM
JP6884119B2 (en) Paper transfer device, control method and control program
JP7453423B2 (en) Media transport device, control method and control program
WO2023166729A1 (en) Media ejection device
WO2022079770A1 (en) Medium carrying device, control method, and control program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20949521

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022542542

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20949521

Country of ref document: EP

Kind code of ref document: A1