JP2015182367A - Transfer system and printing apparatus - Google Patents

Transfer system and printing apparatus Download PDF

Info

Publication number
JP2015182367A
JP2015182367A JP2014061989A JP2014061989A JP2015182367A JP 2015182367 A JP2015182367 A JP 2015182367A JP 2014061989 A JP2014061989 A JP 2014061989A JP 2014061989 A JP2014061989 A JP 2014061989A JP 2015182367 A JP2015182367 A JP 2015182367A
Authority
JP
Japan
Prior art keywords
data
motor
identification
line
clock
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP2014061989A
Other languages
Japanese (ja)
Inventor
幸司 小沢
Koji Ozawa
幸司 小沢
中村 直樹
Naoki Nakamura
直樹 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2014061989A priority Critical patent/JP2015182367A/en
Publication of JP2015182367A publication Critical patent/JP2015182367A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a transfer system which allows for immediate processing.SOLUTION: A first control circuit interprets the direction data transferred, at a rising edge of the clock pulse on a clock line, together with own first identification data or second identification data in which plural control circuits are specified collectively. A second control circuit interprets the direction data transferred, at a falling edge of the clock pulse on the clock line, together with own first identification data or third identification data in which plural control circuits are specified collectively.

Description

本発明は、電動機を駆動するためのデーターを送信する転送システム、および、この転送システムを備える印刷装置に関する。   The present invention relates to a transfer system that transmits data for driving an electric motor, and a printing apparatus including the transfer system.

従来からデーター転送に必要な配線を簡略化しつつ、効率的にデーター転送を行う手法が種々試みられている(例えば、特許文献1参照)。   Conventionally, various methods for efficiently transferring data while simplifying wiring necessary for data transfer have been attempted (see, for example, Patent Document 1).

特開2001−217827号公報JP 2001-217827 A

データー転送に係る一部の配線を共有する構成として、モータードライバーの配線を共通化した場合を想定してみる。モータードライバーAおよびモータードライバーBは、それぞれのモーターを駆動する。また、モーター制御に係る制御パラメーターの分離を容易にするため、一方へのモーター制御に係る制御パラメーターの転送終了後に、他方への制御パラメーターの転送を開始する。
ここで、制御パラメーターに基づくモーター制御をほぼ同時期に行わなければならない状況が発生したとすると、一方のモーターを制御するための制御パラメーターの転送が開始された後、他方のモーターの制御パラメーターの転送をすぐに開始することができず、他方のモーターの制御が開始可能になるまでに待ち時間が発生し、適切なタイミングでモーターを制御できなくなるおそれがある。
Assume that the motor driver wiring is shared as a configuration that shares some wiring related to data transfer. Motor driver A and motor driver B drive each motor. In order to facilitate separation of control parameters related to motor control, transfer of control parameters to the other is started after the transfer of control parameters related to motor control to one side is completed.
Here, if a situation occurs in which motor control based on the control parameter must be performed almost at the same time, after the transfer of the control parameter for controlling one motor is started, the control parameter of the other motor is changed. The transfer cannot be started immediately, and a waiting time is generated until the control of the other motor can be started, and the motor may not be controlled at an appropriate timing.

本発明は、上述のようにデーター転送に係る一部の配線を共有する構成において発生しうる課題に鑑みてなされたものであり、即時性のある処理を可能にする転送システムを提供することを目的とする。     The present invention has been made in view of the problems that may occur in the configuration in which a part of wiring related to data transfer is shared as described above, and provides a transfer system that enables immediate processing. Objective.

[適用例1]
上記課題を解決するために、本発明の一態様では、電動機を制御する複数の制御回路と、1のデータラインおよび1のクロックラインを介して接続した複数の前記制御回路のそれぞれに前記電動機の制御を指示する識別データーおよび指示データーをシリアルに転送するコントローラーと、を備え、複数の前記制御回路がそれぞれ自己の制御回路を識別するための第1識別データーを識別可能であり、前記コントローラーは、前記1のクロックラインにおけるクロックパルスの立ち上がりエッジに対して第1の制御回路に対する識別データーおよび第1の前記指示データーを前記1のデータラインに対応づけて転送し、前記1のクロックラインにおけるクロックパルスの立ち下がりエッジに対して第2の制御回路に対する識別データーおよび第2の前記指示データーを前記1のデータラインに対応づけて転送し、前記第1の制御回路は、前記1のクロックラインにおける前記クロックパルスの立ち上がりエッジに対して自己の第1識別データーまたは複数の制御回路を一括で指定する第2識別データーとともに転送された前記指示データーを解釈し、前記第2の制御回路は、前記1のクロックラインにおける前記クロックパルスの立ち下がりエッジに対して自己の第1識別データーまたは複数の制御回路を一括で指定する第3識別データーとともに転送された前記指示データーを解釈する。
[Application Example 1]
In order to solve the above-described problem, according to one embodiment of the present invention, a plurality of control circuits for controlling an electric motor and a plurality of control circuits connected via one data line and one clock line are connected to each of the control circuits. An identification data for instructing control and a controller for serially transferring the instruction data, and a plurality of the control circuits can each identify first identification data for identifying their own control circuits, The identification data for the first control circuit and the first instruction data are transferred in association with the first data line with respect to the rising edge of the clock pulse in the one clock line, and the clock pulse in the first clock line is transferred. Identification data for the second control circuit with respect to the falling edge of The instruction data of 2 is transferred in association with the first data line, and the first control circuit is configured to detect the first identification data of the first clock line or the plurality of instruction data with respect to a rising edge of the clock pulse in the first clock line. The instruction data transferred together with the second identification data for collectively specifying the control circuit is interpreted, and the second control circuit is self-first with respect to the falling edge of the clock pulse in the one clock line. The instruction data transferred together with the identification data or the third identification data for collectively specifying a plurality of control circuits is interpreted.

上記のように構成された発明では、第1の制御回路と、第2の制御回路とは、1のクロックラインにおけるクロックパルスの立ち上がりまたは立ち下がりエッジに対して、第1識別データーまたは複数の制御回路を一括で指定する第2または第3識別データーとともに転送された指示データーを解釈する。
そのため、データラインを共通化しつつも、制御部は、第1識別データーによりこのデータラインで送信される自己宛のデーターを解釈することができる。また、第2または第3識別データーとともに指示データーが転送された場合、複数の制御回路に宛てて、指示データーを転送することができる。
即ち、データラインを複数の制御回路で共通化した場合でも、指示データーの個々の制御回路への転送や、複数の制御回路への一括での転送と、を使い分けるけることができ、データー転送を柔軟に行うことができる。
In the invention configured as described above, the first control circuit and the second control circuit may be configured such that the first identification data or the plurality of controls is applied to the rising or falling edge of the clock pulse in one clock line. The instruction data transferred together with the second or third identification data for designating the circuits collectively is interpreted.
Therefore, while the data line is shared, the control unit can interpret the self-addressed data transmitted on the data line by the first identification data. When the instruction data is transferred together with the second or third identification data, the instruction data can be transferred to a plurality of control circuits.
In other words, even when a data line is shared by a plurality of control circuits, transfer of instruction data to individual control circuits and batch transfer to a plurality of control circuits can be used properly. It can be done flexibly.

[適用例2]
本発明の一態様では、前記第2識別データーと前記第3識別データーとは同じデーターである。
上記のように構成された発明では、1つの識別データーにより全ての制御回路に指示データーを転送することができる。
[Application Example 2]
In one aspect of the present invention, the second identification data and the third identification data are the same data.
In the invention configured as described above, the instruction data can be transferred to all the control circuits by one identification data.

[適用例3]
本発明の一態様では、前記すべての制御回路に対応する指示データーは、前記電動機を停止させるデーターである。
上記のように構成された発明では、電動機を停止させる場合に要する時間を短くすることができる。
[Application Example 3]
In one aspect of the present invention, the instruction data corresponding to all the control circuits is data for stopping the electric motor.
In the invention configured as described above, the time required for stopping the electric motor can be shortened.

