JPH0221741A - Picture processor - Google Patents
Picture processorInfo
- Publication number
- JPH0221741A JPH0221741A JP63172443A JP17244388A JPH0221741A JP H0221741 A JPH0221741 A JP H0221741A JP 63172443 A JP63172443 A JP 63172443A JP 17244388 A JP17244388 A JP 17244388A JP H0221741 A JPH0221741 A JP H0221741A
- Authority
- JP
- Japan
- Prior art keywords
- microprocessor
- data
- program
- flag
- mode
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/22—Pc multi processor system
- G05B2219/2231—Leader-follower
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/25—Pc structure of the system
- G05B2219/25085—Several function expansion units for leader, main unit, universal system
Landscapes
- Control Or Security For Electrophotography (AREA)
- Control By Computers (AREA)
- Small-Scale Networks (AREA)
- Dot-Matrix Printers And Others (AREA)
- Laser Beam Printer (AREA)
Abstract
Description
[産業上の利用分野]
本発明は画像処理装置に係り、特に、給紙ユニット、ソ
ータ等をそれぞれ制御する複数のスレーブ処理ユニット
とこれらの複数のスレーブ処理ユニットの動作を総合的
に管理、調整するマスター処理ユニットとの通信方式に
関する。
[従来の技術]
従来、この種の画像処理装置を開示する文献としては、
例えば、特開昭61−103299号公報が知られてお
り、該公報に開示されている画像処理装置では、複写機
本体制御部からオプションにデータを送出しても該デー
タの送出に対する応答信号が得られない場合には、該オ
プションに対して同一データを所定回数供給し、それで
もオプションから応答信号を得られないなら、複写機本
体制御部は該オプションに関して接続エラーの発生を検
出して、該エラーの発生を表示する。
[発明が解決しようとする問題点コ
上記従来の画像処理装置では、本体制御部がデータを供
給すべき対象(オプション)を固定的に設定していた。
ところが、実際の画像処理装置では、給紙装置やソータ
等のユニットはユーザの選択により画像処理装置本体に
接続されるものであり、データを供給すべき対象は変動
する。しだがって、上記従来の画像処理装置では、予定
されていたオプションの接続エラーを検出できても、予
定外のオプションを新たに接続した場合には対応できな
いという問題点があった。
したがフて、本発明の目的はマスター処理ユニットの管
理下にあるスレーブ処理ユニットの拡張゛自由度を高め
ることである。
[問題点を解決するための手段]
本願発明の要旨は、第1図に示されているように、おの
おのが所定の機能を実現する複数のスレーブ処理ユニッ
ト1.2.3.4と、上記所定の機能の実現を指示する
処理コマンド5と上記スレーブ処理ユニットの管理デー
タの通信を制御する通信コマンド6とを選択的に出力し
て上記複数のスレーブ処理ユニット1.2.3.4を管
理するマスター処理ユニット7と、上記複数のスレーブ
処理ユニット1.2.3.4と上記マスター処理ユニッ
ト7とを接続し、上記処理コマンド5と上記通信コマン
ド6とを伝達する通信手段8とを備え、少なくとも動作
モードと待機モードとの間で切り換えられて機能する画
像処理装置において、上記マスター処理ユニットは、上
記通信コマンド6を上記通信手段8を介して上記複数の
スレーブユニット1.2.3.4に供給して上記スレー
ブユニット1.2.3.4が上記通信手段8と接続され
ているか否かを判断する接続判定手段9と、上記接続判
定手段9が上記通信手段8に接続されていると判断した
スレーブユニット1.2.3.4にのみ上記動作モード
において上記処理コマンド5を上記通信手段8を介して
供給するコマンド供給手段10と、上記待機モード時に
上記接続判定手段9を起動する起動手段11とを備えた
ことである。
[発明の作用及び効果コ
上記構成に係る画像処理装置にあっては、待機モードに
なると起動手段11が接続判定手段9を起動し、該接続
判定手段9は通信コマンド6を通信手段8を介して複数
のスレーブ処理ユニット1.2.3.4へ送出する。通
信コマンド6は上記スレーブ処理ユニット1.2.3.
4の管理データの通信を制御するコマンドなので、スレ
ーブ処理ユニット1.2.3.4になんらかの機能を実
現させるものではないが、それらの管理データの通信を
制御するので、該通信コマンド6が各スレーブ処理ユニ
ット1.2.3.4に供給されると、各スレーブ処理ユ
ニット1.2.3.4と通信手段8との接続状態が判断
される。
かようにして、待機モード中に通信手段8と各スレーブ
処理ユニットとの接続の有無が判断されると、再び開始
された動作モードでは、コマンド供給手段]0は、接続
判定手段9により通信手段8との接続が確認されたスレ
ーブ処理ユニット1.2.3.4に関してのみ処理コマ
ンド5を供給するようになる。よって、画像処理装置が
起動された後、スレーブ処理ユニットが追加、または取
り外されても、マスター処理ユニット7は稼動可能なス
レーブ処理ユニット1.2.3.4に間してのみ処理コ
マンド5を供給するようになり、スレ−ブ処理ユニット
の追加または削除による画像処理装置の拡張、減縮に対
応することができる。
また、現実に接続の確認されているスレーブ処理ユニッ
トに対してのみ処理コマンドを供給するので、接続未確
認のスレーブ処理ユニットに不必要なコマンド送出する
ことがなく、高速で所定の機能の実現を図ることができ
る。
[実施例コ
以下、本発明の一実施例を図面を参照して説明する。一
実施例は本発明をレーザプリンタに適用した例であり、
本発明はレーザプリンタだけでなく、複写機等、特にデ
ィジタルコピアにも適用可能である。
へ二下り」東3λ揉戒
第2図は一実施例のマクロシステム構成を示すブロック
図であり、21はマスター処理ユニットとしてのプリン
タコントローラ(以下、MSCと言う)を、22.23
.24.25.26はスレーブ処理ユニットとしての操
作部用コントローラ、プリンタエンジン用コントローラ
、給紙ユニット用コントローラ、ソータ用コントローラ
、画像処理部用コントローラ(これらのコントローラは
以下SSCで表される)をそれぞれ示している。上記5
SC22〜26の内、5SC22,23,26はレーザ
プリンタのシステム構成に必須のコントローラであり、
5SC24,25は給紙機構およびソータをオプション
として追加するときに付加されるコントローラである。
MSC21は通信手段としてのマクロシステムインタフ
ェース27を介して上記操作部用5S022、プリンタ
エンジン用5SC23、給紙ユニット用5SC24、ソ
ータ用5SC25、画像処理部用5SC26に接続され
ており、操作部用5SC22は、ユーザがレーザプリン
タに指示を与えるための各種操作スイッチを走査してそ
の動作を検出している。プリンタエンジン用5SC23
は下位システムとしてのドラム機構の駆動ユニット、光
学ユニット等の複数の機能ユニッ)UNIT1〜UN
I T3の動作を管理しており、したがって、プリンタ
エンジン用5SC23はこれら複数の機能ユニッ)UN
ITI〜UNIT3とサブシステムインタフェース29
を介して接続されている。各機能ユニットUN I T
1〜UN I T3は機械的構成とプリンタエンジン
用5SC23の管理下にある制御部とを備えているが、
詳細については割愛する。また、給紙ユニット用5SC
24、ソータ用5SC25および画像処理部用5SC2
6もそれぞれ給紙機構、ソータ機構およびデイスプレィ
ユニットを伴っているが、詳細な説明は省略する。
図には詳示されていないが、本実施例のレーザプリンタ
は上位のユーザシステムの一部を構成しており、MSC
21の動作はユーザシステム内のスーパーバイザ28の
管理下にある。
SSCの にあ モlの仏 ゛し第3図は各S
SC内のマイクロプロセッサ31によりアクセスされる
メモリの論理アドレス空間を示すブロック図であり、本
実施例では、操作部用5SC22、プリンタエンジン用
5SC23、給紙ユニット用5SC24、ソータ用5S
C25および画像処理部用5SC26のそれぞれについ
て設けられている。
詳述すると、マイクロプロセッサ31により管理されて
いる論理アドレス空間には、コマンドレジスタ32 (
CMD−REG)と、ステータスレジスタ(GSTAT
−REG)と、複数(本実施例では2つ)の領域に分割
されたローカルモードマツプ(LM−MAP)34と、
グローバルモードマツプ(GM−MAP)35と、スト
リングエリア36と、レポートレジスタ(REPO−R
EG)37とが規定されており、これらのレジスタ類3
2〜37は以下に詳述するデータ情報等を一時的に保持
する。なお、マイクロプロセッサ31がローカルモード
マツプ34およびグローバルモードマツプ35のストリ
ングウィンドと呼ばれる特定アドレスにアクセスしたと
き、マイクロプロセッサ31はローカルモードマツプ3
4またはグローバルモードマツプ3Sの特定アドレスに
ではなく、該特定アドレスに対応するストリングエリア
36にアクセスすることになる。
次に、各レジスタ類32〜35に一時的に保持される情
報等について説明する。MSC21から各5SC22〜
26に供給される処理コマンドおよび通信コマンドは各
5SC22〜26のコマンドレジスタ32に一時的に保
持され、各SSCのマイクロプロセッサ31がコマンド
実行可能状態になると、コマンドレジスタ32に保持さ
れている処理コマンドまたは通信コマンドはマイクロプ
ロセッサ31に供給される。
各5SC22〜26は少なくとも単独である機能を実現
することが可能であり、実行モードについては標準モー
ドを有している。標準モードは後述するMSC2,1の
初期化サブルーチンプログラム5BI(第17図参照)
の実行時にMSC21内に初期設定される。各5SC2
2〜2日はMSC21から標準モードを指定する処理コ
マンドを供給されることにより標準モードに切り換えら
れ、標準モードで指定された所定の機能を実現すること
になる。また、各5SC22〜26は標準モードで指定
された機能以外の機能も実現させることができ、かかる
標準モード以外の機能の実現を図るため2つのモードマ
ツプ34.35を備えている。グローバルモードマツプ
35は全5SC22゛〜26に共通のモード情報を保持
しており、これに対しC、ローカルモードマツプ34は
各SSCに固有のモード情報を保持し、これらグローバ
ルモードマツプ35内に保持されているモード情報とロ
ーカルモードマツプ34内に保持されているモード情報
とに基づき標準モードで指定された機能以外の機能を実
現させることができる。ローカルモードマツプ34には
上述のようにモード情報が保持されるが、その他にも各
SSCのステータス情報を保持する。上述のごとく、本
実施例では、ローカルモードマツプ34は2つの領域に
分割されているので、各SSCが複数の機能ユニットを
管理している場合には、各々のモード情報やステータス
情報は分割されて管理されることになる。
なお、これらのモードマ・ンブ34.35は初其月化設
定時に標準値にセットされる。
上述のように、ローカルモードマツプ34には、種々の
モード情報およびステータス情報が保持されるが、これ
らのステータス情報等は要約されてステータスレジスタ
33に保持される。したがって、MSC21がレーザプ
リンタの全体の動作を制御するために各5SC22〜2
6のステータス情報にアクセスしなければならない場合
でも、まず、ステータスレジスタ33内の要約された情
報にアクセスし、該要約された情報に基づきローカルモ
ードマツプ34に保持されているステータス情報にアク
セスする必要があるか否かを判断する。
したがって、MSC21がアクセスすべき情報の星を減
少させることができ、処理の高速化を図ることができる
。レポートレジスタ37は各5SC22〜26において
形成されるシーケンスレポート情報を保持するレジスタ
であり、シーケンスレポート情報はいずれかの5SC2
2〜26でMSCに通知すべき事象が発生したことを表
す情報である。
MSCの 理 にあるメモリのテ2理ア“レス 。
第4図はMSC21の機能ブロックと該M S C21
に管理されている論理アドレス空間との関係を示すブロ
ック図であり、論理アドレス空間には一9SC22〜2
6にそれぞれ専用される複数の領域を有するコマンドレ
ジスタ41と、同様に5SC22〜26にそれぞれ専用
される複数の領域を有するステータスレジスタ42およ
びレポートレジスタ43と、全5SC22〜26に共通
のグローバルモードマツプ44と、やはり各5SC22
〜26ξこ専用される複数の領域を有するローカルモー
ドマツプ45とが規定されている。上記コマンドレジス
タ41は処理コマンドおよび通信コマンドをMSC21
から通信対象の5SC22〜26へ送出するために設け
られており、コマンドレジスタ41から送出された上記
コマンドは各5SC22〜26のコマンドレジスタ32
に保持されることになる。これに対して、グローバルモ
ードマツプ44は全5SC22〜26に共通するモード
情報を保持しているので、グローバルモードマツプ44
から送出されたモード情報は各5SC22〜26のグロ
ーバルモードマツプ35に共通して保持されるようにな
る。レポートレジスタ43は各5SC22〜26から供
給されるシーケンスレポート情報を保持するレジスタで
あり、シーケンスレポート情報は上述のごとくいずれか
の5SC22〜26でMSCに通知すべき事象が発生し
たことを表す情報である。MSC21内に設定されるロ
ーカルモードマツプ45は各5SC22〜26に対して
モード情報を供給し、各5SC22〜26からステータ
ス情報の通知を受けるために設けられており、各5SC
22〜26のローカルモードマツプ34から供給された
ステータス情報はローカルモードマツプ45内の対応す
る領域に、また、該対応する領域から各5SC22〜2
6に対して送出されたモード情報は各5SC22〜26
内のローカルモードマツプ34にそれぞれ保持されるこ
とになる。
図中、46はマクロシステムインタフェース27に接続
された受信レジスタであり、マクロシステムインタフェ
ース27を介して各5SC22〜26から送出されたシ
ーケンスレポート情報、ステータス情報等はこの受信レ
ジスタ41に一旦保持された後に受信バッファ47に転
送され、しか゛る後にレポートレジスタ43またはロー
カルモードマツプ45に書き込まれる。これに対して、
コマンドレジスタ41、グローバルモードマツプ44ま
たはローカルモードマツプ45に保持されているコマン
ドまたはモード情報は一旦送信バツファ48に保持され
た後に送信レジスタ49に転送され、しかる後にマクロ
システムインタフェース27を介して各5SC22〜2
6、または全5SC22〜26の対応するレジスタ等に
送出される。
上述のように、ローカルモードマツプ 45に保持され
る情報は各5SC22〜26に送出すべきものと、各5
SC22〜26から供給されたものとが混在するので、
ローカルモードマツプ45に保持される各情報はその第
14ビツトおよび第15ビツトを受信通知フラグRRお
よび送信要求フラグTRとして規定している。すなわち
、各5SC22〜26から供給された情報の場合、MS
C21はその受信された情報の第14ビツトを「1」に
設定し、しかる後にローカルモードマツプ45に保持す
る。このように受信通知フラグRRの立てられた情報は
、後に詳述する処理を経た後に再び「0」にリセットさ
れる。これに対して、各5SC22〜26に送出すべき
情報には予め送信要求フラグTRが立てられ、送信要求
フラグTRが「1」に設定されている情報は目的とする
5SC22〜26に送出される。このように目的とされ
る5SC22〜26に送出された情報は送出後に再び「
0」にリセットされる。また送信要求プラクTR1受信
通知フラグRR,MSC及びSSCの全エリアについて
も「0」にリセットされる。
MSC21には、各5SC22〜26と通信するための
ポーリング制御ブロック50が実現されており、MSC
21はこのポーリング制御ブロック50により各5SC
22〜26に通信要求を送出し、該通信要求に対して該
当する5SC22〜26が応答して情報の通信を行う。
レーザ リンク の゛ ツ −
第5図はレーザプリンタ内に実現されている通信ネット
ワークを示すブロック図であり、MSC21と各5SC
22〜26(第5図には操作部用5SC22、プリンタ
エンジン用5SC23および画像処理部用5SC26の
み示されている)とはマクロシステムインタフェース2
7を実現する2本のシリアル通信線SlとSOとで共通
接続されている。
コン ローラのバー゛′ウェア
第5図に示されているネットワークを構成するコントロ
ーラ(MSCおよび5SC)のハードウェア構成を第6
図に示す。MSC21および各5SC22〜26はマイ
クロプロセッサ61と、該マイクロプロセッサ61の動
作を制御する制御プログラムを固定的に保持する読み出
し専用メモリ(ROM)62と、マイクロプロセッサ6
1により管理される上記論理アドレス空間等を提供する
随時読み出し書き込み可能メモリ(RAM)63と、シ
リアル通信線Slに接続された受信レジスタ(RX−R
EG)64と、シリアル通信線SOに接続された送信レ
ジスタ(TX−REG)65と、上記マイクロプロセッ
サ61にタイマー割り込みのタイミングを提供する割り
込みタイマー66とを備えている。
したがって、MSC21の場合には、上述の上位ユーザ
システムのスーパーバイザ28からのコマンドの供給を
受けると、マイクロプロセッサ61がROM62に保持
されている制御プログラムを実行しつつRAM63内に
設定された論理アドレス空間にアクセスし、該論理アド
レス空間に保持されていた通信コマンドおよび処理コマ
ンドを各5SC22〜26に送信レジスタ65からシリ
アル通信線SOに出力することができる。一方、各5S
C22〜26は供給された通信コマンドおよび処理コマ
ンドを受信レジスタ64に一旦保持した後に該コマンド
により指示された機能を実現すべく制御プログラムを実
行し、ステータス情報等が要求されている場合にはRA
M63により提供される論理アドレス空間内に保持され
ているステータス情報等を読み出し、送信レジスタ65
からシリアル通信線Slへ出力する。このようにして、
シリアル通信線Slに送出されたステータス情報等はM
SC21の受信レジスタ64に一旦保持され、その後、
RAM63に書き込まれてる。
このようにして、RAM63に書き込まれたステータス
情報等はマイクロプロセッサ61に読み出され、処理さ
れる。
通」フ1しトジ西
上述のように、本実施例ではMSC21と各5SC22
〜26とは、基本的には、制御局としてのMSC21か
ら送出される通信要求(リクエスト)や指定(セット)
に対して各5SC22〜26が応答(アンサ)するポー
リング方式により通信しており、かかるポーリング方式
による通信は、第7図に示されているように、MSC2
1から各5SC22〜26には任意のタイミングでフレ
ーム71.73.74.76.77.79を送出できる
が、各5SC22〜26からMSC21への応答は、異
なる5SC22〜26から送出されるフレーム72.7
5.78の衝突を避けるため時分割でなされる。例えば
、第7図に示されているように、MSC21から操作部
用5SC22への通信要求がポーリングタイミングtp
lにおいて送出されると、操作部用5SC22はフレー
ム71に含まれている識別コードで自らに対する通信要
求を識別し、フレーム72をMSC21に送出して要求
された情報を伝送する。これに対して、MSC21は操
作部用5SC22からの伝送終了を検出すると、他の5
SC1例えばプリンタエンジン用5SC23への通信要
求をフレーム74にて送出し、プリンタエンジン用5S
C23がフレーム75により応答すると、その終了を検
出してフレーム77で通信要求を画像処理用5SC26
に送出する。かかる通信要求の発生は、各5S022〜
26に対する通信要求は先行する通信要求に対する応答
の終了とポーリングタイミングの濾過とを条件としてお
り、ポーリングタイミングの経過を条件としたことは通
信頻度の増大が各SS・Cでのコマンド等に基づく処理
実行の速度の低下とならないようにするためである。な
お、MSC21は各5SC22〜26からの通信とは無
関係に各5SC22〜26にフレーム73.76を送信
することができる。
l圭ニー11成
上述のようにMSC21から各5SC22〜26へはポ
ーリング方式で情報の通信が図られるが、かかるの通信
時には、情報は可変長のフレームを単位として伝送され
る。各フレームはキャラクタと呼ぶ固定長のビット列を
1または複数個直列に並べて構成されており、以下の説
明では、各フレームの先頭キャラクタはIDキャラクタ
、該10キャラクタに続くキャラクタはデータキャラク
タと称される。したがって、複数のキャラクタで構成さ
れるフレームは第8図に示されているようにIDキャラ
クタと、該IDキャラクタに後続する可変個数のデータ
キャラクタとで構成されることになる。各キャラクタは
第9図に示されているように、キャラクタの先頭を示す
同期用スタートビットSTAと、該同期用スタートビッ
トSTAに後続する8ビツトのデータbO〜b7と、該
データビットに続くパリティビットPAと、キャラクタ
の終了を示す同期用ストップピッ)STOとで構成され
ている。
したがって、同期用スタートピッ)STA、 パリティ
ビットPAおよび同期用ストップビットSTOを除くデ
ータピッ)bO〜b7で表される情報がIDキャラクタ
とデータキャラクタとで異なることになる。すなわち、
IDキャラクタでは、ピッ)b7が「1」に設定されて
おり、この「1」に設定されたビットb7により「0」
に設定されるデータキャラクタから識別される。ビット
b6は送信先から所定フレームの応答を要求しているか
否かを表す応答要求ビットAとして使用されており、ビ
ットb2〜b5は情報の送信先を特定する4ビツトの識
別コード(So−53)として機能する。残りの2ビッ
トb1.bOは送信先の論理アドレス空間のいずれの領
域にアクセスするのかを表す2ビツトのエリアコード(
Ul、U2)として機能する。
したがって、上記ビット構成のIDキャラクタは、応答
要求ビット、識別コード(SO〜S3)およびエリアコ
ード(Ul、U2)の値の組み合せで種々の情報を表す
ことができ、これらの組み合せと後続するデータキャラ
クタとで種々のフレームを構成することができる。まず
、本実施例で使用されるフレームについて説明する。
シーケン、コマン゛
(MSC21発信)
MSC21から各5SC22〜26の動作の開始を要求
するために出力されるフレームであり、レーザプリンタ
全体の動作を制御するために使用される。MSC21か
ら各5SC22〜26に供給されたシーケンスコマンド
はコマンドレジスタに保持される。これらのシーケンス
コマンドは本実施例では上記処理コマンドを構成する。
玉:」シ竪ユ」−
(MSC21発信)
MSC21から全5SC22〜26にそれらの動作モー
ドを一斉に変更するために、または各5SC22〜26
に個別の動作モードを変更するために出力されるフレー
ムであり、5SC22〜26のグローバルモードマツプ
に保持されているモード情報、またはローカルモードマ
ツプに保持されているモード情報を変更する。
左元二jl記り乞ニス」−
(MSC21発信)
MSC21が各5SC22〜26のステータスレジスタ
内の情報を要求するとき送出されるフレームである。な
お、ポーリングモードでは各5SC22〜26の送信タ
イミングの通知に使用される。本実施例では上記通信コ
マンドとして機能す玉:」二Jり」=&玉
(MSC21または各5SC22〜26発信)各5SC
22〜26のグローバルモードマツプやローカルモード
マツプ内のモード情報を要求するときに出力されるフレ
ームである。各5SC22〜26の状態や上記モードセ
ットが正し〈実施されたか否かをチエツクするために用
いられる。
五二五ヱ之ヱ
(各5SC22〜26発信)
上記モードリクエストに対する各5SC22〜26から
の応答として出力されるフレームである。
この応答に際しては、各5SC22〜26のローカルモ
ードマツプ内のモード情報が送出される。
ステータスアンサ
(各5SC22〜26発信)
MSC21から各5SC22〜26に上記ステータスリ
クエストまたはシーケンスコマンドが供給されたとき、
各5SC22〜26からの応答として出力されるフレー
ムである。したがフて、スデータスアンサでは各SSC
のステータスレジスタに保持されている情報とコマンド
レジスタに書き込まれたコマンドが送出される。
シーケン レボ−
(各5SC22〜26発信)
各5SC22〜26の管理下でMSC21に通知すべき
事象が発生したとき、該事象の発生を表すシーケンスレ
ポート情報を送出するフレームである。上記シーケンス
コマンドと併用してレーザプリンタの制御に利用される
。
応答する。ところが、MSC2Xがモードセットを出力
した場合には、各5SC22〜26は特に応答はせず、
反対に各5SC22〜26がシーケンスレポートを送出
しても、MSC21は応答しない。
上述の各フレームを構成するために組み合わされる応答
要求ビットの値、識別コードの値およびエリアコードの
値を下記のフレーム識別−覧表に示す。
(以下余白)
以上説明したフレームはレーザプリンタの制御のために
互いに関連して使用される。上記フレームの関連性を示
せば、MSC21がシーケンスコマンドを出力すると、
各5SC22〜26はステータスアンサで応答する。ま
た、MSC21がステータスリクエストを送出すると、
各5SC22〜26はステータスアンサでもって応答す
る。同様に、MSC21がモードリクエストで情報を要
求すれば、各5SC22〜26はモードアンサでフレー
ム I−3
次に、上述した各フレームを構成するIDキャラクタと
それに後続するデータキャラクタとのビット構成を詳述
する。
MS≦と倉目五二しレーム
第11図(a)はシーケンスコマンドを構成するキャラ
クタのビット構成を示すフォーマット図である。シーケ
ンスコマンドは3キヤラクタで構成されており、IDキ
ャラクタは上記表に示した通りである。IDキャラクタ
に続く2つのデータキャラクタの最上位ピッ) (b7
)はそれぞれ「0」に設定されており、データキャラク
タ1のビットb6は取り込み確認ピッ) (Q)として
機能しており、この取り込み確認ピッ) (Q)はコマ
ンドの同期を取るためのもので、ステータスアンサと組
み合わせて、各5SC22〜26がM S C21から
供給されたコマンドを正常に取り込んだか否かを確認す
るために使用される。データキャラクタ1のビットb5
およびデータキャラクタ2のピッ)b6とは将来の拡張
時に使用されるビット(x)であり、本実施例では各5
SC22〜26はビット(X)を無視する。したがって
、データキャラクタ1では、ビ・ソ)O(LSB)〜ビ
ット4がコマンドコード(CO〜C4)割り当てられて
おり、データキャラクタ2ではビット0〜ビツト6 (
PO−P6>がパラメータに割り当てられている。
第11図(b)はステータスリクエストを構成するキャ
ラクタのビット構成を示すフォーマット図である。ステ
ータスリクエストはIDキャラクタのみて構成されてい
る。IDキャラクタのビット構成は上述したので詳細は
省略する。
第11図(C)はワードタイプのモードセットを構成す
るキャラクタのビット構成を示すフォーマット図である
。ワードタイプのモードセットは4キヤラクタで構成さ
れており、IDキャラクタに続くデータキャラクタ1の
ビット0〜ビツト6は、モード情報を表すためデータキ
ャラクタ2.3のビット0〜ビツト6に跨って設定され
る設定データD(Do〜DD)を書き込むべきメモリの
論理アドレス空間を示すマツプアドレスM (MO〜M
6)割り当てられている。例えば、識別コードSが「0
」に設定されているなら、設定データpは全5SC22
〜26のグローバルモードマツプ35に書き込まれる。
これに対して、識別コードSが「0」以外の値に設定さ
れているなら、該識別コードSて指定された5SC22
〜26にのみ設定データを書き込む。この場合に、エリ
アコードUの値により書き込み先はローカルモードマツ
プ34かグローバルモードマツプ35になる。
なお、マツプアドレスMはr7FHjに設定されること
はない、これは、後述するように、M=「7FH1は終
了コードとしてフレームの終端を表すからである。
第11図(d)はストリングタイプのモードセットを構
成するキャラクタのビット構成を示すフォーマット図で
ある。上述のワードタイプのモードセットでは1アドレ
スについて1つの設定データDが供給されるが、ストリ
ングタイプのモードセットでは1アドレスについて複数
ワードの設定データDを書き込むことができる。そのた
めに、マツプアドレスMを指定するデータキャラクタ1
の後に、設定データのワード数L (LO〜L6)を表
すデータキャラクタ2が続く。従って、設定データDは
データキャラクタ3〜データキヤラクタnにより表され
ることになる。なお、上述と同様の理由によりデータキ
ャラクタ1においてマツプアドレスはr7FHjに設定
されることはない。
第11図(e)はモードリクエストを構成するキャラク
タのビット構成を示すフォーマット図である。モードリ
クエストは2キヤラクタからなり、IDキャラクタに続
くデータキャラクタのビットbo (LSB)〜ピッ)
b6は読み出しが要求されているマツプアドレスMを示
している。モードリクエストの場合にも、マツプアドレ
スMが「7FHJに設定されることはない。
Σ旦立立皿ユ旦二ム
第11図(f)はステータスアンサを構成するキャラク
タのビット構成を示すフォーマット図であり、ステータ
スアンサはIDキャラクタとそれに続く2つのデータキ
ャラクタとの合計3ギヤラクタで構成されている。デー
タキャラクタ1のピッ)b6は上述した取り込み確認ピ
ッ)Qであり、取り込み確認ピッ)Qが「1」に設定さ
れたままなら、MSC21から供給されたコマンドはま
だ確認されておらず、新たなコマンドを送出してはなら
ないことを示している。データキャラクタ1のビットb
O(LSB)〜ビットb5はコマンドレジスタ32に保
持されているコマンドを表すコード(CO〜C4)に割
り当てられており、これはMSC21から供給されたコ
マンドを宛先の5SC22〜26が正確に取り込めたか
否かをMSC21がチエツクするためである。上記取り
込み確認ピッ)Qはコマンドを実行後に「0」にリセッ
トされ、Q=0のフレームが5SC22〜26から出力
された後にコマンドコードCはクリアされる。
データキャラクタ20ビツトb6はSSCからのフレー
ムの発信が継続することを示すフレーム継続ピッ)Nと
して機能しており、MSC21では各5SC22〜26
から送出されたフレームの区切りを検出するために利用
される。データキャラクタ2のビットbO(LSB)〜
ビットb5はステータスレジスタ33に保持されている
情報を表すコードに割り当てられている。上記各5SC
22〜26内にそれぞれ保持されている情報が1フレー
ムで送出できない場合には、上記継続ビットNを操作し
つつ複数のフレームに跨って送出される。
第11図(g)はシーケンスレポートを構成するキャラ
クタのビット構成を示すフォーマット図であり、シーケ
ンスレポートは3キヤラクタで構成されている。データ
キャラクタ1のビットbO(LSB)〜ビットb4はシ
ーケンスレポート情報の内容を表すレポートコードR(
RO−R4)に割り当てられており、データキャラクタ
20ビツトbO〜ビツト5はパラメータP (PO−P
5)に割り当てられている。
第11図(h)はワードタイプのモードアンサを構成す
るキャラクタのビット構成を示すフォーマット図であり
、ワードタイプのモードアンサでは、IDキャラクタの
後に、マツプアドレスMに割り当てられたデータキャラ
クタとモード情報を表す設定データDに割り当てられた
2つのデータキャラクタとの組み合せが最大4回繰り返
される。
各設定データDは1ワード=14ビツト(DO〜DD)
で構成されており、これらの設定データDに割り当てら
れたデータキャラクタの後に終了コードに割り当てられ
たデータキャラクタnが現れて終了する。上述のごとく
終了コードは17FHJO値を有しており、したがフて
、マツプアドレスMおよび設定データはr7FHJO値
を取ることがない。
第11図(i)はストリングターイブのモードアンサを
構成するキャラクタのビット構成を示すフォーマット図
であり、上記ストリングタイプのモードセットに対応す
る。ストリングタイプのモードアンサでは、IDキャラ
クタに続くデータキャラクタ1はマツプアドレスに割り
当てられており、その後に続くデータキャラクタ2は設
定データ長を表す。データキャラクタ3〜データキヤラ
クタn−1は第1ワード〜第Lワードに割り当てられて
おり、各ワードは14ビツト(DO〜DD)で構成され
ている。ストリングタイプのモードアンサも終了コード
(7FH)を表すデータキャラクタnで終了する。した
がって、マツプアドレスMおよび設定データは値r7F
HJを取れない。
上述のごと<MSC21と各5SC22〜26とは、フ
レームを単位として情報交換がなされ、5SC22〜2
6はMSC21から要求のあったときのみフレームの送
信が可能である。5SC22〜26から送信する場合に
は送信すべき情報が多量なら複数のフレームを送信しな
ければならず、かかる複数フレームの送信時、MSC2
1としては5SC22〜26からの発信終了(SSC区
切り検出)を検出しなければ他のSSCに通信要求を送
出することはできない。このようなSSC区切り検出に
供するために、5SC22〜26から発信される複数フ
レームにはフレームの継続を示す情報が含まれており、
このようなフレームの継続を表す情報を含む変則的なフ
ォーマットを第12図にまとめて示す。なお、第12図
(1)はシーケンスレポートの続かないステータスアン
サを示しており、第12図(2)に示されるシーケンス
レポートの続くステータスアンサとの比較のために示さ
れている。第12図(2)〜(4)から明らかなように
、フレーム継続時には最終フレーム以外のフレームのフ
レーム継続ピッ)Nは「1」にセットされており、最終
フレームはSSC区切り検出用にフレームビットを[0
」にセットするか、終了コードr7FH]を伴う。
ステ:ヨヨ(1報
上述のように本レーザプリンタではMSC21の管理下
で複数の5SC22〜26がそれぞれ割り当てられた機
能の実現を図っており、MSC21は複数の5SC22
〜26を有機的に結合させるために各5SC22〜26
の状態を把握しておくことが必要である。かかるSSC
の状態はローカルモードマツプ34にそれぞれ詳細ステ
ータス情報として保持されている。ところが、MSC2
1の管理下にあるSSCの数が大きくなると、これら詳
細ステータスを全て読みだそうとすると、MSC21の
負荷が大きくなり、処理効率を向上させることができな
い。そこで、本レーザプリンタ内の各5SC22〜26
はそれぞれのローカルモードマツプ34内に保持されて
いる詳細ステータス情報を要約して概略ステータス情報
を形成し、該概略ステータス情報を各5SC22〜26
内のステータスレジスタ33内に保持している。
ステータスレジスタ33の各ビットに割り当てられてい
る情報は第13図に示されているようにピッ)G5には
、SSCが初期設定中を示す概略ステータス情報が割り
当てられており、以後、 「NOT READYJビ
ットと称する。 rNOTREADYJビットの立てら
れているSSCはシーケンスコマンドとモードセットと
を受信可能てあり、 rNOT READYJビット
は初期化終了後リセットされる。続く、ビットG4は、
コマンドやモード変更に伴うSSCの実行状態を表すr
BUSYJビットに割り当てられており、上記実行状態
の終了時にリセットされる。ビットG3とGOとは未使
用ビットであり、特定の概略ステータス情報に割り当て
られていない。ビットG2は復帰不可能なトラブルの発
生により処理を中断したことを示すrFATALJビッ
トに割り当てられており、 rFATALJビットはM
SC21でもリセットすることはできず、サービスマン
による処置を受けなければ処理を再開することができな
い。ビットG1は、復帰可能なトラブルの発生により処
理が中断されたことを示すrERRORJビットに割り
当てられており、 rERRoR」ビットが立てられて
も、ユーザが予め定められている処置を施すことにより
処理の再開は可能である。rERRORJビットはユー
ザが上記予め定められた処置を施すとSSCによりリセ
ット可能になる。
既に説明したように、上記概略ステータス情報はローカ
ルモードマツプ34に保持されている詳細ステータス情
報を要約して形成される。これらの詳細ステータス情報
の保持されているロー・カルモードマツプ34の一部は
SSC標準モードマツプと呼ばれており、SSC標準モ
ードマツプの論理アドレス空間に割り当てられる詳細ス
テータス情報を第14図に示す。アドレスr05H」、
「06H」、r08HJ、ro9HJはそれぞれ「E
RRORJビット、 「FATAL」ビット、 「BU
SYJビット、 rNOT READYJビットに対
応して設けられており、それぞれステータスレジスタ3
3に保持される概略ステータス情報についての詳細ステ
ータス情報を保持する。これらをエラーレジスタ、フエ
イタルレジスタ、ビイジ−レジスタ、ノットレディーレ
ジスタと呼ぶ。
なお、アドレス「OCH」は以下に詳述するレポートモ
ードとポーリングモードとの切り替えの参照に使用され
るレポートモード情報に割り当てられている。
次に、レポートモードとポーリングモードとについて説
明する。ポーリングモードに関しては第5図〜第7図を
用いて説明したように、MSC21は複数の5SC22
〜26と共通の信号線5O2SIで接続されており、シ
ステムの配線は簡略されるものの、MSC21と5SC
22〜26との通信は通信要求に対する応答の形でなさ
れるので、通信の処理速度が低いという欠点がある。こ
れに対して、MSC21と5SC22〜26とを個別に
接続する方式(以下、レポート方式という)では通信網
が複雑になるものの処理速度を向上させることができる
という利点がある。そこで、本実施例にがかるレーザプ
リンタのSSCは標準モードマツプ内にレポートモード
情報を保持できるようにし、標準モードマツプ内にレポ
ートモード情報が書き込まれていれば、当該SSCはM
SCとレポート方式で通信し、反対にレポートモード情
報が書き込まれていないときには、既に説明したポーリ
ング方式で通信することになる。このように、MSCと
SSCとの通信方式はSSC毎に選択できるので、例え
ば第15図に示されているように5SC1501〜15
03はバッフアートマルチプレクサ1504を介してM
SC1505に接続し、ssc i 501〜1503
とMSCI5O5とはポーリング方式で通信し、SSC
1506,1507とMSC1505とはレポート方式
で通信するように構成することもできる。このように、
レポート方式とポーリング方式とを混在させることによ
り、MSCに接続されるSSCが多くなっても、通信処
理時間の長大化を防止することができる。特に、レーザ
プリンタ内のSSCの内、高速での通信処理を必要とし
ないものをポーリング方式に設定し、高速での通信を要
するものをレポート方式にすれば、レーザプリンタの通
信網を僅かに複雑化させるだけで通信効率のよいシステ
ムにすることができる。なお、第15図に示したように
ポーリング方式とレポート方式とを混在させる場合でも
、電源投入後に実行される初期化時には、全ての5SC
1501,1502,1!503,1506.1507
をポーリング方式で通信させることにより、フレームの
衝突を防止することができる。
(以下余白)
ス旦盈」LLびノぜと区::ダ
以下、一実施例に係るレーザプリンタで実行されるソフ
トウェアについて説明するが、ソフトウェアの説明に先
立って、主要なパラメータとフラグとについて説明する
。
、J A B A CT ニブリント動作等、システム
がジ゛3ブを実行中であるか否かを示すフラグであり、
「0」に設定されているなら、レーザプリンタのシステ
ム全体は待機中であることを示す。これに対して、 「
1」に設定されるなら、MSC21の管理下にあるいず
れかのSSCがその支配下のユニットに動作を指示し、
その動作が未完了であることを示す。
5YSWAIT:レーザプリンタのシステム全体が初期
化実行中か否かを示すフラグであり、初期イヒの実行開
始により「1」にセットされ、初期化終了により「0」
にリセットされる。
LOOPF: MSCがメインルーチンにおいてジョブ
処理を実行するタイミング(メインループタイミング)
に達したか否かを示すフラグであり、ジョブ処理を実行
すべきタイミングに達すると「1」にセットされ、この
フラグが「0」にリセットされているとジョブ処理は実
行されない。
MS I FS: MSC21の管理下にある複数のS
SCについての初期化の段階を表すパラメータであり、
初期化の進展にともない「0」〜「5」のいずれかの値
に設定される。
UN r TF:外部給紙ユニットの接続状態を示すフ
ラグであり、外部給紙ユニット(第2図の実施例では給
紙ユニット用コントローラ24の管理下にある)がレー
ザプリンタの一部として接続されていることが検出され
ると「1」にセットされ、未接続時には「0」にリセッ
トされる。
UN I TS:ソータ(第2図の実施例で、はソータ
用コントローラ25の管理下にある)がレーザプリンタ
の一部として接続されていることが検出されると「1」
にセットされ、未接続時には「0」にリセットされる。
ENBF:外部給紙ユニット選択許可フラグであり、
「1」にセットされていると選択可能、 「0」にリセ
ットされていると選択不可を表している。
ENBS:ソータに関してのモード指定許可フラグであ
り、「1」にセットされていると指定許可を、 「0」
にリセットされていると指定不許可を表す。
PANS:ステータスアンサの受信フラグであり、ステ
ータスアンサを受信すると「1」にセットされている。
PCYCLE:全SSCへ通信要求を送出した回数を示
す管理データである。
PEND: SSC区切り検出を示すフラグであり、フ
レーム継続ビットNがrOJに設定されていることを検
出したとき、または終了コード[7FH]を検出したと
きに「1」にセットされる。
P T I M I N G :ポーリングタイミング
(第7図のtpl〜tp4)の発生を示すフラグである
。
CCNT:フレーム受信時のキャラクタ数を計数するカ
ウンタの値であり、受信したキャラクタがそのフレーム
の何番目のキャラクタであるかを表す。
I DS:受信されたフレームのIDキャラクタ内の識
別コードSに対応するデータであり、通信の対象となっ
ているSSCを特定するコードである。
IDU:受信されたフレームのIDキャラクタ内のエリ
アコードUに対応するデータであり、通信の対象となっ
ているSSC内のアクセスすべき論理アドレス空間を示
す。
FLEN:通信の対象となっているSSCから供給され
るフレー・ム中のキャラクタ数を示すカウントデータで
あり、受信バッファが新たなキャラクタを受信する毎に
歩進する。
LENTBL:全SSCについてのFLENを別途保持
している管理データであり、全SSCについてポーリン
グが完了すると更新される。
PSSC:ポーリングすべきSSCを指定する管理デー
タである。
T RM L :送信中のフレームを構成するキャラク
タが送信レジスタ49にあるか否かを表すフラグであり
、送信バッファ48から送信レジスタ49にキャラクタ
が転送されると「1」にセットされ、送信レジスタ49
からマクロシステムインターフェース27に全ビットが
送出されると「0」にリセットされる。
LMTF: 1回の送信要求に対して送出できる情報数
の最大値を示す管理データであり、制限カウンタにセッ
トされる。
5TRNG:受信したモードアンサがストリングタイプ
であることを表すフラグ。
MSCに −れるプロ ラムの
第16図はMSC21で実行されるプログラムの全体構
成を示すフローチャート図であり、MSC21はメイン
ルーチンプログラムの他に3種類の割り込みルーチンプ
ログラムを実行する。まず、メインルーチンプログラム
の概略を説明すると、レーザプリンタの電源スィッチが
オンされて電源スイツチオンイベント(EVI)が発生
すると、MSC21のマイクロプロセッサ61(以下、
MSCのプログラムの説明に間しては単にマイクロプロ
セッサ61という)はMSC初期化サブルーチンプログ
ラム(SBI)を実行する。続いて、マイクロプロセッ
サ61はマクロシステムインタフェース27と該インタ
フェースに接続可能なSSCとの接続状態を検出するた
めの処理を含むMSIF処理サブルーチンプログラム(
S811)とその完了を判断する判断ステップ(P 1
02)とで構成されるループを反復実行し、判断ステッ
プP102がイエスになるのを待つ。MSIF処理サブ
ルーチンプログラム5BIIではマクロシステムインタ
フェース27に関して後に百′及する割り込み処理とメ
インループとの同期が取られ、上述のようにマクロシス
テムインタフェース27と接続可能なSSCに関して接
続の有無がチエツクされる。MSIF処理サブルーチン
プログラム5B11が終了すると、ステップP102の
判断結果がイエスになるので、マイクロプロセッサ61
はフラグLOOPFをチエツクしてメインルーチン中の
ジョブ処理を実行すべきタイミング(以下、メインルー
プタイミングという)が到来したか否かを判断する(P
103)。もし、メインループタイミングが未到来な
らば、ステップP103の判断結果はノーになるので、
マイクロプロセッサ61はサブルーチンプログラム5B
IIに戻ってMSIF処理サブルーチンプログラムを再
び実行し、やがて、メインループタイミングになるとス
テップP103の判断結果がイエスになるので、マイク
ロプロセッサ61はジョブ処理サブルーチンプログラム
(SB12)を実行する。ジョブ処理サブルーチンプロ
グラム(SB12)の終了時には、マイクロプロセッサ
61はサブルーチンプログラム5BIIに戻り、以後、
サブルーチンプログラム5BII〜5B12で構成され
るループを反復実行する。
サブルーチンプログラム5BII〜5B12で構成され
るループの実行中にMSC21の割り込みタイマー66
がマイクロプロセッサ61に割り込みをかけると、タイ
マー割り込みイベント(EV2)が発生し、マイクロプ
ロセッサ61はメインループタイマー処理サブルーチン
プログラム(5B21)と、ポーリング制御タイマー処
理サブルーチンプログラム(SB22)とを順次実行し
、実行終了後にメインルーチンプログラム中のザブルー
チンプログラム5BII〜5B12からなるループにリ
ターンする。
上記サブルーチンプログラム5BII〜5BI2からな
るループの実行中にいずれかの5SC22〜26からフ
レームがMSC21に送出され、MSC21の受信レジ
スタ46に送出されたフレームの最初のキャラクタ(I
Dキャラクタ)がラッチされると、受信割り込みイベン
トが発生しくEV3)、マイクロプロセッサ61は受信
バッファ処理サブルーチンプログラム5B31を実行し
て受信されたフレームを受信バッファ47に一時的に保
持した後にサブルーチンプログラム5B11〜5B12
からなるループに復帰する。
一方、MSC21の送信レジスタ49に保持されている
最初のキャラクタが送信レジスタ49からMSCIF上
に送出されると送信割り込みイベン) (EV4)が発
生し、送信バッファ処理ルー41が実行されて送信バッ
ファ48に保持されているデータを順次マクロシステム
インターフェース27に送出した後、サブルーチンプロ
グラム5Bll〜5B12からなるループに復帰する。
以上のように、MSC21のマイクロプロセッサ61は
MSC初期化サブルーチンSBIの実行後、サブルーチ
ンプログラム5BII〜5B12からなるループを反復
実行しつつ、タイマー割り込みイベン)EV2、受信割
り込みイベントE■3および送信割り込みイベン)EV
4の発生に対処することになる。
ンルーチンブログーム
第17図はMSC21で実行されるメインルーチンプロ
グラムの具体的な実行手順を示すフローチャートaであ
り、上述のように、メインルーチンプログラムは電源オ
ンイベントEVIにより発生する。電源オンイベントE
V1の発生によりMSC21のマイクロプロセッサ61
は自らの内部回路の初期化を実行しくステップP170
1)、続いて、MSC21のグローバルモードマツプ4
4に標準モードを初期設定する(ステップP1702)
。グローバルモードマツプ44の初期設定後、マイクロ
プロセッサ61はステップP1703においてMSC2
1のローカルモードマツプ45、コマンドレジスタ41
、ステータスレジスタ42、ストリングエリアおよびレ
ポートレジスタ43をクリアする。
続いて、マイクロプロセッサ61はMSC21のステー
タスレジスタ42のビットG5に「NOT READ
SYJビットをセットする。この「NOT READ
YJビットはSSCとマクロシステムインターフェース
27との接続の有無の検出に利用される。また、MSC
21について初期化サブルーチンプログラムSBIが実
行中であることが表示される。次に、MSC21のマイ
クロプロセッサ61は5YSWAITフラグを「1」に
設定してレーザプリンタのシステム全体が初期化実行中
であることを表示し、psscにも「1」を初期設定す
る(ステップP1705)。しだがって、MSC21は
5SCIについてま・ず通信要求を送信することになる
。続いて、マイクロプロセッサ61はステップP170
Bにおいて上述したフラグ等の内ステップP1705に
て「1」に初期設定されたものを除き全て「0」に設定
する。
したがって、MSIF処理サブルーチン5BIIの実行
中に参照されるパラメータMSIFSはこのステップで
「0」に設定されることになる。
マイクロプロセッサ61は続いてステップP1707に
進みMSC21の割り込みタイマー66をセットし、次
のステップP170Bでイベント(EV2.EV3.E
V4)発生時の割り込みを許可してメインループの実行
を開始する。
メインループはマクロシステムインターフェースに間す
る手順(SB 171〜5B174)とジョブの制御を
実行する手+11N!(P1709〜5BI76)とで
構成されており、これらの2種類の手順の内、マクロシ
ステムインターフェースに関する手順は常時実行されて
おり、ジョブの制御を実行する手順はマクロシステムイ
ンターフェースの準備が完了した時点で5YSWAIT
が「0」にリセットされると実行可能になる(ステップ
P1709)。MS I F監視サブルーチンプログラ
ムSB 171では、マイクロプロセッサ61がマクロ
システムインターフェース27の初期化と、該マクロシ
ステムインターフェース27と接続可能な全SSCに間
して個別に接続の有無をチエツクする。続く受信データ
処理サブルーチンプログラム5B172では各5SC2
2〜26からMSC21の受信バッファ47に供給され
たフレームの解析を実行し、送信要求処理サブルーチン
プログラム5B173では、MSC21のグローバルモ
ードマツプ44、ローカルモードマツプ45およびコマ
ンドレジスタ41に保持されている情報の内、5SC2
2〜26に送信すべき情報をフレームに変換し、送信バ
ッファ48に保持する。送信バッファ48に保持された
フレームはタイマー割り込み処理および送信割り込み処
理の実行によりマクロシステムインターフェース27に
送出する。
続くポーリング制御サブルーチンプログラム5B174
では、上述したポーリング方式にしたがい各5SC22
〜26に通信要求を送出してMSC21と各5SC22
〜26との通信を実現する。
この通信要求では、MSC21はステータスリクエスト
を対象となるSSCに送出し、この通信要求に対して、
対象とされたSSCはステータスアンサで応答し、送信
すべきデータを出力する。
一方、ジョブの実行を制御する手順は、5YSWAIT
が「0」にリセットされた後(ステップP1709の判
断結果がイエスとなる)に、ジョブ処理のタイミングL
OOPFが「1」と判断される(ステップP1710で
イエスと判断される)と開始されることになる。このよ
うにジョブ処理のタイミングが到来すると、マイクロプ
ロセッサ61は将来のジョブ実行制御に備えて、直ちに
ステップPI711てLOOPFを「0」にリセットす
る。したがって、ジョブの実行制御(SBI75.5B
176)は所定の周期で実行されることになる。また、
ジョブの実行を制御する手順では複数のジョブ処理サブ
ルーチン(JOBI〜JOBn)が順次実行されること
になる。
以上概略説明したメインループの手順を、以下詳細に説
明する。
第18A図〜第18B図はMS1F監視サブルーチンプ
ログラムの手順を示すフローチャート図であり、ステッ
プP1801T!MSIF監視サブルーチンプログラム
5B171が開始されると、マイクロプロセッサ61は
パラメータMS I FSをチエツクし、該パラメータ
MSIFSが「0」に設定されているか否かを調べる(
ステップ21802)。本サブルーチンプログラム5B
171の開始直後はメインルーチンプログラム(第17
図)のステップP1706でro」に初期設定されてい
るので、マイクロプロセッサ61は必須のコントローラ
5SC22,23,26とマクロシステムインターフェ
ース27との接続をチエツクする。即ち、マイクロプロ
セッサ61はステップP1803で5SC22からのス
テータスアンサを受信したか否かを受信通知フラグRR
によりチエツクする。MSIF監視サブルーチンプログ
ラム5B171の実行開始直後は、まだ送信要求サブル
ーチンプログラム5B173を実行していないので、当
然、受信データ処理サブルーチンプログラム5B172
で通信要求対象となっているSSCからの受信フレーム
の解析も実行しておらず、ステップP1802の判断は
ノー(N)となる。ステップP 1802の判断がノー
の場合には、マイクロプロセッサ61はステップP18
03〜P1810を実行することなくステップP181
1へ進む。既に説明したように、パラメータMSIFS
は「0」に初期設定されているので、ステップP181
1の判断もノーとなり、ステップP1812〜PI31
4を実行することなくステップP 1815に進む。後
述するように、マイクロプロセッサ61は参照する値を
増加させつつパラメータMSIFSを繰り返しチエツク
してゆくが、上述のように、パラメータMSIFSは「
0」に初期設定されたままなので、以後のいずれのステ
ップ(P1819,1822)における判断もノーとな
り、ステップP1831に進む。マイクロプロセッサ6
1はステップP 1831 CZおいてフラグJOBA
CTがrOJであるか否かをチエツクするが、フラグJ
OBACTは、ジョブ処理中以外では「0」なので、ス
テップP1831の判断結果はイエスとなり、マイクロ
プロセッサ61は、ステップP i 832てフラグ5
YSWAITが「0」か否かをチエツクする。フラグs
yswAITはステップP1705で「1」にセットさ
れているので、MSIF監視サブルーチンプログラム5
B171の開始直後はフラグ5YSWAI’l’==r
i」であり、マイクロプロセッサ61はオプション接続
チエツクサブルーチンプログラム5B182を実行する
ことなく、SSCステータスチエツクサブルーチップロ
グラム5B183を実行して、メインルーチンプログラ
ムに復帰する。
このようにして、メインルーチンプログラムへの復帰を
繰り返しつつMSIF監視サブルすチンプログラムSB
17 iを繰り返し実行し、必須のコントローラ(S
SC22,23,26)とマクロシステムインターフェ
ース27との接続をチエツクする。ステータスリクエス
トに対して5SC22〜26から応答されたステータス
アンサが受信されたことを示す受信通知フラグRRが「
1」にセットされていることを検出すると、マイクロブ
ロセ・・Iす61はステップP1803〜1805につ
いてそれぞれイ、ニスと判断し、これらの5SC22,
23,26が全てマクロシステムインターフェース27
と接続されていることが確認される。
このようにして、必須のコントローラ5SC22,5S
C23,5SC26についてマクロシステムインターフ
ェース27との接続が確認されろと、マイクロプロセッ
サ61はステップP1806に進み、フラグUNITF
が「0」以外の値、すなわち「1」にセットされている
か否かを判断する。フラグUNrTFはメインルーチン
プログラムのステップP 1706でrOJにリセット
されているので、M S I F fi視ササブルーチ
ンプログラム5BIフI実行開始当初は、ステップP1
806の判断結果がノーになる。そこで、マイクロプロ
セッサ61はステップP1807を実行することなくス
テップP 1805でフラグUNITSが「0」以外の
値にセットされているか否かを判断する。MSiF監視
サブルーチンプログラム5B171の実行開始当初はス
テップP 180Bの判断結果がノーなので、マイクロ
プロセッサ61はステップP1810に進んでパラメー
タMSIFSを「1」に歩進させ、必須のコントローラ
の接続を確認する時間間隔を制御するためにパラメータ
PCYCLEを「0」に設定する。上記フラグUNIT
FとUNITSとはオプション接続チエツクサブルーチ
ン58182において5SC24,25がマクロシステ
ムインク・−フェース27に接続されているのが確認さ
れるまでは「0」を維持するので、その後も上記5SC
24,25の接続確認完了までは5SC24,25から
の応答をステップP1807.P1809で判断するこ
となくステップP1810に進む。このようにして初期
化の第1段階を終了する。
ステップP1810の終了後、マイクロプロセッサ61
はステップP1811においてパラメータMSIFSを
チエツクし、初期化の第1段階の終了を確認する。もし
、ステップP1811の判断結果がノーの場合には、S
SCステータスチエツクサブルーチンプログラムS81
83の終了後、−旦メインルーチンプログラムに戻り、
その後、ステップP1802を経て、再びステップP1
811にてパラメータM、S I F Sの値をチエ・
ツクする。必須のコント1コーラS S C22,23
,26の接続が確認された状態では、パラメータMSI
FSは「1」にセットされているので、ステップP18
11の判断結果は、通常−イエスとなり、マイクロプロ
セッサ61はステップP18i2にてパラメータP C
Y CL Eの値を制限値nと比較する。この制限値n
は必須のコントローラ5SC22,23,26の接続を
確認するのに必要な通信要求回数に所定の余裕回数を加
えた値に設定されている(ステップP1812)、必須
のコントローラS S C22,23,26について接
続が確認された当初はステップP1812の判断結果が
ノ−になるので、マイクロプロセッサ61はステップP
18i5.P1819.P1B22.P1831、サブ
ルーチンプログラムSB 183を経てメインルーチン
プログラムに復帰する。上記制限値nは後に詳述するポ
ーリング制御サブルーチンプログラム58174におい
て「1」ずつ歩進するので、やがて、ステップP181
2の判断結果はイエスとなり、マイクロプロセッサ61
はステップP1813に進み、接続の確認されたSSC
にリセットコマンドを供給するためにMSC21のコマ
ンドレジスタ41にリセットコマンドRESETをセッ
トする。接続の確認されたSSCに対するリセットコマ
ンドRESETの送信は送信要求処理サブルーチンプロ
グラムSB 173および送信バッファ処理ルーチンプ
ログラムSB41において実行され、リセ・ントコマン
ドRE S E Tの供給されたSSCの実現する機能
に°ついでは後述するSSCにより実行されるプログラ
ムにおいて説明する。このようにリセットコマンドRE
SETがステップPl 813で接続の確認されたSS
Cに゛ついてのMSC21のコマンドレジスタ41にセ
ットされると、マイクロプロセッサ61はパラメータM
SNFSを「2」に歩進させ、第2段階を終了する。
続くステップP1815において、マイクロプロセッサ
61は、パラメータMSIFSが値「2」となっている
か否かを判断する。ステップP1815の判断結果がノ
ーの場合には、SSCステータスチエツクサブルーチン
SB 183の実行後、−旦メインルーチンプログラム
に戻り、ステップP1802.P1811を経゛C再び
ステップP1815にてパラメータMSIFSの値をチ
エツクする。しかしながら、パラメータMSIFSは第
2段階完了時にはステップP 1814で既に値[2J
に設定されているので、ステップP1815の判断結果
は通常イエスとなり、マイクロプロセッサ61は接続の
確認された全SSCがリセットコマンドRESETを保
持したか否かを判断しくステップP i 816)、そ
の判断結果がノーの場合には、−旦メインルーチンプロ
グラムに復帰した後にステップP1802.Pi811
.P4O10を経てステップP1816の判断を繰り返
す。
これに対して、リセットコマンドRESETの送信が完
了し、ステップP1816の判断結果がイエスになった
なら、マイクロプロセッサ61はそのグローバルモード
マツプ44に保持されている標準モード(ステップP1
702にて設定済み)を接続の確認されている全SSC
に供給すべくその送信要求フラグTRを「1」にセット
する(ステップP1817)。この後、マイクロプロセ
ッサ61はパラメータMS I FSを「3」に設定し
、第3段階を終了する。
第3段階の終了後、マイクロプロセッサ61はパラメー
タIIVISIFSの値が「3」となっているか否かを
チエツクし、その判断結果がノーの場合にはSSCステ
ータスチエツクサブルーチンプログラム5B183の実
行後、−旦メインルーチンプログラムに戻り、ステップ
P1802.pis11、P4O10を経てステップP
1819で再びパラメータMSIFSをチエツクする。
パラメータMSIFSはステップPI318で値「3」
に設定されているので、ステップP1819の判断は通
常イエスであり、マイクロプロセッサ61はかかるイエ
スの判断結果をもってステップP1820に進み、送信
要求フラグTRが「0」にリセットされたか否かを判断
する。送信要求フラグが「1」に設定された標準モード
に関する情報は上述のリセットコマンドと同様に送信要
求処理サブルーチンプログラム5B173ど送信バッフ
ァ処理サブルーチンプログラム5B41とを実行するこ
とにより供給対象になっているSSCに送出され、その
後、送信要求フラグTRは「0」にリセットされる。し
たがって、ステップP 1820の判断結果がノーであ
るなら、標準モードに関する情報はまだ供給対象のSS
Cに送出されていないことになるので、マイクロプロセ
ッサ61はSSCステータスチエツクサブルーチンプロ
グラム5B183の実行後、−旦メインルーチンプログ
ラムに復帰し、その後、ステップP1802.P181
1、P!815.Pi819を経てステッブPI320
の判断を繰り返す。やがて、標準モードに間する情報が
供給対象のSSCに送出され、標準モードに間する情報
に付されていた送信要求フラグTRが全て「0」にリセ
ットされると、マイクロプロセッサ61はパラメータM
SIFSを「4」に設定しくステップP1821)、第
4段階を終了する。
第4段階の終了後、マイクロプロセッサ61はパラメー
タMSIFSの値が「4」にセットされているか否かを
判断し、その判断結果がノーの場合には、SSCステー
タスチエツクサブルーチンプログラムSB 183の終
了後に一旦、メインルーチンプログラムに復帰し、その
後、ステップP1802、P1811.P181δ、P
1819を経てステップP1B22の判断を繰り返す。
パラメータMSIFSはステップP 1821で「4」
に設定されているので、通常、ステップP1822の判
断結果はイエスであり、マイクロプロセッサ61はステ
ップP1822に対するイエスの判断結果をもってステ
ップP 1823に進む。ステップP1823において
は、マイクロプロセッサ61は5SC22から送信され
るフレームの受信状態が安定したか否かを判断する。こ
の受信状態の判断は後述するポーリング制御サブルーチ
ンプログラム5B174にてカウントデータ情報FLE
Nに基づき形成される管理データ情報LENTBLの値
により判断される。カウントデータ情報FLENは受信
データ処理サブルーチンプログラム5B172において
受信されたフレームのデータ長を表しており、具体的に
は通信の対象となフているSSC<ステップP1823
においては5SC22)から送出されるステータス情報
の量を表している。したがって、MSC21のマイクロ
プロセッサ61は管理データ情報LENTBLの値が一
定値以下になると、通信の対象となっているSSCから
の受信が安定したと判断することになる。マイクロプロ
セッサ61はステップP1823の判断結果がノーの間
はSSCステータスチエツクサブルーチンプログラム5
B183から一旦メインルーチンプログラムに戻り、ス
テップP1802、P1811. P1815.P1
819゜P1822を経て再びステップP 1823の
判断を繰り返し、ステップP1823の判断結果がイエ
スになるのを待つ。ステップP 1823の判断結果が
イエスになると、マイクロプロセッサ61はステップP
1824に進み、5SC23からの受信状態が安定した
か否かをステップP1B23と同様の方法で判断する。
このようにして、マイクロプロセッサ61は必須のコン
トローラ5SC22,23,26に関しそれぞれの受信
状態をチエツクしくステップP1B23.P1824.
P1825)、全ての必須のコントローラ5SC22,
23,26からの受信状態が安定すると、ステップP1
826に進んで、フラグUNITFが「0」以外、すな
わち「1」にセットされているか否かを判断する。後述
するオプション接続チエツクサブルーチンプログラムS
B 182が実行されていない状態であればフラグUN
ITF、UNITSはステップP1706において「0
」に設定されたままなので、ステップP1826の判断
結果はノートなり、マイクロプロセッサ61はステップ
P1827で5SC24からの受信状態をチエツクする
ことなくステップP 182Bに進み、フラグUNIT
SO値が「0」以外の値に設定されているか否かを判断
する。フラグUNITSについても、オプション接続チ
エツクサブルーチンプログラムS8182を実行する以
前では初期設定値「0」なので、マイクロプロセッサ6
1はステップP 1829を実行することなく、ステッ
プP1830に進む。しかしながら、本実施例のように
、5SC24,25がマクロシステムインターフェース
27に接続されている場合は、オプション接続チエツク
サブルーチンプログラム5BI82を実行した結果、フ
ラグUNITF、UNITSはそれぞれ「1」に設定さ
れるので、やがて、ステップP1826.P1B28の
判断結果はイエスになり、マイクロプロセッサ61はス
テップP1827.P1829でそれぞれS S C2
4゜25の受信状態をチエツクする。ステップP1B2
7、P1829の判断結果がそれぞれイエスになると、
マイクロプロセッサ61はステップP1830に進み、
パラメータMSIFSを「5」に、フラグ5YSWAI
Tを「0」にそれぞれ設定する。続いて、マイクロプロ
セッサ61はシステム更新サブルーチンプログラム5B
181 (、第19図)を実行し、MSC21からコマ
ンド等を供給するSSCを確定する。しかしながら、第
19図に示されているように、ステップP1902.P
1905てフラグUNITFとしINITSとをチエツ
クしてこれらがいずれも「1」に設定されていないなら
、直ちにMSIF監視サブルすチンプログラムSB 1
71に復帰する。これらのフラグUNITF、UNIT
Sとはオプション接続チエツクサブルーチンプログラム
の実行の結果、5SC24,25がマクロシステムイン
ターフェース27に接続されていることが確認されると
「1」に設定されるので、システム更新サブルーチンプ
ログラム5B181の詳細手順はオプション接続チエツ
クサブルーチンプログラム5B182の手順を説明した
後に説明する。
マイクロプロセッサ61はシステム更新サブルーチンプ
ログラムSB 181からMSIF監視サブルーチンプ
ログラム5B171に復帰すると、ステップP1831
に進んでフラグJOBACTが「0」に設定されている
か否かを判断し、その判断結果がノーの場合には、SS
Cステータスチエツクサブルーチンプログラム5B18
3の実行後にメインルーチンプログラムに復帰する。フ
ラグJOBACTはステップP1706で「o」に設定
されるので、この段階では通常ステップP1832の判
断結果はイエスとなり、マイクロプロセッサ61はオプ
ション接続チエツクサブルーチンプログラム58182
を実行する。
オプション接続チエツクサブルーチンプログラムSB1
82については、第20図に詳細手順が示されており、
マイクロプロセッサ61はステップP2O01において
手順が開始されると、まず、フラグUNITFが「0」
にセットされているか否かを判断し、その判断結果がノ
ーの場合には、ステップP2O03〜ステツプP2O0
5を実行することなくステップP2O06に進み、フラ
グUNITSが「0」に設定されているか否かを判断す
る。しかしながら、フラグUNITF、UNITSは5
SC24,25のマクロシステムインターフェース27
との接続が確認されるとそれぞれステップP2O04,
P2O08にて「1」に設定されるので、オプション接
続チエツクサブルーチンプログラムの第1回目の実行時
には、それぞれ「0」に設定されているはずであり、し
たがって、ステップP2O02の判断結果はイエスにな
る。その結果、マイクロプロセッサ61は上述した必須
のコントローラ5SC22,23,26の接続チエツク
と同様の方法でマクロシステムインターフェース27と
5SC24との接続をチエツクする(ステップP2O0
3)。もし、ステップP2O03の判断結果がノーなら
ば、5SC24はマクロシステムインターフェース27
に接続されていないないので、マイクロプロセッサ61
はステップP2O04,P2O05を実行することなく
ステップP2O06に進み、フラグUNITSが「0」
に設定されているか否かを判断する。
一方、本実施例のように5SC24がマクロシステムイ
ンターフェース27に接続されているなら、ステップP
2O03の判断結果はイエスになるはずであり、マイク
ロプロセッサ61はステップP2O03に対するイエス
の判断結果をもってステップP2O04に進み、5SC
24の接続確認を表すべくフラグUNITFを「1」に
設定する。
マイクロプロセッサ61は再び上述したプログラムの手
順を繰り返すべく、初期化の段階を表すパラメータMS
IFSを初期値「0」に、フラグ5YSWAITを「1
」にそれぞれ設定する。その後、MSC21のステータ
スレジスタ42に保持されている5SC24に関するス
テータス情報にそれぞれ付されている受信通知フラグR
Rを「0」にリセッI・する(ステップP2O05)。
このように、5SC24に関する接続チエツクと接続確
認後の処理とが終了すると、マイクロプロセッサ61は
5SC25に関して5SC24と同様の確認手続きを実
行するためにステップP2006へ進み、フラグUNI
TSの値が「0」が否かを判断する。すでにフラグUN
ITSが「1」に設定されているなら、5SC25の接
続は確認されているので、マイクロプロセッサ61はス
テップP2O07〜P2O09を実行することなくMS
IF監視サブルーチンプログラム5B171に復帰する
。しかしながら、上述したように、第1回目のオプショ
ン接続チエツクサブルーチンプログラム58182の実
行時には、5SC25の接続は未確認であり、フラグU
NITSは「0」に設定されているはずである。したが
って、マイクロプロセッサ61はステップP2O06を
イエスと判断してステップP2O07に進み、上記必須
のコントローラ5SC22,23,26の接続確認手順
と同様の手順で5SC25についてマクロシステムイン
ターフェース27との接続を確認する。もし、5SC2
5が接続されていなければ、マイクロプロセッサ61は
ステップP2O0B。
P2O09を実行することなく、フラグUNITSを「
0」にしたままでMSIF監視サブルーチンプログラム
5B171に復帰する。ところが、本実施例のように5
SC25がマクロシステムインターフェース27に接続
されているなら、ステップP2O07の判断結果はイエ
スになるはずであり、かかる判断結果をもってマイクロ
プロセッサ61はステップP2O08に進み、フラグU
NITSをrlJに設定して5SC25の接続確認を表
す。マイクロプロセッサ61は更に、ステップP2O0
4に関して説明したのと同様の理由でパラメータMSI
FSを「0」に、フラグ5YSWA I Tを「1」に
それぞれ設定する。しかる後に、マイクロプロセッサ6
1はステップP2O09に進み、MSC21のステータ
スレジスタ42に保持されているステータス情報に付さ
れている受信通知フラグR,Rを「0」にリセットする
。このように、フラグ類の操作が終了すると、マイクロ
プロセッサ61はMSTF監視サブルすチンプログラム
SB 171に復帰する。
MSIF監視サブルーチンプログラム5B171に復帰
したマイクロプロセッサ61は、SSCステータスチエ
ツクサブルーチンプログラム5B183を実行した後に
メインルーチンプログラムに更に復帰し、パラメータM
SIFSを「0」から順次歩進させつつ上記プログラム
を再実行する。
本実施例の場合、この再実行時には、オプション接続チ
エツクサブルーチンプログラムSB 1 B2の実行に
よりフラグUNITFとUNITSとは共に「1」に設
定されているので、ステップP1806、P1808の
判断結果はそれぞれイエスになる。従って、マイクロプ
ロセッサ61はステップP 1807、P1O09にお
いて5SC24゜25とマクロシステムインターフェー
ス27との接続状態に変化はないかをそれぞれチエツク
する。
これらのステップP1807、P1O09で上記5SC
24,25とマクロシステムインターフェース27との
接続が再確認されると、マイクロプロセッサ61は第2
段階中のステップpisiaにおいて5SC24,25
についてもリセットコマンドRESETをセットし、5
SC22,23゜26だけてなく5SC24,25にも
1ノセツトコマンドRESETを供給する。また、第3
段階になると、マイクロプロセッサ61はグローバルモ
ードマツプ44内の標準モードに関する情報を再び供給
すべく送信要求フラグTRを「1」にセットするので、
5SC24,25のグローバルモードマツプ35にも標
準モードがセットされろことになる。次の第5段階にお
いては、ステップP1B26.P1828の判断結果が
それぞれイエスになるので、マイクロプロセッサ61は
5SC24,25についてもフレームの受信安定をチエ
ツクする(ステップP1827.P1B29)。
このようにして、マイクロプロセッサ61は対象となる
SSCを5SC24,25にも拡張してすでに説明した
手順を再実行し、ステップP1830においてパラメー
タMSIFSを「5」に、フラグ5YSWAITをr
OJにそれぞれ設定する。この後、マイクロプロセッサ
61はシステム更新サブルーチンプログラム5B181
の実行を開始する。オプション接続チエツクサブルーチ
ンプログラムSB 182を実行する以前では、すてに
説明したようにシステム更新サブルーチンプログラム5
B181は実質的に実行されることなくMSIF監視サ
ブルーチンプログラム5B171に復帰するが、再実行
時には、すてにオプション接続チエツクサブルーチンプ
ログラムSB 182が実行され、フラグUNITF、
UNITSはそれぞれ「1」に設定されている(ステッ
プP2O04、P2O08)。したがって、システム更
新サブルーチンプログラム5B181では、ステップP
1902の判断結果がイエスになるので、マイクロプロ
セッサ61はステップP1903に進んで、外部給紙ユ
ニット選択許可フラグE NB Fを「1」に設定する
。この後、マイクロプロセッサ61はの給紙機構に関し
てグローバルモードマツプ44に保持されている情報を
更新する(ステップP1904)。本実施例の場合には
、ソータも具イーシているので、ステップP 190b
の判断結果もイエスとなり、マイクロプロセッサ61は
ステップP1906においてソータ選択許可フラグEN
BSもrlJに設定する。この後に、マイクロプロセッ
サ61はMSC21のグローバルモードマツプ44に保
持されているソータに間する情報を更新して(ステップ
P1907)、MSIF監視サブルーチンプログラム5
B171に復帰する。
このように本実施例に係るレーザプリンタのMSC21
はその電源オンイベントの発生後に必須のコントローラ
5SC22,23,26についてその接続をチエツクす
るとともに、オプション接続チエツクサブルーチンプロ
グラム5B182においてレーザプリンタの構成上から
は必ずしも必要でない5SC24,25ついて接続の有
無をチエツクする。このオプション接続チエツクサブル
ーチンプログラムSB 182はレーザプリンタのシス
テム全体が待機中(JOBACT= rOJ )てあり
、かつフラグ5YSWAITが「0」なら常に実行され
る。したがって、上記電源オンイi<シト後の初期イヒ
時でなくても、システムの待機時に5SC22〜26の
接続チエツクが繰り返され、レーザプリンタの起動後に
給紙機構やソータが追加接続された場合でも、その接続
の確認を図ることができ、システムを自由に拡張するこ
とができる。
すてに第17図に関して説明したように、MSIP監視
サブルーチンプログラム5B171の後には、受信デー
タ処理サブルーチンプログラム58172、続いて送信
要求処理サブルーチンプログラム5B173、更に続い
て、ポーリング制御サブルーチンプログラムSB 1
?4が順次実行されるが、以下、MSC21の動作順序
を考慮して、メインループタイマー処理サブルーチンプ
ログラム5B21.ポーリング制御タイマー処理サブル
ーチンプログラム5B22.ポーリング制御サブルーチ
ンプログラム5B174、送信要求処理サブルーチンプ
ログラム5B173、受信データ処理サブル−チンプロ
グラムSB 172の用百にそれぞれの詳細手順を説明
する。
メインループタイマ・−処理サブルーチンプログラム5
B21とポーリング制御タイマー処理サブルーチンプロ
グラム5B22とは上述のようにタイマー割り込みイベ
ン)EV2が発生する毎に開始され、マイクロプロセッ
サ61はメインルーチンプログラムの一連のジョブ処理
サブルーチンプログラムJOBI〜JOBnの実行周期
を制御するためループタイマーのカウント値を歩進させ
(ステップP2101)、続いて該歩進されたカウント
値をジョブ処理を実行すべきタイミングを表すジョブ処
理実行タイミング値に達したか否かを判断する(ステッ
プP2102)。ステップP2102の判断結果がノー
の場合には、ステップP2103を実行することなくス
テップP2104に進む。これに対して、ステップP2
102の判断結果がイエスの場合には、ステップP21
03に進み、フラグLOOPFを「1」に設定すると共
に、ループタイマーをリセットして初期値「0」とする
。したがって、ループタイマーは再スタートすることに
なる。このようにフラグLOOPFが「1」に設定され
ると、次回のメインルーチンプログラムの実行時にステ
ップP1710の判断結果がイエスになり、ジョブ処理
サブルーチンブログラムJOBI〜JOBnが実行され
る。
続いて、マイクロプロセッサ61はトラブルタイマーの
カウント値を歩進させ(ステップP2104)、ステッ
プP2105において受信フラグPANSが「0」に設
定されているか否かを判断する。ステップP2105の
判断結果がノーの場合には、ステップP2106〜P2
107を実行することなくステップP2108に進む。
一方、ステップP2105に判断結果がイエスの場合に
は、MSC21はステータスアンサ未受信と判断してス
テップP2106に進み、トラブルタイマーのカウント
値を応答エラータイミング値に達したか否かを判断する
。応答エラータイミング値はMSC21からSSCに通
信要求のフレームを発信してから応答受信までの最長許
容期間を表しており、トラブルタイマーのカウント値が
この応答エラータイミング値を超えると、マイクロプロ
セッサ61はステップP2106に関してイエスと判断
してフラグPENDを「1」に設定する(ステップP2
10?)。このようにフラグPENDが「1」に設定さ
れた後、マイクロプロセッサ61は当該SSCに関し通
信不良と判断して以後のポーリング処理を強制的に中止
すべくポーリングエラー処理サブルーチンプログラム5
B211を実行する。
これに対して、ステップP2106の判断結果がノーの
場合には、MSC21と通信要求のなされたSSCとは
正常な通信状態なので、ステップP2107を実行する
ことなく、直ちにステップP210Bに進む。
ステップP2108において、マイクロプロセッサ61
はポーリングタイマーのカウント値を歩進し、該ポーリ
ングタイマーのカウント値がSSCに対して通信要求す
べきポーリングタイミングに達したか否かを判断する(
ステップP2109)。ステップP2109の判断結果
がノーの場合には、マイクロプロセッサ61はステップ
P2110〜ステップP2112を実行することなくス
テップP2113に進む。これに対して、ステップP2
109の判断結果がイエスなら、マイクロプロセッサ6
1は、ステップP2110にてフラグPTIMINGの
値が「0」か否かを判断する。
ステップP2110の判断結果がノーなら、すでにポー
リングタイミングは到来しているので、マイクロプロセ
ッサ61はステップP2111〜ステップP2112を
実行することなくステップP2113に進む。これに対
して、ステップP2110の判断結果がイエスなら、ポ
ーリングタイミングの発生を初めて検出したことになる
ので、マイクロプロセッサ61はステップP2111に
進んて、フラグPTIMINGを「1」にセットしてス
テップP 2112に進み、次回のポーリングタイミン
グを検出するためにポーリングタイマーを「0」にリセ
ットして、ポーリングタイマーを再スタートさせる。
次に、マイクロプロセッサ61は、後述する送信要求処
理サブルーチン5B173の実行準備のためにフラグT
RMLがrOJか否かを判断しくステップP2113)
、フラグTRMLが「0」以外、すなわちrlJにセッ
トされているなら、送信中のキャラクタが有るので、ス
テップP2113の判断結果はノーになり、マイクロプ
ロセッサ61はステップP2114〜ステップP211
5を実行することなく直ちにタイマー割り込みイベント
発生時に実行されていたプログラムに復帰する。これに
対して、ステップP2113の判断結果がイエスの場合
にはMSC21の送信バッファ48にキャラクタが保持
されているか否かを判断しくステップP2114)、ス
テップP2114の判断結果がノーならマイクロプロセ
ッサ61はステップP2115の実行することなく直ち
にタイマー割り込みイベントEV2発生時に実行されて
いたプログラムに復帰する。これに対して、ステップP
2114の判断結果がイエスの場合には、送信バッファ
48内のキャラクタを送信レジスタ49に転送し、フラ
グT RM Lを「1」にセットする(ステップP21
15)。ステップP2115の終了後、MSC21の制
御はタイマー割り込みイベン)EV2発生時のプログラ
ムに復帰する。
次に、ポーリングエラー処理ルーチンプログラム5B2
11の詳細手順を第22図を参照して説明する。ポーリ
ングエラー処理サブルーチンプログラムがステップP2
201において開始されると、マイクロプロセッサ61
はフラグ5YSWAITが「0」に設定されているか否
かを判断しくステップP2202)、ステップP220
2がノーなら、レーザプリンタは初期化実行中なので以
後の処理を直ちに中断してポーリング制御サブルーチン
プログラムSB 174に復帰する。ステップP220
2の判断結果がイエスなら、マイクロプロセッサ61は
ステップP2203〜ステップP2205を順次実行し
て応答エラーを起こしたSSCが5SC22,23,2
6のいずれであるかを判断する。もし、応答エラーを起
こしたSSCが5SC22,23,28のいずれかであ
れば、ステップP2203〜ステップP2205のいず
れかで判断結果がイエスになるので、マイクロプロセッ
サ6IはステップP2209に進み所定のエラー処理を
実行してポーリング制御タイマー処理サブルーチンプロ
グラム5B22に戻る。これに対して、応答エラーを起
こしたSSCが5SC22,23,26のいずれでもな
かった場合には、マイクロプロセッサ61はフラグUN
I TFをチエツクして5SC24がマクロシステムイ
ンターフェース27に接続されているか否かを判断する
(ステップP2206)。5SC24がマクロシステム
インターフェース27に接続されているなら、ステップ
P2206の判断結果はイエスになるので、マイクロプ
ロセッサ61はステップP2207に進み、応答エラー
を起こしたのが5S024であるか否かを判断する。ス
テップP2207の判断結果がイエスなら、マイクロプ
ロセッサ61はフラグJOBACTをチエツクして、レ
ーザープリンタがジョブ実行中であるか否かを判断する
(ステップP2208)。ステップP2208の判断結
果がノーなら、マイクロプロセッサ61はステップP2
209に進み、所定のエラー処理を実行し、ポーリング
制御タイマー処理サブルーチンプログラム5B22に戻
る。これに対して、ステップP2208の判断結果がイ
エスなら、−度マクロシステムインターフェース27と
の接続が確認されているにもかかわらず、待機中に応答
エラーを起こしているので、マイクロプロセッサ61は
フラグUNITF、ENBFをそれぞれ「0」に設定し
、5SC24がマクロシステムインターフェース27か
ら切り離されたものとして処置する。この後、マイクロ
プロセッサ61はパラメータMSIFSを「0」に、フ
ラグ5YSWAITを「1」にそれぞれ設定しくステッ
プP2211)、続いてMSC21のステータスレジス
タ42に保持されているステータス情報に付された受信
通知フラグRRを「0」にリセットするくステップP2
212)、 このような一連の処置(ステップP22
10〜ステップP2212)により、MSC21はMS
IF監視サブルーチンプログラム5B171を再度実行
することになり、5SC24,25等の接続も再度チエ
ツクされることになる。一方、上記ステップP 220
6. ステップP2207におけるいずれかの判断結果
がノーならば、マイクロプロセッサ61はステップP2
213進んでフラグUNITSをチエツクし、5SC2
5がマクロシステムインターフェース27に接続されて
いるか否かを判断する(ステップP2213)。5SC
25がマクロシステムインターフェース27に接続され
ているなら、ステップP2213の判断結果はイエスに
なるので、マイクロプロセッサ61はステップP221
4に進み、応答エラーを起こしたのが5SC25である
か否かを判断する。ステップP2214の判断結果がイ
エスなら、マイクロプロセッサ61はフラグJOBAC
Tをチエツクして、レーザープリンタがジョブ実行中で
あるか否かを判断する(ステップP2215)。ステッ
プP2215の判断結果がノーなら、マイクロプロセッ
サ61はステップP2216に進み、所定のエラー処理
を実行し、ポーリング制御タイマー処理サブルーチンプ
ログラム5B22に戻る。これに対して、ステップP2
215の判断結果がイエスなら、5SC25は一度マク
ロシステムインターフェース27との接続が確認されて
いるにもかかわらず待機中tこ応答エラーを起こしてい
るので、マイクロブロセ・ンサ61はフラグUNITS
、ENBSをそれぞれ「0.」ζコ設定し、5SC25
がマクロシステムインターフェース27から切り離され
たものとして処置する。この後、マイクロプロセッサ6
1はパラメータMSIFSを「0」に、フラグS Y
SWA I Tを「1」にそれぞれ設定しくステップP
2211)、続いてMSC21のステータスレジスタ4
2に保持されているステータス情報に付された受信通知
フラグRRを「0」にリセットする(ステ・ンブp22
12)。このような一連の処置(ステ・ンブp 221
”7 + ステップP2211〜ステップP221
2〉により、MSC21はMSIF監視サブルーチンプ
ログラム5B171を再度実行することになり、5SC
24,2i5等の接続も再度チエツクされることになる
。
(以下余白)
次に、ポーリング制御サブルー・チンプログラムSB
i 74−の詳細手順について第23図を参照して説明
する。
ポーリング制御サブルーチンプログラム5BI74がス
テップP2301において開始されると、マイクロプロ
セッサ61はフラグPTIMINGが「1」に設定され
ているか否かを判断しくステップP2302)、該ステ
ップP2302の判断結果がノーならポーリングタイミ
ングがまだ到来(、・ていないので(第7図参照)、マ
イクロプロセッサ61はポーリング制御サブルーチンプ
ログラム58174を直ちに中断L/てメインルーチン
プログラムに復帰する。
これに対して、上述したポーリング制御ターイマー処理
すブルーチンプ[1グラム5B22のステップP211
1においてフラグPTIMINGが「1」に設定されで
いると、ステップP2302の判断結果はイエスとな?
’l、マイクロプロセッサ61はステップP2303に
進んでフラグPENDがNJに設定されているか否かを
判断する。マイクロプロセッサ61は後述する受信デー
タ処理サブルーチン5B172において受信フレームを
構成するキャラクタのフレーム継続ビットNが「0」で
あるか、終了コード(7FH)が検出されたときにSS
C区切り検出を認識し、フラグPENDが「1」にセッ
トされる。したがつ′乙 フラグPENDが「1」に設
定されていると受信中のフレームを構成する全キャラク
タがMSC21に取り込まれたことになり、他のSSC
に通信要求を実施することが可能ζこなる。
ところが、フラグPENDが「0」であるなら。
受信中のフレームは未送信のキャラクタを有(7・てい
るので、マイクロプロセッサ61はステップP2303
においでノーと判断してポーリング制御サブルーチンS
B 174を直ちに終了させ、メインルーチンプログラ
ムここ復帰する。
これに対して、ステップP2303のは判断結果がイエ
スなら、マイクロプロセッサ61はステップP2304
に進み、送信バッファ48に空きがあるか否かを判断し
、もし、送信バッファ48に空きがなければ、以後のス
テップの実行を中止して直ちにメインルーチンプログラ
ムに復帰する。
このように、本実施例では、送信要求を実行するために
は、ポーリングタイミングが到来しており、前回の送信
要求に対する応答が完了しでおり、しかも送信バッファ
48に空きがなければならない。
上述の全ての条件が満たされると、マイクロプロセッサ
61はステップP2305に進んでフラグPT IMI
NG、PEND、PANSをぞれぞれ「0」にリセット
し、続いて、前回の通信要求に対する応答を構成したデ
ータ長を表すカウントデータFLENの値を転送して管
理データL E NTBLを更新する(ステップP23
06)、 このように、管理データLENTBLが更
新されると、マイクロプロセッサ61はカウントデータ
F i、 ENをクリアして、前回の通信要求に関する
後処理を終了する。
この後、マイクロプロセッサ61は通信要求を実行する
ためにステータスリクエストをMSC21の送信バッフ
ァ48に送出し、保持させる(ステップP230B>、
、しかる後、マイクロプロセッサ61はSSCとの通信
状態を監視するためトラブルタイマーをスタートさせろ
(ステップP2309)。このようにして、通信要求の
準備が完了すると、マイクロプロセッサ61はステ・ン
ブP2310において通信要求を送出する対象のSSC
を指定する管理データPSSCを歩進させて次回のポー
リング制御サブルーチンプログラム58174の実行に
備える。上記ステップP2308において送信バッファ
48に保持されたステータスリクエストは送信割り込み
イベン) E V 4の発生後に実行される送信バッフ
ァ処理サブルーチンプログラムS841において通信の
対象になっているSSCに送出される。
このように今回の通信要求に間する処理が終了すると、
マイクロブロセッ961はマクロインターフェース27
に接続されている全SSCに対して順次通信要求を送出
したか否かを判断しくステップP2311)、ステップ
P2311の判断結果がノーなら、−旦メインルーチン
プログラムに復帰し、ステップP2311の判断結果が
イ〕−スなら、ステップP2312に進んて通信要求ず
べきSSCを「221に処理設定して再度5SC22か
ら順次通信要求を送出てきるように準備する。
また、マイクロプロセッサ61はパラメータPCYCL
Eを「1」歩進させて通信要求の繰り返し回数を管理し
、メインルーチンプログラムに復帰する。
次に、送信要求処理サブルーチンプログラム5B173
の詳細手111Bを第24図を弁明して説明する。送信
要求処理サブルーチンプログラム5BI73がステップ
P2401において開始されろと、マイクロプロセッサ
61は制限カウンタに管理データL M T Fをセッ
トしくステップP 24.02 )、送信バッファ4
Bに空きがあるか否かを判断する(ステップP24(1
3)。もし、j4(信バッファ11に空きがなけれは、
ステップP 2403の判断結果はノーになるので、マ
イクロブミコセッサ61は送信要求に対応てきないと判
断して直ちにメインルーチンプログラムに復帰する。
これに対してステップP2403の判断結果がイエスな
ら、マイクロプロセッサ61はステップP2404に進
み4 グローバルモードマツプ44とローカルモードマ
ツプ45とを検索し、これらのマツプ44.45上に送
信要求フラグTRが「1」にセットされた情報等の発見
に努める。もし、送信要求フラグTRが「1」にセット
された情報等が発見されなければ、ステップP2405
の判断結果はノーとなり、マイクロプロセッサ61はス
テップP2408〜ステップP2409を実行すること
なくステップP2410に進む。これに対して、ステッ
プP2405の判断結果がイエスなら、マイクロプロセ
ッサ61は発見された送信要求フラグTRをrOJにリ
セットして(ステップP2406)、該送信要求フラグ
TRの付されていた情報をフlノームここ変換して送信
バッファ48に送出する(ステップP2407)、この
後、マイクロプロセッサ61はステップP2409にお
いて制限カウンタを「1」減少させ、続いて制限カウン
タの値が「01に達(、たか否かを判断する(ステップ
P2409)。ステップ−P2409の判断結果がイエ
スなら、マイクロプロセッサ61は以後の処理を中断し
て直ぢにメインルーチンプログラムに復帰し、反対にス
テップP2409の判断結果かノーならステップP24
10に進んでローカルモードマツプ34とグローバルモ
ードマツプ35とに保持されている全ての情報についで
検索が終了()たか否かを判断する。ステップP241
0の判断結果がノーならマイクロプロセッサ61はステ
ップP2403に戻って送信バッファ4日に空きがある
か否がチエツクし、以後、送信バッファ48がフレーム
を保持できなくなるか、ローカルモードマツプ34およ
び゛グローバルモードマツプ35上の全情報について検
索が終了するまでステップP2403〜ステップP24
JOで構成されるループを繰り返す。このように本実施
例では、制限カウンタを用いて1回の送信要求処理サブ
ルーチンプログラムの実行中に送出されるキャラクタ数
を制限しているので、MSC21は他の処理を犠牲にす
ることなく5SC22〜26と通信することができ、5
SC22〜26側でも送信要求に対する応答が遅れるこ
とはない。
やがてステップP2410の判断結果がイエスになると
、マイクロプロセッサ61はステップP2411に進ん
て送信バッファ48に空きがあるか否かを判断し、ステ
ップP2411の判断結果がイエスの場合には、コマン
ドレジスタ41に保持されている全コマンドの送信要求
フラグTRを検索しくステップP2412)、もし、通
信要求フラグTRが「1」にセットされたコマンドが発
見されなければ、ステップP2413の判断結果はノー
となり、マイクロプロセッサ61はステップP2414
〜ステップP2418を実行することなくステップP2
418に進む。
これに対して、上述したステップP2413の判断結果
がイエスなら、マイクロプロセッサ61は発見された送
信要求フラグTRを「0」にリセットして(ステップP
2414)、リセットされた送信要求フラグTRの付さ
れていたコマンドをフレームに変換し、その後、送信バ
ッファ48に送出する(ステップP2415)。この後
、マイクロプロセッサ61はステップP2416におい
て制限カウンタを「1」減少させ、続いて制限カウンタ
の値が「0」に達したか否かを判断する(ステップP2
41?)。ステップP2417の判断結果がイエスなら
、マイクロプロセッサ61は以後の処理を中断して直ち
にメインルーチンプログラムに復帰し、反対にステップ
P2417の判断結果がノーならステップP241 B
に進んでコマンドレジスタ32に保持されている全ての
情報について検索が終了したか否かを判断する。ステッ
プP2418の判断結果がノーならマイクロプロセッサ
61はステップP2411に戻って送信バッファ48に
空きがあるか否かチエツクし、以後、送信バッファ48
が新たなフレームを保持できなくなるか、コマンドレジ
スタ32上の全情報について検索が終了するまでステッ
プP2411〜ステップP241Bで構成されるループ
を繰り返す。やがてステップP24]Bの判断結果がイ
エスになるとマイクロプロセッサ61は送信要求サブル
ーチンプログラムを終了してメインルーチンプログラム
に復帰する。このようにしてステップP2407および
ステップP2415で送信バッファ48に保持されたフ
レームは送信割り込みイベン)EV4の発生時に送信バ
ッファ処理ルーチンプログラム5B41の実行により通
信の対象となっているSSCに送出される。
本実施例では、送信要求サブルーチンプログラムの実行
において、マイクロプロセッサ61はまずローカルモー
ドマツプ45とグローバルモードマツプ44とを検索し
、送信すべき情報を送信バッファ48に送出する。しか
る後で送信バッファ48に更に空きがあるなら送信すべ
きコマンドを送信バッファ48に送出する。従フて、各
SSCはコマンドの供給に先立ってローカルモードマツ
プ45とグローバルモードマツプ44とに保持されてい
る情報の供給を受けることができ、コマンドの実行に必
要な情報の供給を保証している。
次に受信データ処理サブルーチンプログラムについて説
明する。この受信データ処理サブルーチンプログラムS
B 172は受信割り込みイベントEV3の発生時に受
信バッファ処理サブルーチンプログラム5B31により
、受信レジスタ46にラッチされたキャラクタが受信バ
ッファ47に転送された後に実行され、その詳細手順は
第25図に示されている。
ステップP2501でこの受信データ処理サブルーチン
プログラム5B172が開始されると、マイクロプロセ
ッサ61は、まず、MSC21の受信バッファ47をチ
エツクして該受信バッファ47内にキャラクタがラッチ
されているか否かを判断する(ステップP2502)。
もし、受信バッファ47内にキャラクタが保持されてい
ないなら、ステップP2501の判断結果はノーになる
ので、マイクロプロセッサ61は直ちにメインルーチン
プログラムに復帰する。これに対して、ステップP25
02の判断結果がイエスの場合には、マイクロプロセッ
サ61はステップP2503に進み、カウントデータC
CNTが「0」か否かを判断する。すてにフラグ類に関
する説明で述べたように、カウントデータCCNTはフ
レーム受信時のすでに受信したキャラクタ数を表してい
るので、フレームの受信直後は「0」に設定されており
、したがって、マイクロプロセッサ61はステップP2
504に進み、受信されたキャラクタがIDキャラクタ
であるか否かを判断する。上述のように、各フレームの
先頭キャラクタはIDキャラクタなので、カウントデー
タCCNTが「0」にもかかわらず、受信したキャラク
タがIDキャラクタでないなら、受信エラーまたはすで
に受信データ処理サブルーチンで処理済みのIDキャラ
クタと考えられるので、マイクロプロセッサ61は以後
の処理を中断して直ちにメインルーチンプログラムに復
帰する。これに対して、受信したキャラクタがIDキャ
ラクタなら、ステップP2504の判断結果はイエスと
なり、マイクロプロセッサ61は受信されたIDキャラ
クタの識別コートSとエリアコードUとをデータIDS
、IDUとしてそれぞれMSC21のRAM62内の作
業エリアに転送する(ステップP2505)。この後、
マイクロプロセッサ61はステップP2506に進み、
カウントデータCCNTを「2」に設定する。尚、この
プログラムにおいてはカウントデータCCNTとして「
1」は使用されない。その後、マイクロプロセッサ61
はメインルーチンプログラムに復帰する。
マイクロプロセッサ61がメインルーチンプログラムを
構成する一連のサブルーチンプログラムを繰り返し実行
しているときに、2番目のキャラクタが受信バッファ4
7にラッチされると、受信データ処理サブルーチン5B
172のステップP2503の判断はノーとなり、マイ
クロプロセッサ61はステップP2507に進んで受信
されたキャラクタがデータキャラクタであるか否かを判
断する。受信されたキャラクタがIDキャラクタである
と、ステップP2507の判断結果はノーになるので、
マイクロプロセッサ61はステップP2505に進んで
、受信したIDキャラクタの識別コードS及びエリアコ
ードUをデータIDSおよびIDUとしてRAM62の
作業エリアに保持する。その後、カウントデータCCN
Tを「2」に設定して(ステップP2i506)メイン
ルーチンプログラムに復帰する。一方、受信されたキャ
ラクタがデータキャラクタの場合には、ステップP25
07の判断結果はイエスになるので、マイクロプロセッ
サ61はカウントデータFLENを「1」だけ歩進させ
て(ステップP250B)、ステップP2509で受信
中のフレームのIDキャラクタのエリアコードUがコマ
ンドレジスタまたはステータスレジスタを指定している
か否かを判断する。エリアコードUがコマンドレジスタ
またはステータスレジスタを指定しているなら、ステッ
プP2509の判断結果はイエスなので、マイクロプロ
セッサ61はステータス/レポート解析サブルーチンプ
ログラム5B251を実行する。
反対に、ステップP2509の判断結果がノーなら、マ
イクロプロセッサ61はモード解析サブルーチン5B2
52を実行する。まず、ステップP2509の判断結果
がイエスとなり、ステータス/レポート解析サブルーチ
ンプログラムがステップP2801において開始された
場合について第26図を参照して説明する。このステー
タス/レポート解析サブルーチンプログラムでは、1キ
ヤラクタ毎の処理が実行される。エリアコードIDUが
「3」に設定されているときにマイクロプロセッサ61
はステータス/レポート解析サブルーチンプログラムに
進むので、上述のフレーム識別−覧表から明らかなよう
に、ステータス/レポート解析サブルーチンプログラム
ではステータスアンサまたはシーケンスレポートの解析
が実行される。マイクロプロセッサ61は、まずステッ
プP2602においてカウントデータCCNTをチエツ
クし、カウントデータCCNTが「3jであるか否かを
チエツクする。データキャラクタ1の場合には、ステッ
プP2506においてカウントデータCCNTは「2」
に設定されているので、ステップP2602の判断結果
はノーとなり、マイクロプロセッサ61はステップP2
603に進んで受信されたデータキャラクタ1をマイク
ロプロセッサ61内の一時レジスタに保持する(ステッ
ブP2603)、 この後、マイクロプロセッサ61
はカウントデータCCNTを「1」歩進させて、受信デ
ータ処理サブルーチンSB 172、更にメインルーチ
ンプログラムに復帰する。
上記第11図(f)、 (g)からも明らかなように
、ステータスアンサとシーケンスレポートとは共に3キ
ヤラクタで構成されているので、通信の対象となってい
るSSCからはやがてデータキャラクタ2が供給され、
受信バッファ47にラッチされることになる。データキ
ャラクタ2が受信バッファ47にラッチされた後に実行
される受信データ処理サブルーチンプログラムでは、デ
ータキャラクタlの時と同様、ステータス/レポート解
析サブルーチンプログラムが実行され、この度はステッ
プP2602の判断結果がイエスになるので、マイクロ
プロセッサ61はステップP2605に進んでデータキ
ャラクタ2をマイクロプロセッサ61内の一時レジスタ
2に保持する。次に、マイクロプロセッサ61は受信し
たデータキャラクタ1,2の内容により受信したフレー
ムはステータスアンサであるか否かを判断する(ステッ
プP2606)。もし、受信されたフレームがシーケン
スレポートなら、マイクロプロセッサ61はステップP
2606においてノーと判断して、ステップP2607
に進み、−時レジスタ1,2に保持されているデータキ
ャラクタ1,2をレポートレジスタ37に転送し、その
後、通信の対象になっているSSCから応答のあったこ
とを示すためこれらのデータキャラクタ1,2に付され
ていた受信通知フラグRRを「1」にセットする(ステ
ップP2608)。このようにして受信されたシーケン
スレポートは後述するジョブ処理サブルーチンプログラ
ムにおいて使用される。
これに対して、受信されたフレームがステータスアンサ
なら、ステップP2606の判断結果はイエスになり、
マイクロプロセッサ61はステップP2609に進んで
、まず、トラブルタイマーを停止する。そして、フラグ
PANSを「1」に設定する。このように、トラブルタ
イマーが停止され、フラグPANSが「1」に設定され
ると、ポーリング制御タイマー処理サブルーチンプログ
ラム5B22のステップP2106(第21図)で応答
エラーと判断されることはない。この後、マイクロプロ
セッサ61はステップP2610に進み、コマンドレジ
スタ41に送信後確認待となっている、即ち、データキ
ャラクタ1の第7ビツトQが1であるコマンドがあるか
調べ、このコマンドと受信したステータスアンサ中に通
信の対象となっているSSCに最後に供給したコマンド
と一致しているか否かを判断する(第11図(f)参照
)。ステップP2610の判断結果がノーなら、マイク
ロプロセッサ61はステップP2611、P2612を
実行することなくステップ22613に進むが、ステッ
プP2610の判断結果がイエスなら、マイクロプロセ
ッサ61はステップP2611で受信されたフレームに
含まれていたコマンドが通信の対象になっているSSC
に対して最後に送出されたコマンドと一致するか否かを
判断する。もし、これらのコマンドが不一致であるなら
、ステップP2611の判断結果はノーになるので、マ
イクロプロセッサ61.はステップP2612に進んで
通信の対象になっているSSCに最後に供給したコマン
ドの通信要求フラグTRを「1jにセットして該コマン
ドを再送する準備をする。これに対して、ステップP2
611の判断結果がイエスなら、マイクロプロセッサ6
1は一時レジスタ1,2に保持されているデータキャラ
クタ1,2をそれぞれコマンドレジスタ32とステータ
スレジスタ33とに転送し、保持させる(ステップP2
613)。この後、マイクロプロセッサ61は、通信の
対象となっているSSCから応答のあったことを示すた
め、受信したデータキャラクタ1,2に付されていた受
信通知フラグRRを「1」にセットする(ステップP2
614)。続いてマイクロプロセッサ61は受信された
データキャラクタのフレーム継続ピッ■・Nをチエツク
して、フレームが更に継続するのか否かを判断する(ス
テップP2615)。フレームが継続するならステップ
P2615の判断結果はノーになるので、マイクロプロ
セッサ61はステップP2616を実行することなくス
テップP2617に進み、ステップP2615の判断結
果がイエスなら、マイクロプロセッサ61はSSC区切
り検出を示すP E N Dを「1」に設定して(ステ
ップP2616)、カウントデ・・−タCCNTを「0
」に初期設定して次回のフレーム受信に備える(ステッ
プP2617)。この後、マイクロプロセッサ61はメ
インルーチンプログラムに復帰する。
次に受信したフレームがモードアンサを構成するデータ
キャラクタであ−った場合について第27図を参照して
説明する。モードアンサは、第11図(h)、 (i
)jこ関して説明したようにワードタイプとストリング
タイプとがあり、それぞれのフレーム構成は互いに異な
る。そこで、モード解析サブルーチンプログラム582
52がステップP2701で開始されると、マイクロプ
ロセッサ61はカウントデータCCN Tをチエツクし
て、受信したキャラクタがデータキャラクタ5であるか
否かを判断する(ステップP2702)。ID・キャラ
クタ受信後にはデータキャラクタ1が受イ5されるので
、カウントデータCCNTは「2」に設定されているは
ずであり(第25図のステップP2506参照)、ステ
ップP2702の判断結果はノーになる。そこで、マイ
クロプロセッサ61はステップP2703に進み、カウ
ントデータCCNTが「2」であるか否かを判断する。
上述のようにフ!ノーム受信開始後、最初にモード解析
サブルーチンプログラム5B252が実行されるのはデ
ータキャラクタ1を受信したときであり、カウントデー
タCCNTは「2」である。したがってステップP27
03の判断結果はイエスとなり、マイクロプロセッサ6
1はステップP2704に進み、受信したデータキャラ
クタ(マツプアドレスM)が7FHであるか否かを判断
する。第11図(h)に関して説明したように、マツプ
アドレスMとして禁止されている値は終了コードを表す
(7FH)のみであるから、ステップP2704におい
て終了コード(7FH)が検出されるなら、マイクロプ
ロセッサ61はステップP2705に進み、SSC区切
り検出を表すフラグPENDを「0」にリセットし、続
いて、カウントデータCCNTを「0」にリセットする
(ステップP2706)。一方、ステップP2704の
判断結果がイエスなら、マ、イク口プロセッサ61はフ
ラグ5TRNGを「0」にリセットしくステップP27
07)、カウントデータCCNTを「4」に設定すると
共に、受信したデータキャラクタ1をマイクロプロセッ
サ61のアドレスレジスタに転送する(ステ・ンブP2
708ン。この後、マイクロプロセッサ61は上記アド
レスレジスタに保持したデータキャラクタ1により表さ
れているマツプアドレスMを解析して該マツプアドレス
Mがストリングエリアを指定しているか否かを判断する
(ステップP2709)。もし、マツプアドレスMがス
トリングエリアを指定しているなら、ステップP270
9の判断結果はイエスなので、マイクロプロセッサ61
はステップP2710に進んでフラグ5TRNGを「1
」にセットする。しかる後に、マイクロプロセッサ61
はカウントデータCCN Tを「3」に設定しなおしく
ステップP2711)、受信データ処理サブルーチンプ
ログラムSB1?2に復帰する。これに対して、ステッ
プP2709の判断結果がノーなら、受信中のモードア
ンサはワードタイプなので、マイクロプロセッサ61は
ステップP2710. ステップP2711を実行す
ることなく受信データ処理ザブルーチンプログラム5B
172に復帰する。
やがて、3番目のキャラクタが受信されると、マイクロ
プロセッサ61は再びモード解析サブルーチンプログラ
ム5B252の実行を開始する。
今度はステ・ンブP2703の判断結果がノーになるの
で、マイクロプロセッサ61はステップP2712に進
みカウントデータが「3」であるか否かを判断する。上
述のように、モードアンサがストリングタイプならカウ
ントデータCCNTは「3」に設定されているが、ワー
ドタイプなら「4」に設定され−Cいるので、マイクロ
プロセッサ61はステップP2712の判断結果がイエ
スなら受信したデータ長を表すデータキャラクタ2をマ
イク自プロセッサ61内のデータカウンタに転送して保
持しくステップP2713)、ステップP2712の判
断結果がノーなら設定データDの第1バイトを表すデー
タキャラクタ2をマイクロプロセッサ61内の一時レジ
スタ1に転送して保持する(ステップP2714)。こ
れらいずれの処理を実行したにしても、その後、マイク
ロプロセッサ61はカウントデータCCNTを「1」だ
け歩道させ(ステップP2715)、受信データ処理サ
ブルーチンプログラム5B172に復帰する。
もし、モードアンサがストリングタイプなら、マイクロ
プロセッサ61は受信したデータキャラクタ3のために
ステップP2702、ステップP2703、ステップP
2712、ステップP2714を実行し、設定データを
表すデータキャラクタ3を一時レジスタ1に転送して保
持する。
次に、後続のデータキャラクタが受信され、再びモード
解析サブルーチンプログラムの実行が開始されたとする
。今回はステップP2702の判断結果がイエスになる
ので、マイクロプロセッサ61はステップP2716に
進み、受信したデータキャラクタを一時レジスタ1内に
保持されているデータキャラクタと共にローカルモード
マツプ45(ワードタイプ)かストリングエリアに転送
して保持させる。次に、マイクロプロセッサ61はフラ
グ5TRNGをチエツクして、受信中のモードアンサは
ワードタイプか否かを判断するくステップP271 ?
)。もし、受信中のモードアンサがワードタイプなら、
ステップP2717の判断結果はイエスになるので、マ
イクロプロセッサ61は受信したデータキャラクタの受
信通知フラグRRをセットしてモードの変化を通知しく
ステップP2718)、カウントデータCCNTを「2
」に設定する(ステップP2719)。これに対して、
ステップP2717の判断結果がノーなら、マイクロプ
ロセッサ61はステップP2718を実行することなく
ステップP2719に進む。
しかる後に、マイクロプロセッサ61は再度フラグ5T
RNGをチエツクし、受信中のモードアンサがストリン
グタイプか否かを判断する(ステップP2720)。ス
テップP2720の判断結果がイエス(ストリングタイ
プ)なら、マイクロプロセッサ61はカウントデータC
CNTを「4」に設定し直しくステップP2721)、
ステップP2713でデータカウンタに保持したデータ
長を「1」減少させる(ステップP2722)。更ζこ
、マイクロプロセッサ61は受信したデータキャラクタ
が終了コードを示しているか否かを判断しくステップP
2723)、その判断結果がノーの場合は直ちに受信デ
ータ処理サブルーチンプログラム5B172に復帰する
。
このようにして、受信中のモードアンサがストリングタ
イプなら、マイクロプロセッサ61は、データキャラク
タが受信される毎にステップP2702、ステップP
2703. ステップP2712を経てステップP2
714でデータキャラクタを一時レジスタ1に一旦保持
し、しかる後に、ステップP2716で受信したデータ
キャラクタを一時レジスタ1に保持されているデータキ
ャラクタと共に】ワード(2バイト)づつストリングエ
リアに保持する。これに対して、受信したモードアンサ
がワードタイプの場合には、マイクロプロセッサ61は
ステップP2702. ステップP2703、ステッ
プP2707〜ステップP2709、更にステップP2
712を経てステップP2714で受信したデータキャ
ラクタを一時レジスタ1に一旦保持し、P2716で1
ワードづつローカルモードマツプ45に転送保持する。
やがて、全データを受信完了すると、データカウンタが
カウントを終了しくステップP2722)、ステップP
2723の判断結果がイエスになるので、マイクロプロ
セッサ61はカウントデータCCNTを「2」に設定し
、受信通知フラグRRをセットしくステップP2724
)、ついで、その後に受信される終了コード(アドレス
7FH)をステップP2704で検出し、ステップP2
705.P2706をへてモードアンサの受信に伴う受
信データ処理サブルーチンプログラムの実行を終了する
。
次に、SSCステータスチエツクサブルーチンプログラ
ムSB 183の詳細手順を第28図を参照して説明す
る。本実施例ではMSC21は定期的にステータスレジ
スタ42から各SSCの概略ステータス情報を読み出し
、概略ステータス情報がSSCの異常を示しているなら
、更に詳細を把握するためにモードリクエストを当該S
SCに送出してそのローカルモードマツプ34から詳細
ステータス情報を読み出す。そのために、MSC21は
MSIF監視サブルすチンブ、ログラム5BI71中に
SSCステータスチエツクサブルーチンプログラムS8
183を有している。以下、SSCステータスチエツク
サブルーチンプログラムの詳細手順を説明す。
SSCSSステータスチエツクサブルーチンプログラム
183がステップP2801で開始されると、マイク
ロプロセッサ61はチエツクの対象となるSSCとして
5SC22を特定しくステップP2802)、すでに取
り込んであるチエツク対象となっているSSCの概略ス
テータス情報の受信通知フラグRRが「1」であるか否
かをチエツクする(ステップP2803)。もし、受信
通知フラグRRが「0」ならステップP2803の判断
結果はノーになり、マイクロプロセッサ6Jはステップ
P2809に進みチエツク対象のSSCを変更して、全
SSCについて概略ステータス情報のチエツクが終了し
たか否かを判断する(ステップP2810)。MSC2
1が全SSCについて概略ステータス情報のチエツクを
終了していないなら、ステップP2810の判断結果は
ノーになり、マイクロプロセッサ61はステップP28
03に戻ってステップP2803〜ステップP2810
て構成されるループをステップP2810の判断結果が
イエスになるまで繰り返し実行する。もし、ステップP
2803の判断結果がイエスなら、マイクロプロセッサ
61はチエツク対象のSSCに間する概略ステータス情
報に付されていた受信通知フラグRRを「0」にリセッ
トしくステップP2804)、当該チエツク対象のSS
Cに間する概略ステータス情報のピッ)Gl(ERRO
Rビット)が立てられているか否かを判断する(ステッ
プP2805)。ステップP2805の判断結果がイエ
スなら当該チエツク対象のSSCの管理下にあるユニッ
トでユーザによる処置の可能な比較的軽微なトラブルが
発生したことを示しており、マイクロプロセッサ61は
チエツク対象となっているSSCのローカルモードマツ
プ34から検知されたERRORビットに関係する詳細
ステータス情報を読み出すためにモードリクエストを送
信バッファにセットする(ステップP2806)。これ
に対して、ステップP2805の判断結果がノーなら、
上記軽微なトラブルは発生していないので、マイクロプ
ロセッサ61はステップP2806を実行することなく
ステップP2807に進み、チエツクの対象になってい
るSSCに関する概略ステータス情報のビットG2(F
ATALビット)をチエツクする。もし、FATALビ
ットが「1」なら当該チエツクの対象になっているSS
Cの管理下にあるユニットで復帰不可能なトラブルが発
生したことになるので、マイクロプロセッサ61はFA
TALビットに関係したローカルモードマツプ34内の
詳細ステータス情報にアクセスするためにモードリクエ
ストを送信バッファ48にセットする(ステップP28
09)。これに対して、ステップP2807の判断結果
がノーなら、マイクロプロセッサ61はステップP28
0Bを実行することなくステップP2809に進み、チ
エツク対象のSSCを変更する。このようにして、全S
SCに関して概略ステータス情報のチエツクが終了する
と、ステップP2810の判断結果はイエスになるので
、マイクロプロセッサ61はMSIF監視サブルーチン
プログラム5B171に復帰する。
このようにして、マイクロプロセッサ61はERROR
ビット、またはFATALビットに関係する詳細ステー
タス情報をローカルモードマツプ34から読み出す準備
をする。こうして送信バッファ48に保持されたモード
リクエストは上述の送信要求処理サブルーチンプログラ
ム5B173および送信バッファ処理サブルーチンプロ
グラムSB41の実行時にトラブルの発生しているSS
Cに送出され、トラブルの発生しているSSCからモー
ドアンサが到着すると、受信バッファ処理サブルーチン
プログラムSB31と受信データ処理サブルーチンプロ
グラムとを実行して詳細ステータス情報を取り込む。こ
うしてMSC21に取り込まれた詳細ステータス情報は
後述するトラブルチエ・ンク処理サブルーチンプログラ
ム5B291において解析され、必要な処置が取られる
。
第17図に関して説明したように、メインループにおい
てMSIF監視サブルすチンブしlグラムSB 171
〜ポーリング制御サブルーチンプログラムSB 174
が終了すると、マイクロプロセッサ61はフラグ5YS
WAIT72チエツクして、レー・ザプリンタがジョブ
処理中か、待機中かを判断する。もし、待機中ならフラ
グ5YSWAITは「1」に設定されているので、ステ
ップP1709の判断結果はノーとなり、マイクロプロ
セッサ61はMS I FH視ササブルーチンプログラ
ム実行するため5B171に戻る。これに対して、フラ
グ5YSWAiTが「0」になっているなら、ジョブ処
理サブルーチンプログラムを実行すべく、まず、フラグ
LOOPFが「1」に設定されているか否かをチエツク
する(ステップP 1710)。
メインループタイマー処理サブルーチンプログラムに関
して説明[Industrial Application Field] The present invention relates to an image processing device, and particularly relates to a paper feeding unit, a software
Multiple slave processing units each controlling data, etc.
and the operation of these multiple slave processing units in a comprehensive manner.
communication method with the master processing unit that manages and adjusts the
related. [Prior Art] Conventionally, documents disclosing this type of image processing device include:
For example, Japanese Patent Application Laid-open No. 103299/1983 is known.
In the image processing device disclosed in the publication, the copying machine
Even if data is sent from the main unit control unit to the option, the data will not be sent.
If no response signal is obtained for the output of the
Supply the same data to the option a predetermined number of times, then
If you cannot get a response signal from the option, try
The system controller detects the occurrence of a connection error regarding the option.
to display the occurrence of the error. [Problems to be solved by the invention] In the conventional image processing device described above, the main body control section does not provide data.
The targets (options) to be provided were fixed. However, in actual image processing equipment, paper feeders and sorters
Units such as
The objects to be connected and the objects to which data should be supplied vary.
do. Therefore, in the conventional image processing device described above, the scheduled
Even if you can detect a connection error for an option that was
This feature cannot be used when newly connecting an unspecified option.
There was a problem. Therefore, it is an object of the present invention to
Increased flexibility in expanding slave processing units under the control
Is Rukoto. [Means for solving the problems] The gist of the present invention is as shown in FIG.
Multiple slave processing units, each implementing a given function.
1.2.3.4 and instruct the implementation of the above prescribed functions.
Processing command 5 and management data of the slave processing unit above
selectively outputs communication command 6 that controls data communication.
to manage the plurality of slave processing units 1.2.3.4 above.
a master processing unit 7 that processes
Processing unit 1.2.3.4 and the above master processing unit
and the above processing command 5 and the above communication command.
and a communication means 8 for transmitting communication with the code 6.
The screen can be switched between mode and standby mode to function.
In the image processing apparatus, the master processing unit is
The communication command 6 is sent to the plurality of above via the communication means 8.
The slave unit 1.2.3.4 is supplied with the slave unit 1.2.3.4.
unit 1.2.3.4 is connected to the communication means 8 above.
connection determination means 9 for determining whether or not the
It is determined that the communication means 9 is connected to the communication means 8.
The above operation mode is only for slave unit 1.2.3.4.
, the processing command 5 is sent via the communication means 8.
The command supplying means 10 and the command supplying means 10 in the above standby mode.
and a starting means 11 for starting the connection determining means 9.
That's true. [Operations and Effects of the Invention] In the image processing device according to the above configuration, it is possible to enter standby mode.
Then, the activation means 11 activates the connection determination means 9, and the connection determination means 9 is activated.
The determining means 9 sends a plurality of communication commands 6 via the communication means 8.
slave processing unit 1.2.3.4. General
The communication command 6 is sent to the slave processing unit 1.2.3.
This is a command that controls communication of management data in step 4, so the thread
server processing unit 1.2.3.4 to perform some function.
Although it is not intended to make the communication of those management data
control, so the communication command 6 is transmitted to each slave processing unit.
1.2.3.4, each slave processing unit
The connection status between the unit 1.2.3.4 and the communication means 8 is determined.
be done. In this way, communication means 8 and each slave are connected during standby mode.
Starts again after determining whether there is a connection with the processing unit.
In the operation mode set, the command supply means] 0 is the connection
A thread whose connection with the communication means 8 has been confirmed by the determination means 9
Processing frame only for web processing unit 1.2.3.4
5 will be supplied. Therefore, the image processing device
After startup, slave processing units are added or removed.
Even if the master processing unit 7 is removed, the master processing unit 7 remains operational.
processing unit only during processing unit 1.2.3.4.
Command 5 is now supplied to the slave processing unit.
Supports expansion and reduction of image processing equipment by adding or deleting
can be met. In addition, the slave processing unit whose connection has been confirmed in reality
Since processing commands are supplied only to the
sends unnecessary commands to the authorized slave processing unit
It is possible to achieve the specified function at high speed without any problems.
Ru. [Embodiment] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. one
The embodiment is an example in which the present invention is applied to a laser printer,
The present invention is applicable not only to laser printers but also to copiers, etc.
It is also applicable to digital copiers. Figure 2 is a block diagram showing the macro system configuration of one embodiment.
21 is a printer as a master processing unit.
controller (hereinafter referred to as MSC) at 22.23
.. 24.25.26 operates as a slave processing unit
Controller for working part, controller for printer engine
, paper feed unit controller, sorter controller
, controller for the image processing section (these controllers are
(hereinafter referred to as SSC). Above 5
Among SC22 to 26, 5SC22, 23, and 26 are laser
It is an essential controller for printer system configuration.
5SC24 and 25 have paper feed mechanism and sorter as options.
This is a controller that is added when adding as a. MSC21 is a macro system interface as a means of communication.
5S022 for the operation unit, printer via the interface 27
5SC23 for engine, 5SC24 for paper feed unit,
Connected to 5SC25 for data and 5SC26 for image processing section.
The 5SC22 for the operation section allows the user to use the laser printer.
Scan the various operation switches to give instructions to the
is detecting the operation. 5SC23 for printer engine
is the drive unit of the drum mechanism as a lower system, and the light
Multiple functional units such as academic units) UNIT1~UN
It manages the operation of the IT3 and therefore
5SC23 for engine is a unit with these multiple functions.
ITI~UNIT3 and subsystem interface 29
connected via. Each functional unit UNIT
1~UN I T3 is mechanical configuration and printer engine
It is equipped with a control section under the control of the 5SC23,
I will omit the details. In addition, 5SC for paper feed unit
24, 5SC25 for sorter and 5SC2 for image processing section
6 also have a paper feed mechanism, sorter mechanism and display respectively.
Although it is accompanied by a unit, detailed explanation will be omitted. Although not shown in detail in the figure, the laser printer of this example
constitutes part of the upper user system, and the MSC
The operation of 21 is performed by the supervisor 28 in the user system.
Under control. Figure 3 shows each SSC.
Accessed by microprocessor 31 within the SC
This is a block diagram showing the logical address space of memory.
In the example, 5SC22 for the operation section and 5SC22 for the printer engine are used.
5SC23, 5SC24 for paper feed unit, 5S for sorter
Regarding each of C25 and 5SC26 for image processing section
It is provided. In detail, it is managed by the microprocessor 31.
The command register 32 (
CMD-REG) and status register (GSTAT
-REG) and into multiple (two in this example) areas.
local mode map (LM-MAP) 34,
Global mode map (GM-MAP) 35 and
Ring area 36 and report register (REPO-R)
EG) 37 are defined, and these registers 3
2 to 37 temporarily hold data information etc. detailed below.
do. Note that the microprocessor 31 is in local mode.
Stretch of map 34 and global mode map 35
When you access a specific address called a
and the microprocessor 31 uses the local mode map 3.
4 or to a specific address in the global mode map 3S.
rather than the string area corresponding to the specific address.
36 will be accessed. Next, the information temporarily held in each register 32 to 35 is
I will explain the information etc. From MSC21 to each 5SC22~
The processing commands and communication commands supplied to
Temporarily stored in the command register 32 of 5SC22 to 26.
The microprocessor 31 of each SSC issues commands.
When it becomes executable, it is held in the command register 32.
Processing or communication commands that are
It is supplied to the processor 31. Each 5SC22-26 realizes at least a single function
The execution mode is standard mode.
It has a Standard mode is for MSC2 and 1, which will be described later.
Initialization subroutine program 5BI (see Figure 17)
It is initialized in the MSC 21 when the MSC 21 is executed. 5SC2 each
For 2 to 2 days, the processing command that specifies the standard mode from the MSC21
It is not possible to switch to standard mode by supplying command.
and achieve the given functionality specified in standard mode.
become. In addition, each 5SC22 to 26 is specified in standard mode.
Functions other than those specified can also be realized, and the
Two mode managers are available to realize functions other than standard mode.
It is equipped with a diameter of 34.35. Global mode map
35 holds mode information common to all 5SCs 22~26
In contrast, C, local mode map 34 is
It maintains mode information specific to each SSC and
The mode information held in the mode map 35 and the
Mode information held in the local mode map 34
Performs functions other than those specified in standard mode based on
can be made to appear. Local mode map 34 has
Mode information is retained as described above, but other information is also retained for each
Holds SSC status information. As mentioned above, the book
In the embodiment, local mode map 34 is divided into two regions.
Because it is divided, each SSC handles multiple functional units.
If managed, each mode information and status
Information will be divided and managed. In addition, these Modema Mbu 34.35 were established in the first month.
It is set to the standard value at a scheduled time. As mentioned above, the local mode map 34 includes various
Mode and status information is retained, but this
Their status information etc. are summarized and stored in the status register.
It is held at 33. Therefore, the MSC21
Each 5SC22~2 to control the overall operation of the printer
If you need to access the status information of 6.
But first, the summarized information in the status register 33
access information and use the summarized information to
Access the status information held in the domain map 34.
Determine whether access is necessary. Therefore, the number of stars of information that MSC21 should have access to is reduced.
This can speed up processing.
. The report register 37 is set in each 5SC22 to 26.
Registers that hold formed sequence report information
and the sequence report information is either 5SC2
2 to 26 indicates that an event that should be notified to the MSC has occurred.
This is information. The memory address in the MSC principle. Figure 4 shows the functional blocks of the MSC21 and the MSC21.
Block indicating the relationship with the logical address space managed by
This is a block diagram, and the logical address space includes 19SC22 to 2.
A command rail with multiple areas, each dedicated to
Dedicated to Jister 41 and 5SC22 to 26 respectively
A status register 42 and a status register 42 having multiple areas where
and report register 43, and common to all 5SCs 22 to 26.
The global mode map 44 and each 5SC22
A local mode with multiple areas dedicated to ~26ξ
A domain map 45 is defined. The above command register
The controller 41 sends processing commands and communication commands to the MSC 21.
Provided for sending from the communication target 5SC22 to 26
and the above sent from the command register 41.
Commands are sent to the command registers 32 of each 5SC22 to 26.
will be held. In contrast, the global model
The mode map 44 is common to all 5SCs 22-26.
Since it holds information, the global mode map 44
The mode information sent from each 5SC22 to 26
It is now commonly held in global mode map 35.
Ru. The report register 43 is provided from each 5SC22 to 26.
A register that holds the sequence report information provided.
Yes, the sequence report information is either as described above.
An event that should be notified to the MSC occurs at 5SC22-26.
This is information that represents what happened. The log set in MSC21
The local mode map 45 is for each 5SC22 to 26.
Provides mode information and stator from each 5SC22~26
This is provided to receive notification of information on each 5SC.
22 to 26, supplied from the local mode map 34.
The status information corresponds to the local mode map 45.
and from the corresponding area to each 5SC22-2
The mode information sent to each 5SC22-26
The local mode map 34 in
It becomes. In the figure, 46 is connected to the macro system interface 27.
It is a receive register with a macro system interface.
The system sent from each 5SC22 to 26 via the base 27
Tracking report information, status information, etc. will be sent to this reception record.
Once stored in the register 41, it is transferred to the reception buffer 47.
is sent to the report register 43 or row.
It is written to the calm mode map 45. On the contrary,
Command register 41, global mode map 44
or the commands held in the local mode map 45.
The mode information is temporarily held in the transmission buffer 48.
After that, it is transferred to the transmission register 49, and then the macro
Each 5SC22~2 via system interface 27
6, or all 5SC22 to 26 corresponding registers, etc.
Sent out. As mentioned above, the local mode map 45 holds
The information to be sent to each 5SC22-26 and the information to be sent to each 5SC22-26
Since the supplies from SC22 to SC26 are mixed,
Each piece of information held in the local mode map 45 is
The 14th and 15th bits are set to the reception notification flag RR and
and transmission request flag TR. i.e.
, in the case of information supplied from each 5SC22-26, the MS
C21 sets the 14th bit of the received information to “1”.
Set it and then save it in the local mode map 45.
Ru. Information for which the reception notification flag RR is set in this way is
, it will be reset to “0” again after going through the process detailed later.
It will be done. In contrast, it should be sent to each 5SC22-26.
A transmission request flag TR is set in advance for the information, and the transmission request flag TR is set in advance.
Information for which flag TR is set to "1" is intended.
5SC22-26. aimed in this way
The information sent to the 5SCs 22 to 26 is sent back to the
0”. Also received transmission request plaque TR1
For all areas of notification flag RR, MSC and SSC
is also reset to "0". The MSC21 has a
A polling control block 50 is implemented and the MSC
21 is controlled by each 5SC by this polling control block 50.
22 to 26, and sends a communication request to
The corresponding 5SCs 22 to 26 respond and communicate information. Figure 5 shows the communication network implemented inside the laser printer.
It is a block diagram showing the work, including MSC21 and each 5SC.
22 to 26 (Figure 5 shows 5SC22 for operation section, printer
5SC23 for engine and 5SC26 for image processing section
) is the macro system interface 2
Common to the two serial communication lines SL and SO that realize 7.
It is connected. Controller software The controllers that make up the network shown in Figure 5.
The hardware configuration of the controller (MSC and 5SC)
As shown in the figure. MSC21 and each 5SC22-26 are my
microprocessor 61 and the operation of the microprocessor 61
Readout that permanently holds the control program that controls the operation
dedicated memory (ROM) 62 and microprocessor 6
Provides the above logical address space etc. managed by 1.
A readable/writable memory (RAM) 63 and a system
The reception register (RX-R) connected to the real communication line Sl
EG) 64 and the transmitter connected to the serial communication line SO.
register (TX-REG) 65 and the above microprocessor.
An interrupt that provides timer interrupt timing to the server 61.
It is equipped with a built-in timer 66. Therefore, in the case of MSC21, the above-mentioned upper user
Supplying commands from the system supervisor 28
When received, the microprocessor 61 stores it in the ROM 62.
While executing the control program that is being
Access the configured logical address space and write the corresponding logical address.
Communication commands and processing pieces held in response space
The serial command is sent from the transmit register 65 to each 5SC22 to 26.
It can be output to AL communication line SO. On the other hand, each 5S
C22 to C26 are the supplied communication commands and processing frames.
Once the command is stored in the reception register 64, the command is
Execute the control program to realize the functions instructed by
RA, if status information etc. is requested.
held within the logical address space provided by M63.
Reads the status information, etc., and sends it to the transmission register 65.
to the serial communication line Sl. In this way,
Status information etc. sent to serial communication line Sl is M.
It is temporarily held in the reception register 64 of the SC21, and then
It is written to RAM63. In this way, the status written to RAM63
Information etc. are read out to the microprocessor 61 and processed.
It will be done. As described above, in this embodiment, the MSC21 and each 5SC22
~26 basically means MSC21 as a control station.
Communication requests (requests) and specifications (sets) sent from
The port to which each 5SC22-26 responds (answers)
Communication is performed using a ring method, and this polling method
The communication by MSC2 is as shown in FIG.
1 to 5SC22 to 26 can be filled at any timing.
Can send the program 71.73.74.76.77.79
However, the responses from each 5SC22 to 26 to MSC21 are different.
Frame 72.7 sent from 5SC22-26
This is done on a time-sharing basis to avoid 5.78 collisions. for example
, as shown in FIG.
The communication request to the 5SC22 is at the polling timing tp.
When sent out at 1, the 5SC22 for the operating section
The identification code contained in the system 71 indicates the communication request for the
identify the request and send frame 72 to the MSC 21 to make the request.
transmit the information. On the other hand, MSC21
When the end of transmission from the action part 5SC22 is detected, the other 5
SC1 For example, communication required to 5SC23 for printer engine
The request is sent in frame 74, and 5S for the printer engine is sent.
When C23 responds with frame 75, its termination is detected.
The communication request is sent to the image processing 5SC26 in frame 77.
Send to. The occurrence of such a communication request occurs in each of 5S022 to 5S022.
A communication request for 26 is a response to a previous communication request.
conditional on the end of the process and filtering of polling timing.
Therefore, it is common that the polling timing has elapsed as a condition.
Processing based on commands, etc. at each SS/C increases the frequency of communication.
This is to prevent the execution speed from slowing down. Na
Oh, MSC21 has nothing to do with communication from each 5SC22 to 26.
Send frame 73.76 to each 5SC22-26 in relation to
can do. l Keiney 11 formation As mentioned above, there is a port from MSC21 to each 5SC22-26.
Information is communicated using a ring method, but such communication
Sometimes information is transmitted in frames of variable length.
Ru. Each frame consists of a fixed length bit string called a character.
It consists of one or more pieces arranged in series, and the following explanation applies.
In Japanese, the first character of each frame is an ID character.
, the characters following these 10 characters are data characters.
It is called ta. Therefore, it is composed of multiple characters.
The frame to be displayed is an ID character as shown in Figure 8.
character and a variable number of data following the ID character.
It will be composed of characters. Each character is
Indicates the beginning of the character, as shown in Figure 9.
The synchronization start bit STA and the synchronization start bit
The 8-bit data bO to b7 following the start STA and the corresponding
The parity bit PA following the data bit and the character
It consists of a synchronization stop beep (STO) indicating the end of the
ing. Therefore, the synchronization start point (STA), parity
Data excluding bit PA and synchronization stop bit STO
The information represented by bO to b7 is an ID character.
and data characters. That is,
In the ID character, b)b7 is set to "1".
This bit b7 set to “1” causes it to become “0”.
Identified from the data characters set to . bit
Does b6 request a predetermined frame response from the destination?
It is used as response request bit A to indicate whether or not the bit
Bits b2 to b5 are 4-bit identifiers that specify the destination of information.
Functions as a separate code (So-53). remaining 2 bits
b1. bO is the area in the logical address space of the destination.
A 2-bit area code (
Ul, U2). Therefore, the ID character with the above bit configuration is the response
Request bit, identification code (SO to S3) and area code
Various information is expressed by the combination of values of the code (Ul, U2).
combinations of these and subsequent data characters
Various frames can be constructed with first
, frames used in this embodiment will be explained. Sequence, command (Sent from MSC21) Requests the start of operation of each 5SC22 to 26 from MSC21
This is the frame that is output to the laser printer.
Used to control overall operation. MSC21?
Sequence commands supplied to each 5SC22-26
is held in the command register. these sequences
In this embodiment, the commands constitute the above processing commands. Ball: ``Shi Tateyu'' - (Sent from MSC21) MSC21 sends all 5SCs 22 to 26 their operating modes.
To change the code all at once or each 5SC22~26
The frame output to change the individual operation mode
The global mode map of 5SC22-26
mode information held in the local mode information, or local mode information.
Modify the mode information held in the tup. - (Sent from MSC21) MSC21 reads the status register of each 5SC22-26
This is a frame sent when requesting information within. Na
In addition, in polling mode, each 5SC22 to 26 transmitter
Used for timing notification. In this example, the above communication
Balls that function as commands: "2 Jri" = & ball (MSC21 or each 5SC22-26 transmission) each 5SC
22 to 26 global mode maps and local modes
The frame output when requesting mode information in a map.
It is a system. The status of each 5SC22 to 26 and the above mode setting
Used to check whether the cut was correct or not.
I can stay. 525 Ennoe (Each 5SC 22-26 transmission) From each 5SC 22-26 in response to the above mode request
This is the frame output as a response. For this response, the local module of each 5SC22-26
The mode information in the mode map is sent. Status answer (each sent from 5SC22 to 26) The above status list is sent from MSC21 to each 5SC22 to 26.
When a quest or sequence command is supplied,
Frame output as a response from each 5SC22 to 26
It is mu. Therefore, in the data response answer, each SSC
Information and commands held in the status register of
The command written in the register is sent. Sequence Reboot (Each 5SC22-26 transmission) Should be notified to MSC21 under the control of each 5SC22-26
When an event occurs, a sequence record representing the occurrence of the event is
This is a frame that sends port information. The above sequence
Used in conjunction with commands to control laser printers
. respond. However, MSC2X outputs mode set
In this case, each 5SC22-26 does not respond in particular,
On the other hand, each 5SC22-26 sends out a sequence report.
However, the MSC 21 does not respond. The responses that are combined to form each of the above frames
Request bit value, identification code value, and area code
The values are shown in the frame identification table below. (Left below) The frame explained above is for controlling the laser printer.
used in conjunction with each other. Indicates the relationship between the above frames.
Then, when the MSC21 outputs a sequence command,
Each 5SC 22-26 responds with a status answer. Ma
Also, when the MSC21 sends a status request,
Each 5SC22-26 responds with a status answer.
Ru. Similarly, the MSC21 requests information in the mode request.
If requested, each 5SC22-26 can be set as a frame in the mode answer.
I-3 Next, the ID characters that constitute each frame mentioned above and
Detailing the bit structure with the data characters that follow it
do. MS≦ and Goji Kurame's frame Figure 11 (a) shows the characters that make up the sequence command.
FIG. 2 is a format diagram showing a bit configuration of a vector. Seake
The command consists of 3 characters, including an ID key.
The characters are shown in the table above. ID character
(b7
) are set to “0”, and the data character
Bit b6 of data 1 is a confirmation beep) (Q)
It is functioning, and this import confirmation beep) (Q) is a frame.
It is used to synchronize the commands, and is used in combination with status answer.
In total, each 5SC22-26 is from MSC21
Check whether the supplied command was successfully captured.
used for Bit b5 of data character 1
and data character 2 p)b6 is future expansion
bits (x) used at the time, and in this example, each 5 bits
SC22-26 ignore bit (X). therefore
, for data character 1, Bi・So)O(LSB) ~ Bi
command code (CO~C4) is assigned.
In data character 2, bits 0 to 6 (
PO-P6> is assigned to the parameter. Figure 11(b) shows the cache that constitutes the status request.
FIG. 2 is a format diagram showing the bit structure of a character. Ste
The data request consists only of ID characters.
Ru. The bit structure of the ID character is described above, so for details
Omitted. Figure 11(C) shows the configuration of the word type mode set.
FIG. 2 is a format diagram showing the bit structure of a character
. The word type mode set consists of 4 characters.
data character 1 following the ID character.
Bits 0 to 6 are used in the data key to represent mode information.
Set across bits 0 to 6 of character 2.3.
of the memory to which the setting data D (Do to DD) should be written.
Map address M (MO~M) indicating the logical address space
6) Assigned. For example, the identification code S is "0".
”, the setting data p is all 5SC22
~26 are written into the global mode map 35. On the other hand, if the identification code S is set to a value other than "0",
If so, the 5SC22 specified by the identification code S
Write setting data only to ~26. In this case, Eli
The writing destination is local mode Matsu depending on the value of Accord U.
map 34 or global mode map 35. Note that map address M must be set to r7FHj.
As will be explained later, this means that M = "7FH1 is the end."
This is because the end code indicates the end of the frame. Figure 11(d) shows how to configure a string type mode set.
A format diagram showing the bit structure of the characters that
be. In the above word type mode set, one address
One configuration data D is supplied for each
In a mode set of type
Word setting data D can be written. Besides that
data character 1 specifying the map address M.
After , the number of words L (LO to L6) of the setting data is displayed.
followed by data character 2. Therefore, the setting data D is
Represented by data character 3 to data character n
That will happen. Furthermore, for the same reason as mentioned above, the data key
In character 1, map address is set to r7FHj
It will not be done. Figure 11(e) shows the characters that make up the mode request.
FIG. 3 is a format diagram showing the bit configuration of data. moderi
The quest consists of two characters, following the ID character.
bit of data character (LSB)
b6 indicates the map address M for which reading is requested.
are doing. Also in case of mode request, the map address is
SM is never set to 7FHJ.
This is a format diagram showing the bit configuration of the stator.
The answer is an ID character followed by two data keys.
It consists of a total of 3 gear characters. day
Pip) b6 of the data character 1 is the import confirmation pin mentioned above.
) is Q, and the import confirmation beep) Q is set to "1".
commands supplied from the MSC21 remain unchanged.
has not been confirmed and new commands must not be issued.
It shows that there is no. bit b of data character 1
O(LSB) to bit b5 are stored in the command register 32.
Assigned to the code (CO~C4) representing the held command.
This is the code supplied from MSC21.
Was the command correctly captured by the destination 5SC22-26?
This is for the MSC 21 to check whether or not it is. Take the above
Confirmation beep) Q is reset to “0” after executing the command.
The frame with Q=0 is output from 5SC22 to 26.
command code C is cleared after the Data character 20 bit b6 is a frame from SSC.
Frame continuation beep (N) indicating that frame transmission continues.
In MSC21, each 5SC22 to 26
Used to detect the break between frames sent from
be done. Bit bO (LSB) of data character 2 ~
Bit b5 is held in status register 33
Assigned to a code that represents information. Each of the above 5SC
The information held in each of 22 to 26 is one frame.
If it is not possible to send it with the system, operate the continuation bit N above.
The data is transmitted across multiple frames. Figure 11 (g) shows the characters that make up the sequence report.
This is a format diagram showing the bit configuration of the vector.
The performance report consists of three characters. data
Bit bO (LSB) to bit b4 of character 1 are
Report code R (
RO-R4) and the data character
20 bits bO to bit 5 are parameters P (PO-P
5) is assigned. Figure 11(h) shows the configuration of a word type mode answer.
is a format diagram showing the bit structure of a character.
, in the word type mode answer, the ID character
Later, the data character assigned to map address M
assigned to configuration data D representing the vector and mode information.
A combination of two data characters can be repeated up to 4 times.
be done. Each setting data D is 1 word = 14 bits (DO to DD)
The data assigned to these setting data D is
assigned to the exit code after the specified data character.
The data character n appears and ends. As mentioned above
The exit code has a value of 17FHJO, so
, map address M and setting data are r7FHJO values.
I never take it. Figure 11(i) shows the mode answer of the string tie.
Format diagram showing the bit structure of the constituent characters
and corresponds to the string type mode set above.
Ru. For string type mode answers, the ID character
Data character 1 following the vector is assigned to the map address.
data character 2 that follows is set
Represents a fixed data length. Data character 3 ~ data character
The vector n-1 is assigned to the 1st word to the Lth word.
Each word consists of 14 bits (DO~DD).
ing. String type mode answer also has an exit code
Ends with data character n representing (7FH). did
Therefore, the map address M and the setting data have the value r7F.
I can't get HJ. As mentioned above, MSC21 and each 5SC22 to 26 are
Information is exchanged in frame units, and 5SC22-2
6 sends frames only when requested by MSC21.
belief is possible. When sending from 5SC22 to 26
should not send multiple frames if there is a large amount of information to be sent.
When transmitting such multiple frames, MSC2
1 is the end of the call from 5SC22-26 (SSC area)
If the disconnection detection) is not detected, a communication request is sent to another SSC.
I can't put it out. For such SSC break detection
Multiple frames sent from 5SC22-26 to provide
The frame contains information indicating the continuation of the frame.
Irregular frames containing information representing the continuation of such frames
The format is summarized in FIG. In addition, Figure 12
(1) is a status update that does not continue with a sequence report.
The sequence shown in Figure 12 (2)
Shown for comparison with the status answers that follow in the report.
It is. As is clear from Figure 12 (2) to (4)
, when frames are continued, frames other than the last frame are
frame continuation beep) N is set to “1” and the final
The frame has frame bits [0] for SSC break detection.
” or with exit code r7FH]. Step: Yoyo (As mentioned above in the first report, this laser printer is under the control of MSC21.
Machines to which multiple 5SC22 to 26 are respectively assigned
MSC21 has multiple 5SC22
Each 5SC22-26 to organically combine ~26
It is necessary to understand the status of Such SSC
The status of each detailed step is shown in the local mode map 34.
It is maintained as status information. However, MSC2
As the number of SSCs under the control of 1 increases, these details
When I try to read out all detailed status, MSC21's
The load increases and processing efficiency cannot be improved.
stomach. Therefore, each 5SC22 to 26 in this laser printer
are held within each local mode map 34.
Summary status information by summarizing detailed status information
and send the summary status information to each 5SC22-26.
It is held in the status register 33 in the. Assigned to each bit of status register 33
As shown in Figure 13, the information on G5 is
, summary status information indicating that the SSC is initializing is displayed.
Since then, the ``NOT READYJ''
It is called a cut. rNOTREADYJ bit set
The included SSC handles sequence commands and mode sets.
rNOT READYJ bit
is reset after initialization. Next, bit G4 is
r represents the execution status of SSC due to commands and mode changes
It is assigned to the BUSYJ bit and the above execution state
It is reset at the end of . Bits G3 and GO are unused
bits assigned to specific summary status information.
It has not been done. Bit G2 indicates a trouble that cannot be recovered from.
The rFATALJ bit indicates that processing was interrupted due to
The rFATALJ bit is assigned to
It cannot be reset even with SC21, so the serviceman
Processing cannot be resumed without taking action.
stomach. Bit G1 is set to be processed when a recoverable trouble occurs.
The rERRORJ bit is assigned to indicate that the process has been interrupted.
the rERRoR” bit is set.
Also, if the user takes a predetermined action,
It is possible to restart the process. The rERRORJ bit is
If the user takes the above predetermined action, the SSC will reset the
It becomes possible to As explained above, the above summary status information is local
Detailed status information held in the mode map 34
It is formed by summarizing the information. These detailed status information
A part of the local mode map 34 held in
It is called the SSC standard mode map.
Detailed space allocated to the logical address space of the domain map.
The status information is shown in FIG. address r05H”,
"06H", r08HJ, ro9HJ are "E"
RRORJ bit, “FATAL” bit, “BU
SYJ bit, rNOT READYJ bit
Status registers 3 and 3 are respectively provided.
Detailed status information about the summary status information maintained in 3.
Retains status information. These can be used as error registers,
Ital register, Busy register, Not ready register
It's called jista. Note that the address "OCH" is the report model detailed below.
Used for reference to switch between mode and polling mode.
assigned to report mode information. Next, we will explain report mode and polling mode.
I will clarify. Regarding polling mode, see Figures 5 to 7.
As explained above, the MSC21 has a plurality of 5SC22
~26 is connected with the common signal line 5O2SI, and the system
Although the stem wiring is simplified, MSC21 and 5SC
Communication with 22-26 shall be in the form of a response to a communication request.
The disadvantage is that the communication processing speed is low. child
For this, MSC21 and 5SC22 to 26 are individually
In the connection method (hereinafter referred to as the report method), the communication network
Although it becomes more complicated, processing speed can be improved.
There is an advantage. Therefore, the laser printer according to this example is
The printer's SSC has a report mode in the standard mode map.
Allows you to retain information and report within the standard mode map.
If the default mode information is written, the relevant SSC
Communicate with SC in report mode, and conversely communicate report mode information.
If no information has been written, the above-mentioned policy
This means that communication will be done using a communication method. In this way, MSC and
The communication method with the SSC can be selected for each SSC, so for example
For example, as shown in FIG. 15, 5SC1501-15
03 is M via the buffer art multiplexer 1504
Connect to SC1505, ssc i 501 to 1503
and MSCI5O5 communicate using the polling method, and the SSC
1506, 1507 and MSC1505 are report methods
It can also be configured to communicate with in this way,
By mixing reporting and polling methods,
Even if the number of SSCs connected to the MSC increases, the communication processing
It is possible to prevent the processing time from increasing. In particular, laser
Among the SSCs in the printer, those that require high-speed communication processing
If there is no data, set it to polling method and require high-speed communication.
If you use a report method for what you want to do, you can easily
A system with high communication efficiency can be created by making the communication network slightly more complicated.
It can be made into a Furthermore, as shown in Figure 15,
Even when mixing polling and reporting methods
, during initialization performed after power-on, all 5SCs
1501, 1502, 1!503, 1506.1507
By communicating using polling method, frame
Collisions can be prevented. (The following is a margin)
software, but do not explain the software first.
Stand and explain the main parameters and flags
. , J A B A CT niblint operation, etc., system
is a flag indicating whether or not the jib3 is being executed.
If set to “0”, the laser printer system
The entire system is on standby. On the contrary, "
If set to ``1'', any
An SSC instructs units under its control to operate,
Indicates that the operation is incomplete. 5YSWAIT: The entire laser printer system is in its initial stage.
This is a flag indicating whether or not the execution is being executed.
It is set to ``1'' when the initialization starts, and becomes ``0'' when the initialization ends.
will be reset to LOOPF: MSC executes job in main routine.
Timing to execute processing (main loop timing)
This is a flag indicating whether or not the limit has been reached, and job processing is executed.
When the required timing is reached, it is set to "1", and this
If the flag is reset to "0", job processing will not be executed.
Not performed. MS I FS: Multiple S under the management of MSC21
A parameter representing the initialization stage for the SC,
One of the values from "0" to "5" as initialization progresses.
is set to UN r TF: Folder indicating the connection status of the external paper feed unit.
lag, and an external paper feed unit (in the embodiment shown in Figure 2, the feed
) is under the control of the paper unit controller 24.
is detected as connected as part of the printer.
When connected, it is set to “1”, and when it is not connected, it is reset to “0”.
will be played. UN I TS: Sorter (in the embodiment shown in Figure 2, is a sorter)
) is under the control of the laser printer controller 25.
"1" if it is detected that it is connected as part of
It is set to "0" when not connected. ENBF: External paper feed unit selection permission flag,
Can be selected when set to “1”, reset to “0”
If it is marked, it means that it cannot be selected. ENBS: Mode specification permission flag for sorter.
When set to ``1'', specified permission is specified, and when set to ``0''
If it is reset to , it indicates that the specification is not permitted. PANS: Status answer reception flag;
When a data answer is received, it is set to "1". PCYCLE: Indicates the number of times communication requests were sent to all SSCs.
This is management data. PEND: Flag indicating SSC break detection;
Verify that frame continuation bit N is set in rOJ.
or when the exit code [7FH] is detected.
It is set to "1" when P T I M I N G: Polling timing
This flag indicates the occurrence of (tpl to tp4 in FIG. 7).
. CCNT: Counts the number of characters when receiving a frame.
counter value, and the received character is the value of that frame.
Indicates the number of the character. IDS: Identification in the ID characters of a received frame.
This data corresponds to another code S and is subject to communication.
This is a code that identifies the SSC. IDU: An error within the ID character of a received frame.
This data corresponds to Accord U and is subject to communication.
Indicates the logical address space to be accessed within the SSC.
vinegar. FLEN: Supplied from the SSC that is the target of communication.
count data that indicates the number of characters in the frame.
Yes, each time the receive buffer receives a new character.
step forward LENTBL: Separately maintain FLEN for all SSCs
This is the management data that
will be updated once the configuration is complete. PSSC: Management data that specifies the SSC to be polled.
It is ta. TRM L: Characters that make up the frame being transmitted
This flag indicates whether or not the data is in the transmission register 49.
, the character is transferred from the transmit buffer 48 to the transmit register 49.
is set to "1" when the transmission register 49 is transferred.
All bits are transferred from the macro system interface 27 to the macro system interface 27.
When sent, it is reset to "0". LMTF: Number of information that can be sent for one transmission request
This is management data that indicates the maximum value of the limit counter.
will be played. 5TRNG: The received mode answer is string type.
A flag indicating that Figure 16 of the program stored in the MSC shows the overall structure of the program executed in the MSC21.
MSC21 is the main
In addition to routine programs, there are three types of interrupt routine programs.
Execute the program. First, the main routine program
To explain the outline, the power switch of the laser printer is
is turned on and a power switch-on event (EVI) occurs.
Then, the microprocessor 61 (hereinafter referred to as
When explaining the MSC program, it is simply a micro program.
processor 61) is the MSC initialization subroutine program.
Run RAM (SBI). Next, the microprocessor
The server 61 connects the macro system interface 27 and the interface.
to detect the connection status with the SSC that can be connected to the interface.
MSIF processing subroutine program (including processing for
S811) and a judgment step (P1
02) Iteratively executes the loop consisting of
Wait until P102 becomes YES. MSIF processing sub
In the routine program 5BII, the macro system interface
Interrupt handling and menu processing that will be discussed later regarding interface 27
Synchronized with the in-loop, macrosys
connection regarding SSC that can be connected to system interface 27.
The presence or absence of a connection is checked. MSIF processing subroutine
When the program 5B11 ends, step P102
Since the judgment result is yes, the microprocessor 61
checks the flag LOOPF during the main routine.
Timing when job processing should be executed (hereinafter referred to as main routine)
(referred to as P timing) has arrived.
103). If the main loop timing has not yet arrived,
If so, the judgment result in step P103 will be no, so
The microprocessor 61 is a subroutine program 5B.
Return to II and restart the MSIF processing subroutine program.
Then, when the main loop timing is reached, the
Since the judgment result of step P103 is yes, the microphone
The processor 61 is a job processing subroutine program.
Execute (SB12). Job processing subroutine pro
At the end of the program (SB12), the microprocessor
61 returns to subroutine program 5BII, and thereafter,
Consists of subroutine programs 5BII to 5B12
Execute the loop iteratively. Consists of subroutine programs 5BII to 5B12
The interrupt timer 66 of the MSC 21 is
interrupts the microprocessor 61, the timer
An interrupt event (EV2) occurs and the microcontroller
Processor 61 is the main loop timer processing subroutine
Program (5B21) and polling control timer processing
The subroutine program (SB22) is executed sequentially.
, the blue in the main routine program after execution is completed.
Return to the loop consisting of Chin programs 5BII to 5B12.
Turn. From the above subroutine programs 5BII to 5BI2.
During the execution of the loop that
frame is sent to the MSC21, and the reception register of the MSC21
The first character (I
D character) is latched, a receive interrupt event occurs.
(EV3), the microprocessor 61 receives
Execute the buffer processing subroutine program 5B31.
The received frame is temporarily stored in the reception buffer 47.
After holding the subroutine program 5B11 to 5B12
Return to the loop consisting of. On the other hand, the data stored in the transmission register 49 of the MSC 21
The first character is sent from transmit register 49 onto MSCIF.
A transmission interrupt event (EV4) is generated when
The transmission buffer processing routine 41 is executed and the transmission buffer is
The data held in the file 48 is sequentially transferred to the macro system.
After sending to the interface 27, the subroutine program
The program returns to the loop consisting of grams 5Bll to 5B12. As mentioned above, the microprocessor 61 of the MSC21
After executing the MSC initialization subroutine SBI, the subroutine
Repeat the loop consisting of program 5BII to 5B12.
While executing, timer interrupt event) EV2, reception interrupt
Interrupt event E■3 and transmission interrupt event) EV
4 will be dealt with. Figure 17 shows the main routine program executed on the MSC21.
Flowchart a shows the specific execution procedure of the program.
As mentioned above, the main routine program
Occurs due to event EVI. Power on event E
Due to the generation of V1, the microprocessor 61 of MSC21
Step P170 executes initialization of its own internal circuit.
1), then global mode map 4 of MSC21
Initialize standard mode to 4 (step P1702)
. After initial setting of global mode map 44, micro
The processor 61 executes the MSC2 in step P1703.
1 local mode map 45, command register 41
, status register 42, string area and register
Clear the port register 43. Next, the microprocessor 61 reads the status of the MSC 21.
“NOT READ” is set in bit G5 of the task register 42.
Set the SYJ bit. This “NOT READ”
YJ bit is SSC and macro system interface
It is used to detect the presence or absence of connection with 27. Also, MSC
Regarding 21, the initialization subroutine program SBI is executed.
It will be displayed that it is in progress. Next, MSC21's My
The processor 61 sets the 5YSWAIT flag to "1".
The entire system of the laser printer is being initialized after being configured.
, and initialize pssc to “1”.
(Step P1705). Therefore, MSC21
Regarding 5SCI, we will first send a communication request.
. Subsequently, the microprocessor 61 performs step P170.
In step P1705 of the flags etc. mentioned above in B.
All settings are set to ``0'' except those that were initially set to ``1''.
do. Therefore, execution of MSIF processing subroutine 5BII
The parameter MSIFS referenced in this step is
It will be set to "0". The microprocessor 61 then proceeds to step P1707.
Go ahead, set the interrupt timer 66 of the MSC 21, and proceed to the next step.
The event (EV2.EV3.E
V4) Enable interrupts when they occur and execute the main loop
Start. The main loop is connected to the macro system interface.
procedures (SB 171 to 5B174) and job control
Execution move +11N! (P1709-5BI76) and
Of these two types of procedures, the macro
Procedures related to system interfaces are executed constantly.
The procedure for controlling jobs is a macro system installer.
5YSWAIT when the interface preparation is completed.
is reset to 0, it becomes executable (step
P1709). MS IF monitoring subroutine program
In the system SB 171, the microprocessor 61
Initialization of the system interface 27 and the macroshi
between all SSCs that can be connected to the stem interface 27.
to check the connection individually. Subsequent received data
In the processing subroutine program 5B172, each 5SC2
2 to 26 to the reception buffer 47 of the MSC 21.
Analyzes the received frame and executes the transmission request processing subroutine.
Program 5B173 uses the global module of MSC21.
mode map 44, local mode map 45 and frame
Among the information held in the command register 41, 5SC2
Convert the information to be transmitted into frames from 2 to 26 and send it to the transmission buffer.
It is held in the buffer 48. held in the transmission buffer 48
The frame is processed by timer interrupt processing and transmission interrupt processing.
macro system interface 27 by executing the process.
Send. Continued polling control subroutine program 5B174
Now, according to the polling method described above, each 5SC22
~26 to send a communication request to MSC21 and each 5SC22
~26 is realized. In this communication request, the MSC21 requests status
is sent to the target SSC, and in response to this communication request,
The targeted SSC responds with a status answer and sends
Output the required data. On the other hand, the procedure for controlling job execution is 5YSWAIT
is reset to “0” (step P1709
job processing timing L
OOPF is determined to be “1” (in step P1710
If the answer is yes), the process will begin. This way
When the time comes to process the job, the microprocessor
In preparation for future job execution control, the processor 61 immediately
Reset LOOPF to “0” in step PI711.
Ru. Therefore, job execution control (SBI75.5B
176) will be executed at a predetermined cycle. Also,
Procedures that control job execution require multiple job processing subsubs.
Routines (JOBI to JOBn) are executed sequentially
become. The main loop procedure outlined above is explained in detail below.
I will clarify. Figures 18A to 18B are MS1F monitoring subroutine
This is a flowchart diagram showing the steps of the program.
P1801T! MSIF monitoring subroutine program
When 5B171 is started, the microprocessor 61
Check the parameter MS I FS and set the parameter
Check whether MSIFS is set to "0" (
Step 21802). This subroutine program 5B
Immediately after the start of 171, the main routine program (17th
ro” in step P1706 of the figure).
Therefore, the microprocessor 61 is an essential controller.
5SC22, 23, 26 and macro system interface
Check connection to base 27. That is, micropro
The processor 61 receives the step from 5SC22 in step P1803.
Reception notification flag RR indicates whether or not a status answer has been received.
Check. MSIF monitoring subroutine program
Immediately after the execution of RAM 5B171 starts, the transmission request subroutine is still not available.
This is because the program 5B173 is not running.
However, the received data processing subroutine program 5B172
Frames received from the SSC that are subject to communication requests in
analysis has not been performed, and the judgment in step P1802 is
The result will be no (N). The judgment in step P 1802 is no.
In this case, the microprocessor 61 executes step P18.
Step P181 without executing 03 to P1810
Go to 1. As already explained, the parameter MSIFS
is initially set to "0", so step P181
The judgment in step 1 is also no, and steps P1812 to PI31
The process proceeds to step P1815 without executing step P1815. rear
As described above, the microprocessor 61 determines the value to be referenced.
Repeatedly check parameter MSIFS while increasing
However, as mentioned above, the parameter MSIFS is
0", so any subsequent steps
The judgment in step (P1819, 1822) was also no.
The process then proceeds to step P1831. microprocessor 6
1 is step P 1831 Flag JOBA at CZ
Checks whether CT is rOJ, but flag J
OBACT is "0" except during job processing, so
The judgment result of step P1831 is yes, and the micro
The processor 61 sets the flag 5 at step P i 832.
Check whether YSWAIT is "0". flag s
yswAIT is set to "1" in step P1705.
MSIF monitoring subroutine program 5
Immediately after the start of B171, flag 5YSWAI'l'==r
i", and the microprocessor 61 is an optional connection.
Execute check subroutine program 5B182
SSC status checker blue chip without any trouble
Execute program 5B183 to start the main routine program.
return to the program. In this way, you can return to the main routine program.
MSIF monitoring subroutine program SB while repeating
17 i repeatedly and install the required controller (S
SC22, 23, 26) and macro system interface
Check connection to base 27. status request
Status responded from 5SC22-26 to
The reception notification flag RR indicating that the answer has been received is “
When it detects that it is set to “1”, the microcontroller
Rose... Isu 61 is related to steps P1803-1805.
These 5SC22,
23 and 26 are all macro system interfaces 27
It is confirmed that it is connected. In this way, the essential controllers 5SC22, 5S
Macro system interface for C23, 5SC26
The microprocessor asks you to confirm the connection with the interface 27.
The server 61 proceeds to step P1806 and flags UNITF.
is set to a value other than "0", i.e. "1"
Determine whether or not. Flag UNrTF is the main routine
Reset to rOJ at step P 1706 of the program
Since it is, M S I F fi sasaruchi
At the beginning of execution of program 5BI, step P1
The determination result at step 806 becomes no. Therefore, micropro
Processor 61 executes step P1807 without executing step P1807.
At step P 1805, flag UNITS is other than "0"
Determine whether the value is set. MSiF monitoring
At the beginning of execution of subroutine program 5B171, the
Since the judgment result of TP 180B is no, micro
The processor 61 proceeds to step P1810 and sets the parameters.
The required controller
parameter to control the time interval to check the connection of
Set PCYCLE to "0". Above flag UNIT
F and UNITS are optional connection checker routines
At step 58182, 5SC24 and 25 are macro system
Confirm that it is connected to muink-face 27.
It will remain "0" until the
From 5SC 24, 25 until the connection confirmation on 24, 25 is completed.
The response to step P1807. Judgment based on P1809
The process proceeds to step P1810 instead. In this way the initial
Finish the first stage of conversion. After completing step P1810, the microprocessor 61
sets the parameter MSIFS in step P1811.
Check to confirm completion of the first stage of initialization. if
, if the determination result in step P1811 is no, S
SC status check subroutine program S81
After completing step 83, return to the main routine program,
After that, after step P1802, step P1 is again performed.
Check the values of parameters M and S I F S at 811.
Tsuku. Essential Conte 1 Cola S S C22,23
, 26, the parameter MSI
Since FS is set to "1", step P18
The judgment result in step 11 is usually - yes, and the microprocessor
The processor 61 sets the parameter P C at step P18i2.
Compare the value of Y CL E with the limit value n. This limit value n
Connect the required controllers 5SC22, 23, and 26.
Add a predetermined margin to the number of communication requests required for confirmation.
(Step P1812), required
Connecting to the controller S S C22, 23, 26
Initially, when the connection is confirmed, the judgment result of step P1812 is
Since the result is no, the microprocessor 61 executes step P.
18i5. P1819. P1B22. P1831, sub
Main routine via routine program SB 183
Return to program. The above limit value n is a point described in detail later.
In the ring control subroutine program 58174,
Since the step is incremented by "1", eventually step P181 is reached.
The judgment result in step 2 is yes, and the microprocessor 61
Proceeds to step P1813, and connects the SSC to which the connection has been confirmed.
MSC21 frame to supply reset command to
Set the reset command RESET to the command register 41.
to Reset button for SSC with confirmed connection
The command RESET is sent by the transmission request processing subroutine pro- cess.
Program SB 173 and transmit buffer processing routine
The reset command is executed in program SB41.
Functions achieved by the SSC supplied by RESET
Next, the program executed by SSC, which will be described later.
This will be explained in the next section. Like this reset command RE
SET is the SS whose connection was confirmed in step Pl 813
The command register 41 of the MSC 21 for
When set, the microprocessor 61 sets the parameter M
Step SNFS to "2" and end the second stage. In the following step P1815, the microprocessor
61, the parameter MSIFS has the value "2"
Determine whether or not. The judgment result in step P1815 is
, the SSC status check subroutine
After executing SB 183, -1 main routine program
Return to step P1802. Via P1811 C again
Check the value of the parameter MSIFS in step P1815.
To fuck. However, the parameter MSIFS
When the second stage is completed, the value [2J
Since the determination result in step P1815 is
is normally YES, and the microprocessor 61
All verified SSCs hold the reset command RESET.
Step P i 816) to determine whether the
If the result of the judgment is no, the main routine program
After returning to the program, step P1802. Pi811
.. Repeat step P1816 through P4O10.
vinegar. In contrast, the transmission of the reset command RESET is completed.
completed, and the judgment result in step P1816 was YES.
If so, the microprocessor 61 is in its global mode.
Standard mode held in the map 44 (step P1
702) to all SSCs that have been confirmed to be connected.
Set the transmission request flag TR to "1" to supply the
(Step P1817). After this, the microprocessor
The sensor 61 sets the parameter MS I FS to "3".
, completing the third stage. After the completion of the third stage, the microprocessor 61
Check whether the value of the data type IIVISIFS is "3" or not.
If the judgment result is no, the SSC step is executed.
Execution of data check subroutine program 5B183
After the line, return to the main routine program and step
P1802. Step P after pis11 and P4O10
At 1819, the parameter MSIFS is checked again. The parameter MSIFS has a value of “3” in step PI318.
is set, the judgment in step P1819 is passed.
The answer is always yes, and the microprocessor 61
Proceed to step P1820 with the judgment result of
Determine whether the request flag TR has been reset to "0"
do. Standard mode with transmission request flag set to "1"
information must be sent in the same way as the reset command described above.
Request processing subroutine program 5B173 send buffer
Execute the file processing subroutine program 5B41.
is sent to the SSC that is the target of supply, and the
After that, the transmission request flag TR is reset to "0". death
Therefore, if the determination result in step P1820 is no.
If so, information regarding standard mode is still available for the SS to be supplied.
Since it is not sent to C, the microprocessor
The processor 61 is the SSC status check subroutine program.
After executing program 5B183, the main routine program
RAM, and then step P1802. P181
1.P! 815. Steppe PI320 via Pi819
Repeat the judgment. Eventually, the information in the standard mode will be
Information sent to the supplied SSC and placed in standard mode
All the transmission request flags TR attached to are reset to “0”.
When set, the microprocessor 61 sets the parameter M
Set SIFS to "4" (step P1821),
Finish stage 4. After the completion of the fourth stage, the microprocessor 61
Check whether the value of data MSIFS is set to "4" or not.
If the judgment result is no, the SSC stage
End of task check subroutine program SB 183
After completing the program, return to the main routine program and
After that, steps P1802, P1811. P181δ, P
The determination in step P1B22 is repeated through step 1819. Parameter MSIFS is “4” in step P1821
Normally, the determination in step P1822 is
The answer is yes, and the microprocessor 61
With the yes result for step P1822,
Proceed to step P1823. In step P1823
The microprocessor 61 is sent from the 5SC22.
Determine whether the reception status of the frame is stable. child
The reception status is determined by the polling control subroutine described later.
Count data information FLE in program 5B174
Value of management data information LENTBL formed based on N
It is judged by. Count data information FLEN is received
In the data processing subroutine program 5B172
It represents the data length of the received frame, specifically
is the SSC that is the target of communication <Step P1823
status information sent from 5SC22)
represents the amount of Therefore, the micro
The processor 61 has a value of management data information LENTBL.
If the value falls below a certain value, the SSC that is the target of communication will
It is determined that the reception is stable. micro pro
While the judgment result in step P1823 is NO, the processor 61
is SSC status check subroutine program 5
From B183, return to the main routine program and
Step P1802, P1811. P1815. P1
819° P1822 and then step P1823 again.
Repeat the judgment and if the judgment result in step P1823 is negative.
wait until it becomes clear. The judgment result of step P 1823 is
If yes, the microprocessor 61 performs step P
Proceeded to 1824, and the reception status from 5SC23 became stable.
It is determined whether or not this is the case using the same method as in step P1B23. In this way, the microprocessor 61
Respective reception regarding troller 5SC22, 23, 26
Check the status in step P1B23. P1824.
P1825), all required controllers 5SC22,
When the reception status from 23 and 26 becomes stable, step P1
Proceed to 826, and if the flag UNITF is other than "0",
That is, it is determined whether or not it is set to "1". Described later
Option connection check subroutine program S
If B182 is not being executed, the flag is UN.
ITF and UNITS set “0” in step P1706.
” is still set, so the judgment in step P1826 is
The result is a note, and the microprocessor 61 takes a step.
Check the reception status from 5SC24 with P1827
Proceed to step P182B and set the flag UNIT.
Determine whether the SO value is set to a value other than "0"
do. The flag UNITS also has an optional connection chip.
After executing the executable subroutine program S8182,
In the previous example, the initial setting value is "0", so the microprocessor 6
1 without executing step P1829.
Proceed to step P1830. However, as in this example
, 5SC24, 25 are macro system interfaces
27, check the option connection.
As a result of executing subroutine program 5BI82, the file
The lags UNITF and UNITS are each set to “1”.
As a result, step P1826. P1B28's
The judgment result is YES, and the microprocessor 61
Tep P1827. P1829 and S S C2 respectively
4. Check the reception status of 25. Step P1B2
7. If the judgment result of P1829 becomes yes,
The microprocessor 61 proceeds to step P1830,
Set parameter MSIFS to "5", flag 5YSWAI
Set T to "0", respectively. Next, micropro
The processor 61 is the system update subroutine program 5B.
181 (, Fig. 19), and frame from MSC21.
Determine the SSC that will supply the command, etc. However, the first
As shown in FIG. 19, step P1902. P
In 1905, set the flag to UNITF and check with INITS.
If none of these are set to "1"
, immediately start the MSIF monitoring subroutine program SB 1
Returns to 71. These flags UNITF, UNIT
What is S? Option connection check subroutine program
As a result of the execution of
When it is confirmed that it is connected to interface 27,
Since it is set to "1", the system update subroutine jump
For the detailed procedure of program 5B181, check the option connection.
Explained the procedure of subroutine program 5B182.
I will explain later. The microprocessor 61 executes the system update subroutine
MSIF monitoring subroutine jump from program SB 181
When returning to program 5B171, step P1831
and the flag JOBACT is set to "0"
If the judgment result is no, SS
C status check subroutine program 5B18
After executing step 3, the program returns to the main routine program. centre
Lag JOBACT is set to "o" in step P1706.
Therefore, at this stage, the judgment in step P1832 is normally performed.
The answer is yes, and the microprocessor 61 is turned off.
Connection connection check subroutine program 58182
Execute. Option connection check subroutine program SB1
Regarding 82, the detailed procedure is shown in Fig. 20,
In step P2O01, the microprocessor 61
When the procedure starts, the flag UNITF is set to "0".
is set, and the result of that judgment is
, step P2O03 to step P2O0
Proceed to step P2O06 without executing step 5 and execute the flag.
Determine if UNITS is set to “0”.
Ru. However, the flags UNITF and UNITS are 5
Macro system interface 27 of SC24, 25
When the connection with is confirmed, steps P2O04 and
Since it is set to “1” in P2O08, the optional connection
When the continuation check subroutine program is executed for the first time
should be set to "0" for each, and
Therefore, the judgment result of step P2O02 is YES.
Ru. As a result, the microprocessor 61 has the above-mentioned essential functions.
Connection check of controller 5SC22, 23, 26
Macro system interface 27 and
Check the connection with 5SC24 (step P2O0
3). If the judgment result of step P2O03 is no,
For example, 5SC24 is macro system interface 27
Since it is not connected to the microprocessor 61
without executing steps P2O04 and P2O05
Proceed to step P2O06 and flag UNITS is "0"
Determine whether it is set to . On the other hand, as in this embodiment, the 5SC24 is a macro system
If connected to interface 27, step P
The decision in 2003 should be yes, and Mike
Processor 61 answers yes to step P2O03.
Proceed to step P2O04 with the judgment result of 5SC
Set the flag UNITF to "1" to indicate connection confirmation of 24.
Set. The microprocessor 61 again runs the program described above.
In order to repeat the sequence, the parameter MS representing the initialization stage is
Set IFS to the initial value "0" and flag 5YSWAIT to "1".
” respectively. After that, the stator of MSC21
The thread related to 5SC24 held in the thread register 42
Reception notification flag R attached to each status information
Reset R to "0" (step P2O05). In this way, connection check and connection confirmation regarding 5SC24 are performed.
When the post-authentication processing is completed, the microprocessor 61
Perform the same confirmation procedure as for 5SC24 regarding 5SC25.
The process advances to step P2006 to execute the flag UNI
It is determined whether the value of TS is "0" or not. Already flag UN
If ITS is set to “1”, the 5SC25 connection
Since the connection has been confirmed, the microprocessor 61
MS without executing steps P2O07 to P2O09
Return to IF monitoring subroutine program 5B171
. However, as mentioned above, the first option
Executing the connection check subroutine program 58182
At the time of execution, the connection of 5SC25 is unconfirmed, and the flag U is set.
NITS should be set to "0". However,
Therefore, the microprocessor 61 executes step P2O06.
Decide yes and proceed to step P2O07, above required
Connection confirmation procedure for controller 5SC22, 23, 26
Install the macro system for 5SC25 using the same procedure as
Check the connection with the interface 27. If 5SC2
5 is not connected, the microprocessor 61
Step P2O0B. Without executing P2O09, set the flag UNITS to "
0” and run the MSIF monitoring subroutine program.
Return to 5B171. However, as in this example, 5
SC25 connects to macro system interface 27
If so, the judgment result of step P2O07 is YES.
Therefore, based on the results of such judgment,
The processor 61 proceeds to step P2O08 and sets the flag U.
Set NITS to rlJ and display 5SC25 connection confirmation
vinegar. The microprocessor 61 further performs step P2O0.
For the same reason as explained for 4, the parameter MSI
Set FS to “0” and flag 5YSWAIT to “1”
Set each. After that, microprocessor 6
1 proceeds to step P2O09 and sets the stator of MSC21.
is attached to the status information held in the register 42.
Reset the received notification flags R and R to “0”.
. In this way, when the flag operations are completed, the micro
The processor 61 is an MSTF monitoring subroutine program.
Return to SB 171. Return to MSIF monitoring subroutine program 5B171
The microprocessor 61 that has
After executing Tsuku subroutine program 5B183
Further return to the main routine program and set the parameter M
The above program while sequentially incrementing SIFS from "0"
Rerun. In this example, when re-executing, the optional connection
Execution of subroutine program SB 1 B2
Therefore, flags UNITF and UNITS are both set to "1".
Therefore, steps P1806 and P1808
The result of each decision is yes. Therefore, microprop
The processor 61 goes to steps P1807 and P1O09.
5SC24゜25 and macro system interface
Check whether there is any change in the connection status with the bus 27.
do. In these steps P1807 and P1O09, the above 5SC
24, 25 and macro system interface 27
Once the connection is reconfirmed, the microprocessor 61
5SC24,25 in step pisia during stage
Also set the reset command RESET for 5.
Not only SC22, 23゜26 but also 5SC24, 25
1 Noset command RESET is supplied. Also, the third
When the microprocessor 61 reaches the global module
Re-supplying information about the standard mode in the map 44
Since the transmission request flag TR is set to "1" in order to
It is also standard in global mode map 35 of 5SC24,25.
The semi-mode will be set. Next stage 5
Then step P1B26. The judgment result of P1828 is
Since each answer is yes, the microprocessor 61
Also check frame reception stability for 5SC24 and 25.
(Step P1827.P1B29). In this way, the microprocessor 61 becomes the target
I have already explained that SSC was extended to 5SC24 and 25.
Re-execute the procedure and change the parameters in step P1830.
Set the data MSIFS to "5" and set the flag 5YSWAIT to r.
Set each to OJ. After this, the microprocessor
61 is the system update subroutine program 5B181
Start execution. Optional connection checker routine
Before running program SB 182, all
System update subroutine program 5 as described
B181 runs the MSIF monitoring service without actually running.
Returns to routine program 5B171, but reruns
Sometimes the option connection check subroutine jumps to all
Program SB 182 is executed, flags UNITF,
UNITS are each set to “1” (step
P2O04, P2O08). Therefore, the system update
In the new subroutine program 5B181, step P
Since the judgment result of 1902 is yes, micropro
The processor 61 proceeds to step P1903 and uses the external paper feed unit.
Set the knit selection permission flag ENBF to "1"
. After this, the microprocessor 61 controls the paper feed mechanism.
The information held in the global mode map 44 is
Update (step P1904). In the case of this example
, since the sorter is also equipped, step P190b
The judgment result is also yes, and the microprocessor 61
At step P1906, the sorter selection permission flag EN
BS is also set to rlJ. After this, the microprocessor
The server 61 is stored in the global mode map 44 of the MSC21.
Update the information for the sorter held (step
P1907), MSIF monitoring subroutine program 5
Return to B171. In this way, the MSC21 of the laser printer according to this embodiment
is the required controller after its power-on event occurs.
Check the connection for 5SC22, 23, 26
At the same time, the optional connection check subroutine program
From the configuration of the laser printer in Gram 5B182
is the presence of connection for 5SC24, 25 which is not necessarily required.
Check for nothing. This optional connection checkable
The machine program SB 182 is a laser printer system.
The entire system is on standby (JOBACT= rOJ).
, and flag 5YSWAIT is "0", it is always executed.
Ru. Therefore, the above-mentioned power-on i<initial power after
5SC22-26 when the system is on standby
After the connection check is repeated and the laser printer starts up,
Even if a paper feed mechanism or sorter is additionally connected, the connection
The system can be expanded freely.
I can do that. As previously explained with respect to Figure 17, MSIP monitoring
After the subroutine program 5B171, the received data
data processing subroutine program 58172, then send
Request processing subroutine program 5B173, continued
Polling control subroutine program SB 1
? 4 are executed sequentially, but the operation order of the MSC21 is as follows.
Considering that the main loop timer processing subroutine
Program 5B21. Polling control timer processing suble
-chin program 5B22. Polling control subroutine
Program 5B174, transmission request processing subroutine
Program 5B173, received data processing subroutine program
Detailed explanation of each procedure for Gram SB 172
do. Main loop timer-processing subroutine program 5
B21 and polling control timer processing subroutine program
Gram 5B22 is a timer interrupt event as described above.
) Started every time EV2 occurs, the microprocessor
The server 61 is a series of job processing of the main routine program.
Execution cycle of subroutine programs JOBI to JOBn
The count value of the loop timer is incremented to control the
(Step P2101), and then the incremented count
The value is a job processing value indicating when the job processing should be performed.
Determine whether the processing execution timing value has been reached (step
P2102). The judgment result in step P2102 is NO.
In this case, step P2103 is not executed.
Proceed to step P2104. On the other hand, step P2
If the judgment result in step P21 is YES, step P21
Proceed to step 03 and set the flag LOOPF to “1”.
, reset the loop timer to the initial value "0".
. Therefore, the loop timer will be restarted.
Become. In this way, the flag LOOPF is set to "1".
When the main routine program is executed next time, the step
The judgment result of step P1710 is YES, and the job is processed.
Subroutine programs JOBI to JOBn are executed.
Ru. Next, the microprocessor 61 starts the trouble timer.
The count value is incremented (step P2104), and the step
The reception flag PANS is set to “0” in step P2105.
Determine whether or not the Step P2105
If the judgment result is no, steps P2106 to P2
The process advances to step P2108 without executing step P107. On the other hand, if the judgment result in step P2105 is yes,
In this case, the MSC21 determines that the status answer has not been received and
Proceed to step P2106 and count the trouble timer.
Determine whether the value reaches the response error timing value
. The response error timing value is passed from MSC21 to SSC.
maximum time allowed from sending a request frame to receiving a response.
The count value of the trouble timer is
If this response error timing value is exceeded, the microprocessor
Sessa 61 decides yes regarding step P2106
and sets the flag PEND to "1" (step P2
10? ). In this way, the flag PEND is set to "1".
After that, the microprocessor 61 communicates with the SSC.
It is determined that the connection is poor and subsequent polling processing is forcibly stopped.
Polling error processing subroutine program 5
Execute B211. On the other hand, the determination result in step P2106 is no.
In this case, the MSC21 and the SSC from which the communication request was made
Since the communication status is normal, execute step P2107.
The process immediately proceeds to step P210B. In step P2108, the microprocessor 61
increments the count value of the polling timer and
The count value of the switching timer indicates that a communication request is made to the SSC.
Determine whether the desired polling timing has been reached (
Step P2109). Judgment result of step P2109
is no, the microprocessor 61 steps
Start without executing steps P2110 to P2112.
Proceed to step P2113. On the other hand, step P2
If the judgment result of 109 is yes, microprocessor 6
1, the flag PTIMING is set in step P2110.
Determine whether the value is "0". If the judgment result in step P2110 is no, the port has already been
The ring timing has arrived, so the microprocessor
The sensor 61 performs steps P2111 and P2112.
The process proceeds to step P2113 without executing the process. Against this
Then, if the judgment result in step P2110 is YES, the port
This is the first time that the occurrence of ring timing has been detected.
Therefore, the microprocessor 61 goes to step P2111.
Go ahead and set the flag PTIMING to "1" and run
Proceed to step P 2112 and set the next polling timing.
Resetting the polling timer to ``0'' to detect
to restart the polling timer. Next, the microprocessor 61 performs transmission request processing, which will be described later.
Flag T is set to prepare for execution of the processing subroutine 5B173.
Step P2113) Determine whether RML is rOJ or not.
, flag TRML is other than “0”, that is, set to rlJ.
If so, there are characters being sent, so the
The judgment result of step P2113 is no, and the microprop
Processor 61 steps P2114 to P211
Timer interrupt event immediately without running 5
Return to the program that was running at the time of occurrence. to this
On the other hand, if the judgment result in step P2113 is yes
The characters are held in the transmission buffer 48 of the MSC21.
Step P2114)
If the judgment result of step P2114 is no, the microprocessor
The processor 61 immediately executes step P2115.
is executed when timer interrupt event EV2 occurs.
Return to the program you were in. On the other hand, step P
If the determination result of 2114 is yes, the transmit buffer
Transfer the characters in 48 to the transmission register 49 and
Set TRM L to "1" (Step P21
15). After completing step P2115, the control of MSC21
Control is a timer interrupt event) Program when EV2 occurs
return to the program. Next, polling error handling routine program 5B2
The detailed procedure of step 11 will be explained with reference to FIG. Poli
The error processing subroutine program is at step P2.
Once started at 201, the microprocessor 61
is whether flag 5YSWAIT is set to “0” or not.
Step P2202), Step P220
If 2 is no, the laser printer is initializing, so proceed as follows.
Immediately interrupts subsequent processing and returns to the polling control subroutine.
Return to program SB174. Step P220
If the judgment result in step 2 is yes, the microprocessor 61
Execute steps P2203 to P2205 in sequence.
The SSC that caused the response error is 5SC22, 23, 2.
6. If a response error occurs,
The deleted SSC is either 5SC22, 23, or 28.
If so, any of steps P2203 to P2205
Since the judgment result is yes in either case, the microprocessor
The server 6I proceeds to step P2209 and performs predetermined error handling.
Run polling control timer processing subroutine pro
Return to Gram 5B22. In response, a response error occurs.
The resulting SSC is not 5SC22, 23, or 26.
If it is, the microprocessor 61 sets the flag UN.
Check ITF and 5SC24 is macro system input.
Determine whether or not it is connected to interface 27
(Step P2206). 5SC24 is a macro system
If connected to interface 27, step
Since the judgment result of P2206 is YES, the microprop
The processor 61 proceeds to step P2207 and detects a response error.
It is determined whether or not it is 5S024 that caused the problem. vinegar
If the judgment result in step P2207 is YES, the microprop
Processor 61 checks the flag JOBACT and
Determine whether the user printer is executing a job
(Step P2208). Judgment result of step P2208
If the result is no, the microprocessor 61 performs step P2.
Proceed to 209, perform predetermined error handling, and poll
Return to control timer processing subroutine program 5B22
Ru. On the other hand, the judgment result in step P2208 is
If S, - degree macro system interface 27 and
response while waiting even though connection is confirmed
Since an error has occurred, the microprocessor 61
Set the flags UNITF and ENBF to “0”.
, 5SC24 is macro system interface 27?
Treat it as if it were separated from the After this, micro
The processor 61 sets the parameter MSIFS to "0" and sets the parameter MSIFS to "0".
Set Lag 5YSWAIT to "1" and step
P2211), followed by the status register of MSC21.
Reception attached to status information held in data 42
Step P2 to reset the notification flag RR to "0"
212), such a series of treatments (step P22)
10 to step P2212), the MSC21
Execute IF monitoring subroutine program 5B171 again
I decided to check the connection of 5SC24, 25 etc. again.
You will get hit. On the other hand, the above step P220
6. Any judgment result in step P2207
If no, the microprocessor 61 performs step P2.
Proceed to 213 and check the flag UNITS, 5SC2
5 is connected to the macro system interface 27.
It is determined whether or not there is one (step P2213). 5SC
25 is connected to the macro system interface 27.
If so, the judgment result of step P2213 is YES.
Therefore, the microprocessor 61 executes step P221.
5SC25 was the one that proceeded to step 4 and caused a response error.
Determine whether or not. If the judgment result of step P2214 is
If S, the microprocessor 61 sets the flag JOBAC.
Check T to indicate that the laser printer is running a job.
It is determined whether there is one (step P2215). Step
If the result of step P2215 is no, the microprocessor
The server 61 proceeds to step P2216 and performs predetermined error processing.
Executes polling control timer processing subroutine
Return to program 5B22. On the other hand, step P2
If the judgment result of 215 is yes, 5SC25 will
connection with system interface 27 is confirmed.
Even though it is waiting, a response error is occurring.
Therefore, microbrosé sensor 61 sets the flag UNITS.
, set ENBS to "0." and set 5SC25.
is separated from the macro system interface 27.
treated as such. After this, microprocessor 6
1 sets the parameter MSIFS to “0” and the flag S Y
Set SWAIT to "1" in step P.
2211), followed by status register 4 of MSC21.
Receipt notification attached to status information held in 2.
Reset flag RR to "0" (step p22
12). A series of treatments like this (Ste Mbu p. 221)
"7 + Step P2211~Step P221
2>, the MSC21 executes the MSIF monitoring subroutine.
Program 5B171 will be executed again, and 5SC
The connections of 24, 2i5, etc. will also be checked again.
. (Left below) Next, polling control subroutine program SB
The detailed procedure of i74- will be explained with reference to Fig. 23.
do. Polling control subroutine program 5BI74 starts
When started in step P2301, the microprocessor
The processor 61 has the flag PTIMING set to “1”.
Step P2302)
If the judgment result of step P2302 is no, polling time is reached.
The market has not yet arrived (see Figure 7).
The microprocessor 61 is a polling control subroutine.
Immediately interrupt program 58174 and main routine.
Return to program. In contrast, the polling control timer processing described above
Blue dip [1 gram 5B22 step P211
1, the flag PTIMING is set to "1".
If so, the judgment result in step P2302 is yes?
'l, the microprocessor 61 goes to step P2303.
Go ahead and check whether the flag PEND is set to NJ.
to decide. The microprocessor 61 receives received data, which will be described later.
In the data processing subroutine 5B172, the received frame is
If the frame continuation bit N of the constituent characters is “0”
SS when the exit code (7FH) is detected.
C delimiter detection is recognized and the flag PEND is set to “1”.
will be played. However, flag PEND is set to "1".
all characters that make up the frame being received.
data has been imported into MSC21, and other SSCs
It becomes possible to carry out communication requests. However, if the flag PEND is "0". The frame being received contains untransmitted characters (7.
Therefore, the microprocessor 61 executes step P2303.
Determine no by smell and polling control subroutine S
Terminate B174 immediately and restart the main routine program.
I'm back here. On the other hand, the judgment result in step P2303 is negative.
If so, the microprocessor 61 performs step P2304.
Proceed to step 1 and determine whether there is free space in the transmission buffer 48.
, if there is no free space in the transmission buffer 48, the subsequent steps
Stops execution of the step and immediately returns to the main routine program.
return to the program. In this way, in this embodiment, in order to execute a transmission request,
, the polling timing has arrived and the previous transmission
The response to the request has already been completed and the send buffer is empty.
There must be space in 48. If all the above conditions are met, the microprocessor
61 proceeds to step P2305 and sets the flag PT IMI
Reset NG, PEND, and PANS to "0"
followed by the data that constituted the response to the previous communication request.
The value of count data FLEN representing the data length is transferred and managed.
Update the physical data L E NTBL (Step P23
06), In this way, the management data LENTBL is updated.
When updated, the microprocessor 61 outputs count data.
Clear F i, EN and clear information regarding the previous communication request.
Finish post-processing. After this, the microprocessor 61 executes the communication request.
Send status request to MSC21 buffer
is sent to the buffer 48 and held (step P230B>,
, after which the microprocessor 61 communicates with the SSC.
Start the trouble timer to monitor the condition.
(Step P2309). In this way, communication requests
When the preparation is complete, the microprocessor 61
SSC to which a communication request is sent in P2310
Advances the management data PSSC that specifies the next port.
To execute the ring control subroutine program 58174
Be prepared. In step P2308 above, the transmission buffer
Status request held in 48 is a transmission interrupt
Send buffer executed after occurrence of EV 4
In the communication processing subroutine program S841,
Sent to the targeted SSC. When the processing for this communication request is completed in this way,
Microprocessor 961 is macro interface 27
Sequentially sends communication requests to all SSCs connected to
Step P2311) to determine whether or not the
If the judgment result of P2311 is no, -dan main routine
The program returns and the judgment result of step P2311 is
If yes, proceed to step P2312 and do not request communication.
Set the appropriate SSC to ``221'' and try 5SC22 again.
Prepare to send communication requests sequentially. In addition, the microprocessor 61 also uses the parameter PCYCL.
Manage the number of times communication requests are repeated by incrementing E by 1.
, return to the main routine program. Next, the transmission request processing subroutine program 5B173
The detailed procedure 111B will be explained with reference to FIG. send
Request processing subroutine program 5BI73 steps
The microprocessor starts at P2401.
61 sets the management data LMTF in the limit counter.
Step P24.02), transmit buffer 4
Determine whether there is space in B (step P24 (1)
3). If there is no free space in j4 (transmission buffer 11),
Since the judgment result in step P2403 is no, the
It is determined that the Ikurobe Mikocessor 61 cannot respond to the transmission request.
disconnect and immediately return to the main routine program. On the other hand, the judgment result in step P2403 is YES.
Then, the microprocessor 61 proceeds to step P2404.
Mi4 Global mode map 44 and local mode map
Search for map 45 and send to these maps 44.45.
Discovery of information, etc. whose communication request flag TR is set to “1”
Strive to. If the transmission request flag TR is set to "1"
If the searched information etc. is not found, step P2405
The judgment result is no, and the microprocessor 61
Execute steps P2408 to P2409
The process proceeds to step P2410 instead. In contrast, step
If the judgment result of step P2405 is YES, the microprocessor
The processor 61 returns the discovered transmission request flag TR to rOJ.
Set (step P2406) the transmission request flag.
Convert the information marked with TR to a full gnome and send it.
This data is sent to the buffer 48 (step P2407).
After that, the microprocessor 61 goes to step P2409.
decrements the limit counter by 1, and then
Determine whether the value of the data has reached 01 (step
P2409). Step-P2409 judgment result is YES
If so, the microprocessor 61 interrupts further processing.
to immediately return to the main routine program and vice versa.
If the judgment result in step P2409 is no, step P24
Proceed to step 10 and change the local mode map 34 and global mode map.
Regarding all information held in the domain map 35,
Determine whether the search is finished (). Step P241
If the judgment result of 0 is no, the microprocessor 61
Return to step P2403 and find that there is free space in the sending buffer for 4 days.
After that, the transmission buffer 48
or the local mode map 34 and
and check all information on the global mode map 35.
Steps P2403 to P24 until the search is completed.
Repeat the loop consisting of JO. In this way, this implementation
In the example, a limit counter is used to process a single transmission request.
Number of characters sent out during routine program execution
MSC21 does not sacrifice other processing.
It is possible to communicate with 5SC22-26 without
Responses to transmission requests may also be delayed on the SC22-26 side.
There is no such thing. Eventually, the judgment result of step P2410 becomes YES.
, the microprocessor 61 proceeds to step P2411.
It is determined whether there is space in the transmission buffer 48, and the step
If the result of step P2411 is yes, use the command
Request to send all commands held in the register 41
If the flag TR is searched (step P2412), if
A command with the communication request flag TR set to “1” is issued.
If not, the judgment result in step P2413 is NO.
Therefore, the microprocessor 61 executes step P2414.
~Step P2 without executing step P2418
Proceed to 418. In contrast, the determination result of step P2413 described above
is yes, the microprocessor 61
The communication request flag TR is reset to "0" (step P
2414), reset transmission request flag TR attached
Converts the previously sent commands to frames and then sends them to the transmit buffer.
It is sent to the buffer 48 (step P2415). After this
, the microprocessor 61 in step P2416
to decrement the limit counter by 1, and then
It is determined whether the value of has reached "0" (step P2
41? ). If the judgment result of step P2417 is YES
, the microprocessor 61 interrupts subsequent processing and immediately
Return to the main routine program and step in the opposite direction
If the judgment result of P2417 is NO, step P241 B
All the command registers 32 are
Determine whether the search for information is complete. Step
If the judgment result of P2418 is no, the microprocessor
61 returns to step P2411 and stores it in the transmission buffer 48.
Check whether there is space or not, and then use the sending buffer 48.
is no longer able to hold new frames, or the command register
Step 32 until the search is completed for all the information on the star 32.
Loop consisting of step P2411 to step P241B
repeat. Before long, the judgment result of step P24]B is
When it becomes S, the microprocessor 61 sends a transmission request subable.
Exit the main routine program and return to the main routine program.
to return to. In this way, steps P2407 and
The file held in the transmission buffer 48 in step P2415
The frame is a transmit interrupt event).
Passed by executing the buffer processing routine program 5B41.
It is sent to the SSC that is the target of the communication. In this embodiment, execution of the transmission request subroutine program
, the microprocessor 61 first enters the local mode.
Search the domain map 45 and the global mode map 44.
, sends the information to be transmitted to the transmission buffer 48. deer
If there is more space in the transmit buffer 48 after the
The command is sent to the sending buffer 48. Follower, each
The SSC uses local mode prior to supplying commands.
stored in the map 45 and the global mode map 44.
information that is needed to execute the command.
The supply of necessary information is guaranteed. Next, we will explain the received data processing subroutine program.
I will clarify. This received data processing subroutine program S
B172 is received when receive interrupt event EV3 occurs.
by the communication buffer processing subroutine program 5B31.
, the character latched in the receive register 46 is
It is executed after being transferred to the buffer 47, and the detailed procedure is as follows.
It is shown in FIG. In step P2501, this received data processing subroutine
When program 5B172 is started, the microprocessor
The processor 61 first checks the reception buffer 47 of the MSC 21.
The character is latched in the receive buffer 47.
It is determined whether or not it has been set (step P2502). If characters are held in the receive buffer 47,
If not, the determination result of step P2501 will be no.
Therefore, the microprocessor 61 immediately returns to the main routine.
Return to program. On the other hand, step P25
If the judgment result of 02 is yes, the microprocessor
The server 61 proceeds to step P2503, and the count data C
Determine whether CNT is "0" or not. All about flags
As mentioned in the explanation below, the count data CCNT is
Indicates the number of characters already received when receiving a frame.
Therefore, it is set to "0" immediately after receiving a frame.
, therefore, the microprocessor 61 performs step P2
The process proceeds to step 504, where the received character is an ID character.
Determine whether or not. As mentioned above, for each frame
The first character is an ID character, so it is a count date.
The character received even though the data CCNT is “0”
If the data is not an ID character, there is a reception error or the
ID character processed by the received data processing subroutine
Since the microprocessor 61 is considered to be a
interrupts the process and immediately returns to the main routine program.
Return. In contrast, if the received character
If it is a character, the judgment result of step P2504 is YES.
, the microprocessor 61 reads the received ID character.
Kuta's identification code S and area code U are data IDS.
, and IDU, respectively, in the RAM62 of the MSC21.
transfer to the business area (step P2505). After this,
The microprocessor 61 proceeds to step P2506,
Set count data CCNT to "2". Furthermore, this
In the program, the count data CCNT is
1" is not used. After that, the microprocessor 61
returns to the main routine program. The microprocessor 61 runs the main routine program.
Repeatedly execute a series of subroutine programs
when the second character is in receive buffer 4.
7, the received data processing subroutine 5B
The judgment in step P2503 of 172 is no, and my
The processor 61 proceeds to step P2507 and receives
Determines whether the specified character is a data character.
cut off The received character is an ID character
, the judgment result in step P2507 is no, so
The microprocessor 61 proceeds to step P2505.
, the identification code S and area code of the received ID character.
The code U is used as data IDS and IDU in RAM62.
Keep in work area. After that, count data CCN
Set T to "2" (step P2i506) and main
Return to routine program. On the other hand, the received cache
If the character is a data character, step P25
Since the judgment result of 07 is yes, the microprocessor
The sensor 61 increments the count data FLEN by "1".
(Step P250B), and received in Step P2509.
The area code U of the ID character in the frame inside is a frame.
specifies a command register or status register.
Determine whether or not. Area code U is command register
or if a status register is specified, the step
Since the judgment result of P2509 is YES, micropro
Processor 61 is a status/report analysis subroutine.
Execute program 5B251. On the other hand, if the judgment result in step P2509 is no, the
The microprocessor 61 is a mode analysis subroutine 5B2
Execute 52. First, the judgment result of step P2509
is YES and status/report analysis subroutine
The program was started in step P2801.
The case will be explained with reference to FIG. 26. This stay
In the task/report analysis subroutine program, one key
Processing for each Yarakuta is executed. Area code IDU
Microprocessor 61 when set to "3"
to the status/report analysis subroutine program.
As it is clear from the frame identification table above,
In addition, the status/report analysis subroutine program
Analyzing the status answer or sequence report
is executed. The microprocessor 61 first
Check count data CCNT in step P2602.
Check whether the count data CCNT is “3j” or not.
Check. For data character 1, step
In step P2506, count data CCNT is “2”
Since the determination result in step P2602 is
is no, and the microprocessor 61 executes step P2.
Proceed to 603 and microphone the received data character 1.
It is held in a temporary register in the processor 61 (step
P2603), after this, the microprocessor 61
increments the count data CCNT by 1 and reads the received data.
data processing subroutine SB 172, and further main routine
Return to the current program. As is clear from Figure 11 (f) and (g) above,
, status answer and sequence report are both 3 keys.
Since it is composed of Yarakuta, it is the target of communication.
Data character 2 is eventually supplied from the SSC,
It will be latched into the reception buffer 47. data key
Executed after character 2 is latched into the receive buffer 47
In the receive data processing subroutine program that is
As with the data character l, the status/report interpretation
The analysis subroutine program is executed, and this time the step
Since the judgment result of P2602 is YES, micro
The processor 61 proceeds to step P2605 and inputs the data key.
Character 2 is set as a temporary register in the microprocessor 61.
Hold at 2. Next, the microprocessor 61 receives
The received frame is determined by the contents of data characters 1 and 2.
Determine whether the system is a status answer (step
P2606). If the received frame is
If it is a report, the microprocessor 61 performs step P.
2606, it is determined as no, and the process proceeds to step P2607.
Proceed to - and read the data keys held in registers 1 and 2.
Transfer characters 1 and 2 to the report register 37, and
After that, you will receive a response from the SSC that is the target of the communication.
are attached to these data characters 1 and 2 to indicate that
Set the received notification flag RR to "1" (step
P2608). The sequence received in this way
The report is a job processing subroutine program described later.
used in the system. In contrast, the received frame is a status answer.
If so, the judgment result in step P2606 is YES,
The microprocessor 61 proceeds to step P2609.
, First, stop the trouble timer. And the flag
Set PANS to "1". In this way, troubleshooting
The timer is stopped and the flag PANS is set to “1”.
Then, the polling control timer processing subroutine program
Response at step P2106 (Figure 21) of Ram 5B22
It will not be considered an error. After this, micropro
The processor 61 proceeds to step P2610 and registers the command register.
The data key is waiting for confirmation after being sent to the star 41.
Is there a command where the 7th bit Q of character 1 is 1?
Check the information passed during this command and the received status answer.
The last command supplied to the SSC being communicated
(See Figure 11(f))
). If the judgment result in step P2610 is no, the microphone
The processor 61 executes steps P2611 and P2612.
Proceeds to step 22613 without executing, but
If the judgment result of P2610 is YES, the microprocessor
The processor 61 attaches the received frame to step P2611.
SSC where the included command is the target of communication
matches the last command sent to
to decide. If these commands do not match
, the judgment result in step P2611 is no, so the
microprocessor 61. Proceed to step P2612.
The last command supplied to the SSC that is the target of communication
Set the communication request flag TR of the command to ``1j'' and execute the command.
Prepare to resend the code. On the other hand, step P2
If the judgment result of 611 is yes, microprocessor 6
1 is the data character held in temporary registers 1 and 2
controllers 1 and 2 as command register 32 and stator, respectively.
The data is transferred to the memory register 33 and held (step P2).
613). After this, the microprocessor 61 performs communication
To indicate that there has been a response from the targeted SSC.
Therefore, the acceptance mark attached to the received data characters 1 and 2 is
Set the communication notification flag RR to "1" (step P2
614). Subsequently, the microprocessor 61 received
Check frame continuation pick ■・N of data character
to determine whether the frame continues further (step
Step P2615). Step if frame continues
Since the judgment result of P2615 is no, micropro
Processor 61 executes step P2616 without executing step P2616.
Proceed to step P2617 and check the judgment result of step P2615.
If the result is yes, the microprocessor 61 is set to SSC
Set PEN D, which indicates detection of
P2616), count data CCNT is set to “0”.
” to prepare for the next frame reception (step
P2617). After this, the microprocessor 61
Return to in-routine program. The next received frame is the data that constitutes the mode answer.
Refer to Figure 27 for the case where it is a character.
explain. The mode answer is shown in Figure 11 (h), (i
) word types and strings as explained above.
There are different types, each with a different frame configuration.
Ru. Therefore, the mode analysis subroutine program 582
52 is started in step P2701, the microprocessor
The processor 61 checks the count data CCNT.
Is the received character data character 5?
It is determined whether or not (step P2702). ID/Character
After data character 1 is received, data character 1 is received.
, the count data CCNT is set to "2".
(see step P2506 in FIG. 25), and the step
The determination result of step P2702 is no. So, my
The computer processor 61 proceeds to step P2703 and
It is determined whether or not the count data CCNT is "2". As mentioned above, Fu! After starting norm reception, mode analysis is performed first.
The subroutine program 5B252 is executed by
This is when data character 1 is received and the count data is
taCCNT is "2". Therefore, step P27
The judgment result of 03 is yes, and the microprocessor 6
1 proceeds to step P2704, where the received data character
Determine whether or not the vector (map address M) is 7FH.
do. As explained with respect to FIG. 11(h), the map
Forbidden values for address M represent exit codes
(7FH), so in step P2704
If the exit code (7FH) is detected, the microprocessor
The processor 61 proceeds to step P2705 and performs SSC delimitation.
Reset the flag PEND indicating detection of
and reset the count data CCNT to “0”.
(Step P2706). On the other hand, in step P2704
If the judgment result is yes, the output processor 61
Reset lag 5TRNG to "0" Step P27
07), when the count data CCNT is set to "4"
In both cases, the received data character 1 is processed by the microprocessor.
Transfer to the address register of the processor 61 (step P2
708n. After this, the microprocessor 61
represented by data character 1 held in the address register.
Analyze the map address M that is included and find the map address
Determine whether M specifies a string area
(Step P2709). If map address M is
If a ring area is specified, step P270
Since the judgment result of 9 is yes, the microprocessor 61
proceeds to step P2710 and sets flag 5TRNG to “1”.
”. After that, the microprocessor 61
Please reset the count data CCN T to "3".
Step P2711), received data processing subroutine
Return to program SB1?2. In contrast, step
If the judgment result of step P2709 is no, the receiving mode is
Since the sensor is a word type, the microprocessor 61
Step P2710. Execute step P2711
Received data processing subroutine program 5B
Returns to 172. Eventually, when the third character is received, the micro
The processor 61 again runs the mode analysis subroutine program.
Starts execution of program 5B252. This time, the judgment result of Ste Nbu P2703 will be no.
Then, the microprocessor 61 proceeds to step P2712.
Then, it is determined whether the count data is "3" or not. Up
As mentioned above, if the mode answer is a string type, the counter
Although the workpiece data CCNT is set to "3",
If it is a type, it is set to ``4'', so it is
The processor 61 determines that the determination result in step P2712 is YES.
If so, mark data character 2 representing the received data length.
It is transferred to the data counter in its own processor 61 and saved.
Preferably step P2713) and step P2712.
If the result is no, the data representing the first byte of setting data D
The data character 2 is stored in a temporary register in the microprocessor 61.
The data is transferred to Star 1 and held (Step P2714). child
No matter which of these steps you perform, the microphone
The processor 61 sets the count data CCNT to "1".
(step P2715), receive data processing service
Return to routine program 5B172. If the mode answer is a string type, the micro
Processor 61 for received data character 3
Step P2702, Step P2703, Step P
2712, execute step P2714 and save the setting data.
Transfer the data character 3 that represents it to temporary register 1 and save it.
hold Then subsequent data characters are received and again the mode
Assume that the execution of the analysis subroutine program has started.
. This time, the judgment result in step P2702 is YES.
Therefore, the microprocessor 61 goes to step P2716.
advances and places the received data character into temporary register 1.
Local mode with retained data characters
Transfer to map 45 (word type) or string area
and hold it. Next, the microprocessor 61
Check the group 5TRNG and check the mode answer being received.
Step P271 to determine whether it is a word type?
). If the mode answer being received is a word type,
The judgment result in step P2717 is YES, so the
The microprocessor 61 receives the received data character.
Set the communication notification flag RR to notify the mode change.
Step P2718), count data CCNT is set to “2”.
” (Step P2719). On the contrary,
If the judgment result in step P2717 is no, the microprop
Processor 61 does not execute step P2718.
Proceed to step P2719. After that, the microprocessor 61 again sets the flag 5T.
Check the RNG and check if the mode answer being received is
It is determined whether the current type is the same type (step P2720). vinegar
The judgment result of step P2720 is YES (string tie).
), the microprocessor 61 outputs the count data C
Set CNT to "4" again (step P2721),
Data held in the data counter in step P2713
The length is decreased by "1" (step P2722). Sara ζko
, the microprocessor 61 processes the received data characters.
Step P to determine whether or not indicates an exit code.
2723), and if the judgment result is no, the received data is immediately sent.
Return to data processing subroutine program 5B172
. In this way, the mode answer being received is
If the data character is
Each time a data is received, step P2702 and step P
2703. Step P2 via step P2712
714 temporarily holds the data character in register 1.
After that, the data received in step P2716
The character is stored in the data key held in temporary register 1.
[with character] String element by word (2 bytes)
hold at the rear. In contrast, the received mode answer
If is a word type, the microprocessor 61
Step P2702. Step P2703, Step
Steps P2707 to P2709, and further step P2
712 and received in step P2714.
Temporarily hold the character in register 1 and set it to P2716.
The data is transferred word by word to the local mode map 45 and held there. Eventually, when all the data has been received, the data counter will be displayed.
To end the count, step P2722), step P
Since the judgment result of 2723 is yes, micropro
The processor 61 sets the count data CCNT to "2".
, set the reception notification flag RR in step P2724.
), then the exit code received afterwards (address
7FH) is detected in step P2704, and step P2
705. The reception associated with the reception of the mode answer via P2706.
Terminates execution of the communication data processing subroutine program
. Next, run the SSC status check subroutine program.
The detailed procedure of system SB 183 will be explained with reference to Fig. 28.
Ru. In this embodiment, the MSC21 periodically registers the status register.
Read the summary status information of each SSC from the star 42
, if the summary status information indicates an abnormality in the SSC.
, send the mode request to the S to get more details.
Send to SC and get details from its local mode map 34
Read status information. To that end, MSC21
MSIF monitoring subroutine, program 5BI71
SSC status check subroutine program S8
It has 183. Below is SSC status check
The detailed procedure of the subroutine program will be explained. SSCSS status check subroutine program
183 is started in step P2801, the microphone
The processor 61 is the SSC to be checked.
5SC22 (step P2802), if it has already been
A summary of the SSC that has been checked
Whether the reception notification flag RR of the status information is “1” or not
(Step P2803). If received
If the notification flag RR is “0”, judgment in step P2803
The result is no, and microprocessor 6J steps
Proceed to P2809, change the SSC to be checked, and check all
The check for summary status information about the SSC has finished.
It is determined whether or not it has been completed (step P2810). MSC2
1 checks summary status information for all SSCs.
If it has not been completed, the determination result of step P2810 is
If the answer is NO, the microprocessor 61 executes step P28.
Return to step P2803 to step P2810
The judgment result of step P2810
Repeat until you get a yes. If step P
If the judgment result of 2803 is yes, the microprocessor
61 is the general status information for the SSC to be checked.
Reset the reception notification flag RR attached to the notification to “0”.
step P2804), the SS to be checked
Gl (ERRO) of summary status information between
R bit) is set (step
P2805). The judgment result in step P2805 is negative.
If so, the unit under the control of the SSC to be checked.
If the problem is relatively minor and can be corrected by the user,
This indicates that an occurrence has occurred, and the microprocessor 61
Local mode of SSC to be checked
Details related to ERROR bit detected from step 34
Sends a mode request to read status information.
and set it in the communication buffer (step P2806). this
On the other hand, if the judgment result in step P2805 is no,
The above minor trouble has not occurred, so the microprop
Processor 61 does not execute step P2806.
Proceed to step P2807 and check if the
Bit G2 (F
ATAL bit). If FATAL
If the cut is "1", the SS is the target of the check.
An unrecoverable problem has occurred in a unit under the control of C.
Therefore, the microprocessor 61 is FA
in the local mode map 34 related to the TAL bit.
Mode request to access detailed status information
set in the transmission buffer 48 (step P28)
09). In contrast, the determination result in step P2807
If no, the microprocessor 61 executes step P28.
Proceed to step P2809 without executing 0B and check
Change the SSC to be searched. In this way, all S
Checking of summary status information regarding SC is finished.
So, the judgment result of step P2810 is YES.
, the microprocessor 61 runs the MSIF monitoring subroutine.
Return to program 5B171. In this way, the microprocessor 61
bit, or detailed status related to the FATAL bit.
Preparation to read out task information from local mode map 34
do. The mode thus held in the transmission buffer 48
The request is executed by the above-mentioned transmission request processing subroutine program.
System 5B173 and transmission buffer processing subroutine program
SS where trouble occurs when executing Gram SB41
C, and the mode is sent from the SSC where the trouble occurs.
When the answer arrives, the receive buffer processing subroutine
Program SB31 and received data processing subroutine program
Run the program to retrieve detailed status information. child
The detailed status information imported into MSC21 is
Trouble check/link processing subroutine program described later
System 5B291 analyzes the information and takes necessary action.
. As explained in relation to Figure 17, in the main loop
MSIF monitoring subsystem SB 171
~Polling control subroutine program SB 174
When the process is completed, the microprocessor 61 sets the flag 5YS.
Check WAIT72 and the laser printer will print the job.
Determine whether it is processing or waiting. If you are on standby, please
5YSWAIT is set to “1”, so the step
The judgment result of step P1709 is no, and the micropro
The sensor 61 is the MS I FH sensor subroutine program.
Return to 5B171 to execute the program. In contrast,
If 5YSWAiT is “0”, job processing
In order to run the subroutine program, first set the flag
Check whether LOOPF is set to "1"
(Step P 1710). Main loop timer processing subroutine program
and explain
【ノたように、マイクロプロセッサ61は一定
時間間隔毎にフラグL OOP Fを「1」に設定して
いるので、ステップP1710の判断も一定時間間隔毎
にイエスになり、かかる肯定の判断結果をもってマイク
ロプロセッサ61はステップP1711においてフラグ
LOOPFを「0」にリセットし、以下に説明するジョ
ブ処理ザブルーチンプログラムの実行完了後は、再び一
定の時間間隔が経過するまでジョブ処理サブルーチンプ
ログラムが実行されないようにする。
第29図に示すように、ジョブ処理サブルーチンプログ
ラムにおいては、まず、フラグJOBACTが1”1」
であるか否かが判断されるが、フラグJOBACTはス
テップP2908て「1」にセットされるので、通常、
ジョブ処理サブルーチンの開始直後はステップP290
2の判断結果がノーになる。ステップP2902の判断
結果がノーの場合、マイクロプロセッサ61はステップ
22906に進み、プリントに関する指示の有無を判断
する。このステップP2906の判断結果がノーの場合
には、マイクロプロセッサ61は上位のユーザシステム
からプリント用紙の選択が供給されたか否かをステップ
P2909で判断し、その判断結果がイエスならその選
択が外部給紙ユニットを選択するものであるか否かをス
テップP2910で判断する。もし、ステップP291
0の判断結果がイエスならフラグENBFをチエツクし
て外部給紙ユニットが選択可能か否かを判断しくステッ
プP2911)、外部給紙ユニットが選択可能ならくす
なわち、ENBF=1)、マイクロプロセッサ61は給
紙口を変更する(ステップP2912)。これに対して
、ステップP2910の判断結果がノーならマイクロプ
ロセッサ61は直接ステップP2912に進み、ステッ
プP2911の判断結果がノーならマイクロプロセッサ
61は直接トラブルチエツク処理サブルーチンプログラ
ム5B291に進む。
更に、ステップP2909の判断結果がノーなら、マイ
クロプロセッサ61はソータモードの設定が上位のユー
ザシステムから供給されたか否かを判断しくステップP
2913)、ステップP2913の判断結果がイエスな
ら、マイクロプロセッサ61はステップP2914でフ
ラグENBSが「1」であるか否か、すなわちソータを
選択可能か否かを判断する。ステップP2914の判断
結果がイエスなら、マイクロプロセッサ61はソータモ
ードに設定しくステップP2915)、ステップP29
14の判断結果がノーなら、マイクロプロセッサ61は
ステップP2915を実行することなくトラブルチエツ
ク処理サブルーチンプログラム58291を実行する。
これに対して、ステップP2913の判断結果がノーな
ら、マイクロプロセッサ61は印字データ等のジョブデ
ータを上位のユーザシステムから供給を受け(ステップ
P2916)、トラブルチエツク処理サブルーチンプロ
グラム5B291を実行する。
やがて動作モード等プリントに関する指示がユーザシス
テムから供給されるとステップP2906の判断結果は
イエスになるので、動作モード等をローカルモードマツ
プ45とグローバルモードマツプ44とに書き込む(ス
テップP 2907 )。
もちろん、このとき送信要求フラグTRもセットされる
。その後、マイクロプロセッサ61はフラグJOBAC
Tを「1」に設定し、トラブルチエツク処理サブルーチ
ンプログラム5B291を実行する。
このようにフラグJ OBACTが「1」に設定される
と、ステップP2902の判断結果がイエスになり、マ
イクロプロセッサ61はジョブシーケンスを実行する(
ステップP2903)。この後、マイクロプロセッサ6
1は上記ジョブシーケンスが終了!ノだか否かを判断し
くステップP2904)、ステップP2904の判断結
果がイエスなら、マイクロプロセッサ61はステップP
2905に進んで、待機状態を表示すべくフラグJOB
ACTをrOJに設定する。ステップP2905の終了
後、またはステップP2904の判断結果がノーの場合
には、マイクロプロセッサ61は後述するトラブルチエ
ツク処理サブルーチンプログラム5B291を実行する
。
トラブルチエツクサブルーチンプログラム5B291の
詳細手順は第30図に示されており、トラブルチエツク
サブルーチンプログラム5B291がステップP300
1で開始されると、マイクロプロセッサ61はチエツク
の対象となるSSCとして5SC22を特定しくステッ
プP 3002)、すでに取り込んであるチエツク対象
となっているSSCのERRORピッI・に関する詳細
ステータス情報の受信通知フラグRRが「1」であるか
否かをチエツクする(ステップP3003)。もし、受
信通知フラグRRが「1」ならば、マイクロプロセッサ
61は該詳細ステータス情報に付されている受信通知フ
ラグRRを「0」にリセットしくステップP3004)
、続いて、ステップP3005において詳細ステータス
情報に基づくエラー処理(ERROR処理)を実行する
。このERROR処理においては、トラブル箇所の表示
等がなされる。この後、マイクロプロセッサ61はステ
ップP3006に進む。
これに対して、もし受信通知フラグRRが「0」ならス
テップP3003の判断結果はノーになり、マイクロプ
ロセッサ61は直接ステップP3006に進み、FAT
ALビットに関する詳細ステータス情報の受信通知フラ
グRRが「1」であるか否かを判断する。もし、ステッ
プP3006の判断結果がイエスなら、マイクロプロセ
ッサ61はステップP3007において受信通知フラグ
RRを「0」にリセッ)−シ、続いてステップP300
8に進んてFATAL処理を実行する。このFATAL
処理では、復帰不可能なトラブルであることの表示等が
実行される。この後、マイクロプロセッサ61はステッ
プP3009に進む。
一方、ステップP3006の判断結果がノーの場合には
、マイクロプロセッサ61はステップP3009に進み
、チエツク対象のSSCを変更して、全SSCについて
詳細ステータス情報のチエツクが終了したか否かを判断
する(ステップP3010)。MSC21が全SSCに
ついて詳細ステータス情報のチエツクを終了していない
なら、ステップP3010の判断結果はノーになり、マ
イクロプロセッサ61はステップP3003に戻ってス
テップP3003〜ステップP3010て構成されるル
ープをステップP3010の判断結果がイエスになるま
で繰り返し実行する。これに対して、ステップP301
0の判断結果がイエスなら、全SSCに間して詳細ステ
ータス情報のチエツクが終了しており、マイクロプロセ
ッサ61はジョブ処理サブルーチンプログラムに復帰す
る。
(以下余白)
SSCのバー′ エア
SSCのハードウェアの構成は概略第6図に示されてい
るが、送信バッファ47とその関連回路の構成が第31
図に示されている。図示されているように、ステータス
レジスタ33 (GSTAT−REG)、レポートレジ
スタ37 (REPO−REG)、ローカルモードマツ
プ34 (LM−MAP)等はそれぞれ情報をフレーム
単位で記憶しており、MSC21に予め検索された情報
等、MSCに供給すべき情報のアドレスはアドレスバッ
ファ3101にフレーム単位で記憶されている。
このように送信すべき情報とそれらの情報の記憶されて
いるアドレスとを異なるバッファにそれぞれ保持してお
くことができる。このように、予め情報を記憶している
メモリのアドレスを検索して保持しているので、MSC
からの送信要求時に対して短時間でレジスタ等から情報
を読み出し、フレームに変換してからキャラクタ単位で
一時的に送信バッファ3102に保持し、送信レジスタ
3103を介してマクロシステムインターフェース27
に送出することができる。また、全SSCに対する送信
要求が一巡し、再び送信要求を受けたとき、途中で情報
が何度更新されても最新の情報をMSC21に供給する
ことができる。ただし、ステータスレジスタ33は直接
送信バッファ3102に情報を供給できる。これは、ス
テータスアンサを可及的速やかに送出てきるようにする
ためである。なお、本実施例ではアドレスバッファ31
01に登録可能なアドレス数は比較的少数に制限してい
る、これは、登録されるアドレス数を多くすると、特定
SSCからのレポートが多くなり、ポーリングの周期が
長くなるのを防止するためである。
SSCにより −されるプログラム
以下、各SSCにより実行されるプログラムを説明する
。プログラムの説明に先立ち各プログラムの説明で使用
される代表的なフラグ等の意味につきまず説明する。
一グおよ バーノー
CCNT:受信したフレーム中のキャラクタ位置を示す
カウントデータであり、SSCのマイクロプロセッサ6
1が受信データを解析する際に使用される。
JOBACT: SSCがジョブ処理中であることを示
すフラグであり、 「1」にセットされているなら、ジ
ョブ処理中、 「0」にリセットされているなら待機中
であることを示す。
LOOPF: SSCのメインループの周期を制御する
フラグあり、このフラグが「1」に設定されていると、
ジョブ処理を実行するタイミングに達したことが示され
る。
MSIFS:MSIF監視サブルーチンプログラムの実
行段階を示すパラメータであり、 「0」〜「3」のい
ずれかの値に設定される。
5TOPF:ジョブ制御処理の強制終了要求フラグであ
る。
5YSWAIT:ジョブ制御処理の実行禁止フラグ。
TYPE:モードセットのタイプを表すフラグであり、
ストリングタイプのモードセットの場合は「1」にセッ
トされる。
SSC・ −れる ロ −ムの
第32図はSSCて実行されるプログラムの概略構成を
示すフローチャート図であり、同図からも明らかなよう
に、SSCは電源投入時に実行が開始されるメインルー
チンプログラムと、3つの互いに独立した割り込みプロ
グラムとで構成されている。
まず、電源を投入すると、電源オンイベントとなりEV
Iとなり、各SSCのマイクロプロセッサ61(以下、
単にマイクロプロセッサ61という)は、後に詳述する
SSC初期化サブルーチンプログラム5B501を実行
し、続いてMSIF処理サブルーチンプログラム5B5
02を実行する。このMSIF処理サブルーチンプログ
ラム58502の手順についても後に詳述する。MSI
F処理サブルーチンプログラムの完了を判断して(ステ
ップP3201)、マイクロプロセッサ61はジョブ処
理サブルーチンの実行可能を示すメインループタイミン
グの到来を判断しくステップP3202)、メインルー
プタイミングの到来が検出されるとジョブ処理サブルー
チンプログラム5B503を実行する。かかるMSIF
処理サブルーチンプログラム5B502〜ジョブ処理サ
ブルーチンプログラム5B503で構成されるループの
実行中に各SSCの割り込みタイマー66が所定期間の
計時を終了すると、タイマー割り込みイベントEV12
が発生し、マイクロプロセッサ61はメインループタイ
ミングの発生を制御するためにメインループタイマー処
理サブルーチンプログラム5B504をまず実行し、続
いて、ジョブ制御タイマー処理サブルーチンプログラム
5B506を実行し、タイマー割り込みイベント発生時
のメインルーチンプログラムのステップに復帰する。受
信割り込みイベン)EV13は、SSCの受信レジスタ
が1キヤラクタをラッチすると発生し、フレームの解析
やMSCに対するアンサの送出等を含む受信データ処理
サブルーチンプログラム5B506が実行される。一方
、SSCの送信レジスタ3103内の最初のキャラクタ
がマクロシステムインターフェース27に送出されると
、送信割り込みイベン)EV14が発生し、送信割り込
みイベン)EV14の発生により送信データ処理サブル
ーチンプログラム5B507が実行される。この送信デ
ータ処理サブルーチンプログラム5B507では、SS
Cの送信バッファ3102内のフレームを順次マクロシ
ステムインターフェース27に送出する。以上、SSC
で実行されるプログラムの概要を説明したが、以下、各
プログラムの詳細手順を説明する。
第33図はメインルーチンプログラムの詳細手順を示す
フローチャート図であり、メインルーチンプログラムは
上述のように電源オンイベントEV1の発生で開始され
、まず、マイクロプロセッサ61の内部回路の初期化を
実行しくステップP3302)、その後、ローカルモー
ドマツプ34゜グローバルモードマツプ35およびコマ
ンドレジスタ32をそれぞれクリアする(ステップP3
303)。しかる後、マイクロプロセッサ61はステー
タスレジスタ33の05ビツト(NOT READY
ビット)を「1」にセットして初期化実行中であること
を示す。次に、フラグ5YSWAITを「1」にセット
してジョブ制御処理の実行を禁止しくステップP330
5)、パラメータMSIFSを、「0」に設定して後続
するMS I F監視サブルーチンプログラム5B51
1の実行の準備をする(ステップP3306)。更に、
マイクロプロセッサ61はステップP3307において
メインループタイマーをセットし、メインループタイミ
ングの発生を可能にする。このような一連の準備が終了
すると、マイクロプロセッサ61は割り込み許可フラグ
をセットして上述の各種別り込みを可能にする(ステッ
プP3308)。
このようにしてSSC初期化サブルーチンプログラム5
B501が完了すると、マイクロプロセッサ61はMS
I P監視サブルーチンプログラム5B511、そし
て、送信要求処理サブルーチンプログラムSB512を
順次実行する。
MSIF監視サブルーチンプログラム5B511は第3
4図に示されているようにステップP3400において
開始され、SSCのマイクロプロセッサ61はステップ
P3401においてMSC21からリセットコマンド(
RESET)がすでに供給されているか否かを判断しく
第18図に示されているMSIF監視サブルーチンプロ
グラムのステップP1813を参照)、その判断結果が
ノーならステップP3407に進みパラメータMSIF
Sが「1」にセットされているか否かを判断する。パラ
メータMSIFSはステップP3306において「O」
にセットされているので、当初はステップP3407の
判断結果はノーになり、マイクロプロセッサ61は更に
ステップP3411に進み、パラメータMSIFSが「
2」であるか否かを判断する。ステップP3411でも
、当初はその判断結果がノーになるので、マイクロプロ
セッサ61は直ちにメインルーチンプログラムに復帰す
る。やがて、MSC21からりセットコマントが供給さ
れると、ステップP3401の判断結果がイエスになる
ので、マイクロプロセッサ61はステップP3402に
進んでリセットコマンドに付されている取り込み確認ピ
ッ)Qを「0」にリセットする。その結果、MSC21
は次のコマンドを送信可能になる。なお、リセットコマ
ンドに対するステータスアンサは受信データ処理サブル
ーチンプログラム5B506においてなされるので、メ
インルーチンプログラムではステータスアンサに関する
処理はなされない。次に、マイクロプロセッサ61はス
テータスレジスタの65ビツトを「1」にセットしくス
テップP3403)、続いてフラグ5YSVi/AIT
が「0」であるか否かを判断する(ステップP 340
4)。フラグ5YSVv’AITはステップP3305
で「1」に設定されているので、MSIP監視サブルー
チンプログラムの未完了時では、ステップP 3404
の判断結果は通常ノーになる。したがって、マイクロプ
ロセッサ61はステップP3405を実行することなく
ステップP3406に進む。しかしながら、既にSSC
が動作中にリセットコマンドを受信した場合には、フラ
グ5YSWAITは「0」にリセットされているので、
マイクロプロセッサ61はステップP3405でフラグ
5TOPFを「1」にセットしてジョブ処理を強制的に
停止させてからステップP3406に進む。フラグ5T
OPFはジョブ処理の中断が終了すると「0」にリセッ
トされる。
ステップP3406では、パラメータMSiFSを「1
」にセットし、続くステップP3407でパラメータM
SIFSが「1」であるか否かを判断する。もし、パラ
メータMSIFSが「0」であるなら、マイクロプロセ
ッサ61はステップP3407をノーと判断し、ステッ
プP3411を経てメインルーチンプログラムに復帰す
る。反対に、パラメータMSIFSが「1」であるなら
、ステップP3407の判断結果はイエスなので、マイ
クロプロセッサ61はフラグ5TOPFが「0」である
か否かを判断し、その判断結果がノーなら、マイクロプ
ロセッサ61はステップP341】を経てメインルーチ
ンプログラムに復帰する。
これに対して、ジョブ処理が一旦中断された後にフラグ
5TOPFが「0」にリセットされた場合などフラグ5
TOPFが「0」なら、マイクロプロセッサ61はこれ
をステップP3408で検出してその判断結果(イエス
)に基づきローカルモードマツプ34の初期化を実行す
る。このようにしてローカルモードマツプ34が初期化
されると、マイクロプロセッサ61はローカルモードマ
ツプ34に保持されている情報の送信要求フラグTRを
「1」にセットして、その内容をMSC21に通知する
準備をする(ステップP3409)。このようにして送
信要求フラグTRのセットされた情報は後述する送信要
求処理サブルーチンプログラム5B512、送信データ
処理サブルーチンプログラム5B507の実行によりM
SC21に送出される。
この後、マイクロプロセッサ61はステップP3410
でフラグ5YSWAIT、MSIFSをそれぞれ「1」
、 「2」に設定し、ステップP3411に進んでパラ
メータMSIFSが「2」に設定されているか否かを判
断する。ステップP3411の判断結果がノーの場合に
は、マイクロプロセッサ61はメインルーチンプログラ
ムに復帰し、その判断結果がイエスの場合にはステップ
P3412に進んでローカルモードマツプ34内の全で
の情報がM S C21に送出されたか否かを判断する
。ステップP3412の判断結果がノーなら、マイクロ
プロセッサ61はメインルーチンプログラムに復帰し、
その判断結果がイエスならステップP3413に進んで
パラメータMSIFSを「3」に設定すると共に、ステ
ータスレジスタの65ビツト(NOT READY)
を「0」にリセットする。この後、マイクロプロセッサ
61はフラグ5YSWAITを「0」にリセットして(
ステップP3414)メインルーチンプログラムに復帰
する。したが一つて、ローカルモードマツプ34内に保
持されている全ての情報がMSC21に送信されるまで
、フラグ5YSWAITは「1」を維持し、ジョブ処理
の実行は禁止されることになる。
次に、第35図を参照して送信要求処理サブルーチンプ
ログラム5B512の手順を説明する。
送信要求処理サブルーチンプログラム5B512はMS
I F監視サブルーチン5Bi511からメインルー
チンプログラムに復帰すると直ちにステップP3501
において開始され、まず、アドレスバッファ3101に
空きがあるか否かを判断する(ステップP3502)。
アドレスバッファ3101に空きがなければ、マイクロ
プロセッサ61はステップP3502をノーと判断して
直ちにメインルーチンプログラムに復帰し、空きがあれ
ばステップP3502をイエスと判断してローカルモー
ドマツプ34内に保持されている情報に付された送信要
求ピッ)TRを検索する(ステップP3503)。もし
、特定のローカルモードマツプ34に送信要求フラグT
Rの「1」に設定された情報がなければ、マイクロプロ
セッサ61はステップP3504をノーと判断してステ
ップP3508に進み、反対にその判断結果がイエスな
ら、当該送信要求フラグTRが「1」に設定されている
情報のアドレスは既にアドレスバッファ3101に登録
されているか否かを判断する(ステップP3505)。
もし、アドレスが既にアドレスバッファ3101に登録
されていれば、マイクロプロセッサ61はステップP3
505をノーと判断してステップP3507に進み、反
対に未登録であれば、マイクロプロセッサ61はステッ
プP3506に進んでそのアドレスをアドレスバッファ
3101に登録する。こうして、ステップP3507に
進んだマイクロプロセッサ61は送信要求フラグTRの
セットされた情報のアドレス登録を全ローカルモードマ
ツプ34について終了したか否かを判断し、その判断結
果がノーならステップP3503に戻り、その判断結果
がイエスならステップP350Bに進んで再びアドレス
バッファ3101に空きがあるか否かを判断する。ステ
ップP3508の判断結果がノーならメインルーチンプ
ログラムに復帰し、反対にイエスならステップP350
9に進む。マイクロプロセッサ61はステップP350
9においてMSC21に送信すべきレポートがあるか否
かを判断する。もし、ステップP3509の判断結果が
ノーならステップP3512に進み、反対に、その判断
結果がイエスなら、マイクロプロセッサ61はステップ
P3510において上記レポートを記憶しているメモリ
のアドレスがアドレスバッファ3101に未登録か否か
を判断する。もし、アドレスが既に登録されていれば、
マイクロプロセッサ61はステップP3512に進み、
反対に未登録ならステップP3511において上記アド
レスをアドレスバッファ3101に登録した後にステッ
プP3512に進む。
ステップP3512においては、まず、ローカルモード
マツプ34のアドレスrOcHJ (第14図参照)
を参照してレポートモードであるか否かを判断し、レポ
ートモードでなければメインルーチンプログラムに直ち
に復帰し、レポートモードならMSC12に送信すべき
ステータスがあるか否かを判断する(ステップP351
3)。もし、MSC21に送信すべきステータスがなけ
ればメインルーチンプログラムに直ちに復帰し、もし、
そのようなステータスがあればステップP3514に進
んで該ステータスを記憶しているメモリのアドレスがア
ドレスバッファ3101に未登録であるか否かを判断す
る。もし、既に登録されていれば、直ちにメインルーチ
ンプログラムに復帰し、反対に、未登録であればアドレ
スをアドレスバッファ3101に登録してからメインル
ーチンプログラムに復帰する。
再び、第33図に戻ってメインルーチンプログラムの手
順の説明を続ける。送信要求処理サブルーチンプログラ
ム5B512からメインルーチンプログラムに復帰する
と、マイクロプロセッサ61はフラグ5YSWAITを
チエツクして該フラグ5YSWAITが「0」にリセッ
トされているか否かを判断する(ステップP3309)
。もし、フラグ5YSWAITが「1」にセットされた
ままなら依然として初期イヒの実行中なので、マイクロ
プロセッサ61は再びMS I F監視サブルーチンブ
ログラム5B511を実行する。これに対して、フラグ
5YSWAITが既に「0」にリセットされているなら
、マイクロプロセッサ61はフラグLOOPFが「1」
にセットされているか否かを判断しくステップP331
0)、もし、その判断結果がノーなら、メインループタ
イミングは未到来なので、MS I F監視サブルーチ
ンプログラム5B511を再び実行してメインループタ
イミングの到来を待つ。もし、メインループタイミング
が到来すると、ステップP3310の判断結果がイエス
になるので、マイクロプロセッサ61はステップP33
11に進んでフラグLOOPFを「0」にリセットして
次回のメインループタイミングの到来までジョブ処理の
実行を禁止する。
ステップP3311の実行後、マイクロプロセッサ61
は一連のジョブ処理を実行してプリント用紙上に所定の
像を形成することを可能にする(ステップP3312〜
ステップP3313)。このように、マイクロプロセッ
サ61はメインルーチンプログラムにおいてサブルーチ
ンプログラム5B511〜P3313からなるループを
繰り返し実行する。
次に、タイマー割り込みイベン)EV12発生時に実行
されるサブルーチンプログラム5B504.505の手
順について第36図を参照してメインループタイマー処
理サブルーチンプログラム5B504が開始されると、
マイクロプロセッサ61はステップP3601でメイン
ループタイマーの値を歩進させ、歩進されたメインルー
プタイマーの値がメインループタイミングの到来を示す
値に達したか否かを判断する(ステップP3602)。
もし、ステップP3602の判断結果がノーなら、マイ
クロプロセッサ61はステップP3604に進み、反対
に、その判断結果がイエスならフラグLOOPFを「1
」に設定してジョブ処理を可能にし、メインループタイ
マーに初期値を設定して再びメインループタイミングの
到来までの時間間隔を計る(ステップP3603)。
続いて、マイクロプロセッサ61はシーケンスタイマー
処理をステップP3604で実行し、続いて、レポート
モードであるか否かを判断する(ステップP3605)
。もし、レポートモードで無ければ、マイクロプロセッ
サ61はステップP3611に進み、反対に、レポート
モードであればステップP3606に進んでアドレスバ
ッファ3101に送信すべきデータのアドレス情報があ
るか否かを判断する。もし、アドレスバッファ3101
に上記アドレス情報がなければ、マイクロプロセッサ6
1は直ちにステップP3611に進み、反対に、アドレ
スバッファ3101にアドレス情報があればステップP
3607に進んで送信バッファ3102にデータがある
か否かを判断する。もし、送信バッファ3102にデー
タがなければ、マイクロプロセッサ61はステップP3
611に進み、反対にデータがあればステップP360
8に進んでアドレスバッファ3101内のアドレス(以
下、指定アドレス)で指定されているメモリ位置に保持
されている情報をフレームに変換して送信バッファ31
02に転送する。このようにして送信バッファ3102
内に保持されて情報は、送信割り込みイベン)EV14
の発生時に送信データ処理サブルーチンプログラム5B
507の実行によりマクロシステムインターフェース2
7に送出される。マイクロプロセッサ61は、このよう
にして、情報を送信バッファ3102に転送した後、ア
ドレスバッファ3101から上記指定アドレスを削除し
くステップP3609)、該指定アドレスに保持されて
いる情報に付されている送信要求ビットTRを「0」に
リセットする。
このようにしてアドレスバッファ3101に保持されて
いるアドレスで指定されている情報の送信準備が完了す
ると、マイクロプロセッサ61はステップP3611に
進んで、送信中の情報の有無を判断する。もし、送信中
の情報が有れば、マイクロプロセッサ61は直ちにタイ
マー割り込みイベント発生時に実行していたプログラム
に復帰し、反対に、送信中の情報がなければ、送信バッ
ファ3102に空きがあるか否かを判断する(ステップ
P3612)。もし、送信バッファ3102内に依然と
して情報が保持されていると、マイクロプロセッサ61
は直ちにタイマー割り込みイベント発生時のプログラム
に復帰し、送信バッファ3102に空きがあると送信予
定の情報を送信バッファ48に転送する(ステップP3
613)。
しかる後、マイクロプロセッサ61はタイマー割り込み
イベント発生時のプログラムに復帰する。
次に、受信データ処理サブルーチンプログラム5B50
6について詳細を第37図を参照して説明する。受信割
り込みイベントが発生すると、マイクロプロセッサ61
は受信レジスタ46からキャラクタを取り込み(ステッ
プP3701)、受信エラーの発生の有無を判断する(
ステップP3702)。もし、受信エラーが発生してい
るなら、マイクロプロセッサ61はステップP3703
に進んで所定のエラー処理を実行し、受信エラー未発生
時には、ステップP3703を実行することなくステッ
プP3704に進み、カウントデータCCNTが「0」
であるか否かを判断する。すでに説明したように、フレ
ーム受信開始時には、カウントデータCCNTはrOJ
なので、ステ・ンブP3704の判断結果はイエスとな
り、マイクロプロセッサ61は受信したキャラクタがI
Dキャラクタであるか否かを判断する(ステップP37
05)。カウントデータCCNTが「0」であるにもか
かわらず、受信したキャラクタがIDキャラクタではな
いと判断されると、通信中に異常力で発生した可能性が
あるので、マイクロプロセッサ61は以後の処理を中止
して直ちに受信割り込みイベント発生時に実行していた
プログラムに復帰する。これに対して、ステップP37
05で受信されたキャラクタがIDキャラクタであると
判断されるなら、マイクロプロセッサ61はIDキャラ
クタの識別コードとエリアコードとをそれぞれデータI
DS、IDUとして取り込むと共にカウントデータCC
NTを「2」に設定する(ステップP3706)。この
ようにして、データIDS。
IDUが形成されると、マイクロプロセッサ61はデー
タIDSに基づき受信したキャラクタが特定のSSCを
対象としているか否かを判断する(ステップP3707
)。もし、ステップP3707の判断結果がノーなら、
受信中のフレームはMSC21のグローバルモードマツ
プ35から全SSCに共通して送信されたものなので、
マイクロプロセッサ61は直ちに受信割り込みイベント
発生時に実行されていたプログラムに復帰する。これに
対して、ステップP3707の判断結果がイエスなら、
マイクロプロセッサ61は受信したキャラクタが自らを
対象にして送信されたものか否かを判断しくステップP
370B)、その判断結果がイエスなら直ちに受信割り
込み発生時に実行されていたプログラムに復帰する。こ
れに対して、受信したキャラクタが他のSSCを対象に
しているなら、マイクロプロセッサ61はステップP3
709にて自らを送信対象とするフレームの受信に備え
てカウントデータを「0」に初期設定してから受信割り
込みイベント発生時に実行されていたプログラムに復帰
する。受信フレームが自らを送信対象とし、かつ、ステ
ータスリクエストの場合は(ステップP3710)、1
キヤラクタフレームなのでステータス/コマンド処理サ
ブルーチン5B521を実行する。
これに対して、ステップP3704の判断結果がノーの
場合には、マイクロプロセッサ61はステップP371
1に進んで、受信したキャラクタはデータキャラクタで
あるか否かを判断する。もし、ステップP3711の判
断結果がノーなら、受信したキャラクタはIDキャラク
タなので、マイクロプロセッサ61はステップP370
6に進み、上記ステップP3706〜ステップP371
0を実行する。これに対して、受信したキャラクタがデ
ータキャラクタであれば、マイクロプロセッサ61は受
信中のフレームがモードセットまたはモードリクエスト
か否かを判断する(ステップP3712)。もし、ステ
ップP3712の判断結果がノーなら、受信中のフレー
ムはシーケンスコマンドなので、マイクロプロセッサ6
1はステータス/コマンド処理サブルーチンプログラム
58521を実行し、反対に、ステップP3712の判
断結果がイエスなら、マイクロプロセッサ61はステッ
プP3713で受信中のフレームはモ−ドリクエストで
あるか否かを判断する。もし、受信中のフレームがモー
ドリクエストなら、ステップP3713の判断結果はイ
エスになり、マイクロプロセッサ61はモードリクエス
ト処理サブルーチンプログラム5B523を実行する。
これに対して、ステップP3713の判断結果がノーな
ら、受信中のフレームはモードセットなので、マイクロ
プロセッサ61はモードセット処理サブルーチンプログ
ラム5B522を実行する。これら3つのサブルーチン
プログラムの手順は以下に詳述する。
まず、ステータス/コマンド処理サブルーチンプログラ
ム5B521の詳細手順を第38図を参照して説明する
。ステータス/コマンド処理サブルーチンプログラムは
ステップP3801で開始され、マイクロプロセッサ6
1はステップP3802で受信中のフレームはステータ
スリクエストであるか否かを判断する。もし、受信中の
フレームがシーケンスコマンドであるなら、ステップP
3802の判断結果はノーになり、マイクロプロセッサ
61はカウントデータCCNTが「3」であるか否かを
判断する(ステップP3803)。
IDキャラクタに続くデータキャラクタ1を受信した場
合は、カウントデータが「1」になっているので、ステ
ップP3803の判断結果はノーになり、マイクロプロ
セッサ61は受信したデータキャラクタを一時レジスタ
1に転送し、カウントデータな「3」に設定(ステップ
P3804) して受信デー・夕処理サブルーチンプロ
グラム5B506に復帰する。これに対して、データキ
ャラクタ2が受信されたときは、カウントデータCCN
TはステップP3804で「3」に設定されているので
、マイクロプロセッサ61はステップP3803をイエ
スと判断してステップP3805に進み、前回供給され
たコマンドがコマンドレジスタ32からマイクロプロセ
ッサ61に供給されて処理が実行されたか否かを判断す
る。既に、前回のコマンドに関する処理が実行されたな
らく取り込み確認ピッ)Qが「0」にリセットされてい
る)、ステップP3805の判断結果はイエスになるの
て、マイクロプロセッサ61はステップP3806に進
んで一時レジスタに保持していたデータキャラクタlと
共に受信したデータキャラクタ2をコマンドレジスタ3
2に供給して保持する。これに対して、ステップP38
05の判断結果がノーなら、マイクロプロセッサ61は
ステップP3806を実行することなく直接ステップP
3807に進む。続いて、マイクロプロセッサ61はス
テップP3807にてレポートモードか否かを判断し、
ステップP3807の判断結果がノーならマイクロプロ
セッサ61はステップP3812に進む。これに対して
、ステップP3807の判断結果がイエスなら、マイク
ロプロセッサ61はステータスレジスタ33に保持され
ている情報の送信要求フラグを「1」にセットしくステ
ップP3808)、続いてアドレスバッファ3101に
空きがあるか否かを判断する(ステップP 3809)
、もし、アドレスバッファ3101に空きがなければ、
マイクロプロセッサ61はステップP3812に進み、
アドレスバッファ3101に空きがあれば、ステップP
3808にて送信要求フラグを「1」にセットした情報
のアドレスを登録して(ステップP3810)ステップ
P3812に進む。
これに対して、ステップP3802の判断結果がイエス
なら、マイクロプロセッサ61はポーリングモードか否
かを判断しくステップP3811)、その判断結果がノ
ーならステップP380Bに進む。これに対して、ステ
ップP3811の判断結果がイエスなら、マイクロプロ
セッサ61はポーリングアンサ処理サブルーチンプログ
ラム5B531を実行してステップP3812に進む。
ステップP3812では、カウントデータCCNTを「
0」に初期設定して次回の受信データ処理サブルーチン
プログラムの実行に備え、その後、受信データ処理サブ
ルーチンプログラムに復帰する。
上記ポーリングアンサ処理サブルーチンプログラム5B
531の詳細手順は第39図に示されており、このサブ
ルーチンプログラム5B531はステップP3901に
て開始する。マイクロブロセッサ61はステップP39
02に進んで、ステータスレジスタ33に保持されてい
る情報の送信要求フラグTRをリセットする。続いて、
アドレスバッファ3101に送信すべき情報のアドレス
が登録されているか否かを判断しくステップP3902
)、もし、アドレスが登録されていなければ、マイクロ
プロセッサ61は、フレーム継続ビットNが「0」のス
テータスアンサを送信バッファ48に送出し°Cその送
信準備をする(ステップP3904)。このように、フ
レーム継続ビットNが「0」のステータスアンサについ
て送信準備が終了すると、マイクロプロセッサ61はス
テップP3915に進む。
これに対して、アドレスバッファ3101に送信すべき
情報のアドレスが登録されていてステップP3903の
判断結果がイエスになる場合には、マイクロプロセッサ
61は、フレーム継続ビットNが「1」のステータスア
ンサを送信バッファ3102に供給して送信準備をし、
(ステップP3905)、続いて、ステップP390
6にてアドレスバッファ3101にシーケンスレポート
のアドレスが登録されているか否かを判断する。もし、
シーケンスレポートのアドレスが登録されているなら、
該シーケンスレポートのアドレスをアドレスバッファ3
101から削除すると共に、レポートレジスタ37内に
保持されているレボ−1・情報゛に付されている送信要
求フラグTRをリセットする(ステップP3907)。
この後、マイクロプロセッサ61は送信すべき情報の保
持されているアドレスがアドレスバッファ3101に登
録されているか否かを判断しくステップP3908)、
ステップP3908の判断結果がノーなら、フレーム継
続ビットNが「0」のシーケンスレポートを送信バッフ
ァ3102に供給して送信準備をしくステップP390
9)、反対に、ステップP3908の判断結果がイエス
なら、フレーム継続ビットNが「1」のシーケンスレポ
ートを送信バッファ3102に供給して送信準備をする
(ステップP3910)。
次に、マイクロプロセッサ61はアドレスバッファ31
01内をチエツクして送信すべきストリングタイプのモ
ードアンサのアドレスが登録されているか否かを判断す
る(ステップP3911)。
もし登録されていれば、マイクロプロセッサ61は該ア
ドレスをアドレスバッファ3101から削除し、モード
アンサを構成する情報に付されていた送信要求ビットT
Rをリセットする(ステップP3912)。しかる後、
マイクロプロセッサ61はストリングタイプのモードア
ンサを送信バッファ48に供給して保持させ、送信準備
を完了する。この後、マイクロプロセッサ61は終了コ
ードを送信バッファ3102に送出して保持させる。
このように、本実施例では、ストリングタイプのモード
アンサについては、その全てのデータキャラクタを送信
バッファ3102に保持させる以前に終了コードを付加
する。これは、ストリングタイプのモードアンサは通常
多数のデータキャラクタで構成されるので、全てを同時
に処理していては、1回の応答に長時間を消費して他の
SSCに対する通信が遅くなるからである。
これに対して、ステップP3911の判断結果がノーな
ら、マイクロプロセッサ61はアドレスバッファ310
1をチエツクしてワードタイプのモードアンサのアドレ
スが登録されているか否かを判断し、もし、そのような
アドレスが未登録なら、マイクロプロセッサ61は直ち
にステップP3915に進み、反対に、ワードタイプの
モードアンサが登録されていれば、まず、そのアドレス
をアドレスバッファ3101から削除し、ワードタイプ
のモードアンサを構成する情報に付されていた送信要求
ビットTRをリセットする(ステップP3917)。こ
の後、マイクロプロセッサ61はワードタイプのモード
アンサを送信バッファ3102に送出して保持し、続い
て、他のワードタイプのモードアンサのアドレスがアド
レスバッファ3101に登録されていないか否かを判断
する(ステップP3919)。もし、他のアドレスが登
録されていれば(すなわち、判断結果がノーなら〉、マ
イクロプロセッサ61は再びステップP3917に戻っ
てステップP3919の判断結果がイエスになるまでス
テップP3917〜ステップP3919で構成されるル
ープを繰り返し実行し、ステップP3919の判断結果
がイエスになると、マイクロプロセッサ61はステップ
P3914に進んで終了コードを送信バッファ3102
に供給する。
このようにして、送信バッファ3102に保持されたフ
レームは、ステップP3915において1キヤラクタず
つ送信バッファ3102から送信レジスタ3103に転
送され、ステータス/コマンド処理サブルーチンプログ
ラム5B521のステップP3812に進む。こうして
、送信レジスタ3103に保持されたキャラクタは送信
データ処理サブルーチンプログラム5B507の実行に
よりMSC21に送出される。
次に、モードセット処理サブルーチンプログラム5B5
22の手順を第40図を参照しつつ説明する。モードセ
ット処理サブルーチンプログラム5B522がステップ
P4001において開始されると、マイクロプロセッサ
61は、まず、カウントデータCCNTをチエツクして
、カウントデータCCNTの値が「5」であるか否かを
判断する(ステップP4002)。データキャラクタ1
の受信時には、カウントデータCCNTは通常「2」に
設定されているので、ステップP4002の判断結果は
ノーになる。したがって、マイクロプロセッサ61はス
テップP4003に進み、再びカウントデータCCNT
をチエツクしてその値が「2」であるか否かを判断する
。データキャラクタ1の受信時には、カウントデータC
CNTは前述のように「2」に設定されているはずであ
り、ステップP4003に判断結果はイエスになる。
モードセットの場合、データキャラクタ1はマツプアド
レスMに割り当てられているので、マイクロプロセッサ
61はステップP4004に進んでマツプアドレスMを
アドレスレジスタに転送して保持する。次に、カウント
データCCNTを「4」に設定し、フラグTYPEをリ
セットする(ステップP4005)。次に、ステップP
4004でアドレスレジスタに保持したマツプアドレス
を参照してストリングエリア36が指定されているか否
かを判断する(ステップP4006)。もし、ステップ
P4006の判断結果がイエスなら、マイクロプロセッ
サ61はステップP4007に進んでカウントデータC
CNTを「3」に設定すると共に、フラグTYPEを「
1」にセットして、受信データ処理サブルーチンプログ
ラム5B506に復帰する。これに対して、ステップP
4006の判断結果がノーなら、マイクロプロセッサ6
1はステップP4007を実行することなく受信データ
処理サブルーチンプログラム5B506に復帰する。や
がてデータキャラクタ2が受信されモードセット処理サ
ブルーチンプログラム5B522が開始すると、ステッ
プP 4002. ステップP4003の判断結果は
いずれもノーになるので、マイクロプロセッサ61はス
テップP4008に進み、カウントデータCCNTが「
3」であるか否かを判断する。上述してステップP40
05〜ステップP4007の処理により、ストリングタ
イプのモードセットでは、カウントデータCCNTは「
3」に、ワードタイプのモードセットでは「4」にそれ
ぞれ設定されているので、受信中のフレームがストリン
グタイプのモードセットならステップP400Bの判断
結果はイエスに、ワードタイプのモードセットなら判断
結果はノーとなる。それて、受信中のフレームがストリ
ングタイプのモードセットなら、データキャラクタ2は
データ長を表しているので、マイクロプロセッサ61は
データキャラクタ2をデータカウンタに転送して保持す
る(ステップP4009)。この後、マイクロプロセッ
サ61はステップP4011に進む。これに対して、受
信中のフレームがワードタイプのモードセットなら、デ
ータキャラクタ2は設定データの第1バイトなので、マ
イクロプロセッサ61は受信したデータキャラクタ1を
一時レジスタ1に保持しくステップP4010)、カウ
ントデータCCNTを「1」歩進させる(ステップP4
011)。いずれのタイプであっても、マイクロプロセ
ッサ61はステップP4011の実行後に受信データ処
理サブルーチンプログラム5B506に復帰する。
やがて、データキャラクタ3が受信されると、ストリン
グタイプのモードセットの場合は、カウントデータCC
NTが「4」なので、ステップP4002、 ステッ
プP 4003. ステップP4008の判断結果は
いずれもノーになり、ステップP4010でデータキャ
ラクタ3を一時レジスタに保持した後、データカウンタ
CCNTを「1」歩進させて受信データ処理サブルーチ
ンプログラム5B506に復帰する。これに対して、ワ
ードタイプのモードセットの場合、およびデータキャラ
クタ4を受信したストリングタイプのモードセットの場
合には、ステップP4002の判断結果がイエスになる
ので、マイクロプロセッサ61は受信したデータキャラ
クタおよび一時レジスタ1に保持している前回受信した
データキャラクタを設定データとして保持する(ステッ
プP4012)。このステップP4012の処理におい
て、ワードタイプのモードセットの場合は、ローカルモ
ードマツプ34に保持されるが、ストリングタイプのモ
ードセットの場合は、ストリングエリアにセットされる
ことになる。次に、マイクロプロセッサ61は受信中の
フレームがストリングタイプであるか否かをフラグTY
PEを参照して判断し、その判断結果がノーの場合(す
なわち、ワードタイプ)には、データキャラクタ3の受
信で受信完了したので、ステップP4017に進み、カ
ウントデータCCNTを「0」に初期設定すると共に、
ローカルモードマツプ34に記憶した設定データの受信
通知フラグRRを「1」にセットする。これに対して、
受信中のモードセットがストリングタイプなら、ステッ
プP4013の判断結果はイエスになり、マイクロプロ
セッサ61はカウントデータを「4」に設定しくステッ
プP4014)、データカウンタに保持しているデータ
長の値を減少させる(ステップP4015)。このよう
にして、データ長の値を減少させた結果、全設定データ
が受信されたか否かをステップP4016で判断し、も
し、ステップP401 Bの判断結果がノーなら直ちに
受信データ処理サブルーチンプログラム5B506に復
帰し、反対に、ステップP4016の判断結果がイエス
なら、マイクロプロセッサ61はカウントデータCCN
Tを「0」に設定し、受信した設定データの受信通知フ
ラグRRを「1」にセットする。しかる後に、マイクロ
プロセッサ61は受信データ処理サブルーチンプログラ
ム5B506に復帰する。
次に、モードリクエストサブルーチンプログラムの手順
を第41図を参照して説明する。モードリクエストサブ
ルーチンプログラム5B523はステップP4101に
おいて開始し、ステップP4102でアドレスバッファ
3101をまず検索する。この検索に基づき、マイクロ
プロセッサ61は、受信したデータキャラクタにより表
されているマツプアドレスMがアドレスバッファ310
1に未登録であるか否かを判断しくステップP4103
)、もし、既にアドレスバッファ3101に登録されて
いれば、ステップP4103の判断結果はノーになるの
で、マイクロプロセッサ61はステップP4107に進
んでカウントデータを「0」に設定して受信データ処理
サブルーチンプログラムに復帰する。これに対して、も
し、マツプアドレスMが未登録なら、ステップP410
3の判断結果はイエスになるので、マイクロプロセッサ
61はアドレスバッファ3101に空きがあるか否かを
判断しくステップP4104)、もし、空きがあればス
テップP4105にてマツプアドレスMをアドレスバッ
ファ3101に登録してからステップP4107に進む
。これに対して、ステップP4104の判断結果がノー
なら、マイクロプロセッサ61はマツプアドレスMて指
定された情報の送信要求フラグTRをrlJにセットし
てからステップP4107に進む。ステップP4107
では、上述のように、カウントデータccNTを「0」
に設定し、その後、マイクロプロセッサ61は受信デー
タ処理サブルーチンプログラム58506を実行する。
再び第33図において、送信要求処理サブルーチンプロ
グラム5B512から復帰したマイクロプロセッサ61
は、ステップP3309においてフラグ5YSWAIT
をチエツクし、SSCの初期化が終了している(SYS
WAI T=O)か否かを判断する。フラグ5YSWA
ITはMSIF監視サブルーチンプログラム5B511
のステップP3414において「0」にリセットされる
ので、未だ、初期化が終了していなければ、ステップp
ago9の判断結果はノーになり、マイクロプロセッサ
61はSSCの初期化を継続するためにMSIF監視サ
ブルーチンプログラムを再実行する。これに対して、初
期化が完了していれば、ステップP3309の判断結果
はイエスになり、マイクロプロセッサ61はフラグLO
OPFをチエツクしてメインループタイミングが到来し
ている(LOOPF=1)か否かを判断する。もし、メ
インループタイミングが未到来なら、マイクロプロセッ
サ61はMSIF監視サブルーチンプログラムSB51
1に復帰し、反対に、メインループタイミングが到来し
ているなら、フラグLOOPFを「0」にリセットし、
ジョブ処理サブルーチンステップP3312、・・・、
ステップP3313を実行する。
ジョブ処理サブルーチンプログラムの手順は第42図に
示されており、本サブルーチンプログラムはステップP
4.201において開始され、マイクロプロセッサ6
1は、まず、フラグJOBACTが「1」に設定されS
SCが待機状態から抜は出しているか盃かを判断する(
ステップP4202)。フラグJOBACTはステップ
P4208で「1」にセットされるので、一連のジョブ
処理の開始当初では、ステップP4202の判断結果は
ノーになり、マイクロプロセッサ61はステップP42
03に進んで、コマンドレジスタ32にコマンドが保持
されているか否かを判断する。もし、ステップP420
3の判断結果がノーなら、マイクロプロセッサ61はス
テップP4204に進みローカルモードマツプ34およ
びグローバルモードマツプ35に受信したフレー11が
あるか否かを受信通知フラグRRを検索して判断する。
もし、ステップP4204の判断結果がノーなら、マイ
クロプロセッサ61はトラブルチエツクサブルーチンプ
ログラム5B541に進み、反対に、ステップP420
4の判断結果がイエスなら、受信したフレームを構成す
る情報の受信通知フラグRRを「0」にリセットしくス
テップP4205)、続いて、受信したフレームに関す
るモードの内部処理を実行する(ステップP4206)
、 この後、マイクロプロセッサ61はトラブルチエ
ツクサブルーチンプログラム5B541に進む。
やがて、コマンドレジスタ32にコマンドが保持される
と、ステップP4203の判断結果はイエスになり、マ
イクロプロセッサ61は取り込まれたコマンドの取り込
み確認ビットQを「0」にリセットしくステップP42
07)、続いて、フラグJOBACTを「1」に設定す
る(ステップP4208)。このようにしてジョブ処理
の準備が完了すると、マイクロプロセッサ61はローカ
ルモードマツプ34内に設定されているビジィ−レジス
タ(BUSY−REG)上のジョブ処理中ビットをセッ
トしくステップP4209)、トラブルチエツクサブル
ーチンプログラム5B541を実行する。
上述のように、フラグJOBACTが「1」にセットさ
れると、次回のジョブ処理サブルーチンプログラムの実
行時に、ステップP4202の判断結果はイエスになり
、マイクロプロセッサ61はステップP4210におい
てフラグS T OP F’が「0」であるか否かを判
断し、もし、その判断結果がイエスならジョブ処理の強
制的中止は要請されていないので、マイクロプロセッサ
61はローカルモードマツプ34、グローバルモードマ
ツプ35に保持されている情報とコマンドレジスタ32
に保持されているコマンドとにしたがい所定の機能の実
現を図る。もし、一連のジョブ処理が完了していれば、
ステップP4212の判断結果はイエスになるので、マ
イクロプロセッサ61はフラグJOBACTを「0」に
設定しくステップP4213)、ローカルモードマツプ
34内に設定されたビイジ−レジスタのジョブ処理中ビ
ットをリセットする(ステップP4214)。マイクロ
プロセッサ61はこの後トラブルチェックサブルーチン
プログラムを実行する。
一方、ステップP4210の判断結果がノーの場合には
、ジョブ停止シーケンス処理を実行しくステップP42
15)、ステップP4216でジョブ処理の停止が完了
したか否かを判断する。もし、ジョブ処理の停止が完了
していれば、マイクロプロセッサ61はフラグ5TOP
Fを「0」にリセットしてからトラブルチエツクサブル
ーチンプログラムを実行し、ジョブ処理の停止が完了し
ていなければ、ステップP4217を実行することなく
トラブルチエツクサブルーチンプログラムを実行する。
トラブルチエツクサブルーチンプログラムは第43図に
示されているようにステップP4301で開始され、マ
イクロプロセッサ61はローカルモードマツプ34内に
設定されているエラーレジスタ(ERROR−REG)
をチエツクし、エラーレジスタ内に保持されているエラ
ー情報はエラーの未発生を示す値「0」であるか否かを
判断する(ステップP4.301)。もし、エラー情報
が値「1」でエラーの発生を示していれば、マイクロプ
ロセッサ61はステータスレジスタ33の61ビツトを
「1」にセットしくステップP4303)、反対に、エ
ラー情報が値「0」でエラーの未発生を示していれば、
ステータスレジスタ33のG1ビットを「0」にリセッ
トする(ステップP4303)。このようにステータス
レジスタ33の01ビツトをエラー情報に応じて操作し
た後、マイクロプロセッサ61はローカルモードマツプ
34内に設定されているフエイタルレジスタ(FATA
L−REG)内のフエイタル情報が重大事故の未発生を
示す値「0」に設定されているか否かを判断する(ステ
ップP4304)。もし、フェイタル情報が値「1」で
重大事故の発生を示していれば、マイクロプロセッサ6
1はステータスレジスタ33の62ビツト(FATAL
ビット)を「1」にセットしくステップP4306)、
反対に、フェイタル情報が値「0」で重大事故の未発生
を示していれば、ステータスレジスタ33の62ビツト
を「0」にリセットする(ステップP4305)。この
ようにステータスレジスタ33の02ビツトをフェイタ
ル情報に応じて操作した後、マイクロプロセッサ61は
ローカルモードマツプ34内に設定されているビイジ−
レジスタ(BUSY−REG)内のビイジー情報がコマ
ンドやモード変更に伴う動作の不実行を示す値「0」に
設定されているか否かを判断する(ステップP4307
)。もL/% ビイジー情報が値「1」で上記コマンド
やモード変更に伴う動作実行中を示していれば、マイク
ロプロセッサ61はステータスレジスタ33の04ビツ
ト(B U S Yビット)を「1」にセットしくステ
ップP4309)、反対に、ビイジー情報が値「0」で
動作不実行を示していれば、ステータスレジスタ33の
04ビツトを「0」にリセットするくステップP430
8)。
このようにステータスレジスタ33の64ビツトをビイ
ジー情報に応じて操作した後、マイクロプロセッサ61
はローカルモードマツプ34内に設定されているノット
レディーレジスタ(NOTREAD Y−RE G)内
のノットレディー情報が初期化終了を示す値「0」に設
定されているか否かを判断する(ステップP4310)
。もし、ノットレディー情報が値「1」で初期化実行中
を示していれば、マイクロプロセッサ61はステータス
レジスタ33の65ビツト(NOT READYビッ
ト)を「1」にセットしくステップP43゛12)、反
対に、ノットレディー情報が値rOJで初期化終了を示
していれば1.ステータスレジスタ33の65ビツトを
「0」にリセットする(ステップP4311)。このよ
うにステータスレジスタ33の05ビツトをノットレデ
ィー情報に応じて操作した後、マイクロプロセッサ61
はジョブ処理サブルーチンプログラムに復帰する。[As mentioned above, since the microprocessor 61 sets the flag L OOP F to "1" at regular time intervals, the determination in step P1710 also becomes YES at regular time intervals, and with such a positive determination result, The microprocessor 61 resets the flag LOOPF to "0" in step P1711, so that after the execution of the job processing subroutine program described below is completed, the job processing subroutine program will not be executed again until a certain time interval has elapsed. do. As shown in FIG. 29, in the job processing subroutine program, first, the flag JOBACT is set to 1"1".
However, since the flag JOBACT is set to "1" in step P2908, normally,
Immediately after starting the job processing subroutine, step P290
The result of judgment 2 is no. If the determination result in step P2902 is NO, the microprocessor 61 proceeds to step 22906 and determines whether there is an instruction regarding printing. If the determination result in step P2906 is NO, the microprocessor 61 determines in step P2909 whether or not the selection of print paper has been supplied from the upper user system, and if the determination result is YES, the selection has been supplied from an external source. It is determined in step P2910 whether a paper unit is to be selected. If step P291
If the determination result of 0 is YES, the flag ENBF is checked to determine whether or not the external paper feed unit can be selected (step P2911). If the external paper feed unit is not selectable (ie, ENBF=1), the microprocessor 61 Change the paper feed port (step P2912). On the other hand, if the determination result in step P2910 is NO, the microprocessor 61 directly proceeds to step P2912, and if the determination result in step P2911 is NO, the microprocessor 61 directly proceeds to the trouble check processing subroutine program 5B291. Further, if the determination result in step P2909 is NO, the microprocessor 61 determines whether or not the sorter mode setting has been supplied from the upper user system.
2913), if the determination result in step P2913 is YES, the microprocessor 61 determines in step P2914 whether the flag ENBS is "1", that is, whether the sorter can be selected. If the judgment result in step P2914 is YES, the microprocessor 61 is set to sorter mode (step P2915), step P29
If the result of the determination in step P2915 is NO, the microprocessor 61 executes the trouble check processing subroutine program 58291 without executing step P2915. On the other hand, if the determination result in step P2913 is NO, the microprocessor 61 receives job data such as print data from the upper user system (step P2916), and executes the trouble check processing subroutine program 5B291. When an instruction regarding printing, such as the operating mode, is supplied from the user system, the determination result in step P2906 becomes YES, so the operating mode, etc. is written in the local mode map 45 and global mode map 44 (step P2907). Of course, at this time, the transmission request flag TR is also set. Thereafter, the microprocessor 61 flags JOBAC.
T is set to "1" and the trouble check processing subroutine program 5B291 is executed. When the flag J OBACT is set to "1" in this way, the determination result in step P2902 becomes YES, and the microprocessor 61 executes the job sequence (
Step P2903). After this, microprocessor 6
1: The above job sequence is completed! If the judgment result in step P2904 is YES, the microprocessor 61 executes step P2904).
Proceed to 2905 and set the flag JOB to display the standby state.
Set ACT to rOJ. After step P2905 is completed, or if the determination result in step P2904 is NO, the microprocessor 61 executes a trouble check processing subroutine program 5B291, which will be described later. The detailed procedure of the trouble check subroutine program 5B291 is shown in FIG.
1, the microprocessor 61 specifies the 5SC 22 as the SSC to be checked (step P 3002), and sends a reception notification of detailed status information regarding the ERROR pin of the SSC to be checked that has already been taken in. It is checked whether flag RR is "1" (step P3003). If the reception notification flag RR is "1", the microprocessor 61 should reset the reception notification flag RR attached to the detailed status information to "0" (step P3004).
, Subsequently, in step P3005, error processing (ERROR processing) is executed based on the detailed status information. In this ERROR process, trouble locations are displayed. After this, the microprocessor 61 proceeds to step P3006. On the other hand, if the reception notification flag RR is "0", the determination result in step P3003 is NO, and the microprocessor 61 directly proceeds to step P3006, in which the FAT
It is determined whether the reception notification flag RR of the detailed status information regarding the AL bit is "1". If the determination result in step P3006 is YES, the microprocessor 61 resets the reception notification flag RR to "0" in step P3007, and then in step P300
Proceed to step 8 to execute FATAL processing. This FATAL
In the process, a display indicating that the problem is an irrecoverable problem is executed. After this, the microprocessor 61 proceeds to step P3009. On the other hand, if the determination result in step P3006 is NO, the microprocessor 61 proceeds to step P3009, changes the SSC to be checked, and determines whether checking of detailed status information has been completed for all SSCs ( Step P3010). If the MSC 21 has not finished checking detailed status information for all SSCs, the determination result in step P3010 is NO, and the microprocessor 61 returns to step P3003 and executes the loop consisting of steps P3003 to P3010 in step P3010. Repeat the process until the result is YES. On the other hand, step P301
If the result of the determination at 0 is YES, checking of detailed status information for all SSCs has been completed, and the microprocessor 61 returns to the job processing subroutine program. (Left space below) SSC bar' The hardware configuration of the air SSC is schematically shown in Figure 6, but the configuration of the transmission buffer 47 and its related circuits is shown in Figure 31.
As shown in the figure. As shown in the figure, the status register 33 (GSTAT-REG), report register 37 (REPO-REG), local mode map 34 (LM-MAP), etc. each store information in frame units, and are stored in the MSC 21 in advance. Addresses of information to be supplied to the MSC, such as retrieved information, are stored in the address buffer 3101 in units of frames. In this way, the information to be transmitted and the addresses where the information is stored can be held in different buffers. In this way, since the address of the memory where information is stored in advance is searched and held, the MSC
In response to a transmission request from , information is read from a register etc. in a short time, converted into a frame, temporarily held in the transmission buffer 3102 in character units, and sent to the macro system interface 27 via the transmission register 3103.
can be sent to. Further, when the transmission requests to all SSCs go through a cycle and a transmission request is received again, the latest information can be supplied to the MSC 21 no matter how many times the information is updated on the way. However, the status register 33 can directly supply information to the transmit buffer 3102. This is to ensure that the status answer is sent out as soon as possible. Note that in this embodiment, the address buffer 31
The number of addresses that can be registered in 01 is limited to a relatively small number. This is to prevent the increase in the number of registered addresses from increasing the number of reports from a specific SSC and the lengthening of the polling cycle. be. Programs Executed by SSC The programs executed by each SSC will be explained below. Before explaining the programs, we will first explain the meanings of typical flags used in the explanation of each program. CCNT: Count data indicating the character position in the received frame;
1 is used when analyzing received data. JOBACT: This flag indicates that the SSC is processing a job. If set to ``1'', it indicates that the job is being processed; if reset to ``0'', it indicates that it is on standby. LOOPF: There is a flag that controls the cycle of the main loop of the SSC. If this flag is set to "1",
Indicates that the time has come to execute job processing. MSIFS: A parameter indicating the execution stage of the MSIF monitoring subroutine program, and is set to any value from "0" to "3". 5TOPF: Forced termination request flag for job control processing. 5YSWAIT: Execution prohibition flag for job control processing. TYPE: A flag indicating the type of mode set,
Set to "1" for string type mode set. Figure 32 of the SSC ROHM is a flowchart showing the schematic structure of the program executed by the SSC.As is clear from the figure, the SSC is a main routine program that starts execution when the power is turned on. and three mutually independent interrupt programs. First, when the power is turned on, a power-on event occurs and the EV
I, the microprocessor 61 (hereinafter referred to as
The microprocessor 61) executes the SSC initialization subroutine program 5B501, which will be described in detail later, and then executes the MSIF processing subroutine program 5B5.
Execute 02. The procedure of this MSIF processing subroutine program 58502 will also be described in detail later. MSI
Determining completion of the F processing subroutine program (step P3201), the microprocessor 61 determines the arrival of main loop timing indicating that the job processing subroutine can be executed (step P3202). When the arrival of the main loop timing is detected, the microprocessor 61 The processing subroutine program 5B503 is executed. Such MSIF
When the interrupt timer 66 of each SSC finishes timing for a predetermined period during execution of the loop consisting of the processing subroutine program 5B502 to job processing subroutine program 5B503, a timer interrupt event EV12 is generated.
occurs, the microprocessor 61 first executes the main loop timer processing subroutine program 5B504 to control the occurrence of the main loop timing, and then executes the job control timer processing subroutine program 5B506 to control the occurrence of the timer interrupt event. Return to the main routine program step. A reception interrupt event (EV13) occurs when the reception register of the SSC latches one character, and a reception data processing subroutine program 5B506 including frame analysis and sending an answer to the MSC is executed. On the other hand, when the first character in the transmission register 3103 of the SSC is sent to the macro system interface 27, a transmission interrupt event) EV14 occurs, and the transmission data processing subroutine program 5B507 is executed by the generation of the transmission interrupt event) EV14. . In this transmission data processing subroutine program 5B507, SS
The frames in the transmission buffer 3102 of C are sequentially sent to the macro system interface 27. That’s all, SSC
Having explained the outline of the programs executed in , the detailed steps of each program will be explained below. FIG. 33 is a flowchart showing the detailed procedure of the main routine program. The main routine program is started upon the occurrence of the power-on event EV1 as described above, and first steps to initialize the internal circuit of the microprocessor 61. P3302), and then clears the local mode map 34, global mode map 35, and command register 32, respectively (step P3302).
303). Thereafter, the microprocessor 61 reads bit 05 (NOT READY) of the status register 33.
bit) is set to "1" to indicate that initialization is being executed. Next, the flag 5YSWAIT is set to "1" to prohibit execution of job control processing in step P330.
5), MS IF monitoring subroutine program 5B51 that sets the parameter MSIFS to "0" and continues
1 is prepared for execution (step P3306). Furthermore,
Microprocessor 61 sets the main loop timer in step P3307 to enable main loop timing to occur. When such a series of preparations is completed, the microprocessor 61 sets an interrupt enable flag to enable the various interrupts described above (step P3308). In this way, SSC initialization subroutine program 5
When B501 is completed, the microprocessor 61
The IP monitoring subroutine program 5B511 and the transmission request processing subroutine program SB512 are sequentially executed. MSIF monitoring subroutine program 5B511 is the third
4, the microprocessor 61 of the SSC receives a reset command (from the MSC 21 in step P3401).
RESET) has already been supplied (see step P1813 of the MSIF monitoring subroutine program shown in FIG.
Determine whether S is set to "1". The parameter MSIFS is set to “O” in step P3306.
Since the determination result in step P3407 is initially set to "No", the microprocessor 61 proceeds to step P3411, where the parameter MSIFS is set to "
2". In step P3411 as well, the determination result is initially no, so the microprocessor 61 immediately returns to the main routine program. Eventually, when the reset command is supplied from the MSC 21, the judgment result in step P3401 becomes YES, so the microprocessor 61 proceeds to step P3402 and sets the capture confirmation pin (Q) attached to the reset command to "0". Reset. As a result, MSC21
will be able to send the following commands: Note that since the status answer to the reset command is performed in the received data processing subroutine program 5B506, the main routine program does not process the status answer. Next, the microprocessor 61 sets the 65 bit of the status register to "1" (step P3403), and then sets the flag 5YSVi/AIT.
is “0” (step P 340
4). Flag 5YSVv'AIT is set at step P3305.
Since it is set to "1" in step P3404 when the MSIP monitoring subroutine program is not completed.
The result of this decision is usually no. Therefore, the microprocessor 61 proceeds to step P3406 without executing step P3405. However, already SSC
If the reset command is received during operation, flag 5YSWAIT is reset to "0", so
The microprocessor 61 sets the flag 5TOPF to "1" in step P3405 to forcibly stop the job processing, and then proceeds to step P3406. Flag 5T
OPF is reset to "0" when the interruption of job processing ends. In step P3406, the parameter MSiFS is set to “1”.
", and in the following step P3407 the parameter M
Determine whether SIFS is "1". If the parameter MSIFS is "0", the microprocessor 61 determines no in step P3407, and returns to the main routine program via step P3411. On the other hand, if the parameter MSIFS is "1", the determination result in step P3407 is YES, so the microprocessor 61 determines whether the flag 5TOPF is "0", and if the determination result is NO, the microprocessor 61 61 returns to the main routine program via step P341. On the other hand, if flag 5TOPF is reset to "0" after job processing is temporarily interrupted, flag 5
If TOPF is "0", the microprocessor 61 detects this in step P3408 and initializes the local mode map 34 based on the determination result (YES). When the local mode map 34 is initialized in this way, the microprocessor 61 sets the information transmission request flag TR held in the local mode map 34 to "1" and notifies the MSC 21 of the contents. Make preparations (step P3409). The information on which the transmission request flag TR is set in this way is obtained by executing the transmission request processing subroutine program 5B512 and the transmission data processing subroutine program 5B507, which will be described later.
It is sent to SC21. After this, the microprocessor 61 performs step P3410.
Set flags 5YSWAIT and MSIFS to "1" each.
, is set to "2", and the process proceeds to step P3411, where it is determined whether the parameter MSIFS is set to "2". If the judgment result in step P3411 is NO, the microprocessor 61 returns to the main routine program, and if the judgment result is YES, the process proceeds to step P3412, where all the information in the local mode map 34 is It is determined whether or not it has been sent to C21. If the determination result in step P3412 is NO, the microprocessor 61 returns to the main routine program,
If the judgment result is YES, proceed to step P3413, set the parameter MSIFS to "3", and set the 65 bit (NOT READY) of the status register.
is reset to "0". After this, the microprocessor 61 resets the flag 5YSWAIT to "0" (
Step P3414) Return to the main routine program. However, until all the information held in the local mode map 34 is sent to the MSC 21, the flag 5YSWAIT will remain at "1" and execution of job processing will be prohibited. Next, the procedure of the transmission request processing subroutine program 5B512 will be explained with reference to FIG. The transmission request processing subroutine program 5B512 is MS
Immediately after returning to the main routine program from IF monitoring subroutine 5Bi511, step P3501
First, it is determined whether or not there is space in the address buffer 3101 (step P3502). If there is no space in the address buffer 3101, the microprocessor 61 determines no in step P3502 and immediately returns to the main routine program; if there is space, the microprocessor 61 determines yes in step P3502 and stores the address in the local mode map 34. The transmission request beep (TR) attached to the information is searched (step P3503). If a specific local mode map 34 has a transmission request flag T
If there is no information set to "1" in R, the microprocessor 61 determines that step P3504 is NO and proceeds to step P3508; on the other hand, if the determination result is YES, the transmission request flag TR is set to "1". It is determined whether the address of the set information has already been registered in the address buffer 3101 (step P3505). If the address has already been registered in the address buffer 3101, the microprocessor 61 executes step P3.
505 and proceeds to step P3507. Conversely, if the address has not been registered, the microprocessor 61 proceeds to step P3506 and registers the address in the address buffer 3101. In this way, the microprocessor 61 that has proceeded to step P3507 determines whether or not the address registration of information for which the transmission request flag TR is set has been completed for all local mode maps 34, and if the result of the determination is no, the process returns to step P3503. If the determination result is YES, the process advances to step P350B and it is again determined whether or not there is space in the address buffer 3101. If the judgment result in step P3508 is NO, return to the main routine program; on the other hand, if the judgment result is YES, step P350
Proceed to step 9. The microprocessor 61 performs step P350.
At step 9, it is determined whether there is a report to be sent to the MSC 21. If the judgment result in step P3509 is NO, the process proceeds to step P3512; on the other hand, if the judgment result is YES, the microprocessor 61 checks in step P3510 whether the address of the memory storing the report is not registered in the address buffer 3101. Decide whether or not. If the address is already registered,
The microprocessor 61 proceeds to step P3512,
On the other hand, if it has not been registered, the address is registered in the address buffer 3101 in step P3511, and then the process advances to step P3512. In step P3512, first, the address rOcHJ of the local mode map 34 (see FIG. 14) is
If it is not the report mode, it immediately returns to the main routine program, and if it is the report mode, it is determined whether there is a status to be sent to the MSC 12 (step P351).
3). If there is no status to be sent to the MSC21, it immediately returns to the main routine program, and if
If there is such a status, the process advances to step P3514, and it is determined whether the memory address storing the status is not registered in the address buffer 3101. If the address has already been registered, the program immediately returns to the main routine program; on the other hand, if the address has not been registered, the address is registered in the address buffer 3101 and then the program returns to the main routine program. Returning again to FIG. 33, the explanation of the procedure of the main routine program will be continued. When the transmission request processing subroutine program 5B512 returns to the main routine program, the microprocessor 61 checks the flag 5YSWAIT and determines whether the flag 5YSWAIT has been reset to "0" (step P3309).
. If the flag 5YSWAIT remains set to "1", the initialization is still being executed, so the microprocessor 61 executes the MS IF monitoring subroutine program 5B511 again. On the other hand, if the flag 5YSWAIT has already been reset to "0", the microprocessor 61 sets the flag LOOPF to "1".
In step P331, it is determined whether or not the
0), if the judgment result is no, the main loop timing has not yet arrived, so the MS IF monitoring subroutine program 5B511 is executed again and the main loop timing is waited for. If the main loop timing arrives, the determination result in step P3310 is YES, so the microprocessor 61 executes step P33.
The process proceeds to step 11, where the flag LOOPF is reset to "0" and execution of job processing is prohibited until the next main loop timing arrives. After executing step P3311, the microprocessor 61
executes a series of job processes to form a predetermined image on print paper (steps P3312 to
Step P3313). In this way, the microprocessor 61 repeatedly executes a loop consisting of subroutine programs 5B511 to P3313 in the main routine program. Next, when the main loop timer processing subroutine program 5B504 is started, with reference to FIG.
The microprocessor 61 increments the value of the main loop timer in step P3601, and determines whether the incremented value of the main loop timer has reached a value indicating the arrival of the main loop timing (step P3602). If the determination result in step P3602 is NO, the microprocessor 61 proceeds to step P3604, and conversely, if the determination result is YES, the microprocessor 61 sets the flag LOOPF to "1".
'' to enable job processing, set the initial value to the main loop timer, and measure the time interval until the main loop timing arrives again (step P3603). Next, the microprocessor 61 executes sequence timer processing in step P3604, and then determines whether or not it is in report mode (step P3605).
. If the microprocessor 61 is not in the report mode, the microprocessor 61 proceeds to step P3611; on the other hand, if the microprocessor 61 is in the report mode, the microprocessor 61 proceeds to step P3606 and determines whether the address buffer 3101 has address information of data to be transmitted. If address buffer 3101
If the above address information is not present in the microprocessor 6
1, the process immediately proceeds to step P3611, and conversely, if there is address information in the address buffer 3101, the process proceeds to step P3611.
Proceeding to step 3607, it is determined whether there is data in the transmission buffer 3102. If there is no data in the transmission buffer 3102, the microprocessor 61 performs step P3.
Proceed to step 611, and if there is data, proceed to step P360
Proceeding to step 8, the information held in the memory location specified by the address in the address buffer 3101 (hereinafter referred to as the designated address) is converted into a frame and sent to the transmission buffer 31.
Transfer to 02. In this way, the transmit buffer 3102
The information held within the transmit interrupt event) EV14
When the transmission data processing subroutine program 5B occurs,
Macro system interface 2 by executing 507
Sent on 7th. After transferring the information to the transmission buffer 3102 in this way, the microprocessor 61 deletes the specified address from the address buffer 3101 (step P3609), and deletes the transmission request attached to the information held at the specified address. Reset bit TR to "0". When the preparation for transmitting the information specified by the address held in the address buffer 3101 is completed in this way, the microprocessor 61 proceeds to step P3611 and determines whether or not the information is being transmitted. If there is information being sent, the microprocessor 61 immediately returns to the program that was being executed when the timer interrupt event occurred; on the other hand, if there is no information being sent, it is determined whether there is space in the sending buffer 3102. (Step P3612). If information is still held in the transmit buffer 3102, the microprocessor 61
immediately returns to the program at the time when the timer interrupt event occurred, and if there is space in the transmission buffer 3102, transfers the information scheduled to be transmitted to the transmission buffer 48 (step P3).
613). Thereafter, the microprocessor 61 returns to the program at the time the timer interrupt event occurred. Next, the received data processing subroutine program 5B50
6 will be explained in detail with reference to FIG. When a receive interrupt event occurs, the microprocessor 61
reads the character from the reception register 46 (step P3701) and determines whether a reception error has occurred (
Step P3702). If a reception error has occurred, the microprocessor 61 performs step P3703.
If no reception error occurs, the process proceeds to step P3704 without executing step P3703, and the count data CCNT is set to "0".
Determine whether or not. As already explained, at the start of frame reception, the count data CCNT is rOJ
Therefore, the judgment result of step P3704 is YES, and the microprocessor 61 confirms that the received character is I.
Determine whether or not it is a D character (step P37
05). If it is determined that the received character is not an ID character even though the count data CCNT is "0", the microprocessor 61 will not proceed with the subsequent processing since it may have occurred due to abnormal force during communication. Abort and immediately return to the program that was running when the receive interrupt event occurred. On the other hand, step P37
If the character received at step 05 is determined to be an ID character, the microprocessor 61 stores the identification code and area code of the ID character as data I.
Import as DS, IDU and count data CC
NT is set to "2" (step P3706). In this way, the data IDS. Once the IDU is formed, the microprocessor 61 determines whether the received character is intended for a specific SSC based on the data IDS (step P3707).
). If the judgment result in step P3707 is no,
Since the frame being received is commonly transmitted to all SSCs from the global mode map 35 of the MSC 21,
Microprocessor 61 immediately returns to the program that was being executed when the receive interrupt event occurred. On the other hand, if the judgment result in step P3707 is YES,
In step P, the microprocessor 61 determines whether or not the received character was sent to itself.
370B), if the judgment result is YES, the program immediately returns to the one that was being executed when the reception interrupt occurred. On the other hand, if the received character targets another SSC, the microprocessor 61 performs step P3.
In step 709, the count data is initialized to "0" in preparation for receiving the frame targeted for transmission, and then the program returns to the program that was being executed when the reception interrupt event occurred. If the received frame targets itself and is a status request (step P3710), 1
Since it is a character frame, status/command processing subroutine 5B521 is executed. On the other hand, if the determination result in step P3704 is NO, the microprocessor 61 performs step P371.
Step 1 determines whether the received character is a data character. If the determination result in step P3711 is NO, the received character is an ID character, so the microprocessor 61 returns to step P370.
Proceed to step 6 and perform the steps P3706 to P371 above.
Execute 0. On the other hand, if the received character is a data character, the microprocessor 61 determines whether the frame being received is a mode set or a mode request (step P3712). If the determination result in step P3712 is NO, the frame being received is a sequence command, so the microprocessor 6
1 executes the status/command processing subroutine program 58521. Conversely, if the determination result in step P3712 is YES, the microprocessor 61 determines in step P3713 whether or not the frame being received is a mode request. If the frame being received is a mode request, the determination result in step P3713 is YES, and the microprocessor 61 executes the mode request processing subroutine program 5B523. On the other hand, if the determination result in step P3713 is NO, the frame being received is a mode set, so the microprocessor 61 executes the mode set processing subroutine program 5B522. The procedures of these three subroutine programs will be detailed below. First, the detailed procedure of the status/command processing subroutine program 5B521 will be explained with reference to FIG. The status/command processing subroutine program is started in step P3801, and the microprocessor 6
1 determines whether the frame being received is a status request in step P3802. If the frame being received is a sequence command, step P
The result of the determination at step 3802 is NO, and the microprocessor 61 determines whether the count data CCNT is "3" (step P3803). If data character 1 following the ID character is received, the count data is "1", so the judgment result in step P3803 is NO, and the microprocessor 61 transfers the received data character to temporary register 1. , the count data is set to "3" (step P3804), and the process returns to the reception date/event processing subroutine program 5B506. On the other hand, when data character 2 is received, count data CCN
Since T is set to "3" in step P3804, the microprocessor 61 determines yes in step P3803 and proceeds to step P3805, where the previously supplied command is supplied from the command register 32 to the microprocessor 61 and processed. Determine whether or not it has been executed. If the processing related to the previous command has already been executed (the capture confirmation signal Q has been reset to "0"), the judgment result in step P3805 is YES, so the microprocessor 61 proceeds to step P3806. The received data character 2 along with the data character l held in the temporary register are transferred to the command register 3.
2 and hold. On the other hand, step P38
If the determination result in step P3806 is NO, the microprocessor 61 directly executes step P without executing step P3806.
Proceed to 3807. Subsequently, the microprocessor 61 determines whether or not it is in the report mode in step P3807,
If the determination result in step P3807 is no, the microprocessor 61 proceeds to step P3812. On the other hand, if the determination result in step P3807 is YES, the microprocessor 61 sets the information transmission request flag held in the status register 33 to "1" (step P3808), and then the address buffer 3101 is filled with free space. Determine whether there is one (Step P 3809)
, if there is no space in the address buffer 3101,
The microprocessor 61 proceeds to step P3812,
If there is space in the address buffer 3101, step P
At step 3808, the address of the information whose transmission request flag is set to "1" is registered (step P3810), and the process advances to step P3812. On the other hand, if the determination result in step P3802 is YES, the microprocessor 61 determines whether or not it is in polling mode (step P3811), and if the determination result is NO, the process proceeds to step P380B. On the other hand, if the determination result in step P3811 is YES, the microprocessor 61 executes the polling answer processing subroutine program 5B531 and proceeds to step P3812. In step P3812, the count data CCNT is
0'' to prepare for the next execution of the received data processing subroutine program, and then return to the received data processing subroutine program. The above polling answer processing subroutine program 5B
The detailed procedure of step P3901 is shown in FIG. 39, and this subroutine program 5B531 starts at step P3901. The microprocessor 61 performs step P39.
Proceeding to step 02, the information transmission request flag TR held in the status register 33 is reset. continue,
Step P3902: Determine whether the address of the information to be transmitted is registered in the address buffer 3101.
), if the address is not registered, the microprocessor 61 sends a status answer with the frame continuation bit N of "0" to the transmission buffer 48 and prepares for its transmission (step P3904). In this way, when preparation for transmission is completed for the status answer whose frame continuation bit N is "0", the microprocessor 61 proceeds to step P3915. On the other hand, if the address of the information to be transmitted is registered in the address buffer 3101 and the determination result in step P3903 is YES, the microprocessor 61 sends a status answer with the frame continuation bit N set to "1". Supply it to the transmission buffer 3102 to prepare for transmission,
(Step P3905), then Step P390
In step 6, it is determined whether the address of the sequence report is registered in the address buffer 3101. if,
If the sequence report address is registered,
The address of the sequence report is stored in address buffer 3.
101, and reset the transmission request flag TR attached to REVO-1 information held in the report register 37 (step P3907). Thereafter, the microprocessor 61 determines whether the address holding the information to be transmitted is registered in the address buffer 3101 (step P3908).
If the determination result in step P3908 is NO, a sequence report with frame continuation bit N of "0" is supplied to the transmission buffer 3102 to prepare for transmission.Step P390
9) On the other hand, if the determination result in step P3908 is YES, a sequence report with the frame continuation bit N of "1" is supplied to the transmission buffer 3102 to prepare for transmission (step P3910). Next, the microprocessor 61 uses the address buffer 31
01 to determine whether the address of the string type mode answer to be transmitted is registered (step P3911). If it is registered, the microprocessor 61 deletes the address from the address buffer 3101, and the transmission request bit T attached to the information constituting the mode answer.
Reset R (step P3912). After that,
The microprocessor 61 supplies the string type mode answer to the transmission buffer 48 to hold it therein, and completes preparation for transmission. Thereafter, the microprocessor 61 sends the end code to the transmission buffer 3102 and causes it to be held there. In this manner, in this embodiment, an end code is added to a string type mode answer before all its data characters are held in the transmission buffer 3102. This is because string type mode answers usually consist of a large number of data characters, so if all of them were processed at the same time, it would take a long time for one response, slowing down communication with other SSCs. be. On the other hand, if the determination result in step P3911 is NO, the microprocessor 61 uses the address buffer 311
1 to determine whether the address of the word type mode answer is registered or not. If such an address is unregistered, the microprocessor 61 immediately proceeds to step P3915; If the mode answer is registered, first, the address is deleted from the address buffer 3101, and the transmission request bit TR attached to the information constituting the word type mode answer is reset (step P3917). Thereafter, the microprocessor 61 sends the word type mode answer to the transmission buffer 3102 and holds it, and then determines whether the address of another word type mode answer is registered in the address buffer 3101. (Step P3919). If another address is registered (that is, if the determination result is NO), the microprocessor 61 returns to step P3917 again and continues steps P3917 to P3919 until the determination result in step P3919 becomes YES. After repeatedly executing the loop, if the judgment result in step P3919 is YES, the microprocessor 61 proceeds to step P3914 and sends the end code to the transmission buffer 3102.
supply to. In this way, the frame held in the transmission buffer 3102 is transferred one character at a time from the transmission buffer 3102 to the transmission register 3103 in step P3915, and the process advances to step P3812 of the status/command processing subroutine program 5B521. In this way, the characters held in the transmission register 3103 are sent to the MSC 21 by executing the transmission data processing subroutine program 5B507. Next, mode set processing subroutine program 5B5
The procedure of step 22 will be explained with reference to FIG. When the mode set processing subroutine program 5B522 is started in step P4001, the microprocessor 61 first checks the count data CCNT and determines whether the value of the count data CCNT is "5" (step P4002). ). data character 1
When receiving , the count data CCNT is normally set to "2", so the determination result in step P4002 is NO. Therefore, the microprocessor 61 proceeds to step P4003 and again inputs the count data CCNT.
is checked to determine whether the value is "2" or not. When data character 1 is received, count data C
CNT should have been set to "2" as described above, and the determination result in step P4003 is YES. In the case of mode set, data character 1 is assigned to map address M, so the microprocessor 61 proceeds to step P4004 and transfers map address M to the address register to hold it. Next, the count data CCNT is set to "4" and the flag TYPE is reset (step P4005). Next, step P
It is determined whether the string area 36 is specified by referring to the map address held in the address register in step P4004 (step P4006). If the determination result in step P4006 is YES, the microprocessor 61 proceeds to step P4007 and stores the count data C.
Set CNT to "3" and set flag TYPE to "
1'' and returns to the received data processing subroutine program 5B506. On the other hand, step P
If the judgment result of 4006 is no, microprocessor 6
1 returns to the received data processing subroutine program 5B506 without executing step P4007. When data character 2 is eventually received and the mode set processing subroutine program 5B522 starts, step P4002. Since the determination result in step P4003 is no, the microprocessor 61 proceeds to step P4008, and the count data CCNT is
3". As described above, step P40
As a result of the processing from step P4007 to step P4007, in the string type mode set, the count data CCNT becomes "
3" and "4" for a word type mode set, so if the frame being received is a string type mode set, the judgment result in step P400B is YES, and if a word type mode set, the judgment result is YES. The answer will be no. If the frame being received is a string type mode set, data character 2 represents the data length, so the microprocessor 61 transfers data character 2 to the data counter and holds it (step P4009). After this, the microprocessor 61 proceeds to step P4011. On the other hand, if the frame being received is a word type mode set, data character 2 is the first byte of the setting data, so the microprocessor 61 holds the received data character 1 in temporary register 1 (step P4010) and counts The data CCNT is incremented by "1" (step P4
011). Regardless of the type, the microprocessor 61 returns to the received data processing subroutine program 5B506 after executing step P4011. Eventually, when data character 3 is received, in the case of string type mode set, count data CC
Since NT is "4", step P4002, step P4003. The result of the determination in step P4008 is NO, and after data character 3 is temporarily held in the register in step P4010, the data counter CCNT is incremented by "1" and the process returns to the received data processing subroutine program 5B506. On the other hand, in the case of a word type mode set and in the case of a string type mode set in which data character 4 has been received, the determination result in step P4002 is YES, so the microprocessor 61 uses the received data character and The previously received data character held in temporary register 1 is held as setting data (step P4012). In the process of step P4012, a word type mode set is held in the local mode map 34, but a string type mode set is set in the string area. Next, the microprocessor 61 determines whether the frame being received is of the string type using the flag TY.
The judgment is made with reference to the PE, and if the judgment result is no (that is, word type), the reception is completed with the reception of data character 3, so the process proceeds to step P4017, and the count data CCNT is initialized to "0". At the same time,
The reception notification flag RR of the setting data stored in the local mode map 34 is set to "1". On the contrary,
If the mode set being received is a string type, the judgment result in step P4013 is YES, the microprocessor 61 sets the count data to "4" (step P4014), and decreases the data length value held in the data counter. (Step P4015). As a result of reducing the data length value in this way, it is determined in step P4016 whether all the setting data has been received, and if the determination result in step P401B is no, the process immediately proceeds to the received data processing subroutine program 5B506. On the other hand, if the judgment result in step P4016 is YES, the microprocessor 61 returns the count data CCN.
Set T to "0" and set the reception notification flag RR of the received configuration data to "1". Thereafter, the microprocessor 61 returns to the received data processing subroutine program 5B506. Next, the procedure of the mode request subroutine program will be explained with reference to FIG. The mode request subroutine program 5B523 starts in step P4101, and first searches the address buffer 3101 in step P4102. Based on this search, the microprocessor 61 determines that the map address M represented by the received data character is stored in the address buffer 310.
Step P4103 to determine whether it is unregistered in 1.
), if it has already been registered in the address buffer 3101, the determination result in step P4103 is no, so the microprocessor 61 proceeds to step P4107, sets the count data to "0", and executes the received data processing subroutine program. to return to. On the other hand, if map address M is unregistered, step P410
Since the result of the determination in step 3 is YES, the microprocessor 61 determines whether or not there is space in the address buffer 3101 (step P4104). If there is space, the map address M is registered in the address buffer 3101 in step P4105. Then, the process advances to step P4107. On the other hand, if the determination result in step P4104 is NO, the microprocessor 61 sets the transmission request flag TR of the information specified by the map address M to rlJ, and then proceeds to step P4107. Step P4107
Now, as mentioned above, set the count data ccNT to "0".
After that, the microprocessor 61 executes the received data processing subroutine program 58506. Referring again to FIG. 33, the microprocessor 61 returns from the transmission request processing subroutine program 5B512.
The flag 5YSWAIT is set in step P3309.
Check that SSC initialization has been completed (SYS
WAI T=O). Flag 5YSWA
IT is MSIF monitoring subroutine program 5B511
It is reset to "0" in step P3414, so if the initialization is not completed yet, step P3414 is reset to "0".
The answer of ago9 is NO, and microprocessor 61 re-executes the MSIF monitoring subroutine program to continue initializing the SSC. On the other hand, if the initialization has been completed, the determination result in step P3309 will be YES, and the microprocessor 61 will set the flag LO.
The OPF is checked to determine whether the main loop timing has arrived (LOOPF=1). If the main loop timing has not yet arrived, the microprocessor 61 executes the MSIF monitoring subroutine program SB51.
On the other hand, if the main loop timing has arrived, reset the flag LOOPF to "0",
Job processing subroutine step P3312,...
Step P3313 is executed. The procedure of the job processing subroutine program is shown in FIG. 42, and this subroutine program includes step P.
4.201, microprocessor 6
1, the flag JOBACT is first set to "1" and S
Determine whether the SC is out of standby mode or not (
Step P4202). Since the flag JOBACT is set to "1" in step P4208, at the beginning of the series of job processing, the determination result in step P4202 is NO, and the microprocessor 61 executes step P42.
Proceeding to step 03, it is determined whether a command is held in the command register 32 or not. If step P420
If the result of the determination in step 3 is NO, the microprocessor 61 proceeds to step P4204 and determines whether or not the received frame 11 exists in the local mode map 34 and the global mode map 35 by searching the reception notification flag RR. If the determination result in step P4204 is NO, the microprocessor 61 proceeds to the trouble check subroutine program 5B541;
If the judgment result in step 4 is YES, the reception notification flag RR of the information constituting the received frame is reset to "0" (step P4205), and then the internal processing of the mode regarding the received frame is executed (step P4206).
After this, the microprocessor 61 proceeds to the trouble check subroutine program 5B541. Eventually, when the command is held in the command register 32, the determination result in step P4203 becomes YES, and the microprocessor 61 resets the capture confirmation bit Q of the captured command to "0" in step P42.
07), then the flag JOBACT is set to "1" (step P4208). When preparation for job processing is completed in this way, the microprocessor 61 sets the job processing bit on the busy register (BUSY-REG) set in the local mode map 34 (step P4209), and executes a trouble check subroutine. Execute program 5B541. As described above, when the flag JOBACT is set to "1", the next time the job processing subroutine program is executed, the determination result in step P4202 becomes YES, and the microprocessor 61 sets the flag S T OP F' in step P4210. If the result of the determination is YES, there is no request to forcibly stop job processing, so the microprocessor 61 stores the information in the local mode map 34 and global mode map 35. information and command register 32
A predetermined function is realized in accordance with the commands held in the . If a series of job processing has been completed,
Since the judgment result in step P4212 is YES, the microprocessor 61 sets the flag JOBACT to "0" (step P4213), and resets the job processing bit of the busy register set in the local mode map 34 (step P4213). P4214). The microprocessor 61 then executes a trouble check subroutine program. On the other hand, if the determination result in step P4210 is NO, the job stop sequence process is executed in step P42.
15) In step P4216, it is determined whether the job processing has been stopped. If the job processing has been stopped, the microprocessor 61 sets the flag 5TOP.
After resetting F to "0", the trouble check subroutine program is executed, and if the stoppage of job processing is not completed, the trouble check subroutine program is executed without executing step P4217. The trouble check subroutine program starts at step P4301 as shown in FIG.
is checked to determine whether the error information held in the error register is a value "0" indicating that no error has occurred (step P4.301). If the error information has a value of "1" and indicates the occurrence of an error, the microprocessor 61 should set the 61st bit of the status register 33 to "1" (step P4303); conversely, the error information has a value of "0". If it shows that no error has occurred,
The G1 bit of the status register 33 is reset to "0" (step P4303). After operating the 01 bit of the status register 33 in accordance with the error information in this way, the microprocessor 61 selects the fatal register (FATA) set in the local mode map 34.
It is determined whether the fatal information in L-REG) is set to a value "0" indicating that no serious accident has occurred (step P4304). If the fatal information has a value of "1" and indicates that a serious accident has occurred, the microprocessor 6
1 is the 62 bit (FATAL) of the status register 33.
bit) to "1" (step P4306),
On the other hand, if the fatal information has a value of "0" indicating that no serious accident has occurred, 62 bits of the status register 33 are reset to "0" (step P4305). After operating the 02 bit of the status register 33 in accordance with the fatal information in this way, the microprocessor 61 returns to the busy state set in the local mode map 34.
Determine whether the busy information in the register (BUSY-REG) is set to "0", which indicates non-execution of operations associated with commands or mode changes (step P4307).
). If the L/% busy information has a value of "1" and indicates that an operation is being executed due to the above command or mode change, the microprocessor 61 sets bit 04 (BUSY bit) of the status register 33 to "1". On the other hand, if the busy information has a value of "0" and indicates that the operation is not executed, the 04 bit of the status register 33 is reset to "0" (step P430).
8). After manipulating the 64 bits of the status register 33 in accordance with the busy information, the microprocessor 61
determines whether the not-ready information in the not-ready register (NOTREAD Y-REG) set in the local mode map 34 is set to the value "0" indicating completion of initialization (step P4310).
. If the not ready information has a value of ``1'' and indicates that initialization is being executed, the microprocessor 61 sets the 65 bit (NOT READY bit) of the status register 33 to ``1'' (step P43-12); If the not ready information indicates the completion of initialization with the value rOJ, then 1. The 65 bits of the status register 33 are reset to "0" (step P4311). After operating the 05 bit of the status register 33 in accordance with the not ready information, the microprocessor 61
returns to the job processing subroutine program.
第1図は本発明のクレーム対応図、
第2図は本発明の一実施例のマクロシステム構成を示す
ブロック図、
第3図はスレーブ処理ユニット内に設定される論理アド
レス空間を示すブロック図、
第4図はマスク処理ユニット内の機能ブロックと該マス
ク処理ユニット、に管理される論理アドレス空間との関
係を示すブロック図、
第5図は一実施例に係るレーザプリンタ内に実現される
通信ネットワークを示すブロック図、第6図はMSCの
ハードウェア構成を示すブロック図、
第7図は一実施例の通信方式を説明するタイミングチャ
ート図、
第8図は複数キャラクタで構成されるフレームの構成を
示すブロック図、
第9図は各キャラクタのビット構成を説明するフォーマ
ット図、
第10図はIDキャラクタのビット構成を示すフォーマ
ット図、
第11図(a)〜(i)は各フレームを構成するキャラ
クタのビット構成を示すフォーマット図、第12図は複
数フレームに跨り情報が発信される場合のSSC区切り
検出を説明するブロック図、第13図はステータスレジ
スタの各ビットに割り当てられたステータス情報を示す
フォーマット図、
第14図はローカルモードマツプの一部に割り当てられ
るSSC標準モードマツプ内の詳細ステータス情報を説
明するアドレスマツプ図、第15図はレポートモードと
ポーリングモードとが混在する一実施例の変形例を示す
ブロック図、第16図はMSCで実行されるプログラム
の全体構成を示すフローチャート図、
第17図はMSCで実行されるメインルーチンプログラ
ムの芙行手順を示すフローチャート図、第18A図〜第
18B図はMS I F監視サブルーチンの実行手順を
詳細に説明するフローチャート図、
第19図はシステム更新サブルーチンプログラムの手順
を示すフローチャート図、
第20図はオプション接続チエツクサブルーチンプログ
ラムの手順を示すフローチャート図、第21図はメイン
ループタイマー処理サブルーチンプログラムとポーリン
グ制御タイマー処理サブルーチンプログラムとの手順を
示すフローチャート図、
第22図はポーリングエラー処理サブルーチンプログラ
ムの詳細手順を示すフローチャート図、第23図はポー
リング制御サブルーチンプログラムの手順を示すフロー
チャート図、
第24図は送信要求処理サブルーチンプログラムの手順
を示すフローチャート図、
第25図は受信データ処理サブルーチンプログラムの詳
細手順を示すフローチャート図、第26図はステータス
/レポート解析サブルーチンの詳細手順を示すフローチ
ャート図、第27図はモード解析サブルーチンプログラ
ムの手順を示すフローチャート図、
第28図はSSCステータスチエツクサブルーチンプロ
グラムの手順を示すフローチャー1・図、第29図はジ
ョブ処理サブルーチンプログラムの手順を示すフローチ
ャート図、
第30図はトラブルチエツク処理サブルーチンプログラ
ムの手順を示すフローチャート図、第31図はSSCの
送信バッファとその関連回路の構成を示すブロック図、
第32図はSSCで実行されるプログラムの概略構成を
示すフローチャート図、
第33図はSSCで実行されるメインルーチンプログラ
ムの手順を示すフローチャート図、第34図はMSIF
監視サブルーチンプログラムの手順を示すフローチャー
ト図、
第35図はSSCの送信要求処理サブルーチンプログラ
ムの手順を示すフローチャート図、第36図はメインル
ープタイマー処理サブルーチンプログラムとジョブ制御
タイマー処理サブルーチンプログラムとの手順を説明す
るフローチャート図、
第37図は受信データ処理サブルーチンプログラムの手
順を説明するフローチャート図、第38図はステータス
/コマンド処理サブルーチンプログラムの手順を示すフ
ローチャート図、第39図はポーリングアンサ処理サブ
ルーチンプログラムの手順を説明するフローチャート図
、第40図はモードセット処理サブルーチンプログラム
の手順を説明するフローチャート図、第41図はモード
リクエスト処理サブルーチンプログラムの手順を説明す
るフローチャート図、第42図はジョブ処理サブルーチ
ンプログラムの手順を示すフローチャート図、
第43図はトラブルチエツクサブルーチンプログラムの
手順を示すフローチャート図である。
1〜4・・・・スレーブユニット、
5・・・・・・処理コマンド、
6・・・・・・通1言コマンド、
7・・・・・・マスタ処理ユニット、
8・・・・・・通信手段、
9・・・・・・接続判定手段、
10・・・・・コマンド供給手段、
11・・・・・起動手段。FIG. 1 is a claim correspondence diagram of the present invention; FIG. 2 is a block diagram showing a macro system configuration of an embodiment of the present invention; FIG. 3 is a block diagram showing a logical address space set in a slave processing unit; FIG. 4 is a block diagram showing the relationship between the functional blocks within the mask processing unit and the logical address space managed by the mask processing unit, and FIG. 5 is a communication network realized within the laser printer according to one embodiment. FIG. 6 is a block diagram showing the hardware configuration of the MSC. FIG. 7 is a timing chart explaining the communication method of one embodiment. FIG. 8 shows the structure of a frame consisting of multiple characters. 9 is a format diagram showing the bit structure of each character. FIG. 10 is a format diagram showing the bit structure of an ID character. FIGS. 11(a) to (i) are characters forming each frame. 12 is a block diagram illustrating SSC break detection when information is transmitted across multiple frames, and FIG. 13 is a format showing status information assigned to each bit of the status register. Figure 14 is an address map diagram explaining detailed status information in the SSC standard mode map allocated to a part of the local mode map, and Figure 15 is a modification of the embodiment in which report mode and polling mode are mixed. FIG. 16 is a flowchart showing the overall configuration of the program executed by the MSC, FIG. 17 is a flowchart showing the steps of the main routine program executed by the MSC, and FIGS. 18A to 18B. 19 is a flowchart showing the steps of the system update subroutine program. FIG. 20 is a flowchart showing the steps of the option connection check subroutine program. The figure is a flowchart showing the steps of the main loop timer processing subroutine program and the polling control timer processing subroutine program, Figure 22 is a flowchart showing the detailed steps of the polling error handling subroutine program, and Figure 23 is the procedure of the polling control subroutine program. 24 is a flowchart showing the steps of the transmission request processing subroutine program, FIG. 25 is a flowchart showing the detailed steps of the received data processing subroutine program, and FIG. 26 is the detailed steps of the status/report analysis subroutine. 27 is a flowchart showing the procedure of the mode analysis subroutine program, FIG. 28 is a flowchart 1 diagram showing the procedure of the SSC status check subroutine program, and FIG. 29 is a flowchart diagram showing the procedure of the job processing subroutine program. 30 is a flowchart showing the procedure of the trouble check processing subroutine program, FIG. 31 is a block diagram showing the configuration of the SSC transmission buffer and its related circuits, and FIG. 32 is a flowchart showing the procedure of the trouble check processing subroutine program. Flowchart diagram showing the schematic configuration, Figure 33 is a flowchart diagram showing the procedure of the main routine program executed by the SSC, Figure 34 is the MSIF
FIG. 35 is a flowchart showing the steps of the monitoring subroutine program, FIG. 35 is a flowchart showing the steps of the SSC transmission request processing subroutine program, and FIG. 36 explains the steps of the main loop timer processing subroutine program and the job control timer processing subroutine program. FIG. 37 is a flowchart explaining the steps of the received data processing subroutine program, FIG. 38 is a flowchart showing the steps of the status/command processing subroutine program, and FIG. 39 is a flowchart explaining the steps of the polling answer processing subroutine program. FIG. 40 is a flowchart explaining the steps of the mode set processing subroutine program, FIG. 41 is a flowchart explaining the steps of the mode request processing subroutine program, and FIG. 42 is a flowchart explaining the steps of the job processing subroutine program. FIG. 43 is a flowchart showing the procedure of the trouble check subroutine program. 1 to 4...Slave unit, 5...Processing command, 6...One-word command, 7...Master processing unit, 8... Communication means, 9...Connection determining means, 10...Command supply means, 11...Starting means.
Claims (2)
処理ユニットと、 上記所定の機能の実現を指示する処理コマンドと、上記
スレーブ処理ユニットの管理データの通信を制御する通
信コマンドとを選択的に出力して上記複数のスレーブ処
理ユニットを管理するマスター処理ユニットと、 上記複数のスレーブ処理ユニットと上記マスター処理ユ
ニットとを接続し、上記処理コマンドと上記通信コマン
ドとを伝達する通信手段とを備え、少なくとも動作モー
ドと待機モードとの間で切り換えられて機能する画像処
理装置において、上記マスター処理ユニットは、 上記通信コマンドを上記通信手段を介して上記複数のス
レーブユニットに供給して上記スレーブユニットが上記
通信手段と接続されているか否かを判断する接続判定手
段と、 上記接続判定手段が上記通信手段に接続されていると判
断したスレーブユニットにのみ上記動作モードにおいて
上記処理コマンドを上記通信手段を介して供給するコマ
ンド供給手段と、 上記待機モード時に上記接続判定手段を起動する起動手
段とを備えたことを特徴とする画像処理装置。(1) A plurality of slave processing units each realizing a predetermined function; a processing command that instructs the realization of the predetermined function; and a communication command that controls the communication of management data of the slave processing unit. a master processing unit that outputs and manages the plurality of slave processing units, and a communication means that connects the plurality of slave processing units and the master processing unit and transmits the processing command and the communication command, In the image processing device that functions by being switched between at least an operating mode and a standby mode, the master processing unit supplies the communication command to the plurality of slave units via the communication means so that the slave units a connection determining means for determining whether or not the connection is connected to the communication means; and a connection determining means that transmits the processing command in the operation mode only to the slave unit that the connection determining means determines to be connected to the communication means via the communication means. An image processing apparatus comprising: a command supplying means for supplying a command; and a starting means for starting the connection determining means in the standby mode.
記接続判定手段を起動する特許請求の範囲第1項記載の
画像処理装置。(2) The image processing apparatus according to claim 1, wherein the activation means activates the connection determination means also when the image processing apparatus is activated.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63172443A JPH0221741A (en) | 1988-07-11 | 1988-07-11 | Picture processor |
| US07/377,943 US5191648A (en) | 1988-07-11 | 1989-07-10 | Image processing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63172443A JPH0221741A (en) | 1988-07-11 | 1988-07-11 | Picture processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0221741A true JPH0221741A (en) | 1990-01-24 |
Family
ID=15942079
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63172443A Pending JPH0221741A (en) | 1988-07-11 | 1988-07-11 | Picture processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0221741A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5476598A (en) * | 1992-12-22 | 1995-12-19 | Colgate-Palmolive Co. | Liquid fabric softening composition containing amidoamine softening compound |
| JP2007173265A (en) * | 2005-12-19 | 2007-07-05 | Dainippon Printing Co Ltd | Impact resistant clean container |
-
1988
- 1988-07-11 JP JP63172443A patent/JPH0221741A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5476598A (en) * | 1992-12-22 | 1995-12-19 | Colgate-Palmolive Co. | Liquid fabric softening composition containing amidoamine softening compound |
| JP2007173265A (en) * | 2005-12-19 | 2007-07-05 | Dainippon Printing Co Ltd | Impact resistant clean container |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2002140184A (en) | Printer, print system, recording medium and server | |
| JPH0775018B2 (en) | Method and apparatus for optimizing instruction transfer between processors | |
| JPH0221741A (en) | Picture processor | |
| EP0258650B1 (en) | Parallel computer system capable of asynchronous data transmission | |
| JPH0221742A (en) | Picture processor | |
| JPH06301644A (en) | Data transfer method | |
| JPH0221375A (en) | Picture processor | |
| US7360222B2 (en) | Extensions to coupling channels to support multiple coupling facility sharing, interrupts, and message passing | |
| US6023752A (en) | Digital data apparatus for transferring data between NTDS and bus topology data buses | |
| JP3162102B2 (en) | Data transfer processing device between virtual machines | |
| JP2574349B2 (en) | Time-division multitasking execution device | |
| JPH06274436A (en) | Data transfer system | |
| US7886306B2 (en) | Extensions to coupling channels to support multiple coupling facility sharing, interrupts, and message passing | |
| JPH07182261A (en) | Information processor | |
| JP2705955B2 (en) | Parallel information processing device | |
| JP2874541B2 (en) | High-speed printer output system | |
| JP2763313B2 (en) | Configuration control method for electronic computer system | |
| EP1380954B1 (en) | Computer system and data processing method | |
| JP2002169699A (en) | Communication system using multiple virtual machines | |
| JP2988817B2 (en) | Printing equipment | |
| JP2635635B2 (en) | Memory information updating device between distributed nodes | |
| JPH1083264A (en) | Printer device | |
| JPH02287611A (en) | Printer controller | |
| JPS61175747A (en) | Data transfer control system | |
| JP2776747B2 (en) | File transfer device |