[適用例4]
本発明の一態様では、前記コントローラーは、前記1のクロックラインにおけるクロックパルスの立ち上がりエッジから立ち下がりエッジを含む期間に、前記第2識別データーとすべての制御回路に対する指示データーとを1つのデータラインに対応づけて転送する。
上記のように構成された発明では、データーの転送幅を短くして、転送に要する時間を短くすることができる。
[Application Example 4]
In one aspect of the present invention, the controller transmits the second identification data and instruction data for all control circuits in one data line during a period including a rising edge and a falling edge of a clock pulse in the one clock line. Transfer in association with.
In the invention configured as described above, the data transfer width can be shortened to shorten the time required for the transfer.

また、本発明は、転送システムとして捉えるのみならず、このような転送システムを一部に含む印刷装置としても取らえることができる。   In addition, the present invention can be regarded not only as a transfer system but also as a printing apparatus including a part of such a transfer system.

印刷装置の構成を示す図。1 is a diagram illustrating a configuration of a printing apparatus. モーター駆動を制御するハードウェアの一部を示す図。The figure which shows a part of hardware which controls a motor drive. SOC50からモータードライバー210〜260に転送される転送データー100構成を説明する図。The figure explaining the transfer data 100 structure transferred to the motor drivers 210-260 from SOC50. モータードライバーの構成を説明する図。The figure explaining the structure of a motor driver. SOCとモータードライバーとの間で転送されるデーターのフォーマット例を示す図。The figure which shows the example of a format of the data transferred between SOC and a motor driver. モータードライバーのパラメーターを設定する際に行われる処理の一例を示す図。The figure which shows an example of the process performed when setting the parameter of a motor driver. 給紙部とキャリッジ部による印刷処理の一例を示す図。FIG. 4 is a diagram illustrating an example of a printing process performed by a sheet feeding unit and a carriage unit. 各モーターを一括で停止する際に行われる処理の一例を示す図。The figure which shows an example of the process performed when stopping each motor collectively.

以下、下記の順序に従って本発明の実施形態を説明する。
1.第1の実施形態:
(1)印刷装置の構成
(2)転送処理の概要
(3)パラメーター設定処理
(4)印刷制御
2.第2の実施形態:
3.その他の実施形態:
Hereinafter, embodiments of the present invention will be described in the following order.
1. First embodiment:
(1) Configuration of printing apparatus (2) Outline of transfer process (3) Parameter setting process (4) Print control Second embodiment:
3. Other embodiments:

1.第1の実施形態:
(1)印刷装置の構成
図1は、印刷装置の構成を示す図である。
印刷装置10は、FAX機能、印刷機能、スキャナー機能を備える複合機である。印刷装置10は、筺体11と、筺体11の上部に備えられたスキャナー部20と、筺体11の内部に備えられて用紙に対して印刷を行う印刷部30と、筺体11の内部に備えられて印刷部30に用紙を供給する搬送部40と、を備える。
1. First embodiment:
(1) Configuration of Printing Apparatus FIG. 1 is a diagram illustrating a configuration of a printing apparatus.
The printing apparatus 10 is a multifunction machine having a FAX function, a printing function, and a scanner function. The printing apparatus 10 includes a housing 11, a scanner unit 20 provided on the top of the housing 11, a printing unit 30 that is provided inside the housing 11 and performs printing on paper, and is provided inside the housing 11. A transport unit 40 that supplies paper to the printing unit 30.

スキャナー部20は、原稿台(図示しない)にセットされた原稿をスキャンして、データー化する。スキャナー部20は、スキャナーユニット21と、ミラー22、23と、レンズ24と、CCDイメージセンサー25と、を備える。このスキャナー部20では、スキャナーユニット21が走査方向に移動して、原稿を読み取る。スキャナーユニット21により読み取られた原稿データーは、ミラー22、23を介してレンズ24に集められ、CCDイメージセンサー25に入力する。以下、スキャナー部20によりスキャンされたデーターを原稿データーとも記載する。   The scanner unit 20 scans a document set on a document table (not shown) and converts it into data. The scanner unit 20 includes a scanner unit 21, mirrors 22 and 23, a lens 24, and a CCD image sensor 25. In the scanner unit 20, the scanner unit 21 moves in the scanning direction to read a document. Document data read by the scanner unit 21 is collected by the lens 24 via the mirrors 22 and 23 and input to the CCD image sensor 25. Hereinafter, the data scanned by the scanner unit 20 is also referred to as document data.

搬送部40は、用紙がセットされるトレイ41と、トレイにセットされた用紙を搬送経路に供給する給紙ローラー42、43と、給紙された用紙を印刷部30に給紙する搬送ローラー44、45を備える。   The transport unit 40 includes a tray 41 on which paper is set, paper feed rollers 42 and 43 that supply the paper set on the tray to the transport path, and a transport roller 44 that feeds the fed paper to the printing unit 30. , 45.

本実施形態では、印刷部30として、インクジェット式のプリントヘッドであって、走査を行うシリアル式のプリントヘッドを例に説明を行う。印刷部30は、搬送部40により給紙された用紙に対してインクを記録するプリントヘッド31、プリントヘッド31を往復移動させるキャリッジ32を備える。キャリッジ32は、プリントヘッド31のインク吐出面を下側に向けた状態で同プリントヘッド31を固定している。また、キャリッジ32は、走査方向に往復移動する。また、プリントヘッド31は、キャリッジ32や用紙の搬送に同期して、用紙に対してインクを記録する。   In the present embodiment, an example of an inkjet print head that performs scanning is described as an example of the printing unit 30. The printing unit 30 includes a print head 31 that records ink on a sheet fed by the transport unit 40 and a carriage 32 that reciprocates the print head 31. The carriage 32 fixes the print head 31 with the ink ejection surface of the print head 31 facing downward. The carriage 32 reciprocates in the scanning direction. Further, the print head 31 records ink on the paper in synchronization with the carriage 32 and the conveyance of the paper.

図2は、搬送部40、キャリッジ32、スキャナーユニット21における各モーター制御に係るデーター転送機能を実現するハードウェアの一部を示した図である。
SOC50は、CPU(Central Processing Unit)60や、調停回路(アービーター)70、図示を略したメモリーおよびコントローラー回路等を備えてモーターを制御するコントローラーである。また、SOC50の出力ポートは、複数のモータードライバー210〜260と接続されている。
FIG. 2 is a diagram illustrating a part of hardware for realizing a data transfer function related to each motor control in the transport unit 40, the carriage 32, and the scanner unit 21.
The SOC 50 is a controller that controls a motor by including a central processing unit (CPU) 60, an arbitration circuit (arbiter) 70, a memory and a controller circuit (not shown), and the like. The output port of the SOC 50 is connected to a plurality of motor drivers 210 to 260.

CPU60は、複数のレジスターを有する。所定のプログラム(例えば、印刷装置10を稼働させるためのファームウェア)を実行するCPU60によって、転送データー100やフラグが各レジスターに記録され、また、各レジスターに記録された転送データーやフラグは、次々に、後段の調停回路70へ出力される。   The CPU 60 has a plurality of registers. The transfer data 100 and the flag are recorded in each register by the CPU 60 that executes a predetermined program (for example, firmware for operating the printing apparatus 10), and the transfer data and the flag recorded in each register are sequentially stored. , And output to the arbitration circuit 70 in the subsequent stage.

CPU60の各レジスターには、モータードライバー210〜260に対応する情報が記録される。例えば、図示しない第1レジスターには、モータードライバー210に対する転送データー100が記録され、図示しない第2レジスターには、モータードライバー220における転送データー100が記録される。調停回路70は、各レジスターに記録された転送データー100の優先度に応じて、転送データー100を各レジスターから出力させる。   Information corresponding to the motor drivers 210 to 260 is recorded in each register of the CPU 60. For example, transfer data 100 for the motor driver 210 is recorded in a first register (not shown), and transfer data 100 for the motor driver 220 is recorded in a second register (not shown). The arbitration circuit 70 outputs the transfer data 100 from each register according to the priority of the transfer data 100 recorded in each register.

モータードライバー210、230は、搬送部40の給紙ローラー42、43を駆動させる給紙モーター310、330とそれぞれ接続され、給紙モーター310、330の回転を制御する。
また、モータードライバー220、240は、搬送部40の搬送ローラー44、45を駆動させる搬送モーター320、340とそれぞれ接続され、搬送モーター320、340の回転を制御する。
また、モータードライバー250は、キャリッジ32を駆動させるキャリッジモーター350に接続され、キャリッジモーター350の回転を制御する。
そして、モータードライバー260は、スキャナーユニット21を駆動させるスキャナモーター360に接続され、スキャナモーター360の回転を制御する。
The motor drivers 210 and 230 are connected to the paper feed motors 310 and 330 that drive the paper feed rollers 42 and 43 of the transport unit 40, respectively, and control the rotation of the paper feed motors 310 and 330.
Further, the motor drivers 220 and 240 are connected to the transport motors 320 and 340 that drive the transport rollers 44 and 45 of the transport unit 40, respectively, and control the rotation of the transport motors 320 and 340.
The motor driver 250 is connected to a carriage motor 350 that drives the carriage 32, and controls the rotation of the carriage motor 350.
The motor driver 260 is connected to the scanner motor 360 that drives the scanner unit 21 and controls the rotation of the scanner motor 360.

各モータードライバーは、SOC50とは別体で構成されるICを想定するが、SOCに組み込んでも良い。尚、本実施形態では、スキャナモーター360はステッピングモーターを想定する。また、給紙モーター310、330、搬送モーター320、340およびキャリッジモーター350は直流電流で駆動する直流モーター(DCモーター)を想定するが、電動機であれば良くこれらに限定されるものではない。
なお、本実施形態では、第1の制御回路は、モータードライバー220、240であり、第2の制御回路は、モータードライバー210、230である。
Each motor driver assumes an IC configured separately from the SOC 50, but may be incorporated in the SOC. In this embodiment, the scanner motor 360 is assumed to be a stepping motor. The paper feed motors 310 and 330, the transport motors 320 and 340, and the carriage motor 350 are assumed to be direct current motors (DC motors) that are driven by direct current, but are not limited to these as long as they are electric motors.
In the present embodiment, the first control circuit is the motor drivers 220 and 240, and the second control circuit is the motor drivers 210 and 230.

SOC50と、各モータードライバー210〜260との間のデーター転送は、シリアルインターフェイス方式を採用し、クロックライン(CLK)、データライン(DATA)およびロードライン(LD)の3線を使用してデーター転送が行われる。また、SOC50がデーター転送に使用する3線は1系統のみであり、CLK、DATAおよびLDの各線はそれぞれ6分岐され、モータードライバー210〜260に接続されている。   Data transfer between the SOC 50 and each motor driver 210 to 260 adopts a serial interface method, and data transfer is performed using three lines of a clock line (CLK), a data line (DATA), and a load line (LD). Is done. The SOC 50 uses only one line for data transfer, and the CLK, DATA, and LD lines are each branched into six branches and connected to the motor drivers 210 to 260.

次に、SOC50と、各モータードライバー210〜260との間で転送される転送データー100の構成について説明する。
図3は、SOC50からモータードライバー210〜260に転送される転送データー100構成を説明する図である。図3(a)は、データー形式を示す図である。また、図3(b)は、識別ID110に指定されるモータードライバーを説明する図である。
Next, the configuration of the transfer data 100 transferred between the SOC 50 and the motor drivers 210 to 260 will be described.
FIG. 3 is a diagram for explaining the configuration of transfer data 100 transferred from the SOC 50 to the motor drivers 210 to 260. FIG. 3A shows a data format. FIG. 3B is a diagram for explaining a motor driver designated by the identification ID 110.

図3(a)に示すように、転送データー100は、識別ID110と、指示データー120と、を含む。識別ID110は、送り先のモータードライバーを特定するための情報である。また、指示データー120は、モータードライバーに実行させる命令を規定した情報である。例えば、識別ID110は1つの転送データー100の先頭3ビットにより構成される。また、指示データー120は、識別ID110と比べて後ろの18ビットにより構成される。   As shown in FIG. 3A, the transfer data 100 includes an identification ID 110 and instruction data 120. The identification ID 110 is information for specifying the destination motor driver. The instruction data 120 is information defining an instruction to be executed by the motor driver. For example, the identification ID 110 is composed of the first 3 bits of one transfer data 100. In addition, the instruction data 120 is composed of the last 18 bits compared to the identification ID 110.

識別ID110の各値は、それぞれ各モータードライバーに対応している。第1の実施形態では、識別データーの内、『0』は、複数のドライバーに共通の番号(以下、共通IDとも記載する。)であり、『1』〜『6』は、各モータードライバーの個別の番号(以下、個別IDとも記載する。)である。   Each value of the identification ID 110 corresponds to each motor driver. In the first embodiment, “0” in the identification data is a number common to a plurality of drivers (hereinafter also referred to as a common ID), and “1” to “6” are the numbers of the motor drivers. It is an individual number (hereinafter also referred to as an individual ID).

また、図3(b)に示すように、識別IDが共通ID『0』の場合でも、クロックラインCLKに流れるクロックパルスのエッジ(立ち下がり、立ち上がり)の変化に応じて対応するモータードライバーが異なる。以下、共通ID『0』を区別する場合に組み合わされるクロックパルスのエッジの変化を識別CLKエッジとも記載する。すなわち、転送データー100が共通ID『0』でクロックパルスの立ち下がりに同期する場合を、『識別CLKエッジが立ち下がり』と記載する。また、転送データー100が共通ID『0』でクロックパルスの立ち上がりに同期する場合を、『識別CLKエッジが立ち上がり』と記載する。
すなわち、共通ID『0』で識別CLKエッジが立ち下がりは、個別IDが奇数番のモータードライバー210(識別ID『1』)、230(識別ID『3』)、250(識別ID『5』)に共通の識別データーとなる。本実施形態では、個別IDが奇数番(『1』『3』『5』)であるモータードライバー210、230、250は、それぞれモーター310、330、350を制御する回路である。
また、共通ID『0』で、識別CLKエッジが立ち上がりは、個別IDが偶数番のモータードライバー220(『2』)、240(『4』))に共通の識別データーとなる。本実施形態では、個別IDが偶数番(『2』『4』)であるモータードライバー220、240は、それぞれモーター320、340を制御する回路である。
Further, as shown in FIG. 3B, even when the identification ID is the common ID “0”, the corresponding motor driver varies depending on the change of the edge (falling, rising) of the clock pulse flowing through the clock line CLK. . Hereinafter, the change in the edge of the clock pulse combined when the common ID “0” is distinguished is also referred to as an identification CLK edge. That is, the case where the transfer data 100 is synchronized with the falling edge of the clock pulse with the common ID “0” is described as “the falling edge of the identification CLK”. A case where the transfer data 100 is synchronized with the rising edge of the clock pulse with the common ID “0” is described as “rising edge of identification CLK”.
In other words, when the identification CLK edge falls with the common ID “0”, the motor drivers 210 (identification ID “1”), 230 (identification ID “3”), 250 (identification ID “5”) with the odd individual IDs. The common identification data. In the present embodiment, the motor drivers 210, 230, and 250 whose individual IDs are odd numbers (“1”, “3”, and “5”) are circuits that control the motors 310, 330, and 350, respectively.
In addition, when the identification CLK edge rises with the common ID “0”, the identification data is common to the motor drivers 220 (“2”) and 240 (“4”) whose individual IDs are even numbers. In this embodiment, the motor drivers 220 and 240 whose individual IDs are even numbers (“2” and “4”) are circuits for controlling the motors 320 and 340, respectively.

そのため、本発明の第1識別データーは、『1』〜『6』の識別IDである。また、第2識別データーおよび第3識別データーは、識別ID『0』で識別CLKエッジが立ち下がり、または識別ID『0』で識別CLKエッジが立ち上がりのいずれかである。
なお、この実施形態では、識別『0』で識別CLKエッジが立ち上がりの場合、ステッピングモーター(スキャナモーター360)を駆動するモータードライバー260を対象としていないが、これに限定されず、モータードライバー260を対象とするものであってもよい。
Therefore, the first identification data of the present invention is identification IDs “1” to “6”. The second identification data and the third identification data are either the identification CLK edge falling at the identification ID “0” or the identification CLK edge rising at the identification ID “0”.
In this embodiment, when the identification CLK edge rises with identification “0”, the motor driver 260 that drives the stepping motor (scanner motor 360) is not targeted, but is not limited thereto, and the motor driver 260 is targeted. It may be.

また、指示データー120は、モータードライバーの設定を行なう設定コマンドや、モータードライバーの駆動を制御する駆動コマンドを含む。
設定コマンドは、各モーターを駆動するために供給する電流の供給方法を設定する『電流パラメーター』や、モーターの停止方法を規定する『停止パラメーター』を含む。また、駆動コマンドには、『等速制御』、『等速第2制御』、『回生ブレーキ』、『ショートブレーキ』、『ブレーキエンド』の各命令を含む。
The instruction data 120 includes a setting command for setting the motor driver and a driving command for controlling driving of the motor driver.
The setting command includes a “current parameter” for setting a supply method of a current supplied to drive each motor, and a “stop parameter” for specifying a motor stop method. The drive command includes commands of “constant speed control”, “constant speed second control”, “regenerative brake”, “short brake”, and “brake end”.

各モータードライバー210〜260で処理されるデーターは複数のビット列で構成される。本実施形態では、21ビット単位、即ち、3バイト単位で構成される態様を想定する。それより小さいもしくは大きいビット数からなるデーターとしても良いし、コマンドやパラメーター等の態様に応じて可変長のビット数からなるデーターとしても良い。   Data processed by each of the motor drivers 210 to 260 is composed of a plurality of bit strings. In the present embodiment, a mode configured in units of 21 bits, that is, units of 3 bytes is assumed. It may be data having a smaller or larger number of bits, or may be data having a variable number of bits depending on the mode of commands, parameters, and the like.

SOC50と、モータードライバー210〜260との間で転送されるデーター量は、印刷装置の動作に応じて変動する。例えば、印刷装置で原稿のコピーを行う場合、スキャナーユニット21は原稿に沿って読み取りながら高精度で移動する必要がある。従って、SOC50は、スキャナモーター360であるステッピングモーターを高精度で駆動させるべく、駆動指示データーを相切り替え毎等の単位制御ステップごとにモータードライバー260に送る。   The amount of data transferred between the SOC 50 and the motor drivers 210 to 260 varies depending on the operation of the printing apparatus. For example, when copying a document with a printing apparatus, the scanner unit 21 needs to move with high accuracy while reading along the document. Accordingly, the SOC 50 sends drive instruction data to the motor driver 260 for each unit control step such as phase switching in order to drive the stepping motor, which is the scanner motor 360, with high accuracy.

さらに、読み取った原稿の画像データーを順次印刷するために、SOC50は、給紙モーター310、330、搬送モーター320、340、およびキャリッジモーター350をそれぞれ駆動させるための駆動コマンドを各モータードライバー210〜250に送る。従って、SOC50は、モータードライバー260によるスキャナモーター360の駆動と、モータードライバー210〜250による給紙モーター310、330、搬送モーター320、340、またはキャリッジモーター350の駆動を非同期で指示することから、タイミングによっては略同時に制御コマンドに基づく制御が指示される場合がある。(本実施例において、SOC50が転送する、ステッピングモーターに対する駆動指示データーやDCモーターに対するコマンドデータ等のモーター制御パラメーターについて、「データー」、「コマンド」、「パラメーター」などと言うことがある。)。   Further, in order to sequentially print the image data of the read original, the SOC 50 provides drive commands for driving the paper feed motors 310 and 330, the transport motors 320 and 340, and the carriage motor 350, respectively, to the motor drivers 210 to 250. Send to. Accordingly, the SOC 50 asynchronously instructs the motor driver 260 to drive the scanner motor 360 and the motor drivers 210 to 250 to drive the paper feed motors 310 and 330, the transport motors 320 and 340, or the carriage motor 350. Depending on the case, control based on the control command may be instructed substantially simultaneously. (In this embodiment, motor control parameters such as drive instruction data for stepping motors and command data for DC motors transferred by the SOC 50 may be referred to as “data”, “command”, “parameter”, etc.).

次に、このような転送データー100を処理するモータードライバーの構成について説明する。図4は、モータードライバーの構成を説明する図である。以下では、モータードライバー220を例にその構成を説明する。なお、他のモータードライバーについてもその構成は同様であるため、説明を省略する。
モータードライバー220はクロック判定部221、シリアル・パラレル変換部222、ID判定部223、電流生成部224、ID設定部225、を備える。モータードライバー220を構成する各部は、周知の電子部品等のよりハードウェアにより構成される。
Next, the configuration of the motor driver that processes such transfer data 100 will be described. FIG. 4 is a diagram illustrating the configuration of the motor driver. Hereinafter, the configuration of the motor driver 220 will be described as an example. The configuration of the other motor drivers is the same, and the description is omitted.
The motor driver 220 includes a clock determination unit 221, a serial / parallel conversion unit 222, an ID determination unit 223, a current generation unit 224, and an ID setting unit 225. Each part constituting the motor driver 220 is constituted by hardware such as a well-known electronic component.

クロックラインCLKを通じて入力されたクロックパルスは、クロック判定部221に入力する。クロック判定部221は、クロックパルスの立ち上がりまたは立ち下がりを検出し、判定に応じて判定信号を出力する。上記のように、識別IDが奇数のモータードライバー210、230、250が有するクロック判定部221は、クロックパルスの立ち下がりを検出する。また、識別IDが偶数のモータードライバー220、240、260が有するクロック判定部221は、クロックパルスの立ち上がりを検出する。   The clock pulse input through the clock line CLK is input to the clock determination unit 221. The clock determination unit 221 detects the rising or falling edge of the clock pulse and outputs a determination signal according to the determination. As described above, the clock determination unit 221 included in the motor drivers 210, 230, and 250 having the odd identification ID detects the falling edge of the clock pulse. In addition, the clock determination unit 221 included in the motor drivers 220, 240, and 260 having the even identification ID detects the rising edge of the clock pulse.

また、データラインDATAを通じて入力した転送データー100は、シリアル・パラレル変換部222の前段部222aに入力する。シリアル・パラレル変換部222は、前段部222aがデータラインDATAおよびクロック判定部221の出力側と接続され、後段部222bがロードラインLD、ID判定部223、電流生成部224と接続されている。シリアル・パラレル変換部222の前段部222aは、1つの転送データー100を構成する21ビットの情報を記録することができる。また、クロック判定部221から判定信号が入力したことに同期して、前段部222aは、記録した21ビットの情報(転送データー100)を、後段部222bに出力する。そして、ロードラインLDを通じて入力したロード信号の入力に同期して、この転送データー100をパラレルに出力する。   Further, the transfer data 100 input through the data line DATA is input to the pre-stage unit 222 a of the serial / parallel conversion unit 222. In the serial / parallel converter 222, the front stage 222a is connected to the data line DATA and the output side of the clock determination unit 221, and the rear stage 222b is connected to the load line LD, the ID determination unit 223, and the current generation unit 224. The pre-stage unit 222 a of the serial / parallel conversion unit 222 can record 21-bit information constituting one transfer data 100. In synchronization with the input of the determination signal from the clock determination unit 221, the front-stage unit 222a outputs the recorded 21-bit information (transfer data 100) to the rear-stage unit 222b. Then, in synchronization with the input of the load signal input through the load line LD, the transfer data 100 is output in parallel.

ID判定部223は、後段部222bの上位3ビットと接続されており、後段部222bから出力される上位3ビットを記録する。上記のように転送データー100の上位3ビットは識別ID110である。そのため、ID判定部223は識別ID110の情報をモータードライバー220の識別情報(ID設定部225から入力する情報)と比較し、両者が一致すれば、ID判定信号を出力する。また、ID判定部223は、識別ID110が共通ID(図3(b)では、『0』)である場合も、自己の識別番号と同様に機能する。一例として、本実施形態では、ID判定部223は、共通IDの下位1ビットと、各モータードライバーの識別情報の下位1ビットとを比較し、比較結果が一致する場合、ID判定信号を出力する。   The ID determination unit 223 is connected to the upper 3 bits of the rear stage unit 222b, and records the upper 3 bits output from the rear stage unit 222b. As described above, the upper 3 bits of the transfer data 100 are the identification ID 110. Therefore, the ID determination unit 223 compares the information of the identification ID 110 with the identification information of the motor driver 220 (information input from the ID setting unit 225), and outputs an ID determination signal if they match. Further, the ID determination unit 223 functions similarly to its own identification number even when the identification ID 110 is a common ID (“0” in FIG. 3B). As an example, in this embodiment, the ID determination unit 223 compares the lower 1 bit of the common ID with the lower 1 bit of the identification information of each motor driver, and outputs an ID determination signal when the comparison results match. .

また、ID設定部225は、例えば、3つの設定ピンを備え、各設定ピンの電圧値の組合せに応じて、モータードライバー220の識別情報を設定する。例えば、モータードライバー220の識別情報が『3』(011)であれば、設定ピンの電圧値の組合せは、『ロー』『ハイ』『ハイ』となる。なお、設定ピンは図示しない回路に接続されている。   The ID setting unit 225 includes, for example, three setting pins, and sets identification information of the motor driver 220 according to a combination of voltage values of the setting pins. For example, if the identification information of the motor driver 220 is “3” (011), the voltage value combinations of the setting pins are “low”, “high”, and “high”. The setting pin is connected to a circuit (not shown).

電流生成部224は、シリアル・パラレル変換部222の後段部222bの下位18ビットが入力する部位および、ID判定部223とそれぞれ接続している。上記のように、転送データー100の下位18ビットは、指示データー120に対応している。電流生成部224は、指示データー120を受信すると、この指示データー120を解釈し、ID判定部223から出力されるID判定信号に同期して電流の出力や、パラメーターの設定を行う。   The current generation unit 224 is connected to the part to which the lower 18 bits of the rear stage part 222 b of the serial / parallel conversion unit 222 are input and the ID determination unit 223. As described above, the lower 18 bits of the transfer data 100 correspond to the instruction data 120. When receiving the instruction data 120, the current generation unit 224 interprets the instruction data 120, and outputs a current and sets parameters in synchronization with the ID determination signal output from the ID determination unit 223.

(2)転送処理の概要
次に、SOC50と、各モータードライバー210〜260との間で行なわれるデーター転送処理の概要について説明する。
図5は、SOC50と、モータードライバー210およびモータードライバー220との間で転送されるデーターのフォーマット例を示す図である。モータードライバー210(識別IDは奇数)のデーターは、クロックラインCLKを流れるクロックパルスの立ち下がり時(t2、t4、・・・・、t16)のDATAのビット値に対応付けられている。また、モータードライバー220(識別IDは偶数)のデーターは、クロックラインCLKを流れるクロックパルスの立ち上がり時(t1、t3、・・・・、t15)のデータラインDATAを流れる転送データー100のビット値に対応付けられている。即ち、SOC50は、モータードライバー210に対するデーターであるビット値とモータードライバー220に対するデーターであるビット値とをそれぞれ論理和した値をデータラインDATAに流す。
(2) Outline of Transfer Process Next, an outline of a data transfer process performed between the SOC 50 and the motor drivers 210 to 260 will be described.
FIG. 5 is a diagram illustrating a format example of data transferred between the SOC 50 and the motor driver 210 and the motor driver 220. The data of the motor driver 210 (the identification ID is an odd number) is associated with the DATA bit value when the clock pulse flowing through the clock line CLK falls (t2, t4,..., T16). The data of the motor driver 220 (the identification ID is an even number) is set to the bit value of the transfer data 100 flowing on the data line DATA at the rising edge of the clock pulse flowing on the clock line CLK (t1, t3,..., T15). It is associated. That is, the SOC 50 causes a value obtained by logically adding a bit value that is data for the motor driver 210 and a bit value that is data for the motor driver 220 to the data line DATA.

また、複数のビットデータで構成される1つのデーターのビット列の区切りはロードラインLDに流れるロード信号に対応付けられている。本実施形態では、CLKの立ち上がり時にLDがON状態ならば、モータードライバー220のデーターの区切りを示し、CLKの立ち下がり時にLDがON状態ならば、モータードライバー210のデーターの区切りを示す。従って、モータードライバー210およびモータードライバー220は、データーの区切りを検出した場合、それまでに取得したビット列を1つのデーターとして認識する。つまり、このLD信号は、一回で、もしくは複数回に分けて、クロックパルスのエッジに対応づけられて転送され、取得したビットデータの範囲を画定させるものであり、コマンドやパラメーター等のデーターとして一単位となる範囲を画定させる機能を有している。   In addition, a bit string delimiter of one data composed of a plurality of bit data is associated with a load signal flowing through the load line LD. In the present embodiment, if the LD is ON at the rising edge of CLK, the data delimiter of the motor driver 220 is shown, and if the LD is ON at the falling edge of CLK, the data delimiter of the motor driver 210 is shown. Therefore, when the motor driver 210 and the motor driver 220 detect a data break, the motor driver 210 and the motor driver 220 recognize the bit string acquired so far as one piece of data. In other words, this LD signal is transferred at one time or divided into a plurality of times in correspondence with the edge of the clock pulse, and defines the range of the acquired bit data. It has a function of defining a range as a unit.

(3)パラメーター設定処理
次に、本発明のデーターの転送処理を用いた、パラメーターの設定方法について説明する。図6は、モータードライバーのパラメーターを設定する際に行われる処理の一例を示す図である。図6に示す処理では、給紙モーター310、330、350に対する設定を行なう場合であり、モータードライバー210、230、250を対象としている。
(3) Parameter Setting Process Next, a parameter setting method using the data transfer process of the present invention will be described. FIG. 6 is a diagram illustrating an example of processing performed when setting parameters of the motor driver. The process shown in FIG. 6 is a case where settings are made for the paper feed motors 310, 330, and 350, and targets the motor drivers 210, 230, and 250.

SOC50は、識別ID110を共通ID『0』で識別CLKエッジが立ち下がりとし、指示データー120を『パラメーター』とする転送データー100をデータラインDATAに流す。この指示データー120は、モータードライバー210、モータードライバー230、およびモータードライバー250に対して電流生成部224の共通のパラメーターを設定するためのコマンドとなっている。例えば、この『パラメーター』により、各モーター310、330、350へ供給する電流を制御する方式が設定される。   The SOC 50 causes the transfer data 100 having the identification ID 110 as the common ID “0”, the identification CLK edge to fall, and the instruction data 120 as the “parameter” to flow on the data line DATA. The instruction data 120 is a command for setting common parameters of the current generation unit 224 for the motor driver 210, the motor driver 230, and the motor driver 250. For example, a method for controlling the current supplied to each motor 310, 330, 350 is set by this “parameter”.

識別ID110を共通ID『0』で識別CLKエッジが立ち下がりとすることで、識別ID110が『1』、『3』、『5』とするモータードライバー210、230、250は、クロックラインCLKを流れるクロックパルスの立ち下がりで転送データー100をそれぞれ受信する。そして、モータードライバー210、230、250は、転送データー100の指示データー120(パラメーター)を解釈し、設定を行なう。図6では、モータードライバー210、モータードライバー230、およびモータードライバー250は、パラメーター設定1およびパラメーター設定2において、電流生成部224のパラメーターを設定している。   When the identification ID 110 is the common ID “0” and the identification CLK edge falls, the motor drivers 210, 230, and 250 whose identification ID 110 is “1”, “3”, and “5” flow through the clock line CLK. The transfer data 100 is received at the falling edge of the clock pulse. Then, the motor drivers 210, 230, 250 interpret the instruction data 120 (parameters) of the transfer data 100 and make settings. In FIG. 6, the motor driver 210, the motor driver 230, and the motor driver 250 set the parameters of the current generation unit 224 in the parameter setting 1 and the parameter setting 2.

『パラメーター』により、設定される方式の一例として、電流値の立ち上がりのノイズをマスクするためのブロックタイム、電流のピークを制御するオフタイムの時間、電流値を設定するためのデューティー、さらには、モーターを停止する際の方法(回生ブレーキ、ショートブレーキ)等である。
なお、説明を省略するが、搬送モーター320、340、(または、320、340、360)に関する設定を行なう場合は、共通ID『0』で識別CLKエッジの立ち上がりを用いて転送データー100を転送することで、モータードライバー220、240、(または、220、240、260)に対して、設定を行なうことができる。
以上、パラメーター設定処理を説明した。
As an example of the method set by `` parameter '', the block time for masking the rising noise of the current value, the off time for controlling the current peak, the duty for setting the current value, This is the method for stopping the motor (regenerative braking, short braking), etc.
In addition, although explanation is omitted, when setting related to the transport motors 320 and 340 (or 320, 340 and 360), the transfer data 100 is transferred by using the rising edge of the identification CLK edge with the common ID “0”. Thus, the setting can be made for the motor drivers 220, 240 (or 220, 240, 260).
The parameter setting process has been described above.

(4)印刷制御
次に、モータードライバー220、240、およびモータードライバー250による印刷制御について説明する。図7は、搬送部とキャリッジ部が協働して行われる印刷処理の一例を示す図である。なお、図7は、説明を簡易化するために、モータードライバー220を主に説明を行う。
(4) Printing Control Next, printing control by the motor drivers 220 and 240 and the motor driver 250 will be described. FIG. 7 is a diagram illustrating an example of a printing process performed in cooperation between the transport unit and the carriage unit. Note that FIG. 7 mainly describes the motor driver 220 in order to simplify the description.

SOC50からモータードライバー220、240、モータードライバー250に転送されるデーター群は、搬送モーター320、340、またはキャリッジモーター350の何れかに対する制御パラメーターたるコマンド群である。この図7は、印刷装置10の動作である「副走査」、「主走査+印刷」および「副走査」等の各工程を実現するために必要となる、DCモーターの実駆動を指示するにあたって用いるコマンドを各工程に対応させてそれぞれ示している。ここで、例えば、モーターがステッピングモーター(例えば、4W1ー2相励磁方式)の場合は、モーター軸を1回転させるために64回ものコマンド転送を要し、DCモーターの制御に比べてコマンド転送の頻度が比較的多くなる。   The data group transferred from the SOC 50 to the motor drivers 220 and 240 and the motor driver 250 is a command group which is a control parameter for any of the transport motors 320 and 340 or the carriage motor 350. FIG. 7 is a flowchart for instructing the actual driving of the DC motor, which is necessary for realizing each process such as “sub-scanning”, “main scanning + printing”, and “sub-scanning” as operations of the printing apparatus 10. The command to be used is shown corresponding to each process. Here, for example, when the motor is a stepping motor (for example, 4W1-2 phase excitation method), command transfer is required 64 times to make one rotation of the motor shaft, and command transfer is compared with control of the DC motor. The frequency is relatively high.

最初の「副走査」では、搬送モーター320の駆動により用紙の第一領域を印刷位置まで一定速度で移動させる。「主走査+印刷」では、キャリッジモーター350の駆動により印刷ヘッド部を一定速度で移動させつつ、第一領域に対するインクの吐出動作により印刷を実行する。また、最後の「副走査」では、搬送モーター320の駆動により用紙の第一領域に続いて印刷する第二領域を印刷位置まで移動させる。   In the first “sub-scanning”, the first area of the paper is moved to the printing position at a constant speed by driving the conveyance motor 320. In “main scanning + printing”, printing is executed by an ink ejection operation on the first region while the print head unit is moved at a constant speed by driving the carriage motor 350. In the last “sub-scanning”, the conveyance motor 320 is driven to move the second area to be printed following the first area of the paper to the printing position.

「副走査」を実行するモーターの工程としては、「等速制御」、「等速第2制御」、「回生ブレーキ」および「ショートブレーキ」が含まれ、SOC50は、それら工程を指示するコマンドを、搬送モーター320の実駆動に反映させるべくモータードライバー220に転送する。また、SOC50は、「主走査+印刷」を実行するモーターの工程としては、「等速オン」、「等速制御」、「等速オフ」、「回生ブレーキ」、「ショートブレーキ」および「ブレーキエンド」などが含まれ、SOC50は、それら工程を指示するコマンドを、キャリッジモーター350の実駆動に反映させるべくモータードライバー250に転送する。   Motor processes that execute “sub-scan” include “constant speed control”, “constant speed second control”, “regenerative brake”, and “short brake”, and the SOC 50 provides commands for instructing these processes. Then, it is transferred to the motor driver 220 to be reflected in the actual drive of the transport motor 320. In addition, the SOC 50 is a motor process for executing “main scanning + printing”. “Constant speed on”, “Constant speed control”, “Constant speed off”, “Regenerative brake”, “Short brake” and “Brake” The SOC 50 transfers a command for instructing these processes to the motor driver 250 to reflect the actual driving of the carriage motor 350.

なお、各モーターへ供給する電流を制御する方式としては、搬送モーター320やキャリッジモーター350を、一定速度で回転させるべく各モーターへ供給する電流の断続を制御するイネーブルラインを別途設けて制御する方式としても良いし、SOC50からモータードライバー250にコマンドを転送し、当該コマンドが示す等速回転を行う時間に係るデーターをレジスターの所定領域にセットして、当該データーを参照してモータードライバー内で各モーターへ供給する電流の断続を制御する方式としても良い。後者の場合は印刷装置内の配線数を減少させることができ、イネーブルラインのON/OFFの周期とDutyをセットし、駆動させてもよい。イネーブル制御は、モータードライバー側でON/OFF周期と同期して変化してもよい。
以上、印刷制御について説明した。
As a method of controlling the current supplied to each motor, a method of controlling by separately providing an enable line for controlling the interruption of the current supplied to each motor so as to rotate the transport motor 320 and the carriage motor 350 at a constant speed. It is also possible to transfer a command from the SOC 50 to the motor driver 250, set data related to the time of constant speed rotation indicated by the command in a predetermined area of the register, and refer to the data to A method of controlling the intermittent current supplied to the motor may be used. In the latter case, the number of wires in the printing apparatus can be reduced, and the ON / OFF cycle and duty of the enable line may be set and driven. The enable control may change in synchronization with the ON / OFF cycle on the motor driver side.
The print control has been described above.

以上説明したように、この第1の実施形態では、以下のような効果を奏する。
1系統のデーター転送ラインを分岐し、SOC50から各モータードライバー210およびモータードライバー220に対してそれぞれデーターを転送する場合、SOC50は、クロックパルスの立ち下がりおよび立ち上がりのタイミングでモータードライバー210およびモータードライバー220の何れかのデーターになるように対応付けて転送する。従って、結線数を増やすことなく複数のスレーブに対して選択的にデーター転送できる。
As described above, the first embodiment has the following effects.
When one data transfer line is branched and data is transferred from the SOC 50 to each motor driver 210 and motor driver 220, the SOC 50 has the motor driver 210 and motor driver 220 at the falling and rising timings of the clock pulse. The data is transferred so as to correspond to any of the data. Therefore, data can be selectively transferred to a plurality of slaves without increasing the number of connections.

SOC50からモータードライバー210に対して、クロックパルスの立ち下がりに対応付けてデーターを転送中に、SOC50からモータードライバー220に対してデーターの転送が必要になった場合、モータードライバー210へのデーター転送終了を待つことなく、クロックパルスの立ち上がりに対応付けてモータードライバー220へのデーター転送を開始できる。従って、印刷装置の処理の遅延や、モータードライバー220が待機する間に、各モーターの制御が不可能になることを回避できる。   If data transfer is required from the SOC 50 to the motor driver 220 while the data is being transferred from the SOC 50 to the motor driver 210 in association with the falling edge of the clock pulse, the data transfer to the motor driver 210 is completed. The data transfer to the motor driver 220 can be started in association with the rising edge of the clock pulse without waiting for. Therefore, it is possible to avoid delays in processing of the printing apparatus and the inability to control each motor while the motor driver 220 is on standby.

データラインを共通化しつつも、識別IDによりこのデータラインで送信される自己宛の指定コマンドを解釈することができる。また、共通IDとともに指示データーが転送された場合、複数の制御回路に宛てて、指示データーを転送することができる。
即ち、データラインを複数の制御回路で共通化した場合でも、指示データーの個々の制御回路への転送や、複数の制御回路への一括での転送と、を使い分けるけることができ、データー転送を柔軟に行うことができる。
While making the data line common, it is possible to interpret the designation command addressed to itself transmitted by this data line by the identification ID. When the instruction data is transferred together with the common ID, the instruction data can be transferred to a plurality of control circuits.
In other words, even when a data line is shared by a plurality of control circuits, transfer of instruction data to individual control circuits and batch transfer to a plurality of control circuits can be used properly. It can be done flexibly.

2.第2の実施形態:
転送データー100の識別ID110に、全てのモータードライバー210〜260に対して共通となる共通IDを設定するものであってもよい。
特に、印刷装置10が備える全てのモーターを緊急停止する指示データー120を転送する場合に、共通IDを備えることは有益となる。
2. Second embodiment:
A common ID that is common to all the motor drivers 210 to 260 may be set in the identification ID 110 of the transfer data 100.
In particular, it is beneficial to provide a common ID when transferring instruction data 120 for emergency stop of all motors provided in the printing apparatus 10.

本発明のデーターの転送処理を用いた、パラメーターの設定方法について説明する。図8は、各モーターを一括で停止する際に行われる処理の一例を示す図である。
図8に示す例では、モータードライバー210〜260に対する共通IDを『0』としている。また、共通ID『0』により転送される指示データー120は、『ブレーキ』である。
A parameter setting method using the data transfer process of the present invention will be described. FIG. 8 is a diagram illustrating an example of processing performed when stopping the motors collectively.
In the example illustrated in FIG. 8, the common ID for the motor drivers 210 to 260 is “0”. The instruction data 120 transferred with the common ID “0” is “brake”.

SOC50は、識別ID110を共通ID『0』とし、指示データー120を『ブレーキ』とする、転送データー100を、クロックラインCLKに流れるクロックパルスに同期させてデータラインDATAに流す。この第2の実施形態では、立ち上がりエッジおよび立ち下がりエッジで転送データー100を取り込む全てのモータードライバー210〜260を対象とするため、クロックラインCLKを流れるクロックパルスの立ち上がり前から立ち下がり後まで、又は、クロックラインCLKを流れるクロックパルスの立ち下がり前から立ち上がり後まで、識別ID110を共通ID『0』とし指示データー120を『ブレーキ』とする転送データー100をデータラインDATAに流し続ける。すなわち、転送データー100をクロックパルスに同期させる位置は問わない。   The SOC 50 sets the identification ID 110 to the common ID “0”, sets the instruction data 120 to “brake”, and transfers the transfer data 100 to the data line DATA in synchronization with the clock pulse flowing on the clock line CLK. In the second embodiment, since all the motor drivers 210 to 260 that capture the transfer data 100 at the rising edge and the falling edge are targeted, the clock pulse flowing through the clock line CLK is from before the rising edge to after the falling edge, or The transfer data 100 having the identification ID 110 as the common ID “0” and the instruction data 120 as “brake” continues to flow through the data line DATA from before the falling of the clock pulse flowing through the clock line CLK to after the rising. That is, the position where the transfer data 100 is synchronized with the clock pulse does not matter.

識別ID110を共通ID『0』とすることで、個別IDを奇数番(『1』、『3』、『5』)とするモータードライバーは、クロックパルスの立ち下がりで転送データー100を取りこみ、個別IDを偶数番(『2』、『4』、『6』)とするモータードライバーは、クロックパルスの立ち上がりで転送データー100を取り込む。そして、各モータードライバー210〜260は、転送データー100の指示データー120(ブレーキ)を解釈し、各モーター310〜360を停止させる。図8では、全てのモータードライバー210〜260は、ブレーキのコマンドを実行している。   By setting the identification ID 110 to the common ID “0”, the motor driver that sets the individual IDs to odd numbers (“1”, “3”, “5”) takes in the transfer data 100 at the falling edge of the clock pulse, and individually The motor driver whose ID is an even number (“2”, “4”, “6”) captures the transfer data 100 at the rising edge of the clock pulse. The motor drivers 210 to 260 interpret the instruction data 120 (brake) of the transfer data 100 and stop the motors 310 to 360. In FIG. 8, all the motor drivers 210 to 260 execute a brake command.

以上説明したように、この第2の実施形態では、モーターを停止させる場合に要する時間を短くすることができる。特に、装置を緊急停止させる場合などでは、モーターの駆動時間を短くすることができるため、装置の安全性等を高めることができる。   As described above, in the second embodiment, the time required for stopping the motor can be shortened. In particular, when the apparatus is stopped urgently, the motor drive time can be shortened, so that the safety of the apparatus can be improved.

3.その他の実施形態:
本発明の実施形態について、図面を参照して説明したが、具体的な構成は、この実施形態に限られるものではなく、本発明の要旨を逸脱しない範囲の設計変更等も含まれる。例えば、転送システムの適用は印刷装置には限定されず、プロジェクターのような画像表示装置や種々の情報処理装置等に適用しても良い。
また、モーターは回転運動する態様には限定されず、リニアモーターのような直線駆動する態様も想定できる。
また、以上のような手法を実施する装置は、単独の装置によって実現される場合もあれば、複数の装置を組み合わせることによって実現される場合もあり、各種の態様を含むものである。
各実施形態における各構成及びそれらの組み合わせは一例であり、本発明の趣旨から逸脱しない範囲内で、構成の付加、省略、置換およびその他の変更が可能である。また、本発明は実施形態では限定されるものではなく、クレームの範囲によってのみ限定される。
3. Other embodiments:
Although the embodiment of the present invention has been described with reference to the drawings, the specific configuration is not limited to this embodiment, and includes design changes and the like within a scope not departing from the gist of the present invention. For example, the application of the transfer system is not limited to a printing apparatus, and may be applied to an image display apparatus such as a projector, various information processing apparatuses, and the like.
Further, the motor is not limited to a mode of rotating, and a mode of linear driving such as a linear motor can be assumed.
Moreover, the apparatus which implements the above methods may be realized by a single apparatus or may be realized by combining a plurality of apparatuses, and includes various aspects.
Each configuration in each embodiment and a combination thereof are examples, and addition, omission, replacement, and other changes of the configuration can be made without departing from the spirit of the present invention. In addition, the present invention is not limited to the embodiments, and is limited only by the scope of the claims.

10…印刷装置、11…筺体、20…スキャナー部、21…スキャナーユニット、22、23…ミラー、24…レンズ、25…CCDイメージセンサー、30…印刷部、31…プリントヘッド、32…キャリッジ、40…搬送部、41…トレイ、42、43…給紙ローラー、44、45…搬送ローラー、50…SOC、60…CPU、70…調停回路、100…転送データー、120…指示データー、210〜260…モータードライバー、221…クロック判定部、222…シリアル・パラレル変換部、222a…前段部、222b…後段部、223…ID判定部、224…電流生成部、225…ID設定部、310…給紙モーター、320…搬送モーター、330…給紙モーター、340…搬送モーター、350…キャリッジモーター、360…スキャンモーター   DESCRIPTION OF SYMBOLS 10 ... Printing apparatus, 11 ... Housing, 20 ... Scanner part, 21 ... Scanner unit, 22, 23 ... Mirror, 24 ... Lens, 25 ... CCD image sensor, 30 ... Printing part, 31 ... Print head, 32 ... Carriage, 40 ... Transport section, 41 ... Tray, 42, 43 ... Feed roller, 44, 45 ... Convey roller, 50 ... SOC, 60 ... CPU, 70 ... Arbitration circuit, 100 ... Transfer data, 120 ... Instruction data, 210-260 ... Motor driver, 221... Clock determination unit, 222... Serial / parallel conversion unit, 222 a .. front stage unit, 222 b .. subsequent stage unit, 223... ID determination unit, 224. 320 ... Conveyance motor, 330 ... Feeding motor, 340 ... Conveyance motor, 350 ... Carriage motor, 60 ... scan motor

Claims (5)

電動機を制御する複数の制御回路と、
1のデータラインおよび1のクロックラインを介して接続した複数の前記制御回路のそれぞれに前記電動機の制御を指示する識別データーおよび指示データーをシリアルに転送するコントローラーと、を備え、
複数の前記制御回路がそれぞれ自己の制御回路を識別するための第1識別データーを識別可能であり、
前記コントローラーは、前記1のクロックラインにおけるクロックパルスの立ち上がりエッジに対して第1の制御回路に対する識別データーおよび第1の前記指示データーを前記1のデータラインに対応づけて転送し、前記1のクロックラインにおけるクロックパルスの立ち下がりエッジに対して第2の制御回路に対する識別データーおよび第2の前記指示データーを前記1のデータラインに対応づけて転送し、
前記第1の制御回路は、前記1のクロックラインにおける前記クロックパルスの立ち上がりエッジに対して自己の第1識別データーまたは複数の制御回路を一括で指定する第2識別データーとともに転送された前記指示データーを解釈し、
前記第2の制御回路は、前記1のクロックラインにおける前記クロックパルスの立ち下がりエッジに対して自己の第1識別データーまたは複数の制御回路を一括で指定する第3識別データーとともに転送された前記指示データーを解釈する、ことを特徴とする転送システム。
A plurality of control circuits for controlling the electric motor;
A controller for serially transferring identification data and instruction data for instructing control of the electric motor to each of the plurality of control circuits connected via one data line and one clock line,
A plurality of control circuits each capable of identifying first identification data for identifying their own control circuits;
The controller transfers identification data for the first control circuit and the first instruction data in association with the first data line with respect to the rising edge of the clock pulse in the first clock line, and transfers the first clock to the first clock line. Transferring the identification data for the second control circuit and the second instruction data in association with the first data line with respect to the falling edge of the clock pulse in the line;
The first control circuit transfers the instruction data transferred together with its first identification data or second identification data for collectively specifying a plurality of control circuits with respect to a rising edge of the clock pulse in the one clock line. Interpret
The second control circuit transmits the instruction transferred together with its first identification data or third identification data collectively specifying a plurality of control circuits with respect to a falling edge of the clock pulse in the one clock line. A transfer system characterized by interpreting data.
前記第2識別データーと前記第3識別データーとは同じデーターである、ことを特徴とする請求項1に記載の転送システム。   The transfer system according to claim 1, wherein the second identification data and the third identification data are the same data. 前記すべての制御回路に対応する指示データーは、前記電動機を停止させるデーターである、ことを特徴とする請求項2に記載の転送システム。   The transfer system according to claim 2, wherein the instruction data corresponding to all the control circuits is data for stopping the electric motor. 前記コントローラーは、前記1のクロックラインにおけるクロックパルスの立ち上がりエッジから立ち下がりエッジを含む期間に、前記第2識別データーとすべての制御回路に対する指示データーとを1つのデータラインに対応づけて転送する、ことを特徴とする請求項1から請求項3のいずれか一項に記載の転送システム。   The controller transfers the second identification data and instruction data for all control circuits in association with one data line during a period including a rising edge and a falling edge of a clock pulse in the one clock line. The transfer system according to any one of claims 1 to 3, wherein the transfer system is configured as described above. 前記請求項1に記載の転送システムを備える印刷装置。   A printing apparatus comprising the transfer system according to claim 1.
JP2014061989A 2014-03-25 2014-03-25 Transfer system and printing apparatus Pending JP2015182367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014061989A JP2015182367A (en) 2014-03-25 2014-03-25 Transfer system and printing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014061989A JP2015182367A (en) 2014-03-25 2014-03-25 Transfer system and printing apparatus

Publications (1)

Publication Number Publication Date
JP2015182367A true JP2015182367A (en) 2015-10-22

Family

ID=54349461

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014061989A Pending JP2015182367A (en) 2014-03-25 2014-03-25 Transfer system and printing apparatus

Country Status (1)

Country Link
JP (1) JP2015182367A (en)

Similar Documents

Publication Publication Date Title
KR20100123902A (en) Motor device, motor drive system provided with motor devices, and integrated circuit device
JP4533239B2 (en) Image reading apparatus and image forming apparatus
JP2003308287A (en) Controller and controlling method
JP6051979B2 (en) Transfer system and printing device
JP6745602B2 (en) Image reading apparatus and control method thereof
JP2015182367A (en) Transfer system and printing apparatus
JP2014049941A (en) Image reading device and multifunction machine
JP2015166972A (en) Transfer system and printer
JP2015166973A (en) Transfer system and printer
JP2015150729A (en) Transfer system and printer
KR20100130383A (en) Image forming apparatus and method for controlling motor thereof
US10911609B2 (en) Image forming apparatus, image forming method, and storage medium
JP2002255382A (en) Recording device
JP2015153025A (en) Transfer system and printer
JP2004358893A (en) Recorder
JP7087509B2 (en) Information processing equipment and circuit equipment
JP2008284752A (en) Recorder and method for recording therein
JP5789989B2 (en) Image reading apparatus and image reading control method
US20130166804A1 (en) Information processing apparatus and recording apparatus using the same
JP2008109343A (en) Motor controller, printer, printer multifunction machine, and motor control method
JP2007068283A (en) Motor controller, electronic device and printer apparatus
JP6622541B2 (en) Recording apparatus, data transfer method, and program
JP2004358894A (en) Recorder
JP5857718B2 (en) Information processing apparatus and information processing method
US7540588B2 (en) Method for printing data and ink jet printer using the same