JPH0221375A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH0221375A
JPH0221375A JP63172445A JP17244588A JPH0221375A JP H0221375 A JPH0221375 A JP H0221375A JP 63172445 A JP63172445 A JP 63172445A JP 17244588 A JP17244588 A JP 17244588A JP H0221375 A JPH0221375 A JP H0221375A
Authority
JP
Japan
Prior art keywords
microprocessor
data
program
information
flag
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63172445A
Other languages
Japanese (ja)
Inventor
Yoshikazu Ikenoue
義和 池ノ上
Hiroichi Yamada
博一 山田
Shuji Maruta
修二 丸田
Kazuhiro Araki
一博 荒木
Kaoru Hashimoto
薫 橋本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP63172445A priority Critical patent/JPH0221375A/en
Priority to US07/377,943 priority patent/US5191648A/en
Publication of JPH0221375A publication Critical patent/JPH0221375A/en
Priority to US07/950,232 priority patent/US5251295A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain the advantages of a fixed wiring communication system and a polling system by holding the communication mode information in an address space controlled by each slave processing unit and controlling the communication between a master processing unit and the slave processing units by a communication system designated by the communication mode information. CONSTITUTION:A master processing unit 4 supplies the communication mode information to the address spacers 7-9 of the slave processing units 1-3 through an address space 6 by means of a communication means. These communication mode information held in the spaces 7-9 are rewritten by the command of the unit 4. Thus the unit 4 changes the communication mode information held in the spaces 7-9 in case the communication system so far used becomes inappropriate due to the change of the working environment of a picture processor. Hereafter the communication is carried out by an appropriate system. Thus it is possible to decrease the number of communication wirings without deteriorating the processing speed of the picture processor.

Description

【発明の詳細な説明】[Detailed description of the invention]

[産業上の利用分野] 本発明は画像処理装置に係り、特に、給紙ユニット、ソ
ータ等をそれぞれ制御する複数のスレーブ処理ユニット
の動作を総合的に管理、調整するマスター処理ユニット
と各スレーブ処理ユニットとの通信方式に関する。 [従来の技術] 従来、この種の画像処理装置はその機能を複数のコント
ローラで管理しており、各コントローラ間の通信は固定
配線方式を採用していた。固定配線方式では、上記複数
のコントローラをそれぞれ専用の配線で接続し、各コン
トローラは専用の配線を使用して通信対象のコントロー
ラと通信していた。 [発明が解決しようとする問題点コ 上記従来の画像処理装置では、各コントローラが専用の
配線を使用して他のコントローラと通信していたので、
通信の必要性が発生すると直ちに専用配線を使用するこ
とができ、通信要求の発生から情報の送出まての待ち時
間は無視し得るほど短時間であるという利点はあるもの
の、コントローラ数が増大すると、専用配線数もコント
ローラ数に比例して増加し、しかも、各専用配線上の情
報の取り込みを調整するための付加的回路も増大し、画
像処理装置の回路が複雑、かつ、大規模になるという問
題点があった。 かかる従来の画像処理装置の問題点を解決するために、
通信の分野で採用されている競合制御方式、例えは、ホ
ー」ノング方式を画像処理装置の複数コントローラ間の
通信に適用することも考えられる。しかしながら、画像
処理装置の機能を実現するために設けられる複数のコン
トローラは、それらの通信容量にばらつきがあり、単純
に競合制御方式を採用したのでは、通信容・量の大きい
コントローラに通信要求が発生してから通信線を占有で
きるようになるまでの待ち時間が長大化し、画像処理装
置の処理速度が低下するという難点の発生する恐れがあ
る。したがって、本発明の目的は画像処理装置の処理速
度を低下させることなく通信配線数を減少させることで
ある。 [問題点を解決するための手段] 本願発明の要旨は、第1図に示されているように、各々
が所定の機能を実現する複数のスレーブ処理ユニット1
. 2. 3と、上記スレーブ処理ユニッ)1,2.3
を管理するマスター処理ユニット4と、上記スレーブ処
理ユニッ)L2+3と上記マスター処理ユニット4とを
接続する通信手段5とを備えた画像処理装置において、
上記マスタ処理ユニットは固定配線通信方式とポーリン
グ方式とのいずれを上記各スレーブ処理ユニットとの通
信に採用しているかを表す通信モード情報を保持するア
ドレス空間6を管理しており、上記複数のスレーブ処理
ユニットはそれぞれの管理するアドレス空間?、  8
. 9内に上記通信モード情報を上記マスタ処理ユニッ
ト4からの指令にしたがい書き換え可能に保持しており
、上記マスタ処理ユニット4と上記各スレーブ処理ユニ
ット1,2゜3とは上記通信モード情報で指定された方
式で通信することである。 [発明の作用] 上記構成に係る画像処理装置にあっては、まず、マスタ
処理ユニット4が通信モード情報を通信手段を使用して
アドレス空間6から各スレーブ処理ユニット1. 2.
 3のアドレス空間?、  8. 9にそれぞれ供給す
る。この通信モード情報の供給に際しては、全てのスレ
ーブ処理ユニット1,2゜3のアドレス空間?、  8
. 9に対してポーリング方式を指定する通信モード情
報を供給することもできるが、一部のスレーブユニット
のアドレス空間には、ポーリング方式を指定する通信モ
ード情報を供給し、残りのスレーブ処理ユニットのアド
レス空間には固定配線通信方式を指定する通信モード情
報を供給することもできる。このように通信モード情報
の指定が完了すると、以後、マスタ処理ユニット4とス
レーブ処理ユニット1,2゜3とは通信モート情報で指
定された方式で通信することになる。上述のように各ス
レーブ処理ユニッ)1,2.3のアドレス空間?、  
8. 9に保持されている通信モード情報はマスタ処理
ユニット40指令に基づき書き換え可能なので、画像処
理装置の動作環境を変更した結果、それまで採用してい
た通信方式が不適当になれば、マスタ処理ユニット4は
そのスレーブ処理ユニットのアドレス空間に保持されて
いる通信モード情報を変更し、以後、適切な通信方式で
通信することもできる。 [発明の効果] 以上説明してきたように、本発明によれば、各スレーブ
処理ユニットの管理下にあるアドレス空間に通信モード
情報を保持させ、該通信モード情報で指定された通信方
式でマスタ処理ユニットとスレーブ処理ユニットとの通
信を制御するようにしたので、それぞれのスレーブ処理
ユニットに割り当てられた機能を実現するのに最適な通
信方式で通信することができ、固定配線通信方式の利点
とポーリング方式の利点とを併せ持つ通信方式を実現で
きるという効果を得られる。 [実施例コ 以下、本発明の一実施例を図面を参照して説明する。一
実施例は本発明をレーザプリンタに適用した例であり、
本発明はレーザプリンタだけでなく、複写機等、特にデ
ィジタルコピアにも適用可能である。以下の説明では、
まず、一実施例のハードウェアの構成を説明する。 バー゛ウェアの−り 第2図は一実施例のマクロシステム構成を示すブロック
図であり、21はマスター処理ユニットとしてのプリン
タコントローラ(以下、MSCと言う)を、22.23
.24.25.26はスレーブ処理ユニットとしての操
作部用コントローラ、プリンタエンジン用コントローラ
、給紙ユニット用コントローラ、ソータ用コントローラ
、画像処理部用コントローラ(これらのコントローラは
以下SSCで表される)をそれぞれ示している。上記5
SC22〜26の内、5SC22,23,26はレーザ
プリンタのシステム構成に必須のコントローラであり、
5SC24,25は給紙機構およびソータをオプション
として追加するときに付加されるコントローラである。 MSC21は通信手段としてのマクロシステムインタフ
ェース27を介して上記操作部用5SC22、プリンタ
エンジン用5SC23、給紙ユニット用5SC24、ソ
ータ用5SC25、画像処理部用5SC26に接続され
ており、操作部用5SC22は、ユーザがレーザプリン
タに指示を与えるための各種操作スイッチを走査してそ
の動作を検出している。プリンタエンジン用5SC23
は下位システムとしてのドラム機構の駆動ユニット、光
学ユニット等の複数の機能ユニッ)UNIT1〜UNI
T3の動作を管理しており、したがって、プリンタエン
ジン用5SC23はこれら複数の機能ユニッ)UNIT
I〜UNIT3とサブシステムインタフェース29を介
して接続されている。各機能ユニッ)UNITI〜UN
IT3は機械的構成とプリンタエンジン用5SC23の
管理下にある制御部とを備えているが、詳細については
割愛する。また、給紙ユニット用5SC24、ソータ用
5SC25および画像処理部用5SC26もそれぞれ給
紙機構、ソータ機構およびデイスプレィユニットを伴っ
ているが、詳細な説明は省略する。 図には詳示されていないが、本実施例のレーザプリンタ
は上位のユーザシステムの一部を構成しており、MSC
21の動作はユーザシステム内のスーパーバイザ28の
管理下にある。 SSCの   に   モリの払  ゛し第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またはグローバルモードマツプ35の特定アドレスに
ではなく、該特定アドレスに対応するストリングエリア
36にアクセスすることになる。 次に、各レジスタ類32〜35に一時的に保持される情
報等について説明する。MSC21から各5SC22〜
26に供給される処理コマンドおよび通信コマンドは各
5SC22〜26のコマンドレジスタ32に一時的に保
持され、各SSCのマイクロプロセッサ31がコマンド
実行可能状態になると、コマンドレジスタ32に保持さ
れている処理コマンドまたは通信コマンドはマイクロプ
ロセッサ31に供給される。 各5SC22〜26は少なくとも単独である機能を実現
することが可能であり、実行モードについては標準モー
ドを有している。標準モードは後述するMSC21の初
期化サブルーチンプログラム5BI(第17図参pg、
)(7)実行時!ZMSC21内に初1tJI設定され
る。各5SC22〜26はMSC21から標準モードを
指定する処理コマンドを供給されることにより標準モー
ドに切り換えられ、標準モードで指定された所定の機能
を実現することになる。また、各5SC22〜26は標
準モードで指定された機能以外の機能も実現させること
ができ、かかる標準モード以外の機能の実現を図るため
2つのモードマツプ34.35を備えている。グローバ
ルモードマツプ35は全5SC22〜26に共通のモー
ド情報を保持しており、これに対して、ローカルモード
マツプ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の 理 にあるメモリの仏 アルレス −第4図
はMSC21の機能ブロックと該M S C21に管理
されている論理アドレス空間との関係を示すブロック図
であり、論理アドレス空間には、5SC22〜26にそ
れぞれ専用される複数の領域を有するコマンドレジスタ
41と、同様に5sC22〜26にそれぞれ専用される
複数の領域を有するステータスレジスタ42およびレポ
ートレジスタ43と、全5SC22〜26に共通のグロ
ーバルモードマツプ44と、やはり各5SC22〜26
に専用される複数の領域を有するローカルモードマツプ
45とが規定されている。上記コマンドレジスタ41は
処理コマンドおよび通信コマンドをMSC21から通信
対象の5SC22〜26へ送出するために設けられてお
り、コマンドレジスタ41から送出された上記コマンド
は各5sC22〜26のコマンドレジスタ32に1呆持
されることになる。これに対して、グローバルモードマ
ツプ44は全5SC22〜26に共通するモード情報を
保持しているので、グローバルモ・−ドマップ44から
送出されたモード情報は各5SC22〜26のグローバ
ルモードマツプ35に共通して保持されるようになる。 レポートレジスタ43は各5SC22〜26から供給さ
れるシーケンスレポート情報を保持するレジスタであり
、シーケンスレポート情報は上述のごとくいずれかの5
SC22〜26でMSCに通知すべき事象が発生したこ
とを表す情報である。MSC21内に設定されるa−カ
ルモードマツプ45は各5SC22〜26に対してモー
ド情報を供給し、各5SC22〜26からステータス情
報の通知を受けるために設けられており、各5SC22
〜26のローカルモードマツプ34から供給されたステ
ータス情報はローカルモードマツプ45内の対応する領
域に、また、該対応する領域から各5SC22〜26に
対して送出されたモード情報は各5SC22〜26内の
ローカルモードマツプ34にそれぞれ保持されることに
なる。 図中、46はマクロシステムインタフェース27に接続
された受信レジスタであり、マクロシステムインタフェ
ース27を介して各5SC22〜26から送出されたシ
ーケンスレポート情報、ステータス情報等はこの受信レ
ジスタ41に一旦保持された後に受信バッファ47に転
送され、しかる後にレポートレジスタ43またはローカ
ルモードマツプ45に書き込まれる。これに対して、コ
マンドレジスタ41、グローバルモードマツプ44また
はローカルモードマツプ45に保持されているコマンド
またはモード情報は−H送信バッファ48に保持された
後に送信レジスタ49に転送され、しかる後にマクロシ
ステムインタフェース27を介して各5SC22〜26
、または全5SC22〜26の対応するレジスタ等に送
出される。 上述のように、ローカルモードマツプ 45に保持され
る情報は各5SC22〜26に送出すべきものと、各5
SC22〜26から供給されたものとが混在するので、
ローカルモードマツプ45に保持される各情報はその第
14ビツトおよび第15ビツトを受信通知フラグRRお
よび送信要求フラグTRとして規定している。すなわち
、各5SC22〜26から供給された情報の場合、MS
C21はその受信された情報の第14ビツトを「l」に
設定し、しかる後にローカルモードマツプ45に保持す
る。このように受信通知フラグRRの立てられた情報は
、後に詳述する処理を経た後に再び「0」にリセットさ
れる。これに対して、各5SC22〜26に送出すべき
情報には予め送信要求フラグTRが立てられ、送信要求
フラグTRが「1」に設定されている情報は目的とする
5SC22〜26に送出される。このように目的とされ
る5SC22〜26に送出された情報は送出後に再び「
0」にリセットされる。また送信要求フラグTR1受信
通知フラグRR,MS C及びSSCの全エリアについ
ても「0」にリセットされる。 MSC21には、各5SC22〜26と通信するための
ポーリング制御ブロック50が実現されており、MSC
21はこのポーリング制御ブロック50により各5SC
22〜26に通信要求を送出し、該通信要求に対して該
当する5SC22〜26が応答して情報の通信を行う。 レーザプリン  の゛ =    −り第5図はレーザ
プリンタ内に実現されている通信ネットワークを示すブ
ロック図であり、M S C21と各5SC22〜26
(第5図には操作部用5SC22、プリンタエンジン用
5SC23および画像処理部用5SC26のみ示されて
いる)とはマクロシステムインタフェース27を実現す
る2本のシリアル通信線SIとSOとで共通接続されて
いる。 コン ローラのバー′′ウェア 第5図に示されているネットワークを構成するコントロ
ーラ(MSCおよび5SC)のハードウェア構成を第6
図に示す。MSC21および各5SC22〜26はマイ
クロプロセッサ61と、該マイクロプロセッサ61の動
作を制御する制御プログラムを固定的に保持する読み出
し専用メモリ(ROM)62と、マイクロプロセッサ6
1により管理される上記論理アドレス空間等を提供する
随時読み出し書き込み可能メモリ(RAM)63と、シ
リアル通信線S1に接続された受信レジスタ(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へ出力する。このようにして、
シリアル通信線SIに送出されたステータス情報等はM
SC21の受信レジスタ64に一旦保持され、その後、
RAM63に書き込まれてる。 このようにして、RAM63に書き込まれたステータス
情報等はマイクロプロセッサ61に読み出され、処理さ
れる。 通」1ユLと2匹 上述のように、本実施例では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
に送出する。かかる通信要求の発生は、各5SC22〜
26に対する通信要求は先行する通信要求に対する応答
の終了とポーリングタイミングの経過とを条件としてお
り、ポーリングタイミングの経過を条件としたことは通
信頻度の増大が各SSCでのコマンド等に基づく処理実
行の速度の低下とならないようにするためである。なお
、MSC21は各5SC22〜26からの通信とは無関
係に各5SC22〜26にフレーム73.76を送信す
ることができる。 2セ:シ
[Industrial Application Field] The present invention relates to an image processing device, and in particular, a master processing unit that comprehensively manages and adjusts the operations of a plurality of slave processing units that respectively control a paper feed unit, a sorter, etc., and each slave processing unit. Regarding the communication method with the unit. [Prior Art] Conventionally, the functions of this type of image processing apparatus have been managed by a plurality of controllers, and a fixed wiring method has been adopted for communication between the controllers. In the fixed wiring method, the plurality of controllers are connected by dedicated wiring, and each controller uses the dedicated wiring to communicate with the controller with which it communicates. [Problems to be Solved by the Invention] In the conventional image processing device described above, each controller communicates with other controllers using dedicated wiring.
Although the advantage is that dedicated wiring can be used as soon as the need for communication arises, and the waiting time from the generation of a communication request to the sending of information is negligibly short, as the number of controllers increases, , the number of dedicated wires increases in proportion to the number of controllers, and additional circuits for adjusting the intake of information on each dedicated wire also increase, making the circuit of the image processing device complex and large-scale. There was a problem. In order to solve the problems of such conventional image processing devices,
It is also conceivable to apply a competition control method employed in the field of communications, such as the Ho'Nong method, to communication between multiple controllers of an image processing device. However, the multiple controllers installed to realize the functions of image processing devices vary in their communication capacity, and if a competitive control method is simply adopted, communication demands will be placed on the controller with the larger communication capacity/volume. There is a possibility that the waiting time from when the problem occurs until the communication line can be occupied becomes longer, resulting in a disadvantage that the processing speed of the image processing device decreases. Therefore, an object of the present invention is to reduce the number of communication wires without reducing the processing speed of an image processing apparatus. [Means for Solving the Problems] The gist of the present invention is that, as shown in FIG. 1, a plurality of slave processing units 1 each realizing a predetermined function
.. 2. 3 and the above slave processing unit) 1, 2.3
In an image processing apparatus, the image processing apparatus includes a master processing unit 4 that manages the slave processing unit L2+3, and a communication means 5 that connects the slave processing unit L2+3 and the master processing unit 4,
The master processing unit manages an address space 6 that holds communication mode information indicating whether the fixed wiring communication method or the polling method is used for communication with each of the slave processing units. Does each processing unit manage an address space? , 8
.. The communication mode information is held in a rewritable manner in accordance with commands from the master processing unit 4, and the master processing unit 4 and each of the slave processing units 1, 2 and 3 are specified by the communication mode information. It is to communicate in a specified manner. [Operation of the Invention] In the image processing apparatus having the above configuration, first, the master processing unit 4 transmits communication mode information from the address space 6 to each slave processing unit 1. 2.
3 address space? , 8. 9 respectively. When supplying this communication mode information, the address spaces of all slave processing units 1, 2 and 3 must be maintained. , 8
.. Communication mode information specifying the polling method can be supplied to the address space of some slave units, and communication mode information specifying the polling method is supplied to the address space of some slave units, and the address space of the remaining slave processing units is Communication mode information specifying a fixed wiring communication method can also be supplied to the space. When the designation of the communication mode information is completed in this manner, the master processing unit 4 and the slave processing units 1, 2, and 3 will thereafter communicate using the method specified by the communication mode information. As mentioned above, the address space of each slave processing unit) 1, 2.3? ,
8. The communication mode information held in the image processing unit 9 can be rewritten based on commands from the master processing unit 40, so if the previously adopted communication method becomes inappropriate as a result of changing the operating environment of the image processing device, the master processing unit 4 changes the communication mode information held in the address space of the slave processing unit, and can thereafter communicate using an appropriate communication method. [Effects of the Invention] As described above, according to the present invention, communication mode information is held in the address space under the control of each slave processing unit, and master processing is performed using the communication method specified by the communication mode information. Since the communication between the unit and the slave processing units is controlled, communication can be performed using the communication method that is most suitable for realizing the functions assigned to each slave processing unit. It is possible to achieve the effect of realizing a communication method that has both the advantages of the other methods. [Embodiment] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. One 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 copying machines, especially digital copiers. In the following explanation,
First, the hardware configuration of one embodiment will be explained. FIG. 2 is a block diagram showing the macro system configuration of one embodiment, in which 21 is a printer controller (hereinafter referred to as MSC) as a master processing unit;
.. 24, 25, and 26 are slave processing units such as an operation unit controller, a printer engine controller, a paper feed unit controller, a sorter controller, and an image processing unit controller (these controllers are hereinafter referred to as SSC), respectively. It shows. Above 5
Among SC22 to SC26, 5SC22, 23, and 26 are controllers essential for the system configuration of the laser printer.
5SCs 24 and 25 are controllers that are added when a paper feeding mechanism and a sorter are added as options. The MSC 21 is connected to the operation unit 5SC 22, the printer engine 5SC 23, the paper feed unit 5SC 24, the sorter 5SC 25, and the image processing unit 5SC 26 via the macro system interface 27 as a communication means. , the user scans various operation switches to give instructions to the laser printer and detects the operation. 5SC23 for printer engine
(indicates multiple functional units such as a drive unit for a drum mechanism, an optical unit, etc. as a lower system) UNIT1 to UNI
The printer engine 5SC23 manages the operation of the T3, and therefore the printer engine 5SC23 is a unit that controls these multiple functional units.
It is connected to I to UNIT3 via a subsystem interface 29. Each functional unit) UNITI~UN
The IT3 has a mechanical configuration and a control unit under the control of the printer engine 5SC23, but the details will be omitted. Furthermore, the paper feed unit 5SC24, the sorter 5SC25, and the image processing section 5SC26 each have a paper feed mechanism, a sorter mechanism, and a display unit, but detailed explanations thereof will be omitted. Although not shown in detail in the figure, the laser printer of this embodiment constitutes a part of the upper user system, and the MSC
The operations of 21 are under the control of a supervisor 28 within the user system. Figure 3 shows each SSC.
It is a block diagram showing the logical address space of the memory accessed by the microprocessor 31 in the SC.
It is provided for each of the C25 and the 5SC26 for the image processing section. To be more specific, the logical address space managed by the microprocessor 31 includes a command register 32 (
CMD-REG) and status register (GSTAT
-REG), and a local mode map (LM-MAP) 34 divided into a plurality of (two in this embodiment) regions,
Global mode map (GM-MAP) 35, string area 36, and report register (REPO-R)
EG) 37 are defined, and these registers 3
2 to 37 temporarily hold data information, etc., which will be described in detail below. Note that when the microprocessor 31 accesses a specific address called a string window in the local mode map 34 and the global mode map 35, the microprocessor 31 accesses the local mode map 34 and the global mode map 35.
4 or the specific address of the global mode map 35, but the string area 36 corresponding to the specific address is accessed. Next, information etc. temporarily held in each of the registers 32 to 35 will be explained. From MSC21 to each 5SC22~
The processing commands and communication commands supplied to the 5SCs 26 and 26 are temporarily held in the command registers 32 of each of the 5SCs 22 to 26, and when the microprocessor 31 of each SSC becomes ready for command execution, the processing commands held in the command registers 32 are Alternatively, communication commands are supplied to the microprocessor 31. Each of the 5SCs 22 to 26 can at least independently realize a certain function, and has a standard mode of execution. In the standard mode, the MSC21 initialization subroutine program 5BI (see Figure 17, pg.
) (7) At execution time! The first 1tJI is set in ZMSC21. Each of the 5SCs 22 to 26 is switched to the standard mode by being supplied with a processing command specifying the standard mode from the MSC 21, and realizes a predetermined function specified in the standard mode. Further, each of the 5SCs 22 to 26 can realize functions other than those specified in the standard mode, and is provided with two mode maps 34 and 35 in order to realize the functions other than the standard mode. The global mode map 35 holds mode information common to all 5 SCs 22 to 26, whereas the local mode map 34 holds mode information unique to each SSC, and these are held in the global mode map 35. Functions other than those specified in the standard mode can be realized based on the mode information held in the local mode map 34 and the mode information held in the local mode map 34. The local mode map 34 holds mode information as described above, but
In addition, it holds status information of each SSC. As mentioned above, in this embodiment, the local mode map 34 is divided into two areas, so if each SSC manages multiple functional units, each mode information and status information is divided into two areas. will be managed accordingly. Note that these mode maps 34 and 35 are set to standard values at the time of initialization. As described above, the local mode map 34 holds various mode information and status information, and these status information etc. are summarized and held in the status register 33. Therefore, in order for the MSC21 to control the entire operation of the laser printer, each of the 5SC22-2
6, it is necessary to first access the summarized information in the status register 33, and then access the status information held in the local mode map 34 based on the summarized information. Determine whether or not there is. Therefore, the amount of information that the MSC 21 should access can be reduced, and processing speed can be increased. The report register 37 is a register that holds sequence report information formed in each 5SC22 to 26, and the sequence report information is stored in any 5SC2.
This is information indicating that an event that should be notified to the MSC has occurred in items 2 to 26. Figure 4 is a block diagram showing the relationship between the functional blocks of the MSC21 and the logical address space managed by the MSC21.The logical address space includes 5SC22 to 26. A command register 41 having a plurality of areas respectively dedicated to the 5SCs, a status register 42 and a report register 43 having a plurality of areas respectively dedicated to the 5SCs 22 to 26, and a global mode map 44 common to all 5SCs 22 to 26. And, as expected, each 5SC22-26
A local mode map 45 is defined having a plurality of areas dedicated to the local mode map 45. The command register 41 is provided to send processing commands and communication commands from the MSC 21 to the communication target 5SCs 22 to 26, and the above commands sent from the command register 41 are stored in the command registers 32 of each 5sC 22 to 26. It will be held. On the other hand, since the global mode map 44 holds mode information common to all 5SCs 22 to 26, the mode information sent from the global mode map 44 is common to the global mode map 35 of each 5SC 22 to 26. and will be retained. The report register 43 is a register that holds sequence report information supplied from each of the 5SCs 22 to 26, and the sequence report information is stored in any one of the 5SCs as described above.
This is information indicating that an event that should be notified to the MSC has occurred in the SCs 22 to 26. The a-cal mode map 45 set in the MSC 21 is provided to supply mode information to each 5SC 22 to 26 and to receive notification of status information from each 5SC 22 to 26.
The status information supplied from the local mode map 34 of ~26 is sent to the corresponding area in the local mode map 45, and the mode information sent from the corresponding area to each of the 5SCs 22 to 26 is sent to each of the 5SCs 22 to 26. The local mode map 34 of the local mode map 34 of FIG. In the figure, 46 is a reception register connected to the macro system interface 27, and sequence report information, status information, etc. sent from each of the 5SCs 22 to 26 via the macro system interface 27 are temporarily held in this reception register 41. It is then transferred to the receive buffer 47 and then written to the report register 43 or local mode map 45. On the other hand, commands or mode information held in the command register 41, global mode map 44, or local mode map 45 are held in the -H transmission buffer 48, then transferred to the transmission register 49, and then transferred to the macro system interface. Each 5SC22-26 via 27
, or to the corresponding registers of all five SCs 22-26. As mentioned above, the information held in the local mode map 45 includes what should be sent to each 5SC 22 to 26 and what should be sent to each 5SC 22 to 26.
Since the supplies from SC22 to SC26 are mixed,
Each piece of information held in the local mode map 45 defines its 14th and 15th bits as a reception notification flag RR and a transmission request flag TR. That is, in the case of information supplied from each 5SC22-26, the MS
C21 sets the 14th bit of the received information to "l" and then holds it in local mode map 45. The information for which the reception notification flag RR has been set in this way is reset to "0" again after undergoing processing that will be described in detail later. On the other hand, a transmission request flag TR is set in advance for information to be sent to each 5SC 22 to 26, and information for which the transmission request flag TR is set to "1" is sent to the target 5SC 22 to 26. . The information sent to the 5SCs 22 to 26 for this purpose is re-transmitted after sending it.
0”. All areas of the transmission request flag TR, reception notification flag RR, MSC, and SSC are also reset to "0". A polling control block 50 for communicating with each of the 5SCs 22 to 26 is implemented in the MSC 21.
21 is controlled by each 5SC by this polling control block 50.
A communication request is sent to the 5SCs 22 to 26, and the corresponding 5SCs 22 to 26 respond to the communication request to communicate information. FIG. 5 is a block diagram showing the communication network implemented in the laser printer, and includes an MSC 21 and each 5SC 22 to 26.
(Only the 5SC22 for the operation section, the 5SC23 for the printer engine, and the 5SC26 for the image processing section are shown in FIG. 5) are commonly connected by two serial communication lines SI and SO that realize the macro system interface 27. ing. The hardware configuration of the controllers (MSC and 5SC) that make up the network shown in Figure 5 is shown in Figure 6.
As shown in the figure. The MSC 21 and each of the 5SCs 22 to 26 include a microprocessor 61, a read-only memory (ROM) 62 that permanently stores a control program for controlling the operation of the microprocessor 61, and a microprocessor 6.
1, and a reception register (RX-R) connected to the serial communication line S1.
EG) 64, a transmission register (TX-REG) 65 connected to the serial communication line SO, and an interrupt timer 66 for providing timer interrupt timing to the microprocessor 61. Therefore, in the case of the MSC 21, upon receiving a command from the supervisor 28 of the above-mentioned upper user system, the microprocessor 61 executes the control program held in the ROM 62 and creates the logical address space set in the RAM 63. The communication command and processing command held in the logical address space can be output to each of the 5SCs 22 to 26 from the transmission register 65 to the serial communication line SO. On the other hand, each 5S
C22 to C26 temporarily hold the supplied ritual command and processing command in the receiving register 64, and then execute the control program to realize the function instructed by the command, and if status information etc. are requested, they are sent to the RA.
Reads the status information etc. held in the logical address space provided by M63 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 SI 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 information and the like written in the RAM 63 are read out and processed by the microprocessor 61. As mentioned above, in this example, there are MSC21 and 5SC22 each.
~26 basically refers to a communication request or designation (set) sent from the MSC21 as a control station.
Communication is carried out by a polling method in which each of the 5SCs 22 to 26 responds (answers) to the MSC 2. As shown in FIG.
Frame 71.73.74.76.77.79 can be sent from 1 to each 5SC22-26 at any timing, but the response from each 5SC22-26 to MSC21 is frame 72 sent from a different 5SC22-26. .7
This is done on a time-sharing basis to avoid 5.78 collisions. For example, as shown in FIG.
1, the operating unit 5SC 22 identifies the communication request for itself using the identification code included in the frame 71, and sends a frame 72 to the MSC 21 to transmit the requested information. On the other hand, when the MSC 21 detects the end of transmission from the 5SC 22 for the operation section, the MSC 21
SC1, for example, sends a communication request to 5SC23 for printer engine in frame 74, and
When the C23 responds with frame 75, it detects the end and sends a communication request in frame 77 to the image processing 5SC26.
Send to. The occurrence of such a communication request occurs at each 5SC22~
The communication request for 26 is conditional on the completion of the response to the preceding communication request and the elapse of the polling timing, and the fact that the polling timing has elapsed is because the increase in communication frequency means that the processing execution based on commands, etc. at each SSC will be delayed. This is to prevent the speed from decreasing. Note that the MSC 21 can transmit frames 73.76 to each of the 5SCs 22 to 26 regardless of communication from each of the 5SCs 22 to 26. 2nd se: shi

【構成 上述のようにMSC21から各5SC22〜26へはポ
ーリング方式で情報の通信が図られるが、かかるの通信
時には、情報は可変長のフレームを単位として伝送され
る。各フレームはキャラクタと呼ぶ固定長のビット列を
1または複数個直列に並べて構成されており、以下の説
明では、各フレームの先頭キャラクタはIDキャラクタ
、該IDキャラクタに続くキャラクタはデータキャラク
タと称される。したがって、複数のキャラクタで構成さ
れるフレームは第8図に示されているようにIDキャラ
クタと、該IDキャラクタに後続する可変個数のデータ
キャラクタとで構成されることになる。各キャラクタは
第9図に示されているように、キャラクタの先頭を示す
同期用スタートビットSTAと、該同期用スタートビッ
トSTAに後続する8ビツトのデータbO〜b7と、該
データビットに続くパリティビットPAと、キャラクタ
の終了を示す同期用ストップピッ)STOとで構成され
ている。 したがって、同期用スタートビットSTA、パリティビ
ットPAおよび同期用ストップビットSTOを除くデー
タビットbO〜b7で表される情報がIDキャラクタと
データキャラクタとで異なることになる。すなわち、I
Dキャラクタでは、ピッ)b7が「1」に設定されてお
り、この「1」に設定されたビットb7により「0」に
設定されるデータキャラクタから識別される。ビットb
6は送信先から所定フレームの応答を要求しているか否
かを表す応答要求ビットAとして使用されており、ピッ
)b2〜b5は情報の送信先を特定する4ビツトの識別
コード(SO〜S3)として機能する。残りの2ビット
bl、boは送信先の論理アドレス空間のいずれの領域
にアクセスするのかを表す2ビツトのエリアコード(U
l、U2)として機能する。 したがって、上記ビット構成のIDキャラクタは、応答
要求ビット、識別コード(So〜S3)およびエリアコ
ード(Ul、U2)の値の朝み合せて種々の情報を表す
ことができ、これらの組み合せと後続するデータキャラ
クタとで種々のフレームを構成することができる。まず
、本実施例で使用されるフレームについて説明する。 シー ン コマン (MSC21発信) MSC21から各5SC22〜26の動作の開始を要求
するために出力されるフレームであり、レーザプリンタ
全体の動作を制御するために使用される。MSC21か
ら各5SC22〜26に供給されたシーケンスコマンド
はコマンドレジスタに保持される。これらのシーケンス
コマンドは本実施例では上記処理コマンドを構成する。 iニエ土ユ上 (MSC21発信) MSC21から全5SC22〜26にそれらの動作モー
ドを一斉に変更するために、または各5SC22〜26
に個別の動作モードを変更するために出力されるフレー
ムであり、5SC22〜26のグローバルモードマツプ
に保持されているモード情報、またはローカルモードマ
ツプに保持されているモード情報を変更する。 m−1工 (MSC21発信) MSC21が各5SC22〜26のスデータスレジスタ
内の情報を要求するとき送出されるフレームである。な
お、ポーリングモードでは各5SC22〜26の送信タ
イミングの通知に使用される。本実施例では上記通信コ
マンドとして機能す五二」]しし乱入上 (MSC21または各5SC22〜26発信)各5SC
22〜26のグローバルモードマツプやローカルモード
マツプ内のモード情報を要求するときに出力されるフレ
ームである。各5SC22〜26の状態や上記モードセ
ットが正し〈実施されたか否かをチエツクするために用
いられる。 五二上1之ヱ (各5SC22〜26発信) 上記モードリクエストに対する各5SC22〜26から
の応答として出力されるフレームである。 この応答に際しては、各5SC22〜26のローカルモ
ードマツプ内のモード情報が送出される。 入五二ヱスヱ之並 (各5SC22〜26発信) MSC21から各5SC22〜26に上記ステータスリ
クエストまたはシーケンスコマンドが供給されたとき、
各5SC22〜26からの応答として出力されるフレー
ムである。したがって、ステータスアンサでは各SSC
のステータスレジスタに保持されている情報とコマンド
レジスタに書き込まれたコマンドが送出される。 シーケンスレボ− (各5SC22〜26発信) 各5SC22〜26の管理下でMSC21に通知すべき
事象が発生したとき、該事象の発生を表すシーケンスレ
ポート情報を送出するフレームである。上記シーケンス
コマンドと併用してレーザプリンタの制御に利用される
。 応答する。ところが、MSC21がモードセットを出力
した場合には、各5SC22〜26は特に応答はせず、
反対に各5SC22〜26がシーケンスレポートを送出
しても、MSC21は応答しない。 上述の各フレームを構成するために組み合わされる応答
要求ビットの値、識別コードの値およびエリアコードの
値を下記のフレーム識別−覧表に示す。 (以下余白) 以上説明したフレームはレーザプリンタの制御のために
互いに関連して使用される。上記フレームの関連性を示
せば、N5C21がシーケンスコマンドを出力すると、
各5SC22〜26はステータスアン4ノで応答する。 また、MSC21がステータスリクエストを送出すると
、各5SC22〜26はステータスアンサでもって応答
する。同様に、MSC21がモードリクエストで情報を
要求すれば、各5SC22〜26はモードアンサでス上
:Jdv田二!衷 次に、上述した各フレームを構成するIDキャラクタと
それに後続するデータキャラクタとのビット構成を詳述
する。 MSC晋 レーム 第11図(a)はシーケンスコマンドを構成するキ、ヤ
ラクタのビット構成を示すフォーマット図である。シー
ケンスコマンドは3キヤラクタで構成されており、ID
キャラクタは上記表に示した通りである。IDキャラク
タに続く2つのデータキャラクタの最上位ピッ) (b
7)はそれぞれ「0」に設定されており、データキャラ
クタ1のビットb6は取り込み確認ピッ) (Q)とし
て機能しており、この取り込み確認ビット(Q)はコマ
ンドの同期を取るためのもので、ステータスアンサと組
み合わせて、各5SC22〜26がMSC21から供給
されたコマンドを正常に取り込んだか否かを確認するた
めに使用される。データキャラクタlのビットb5およ
びデータキャラクタ2のピッ)b6とは将来の拡張時に
使用されるビット(x)であり、本実施例では各5SC
22〜26はビット(X)を無視する。したがって、デ
ータキャラクタ1では、ビット0(L、SB)〜ビット
4がコマンドコード(Co−C4)割り当てられており
、データキャラクタ2ではビット0〜ビツト6(PO〜
P6)がパラメータに割り当てられている。 第11図(b)はステータスリクエストを構成するキャ
ラクタのビット構成を示すフォーマット図である。ステ
ータスリクエストはIDキャラクタのみで構成されてい
る。IDキャラクタのビット構成は上述したので詳細は
省略する。 第11図(C)はワードタイプのモードセットを構成す
るキャラクタのビット構成を示すフォーマット図である
。ワードタイプのモードセットは4キヤラクタで構成さ
れており、IDキャラクタに続くデータキャラクタlの
ビット0〜ビツトGは、モード情報を表すためデータキ
ャラクタ2.3のビット0〜ビツト6に跨って設定され
る設定データD(Do〜DD)を書き込むべきメモリの
論理アドレス空間を示すマツプアドレスM (MO〜M
6)割り当てられている。例えば、識別コードSが「0
」に設定されているなら、設定データDは全5SC22
〜26のグローバルモードマツプ35に書き込まれる。 これに対して、識別コードSが「0」以外の値に設定さ
れているなら、該識別コードSで指定された5SC22
〜26にのみ設定データを書き込む。この場合に、エリ
アコードUの値により書き込み先はローカルモートマツ
プ34かグローバルモードマツプ35になる。 なお、マツプアドレスMはr7FH」に設定されること
はない、これは、後述するように、M=r7FH]は終
了コードとしてフレームの終端を表すからである。 第11図(d)はストリングタイプのモードセットを構
成するキャラクタのビット構成を示すフォーマット図で
ある。上述のワードタイプのモードセットではlアドレ
スについて1つの設定データDが供給されるが、ストリ
ングタイプのモードセットでは1アドレスについて複数
ワードの設定データDを書き込むことができる。そのた
めに、マツプアドレスMを指定するデータキャラクタl
の後に、設定データのワード数L(LO〜L6)を表す
データキャラクタ2が続く。従って、設定データDはデ
ータキャラクタ3〜データキヤラクタnにより表される
ことになる。なお、上述と同様の理由によりデータキャ
ラクタ1においてマツプアドレスはr7FHJに設定さ
れることはない。 第11図(e)はモードリクエストを構成するキャラク
タのビット構成を示すフォーマット図である。モードリ
クエストは2キヤラクタからなり、IDキャラクタに続
くデータキャラクタのビットbO(LSB)〜ピッ)b
6は読み出しが要求されているマツプアドレスMを示し
ている。モードリクエストの場合にも、マツプアドレス
Mが「7FHJに設定されることはない。 SSC9冊 レーム 第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はクリアされる。 データキャラクタ2のビットb6はSSCからのフレー
ムの発信が継続することを示すフレーム継続ビットNと
して機能しており、MSC21では各5SC22〜26
から送出されたフレームの区切りを検出するために利用
される。データキャラクタ2のビットbo (LSB)
〜ビットb5はステータスレジスタ33に保持されてい
る情報を表すコードに割り当てられている。上記各5S
C22〜26内にそれぞれ保持されている情報が1フレ
ームで送出できない場合には、上記継続ビットNを操作
しつつ複数のフレームに跨って送出される。 第11図(g)はシーケンスレポートを構成するキャラ
クタのビット構成を示すフォーマット図であり、シーケ
ンスレポートは3キヤラクタで構成されている。データ
キャラクタ1のビットbO(LSB)〜ビットb4はシ
ーケンスレポート情報の内容を表すレポートコードR(
RO〜R4)に割り当てられており、データキャラクタ
2のビットbO〜ビット5はパラメータP(PO〜P5
)に割り当てられている。 第11図(h)はワードタイプのモードアンサを構成す
るキャラクタのビット構成を示すフォーマット図であり
、ワードタイプのモードアンサでは、IDキャラクタの
後に、マツプアドレスMに割り当てられたデータキャラ
クタとモード情報を表す設定データDに割り当てられた
2つのデータキャラクタとの組み合せが最大4回繰り返
される。 各設定データDは1ワード=14ビツト(Do〜DD)
で構成されており、これらの設定データDに割り当てら
れたデータキャラクタの後に終了コードに割り当てられ
たデータキャラクタnが現れて終了する。上述のごとく
終了コードはr7FHJの値を有しており、したがって
、マツプアドレスMおよび設定データはr7FHJの値
を取ることがない。 第11図(i)はストリングタイプのモードアンサを構
成するキャラクタのビット構成を示すフォーマット図で
あり、上記ストリングタイプのモードセットに対応する
。ストリングタイプのモードアンサでは、IDキャラク
タに続くデータキャラクタ1はマツプアドレスに割り当
てられており、その後に続くデータキャラクタ2は設定
データ長を表す。データキャラクタ3〜データキヤラク
タn−1は第1ワード〜第Lワードに割り当てられてお
り、各ワードは14ビツト(Do−DD)で構成されて
いる。ストリングタイプのモードアンサも終了コード(
7FH)を表すデータキャラクタnて終了する。したが
って、マツプアドレスMおよび設定データは値「7FH
」を取れない。 上述のごと<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コを伴う。 スl:ヨじ々l報 上述のように本レーザプリンタでは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
B U S YJビットに割り当てられており、上記実
行状態の終了時にリセットされる。ピッ)G3とGOと
は未使用ビットであり、特定の概略ステータス情報に割
り当てられていない。ビットG2は復帰不可能なトラブ
ルの発生により処理を中断したことを示すrFATAL
Jビットに割り当てられており、 rFATALJビッ
トはMSC21でもリセットすることはできず、サービ
スマンによる処置を受けなければ処理を再開することが
できない。ビットG1は、復帰可能なトラブルの発生に
より処理が中断されたことを示すrERRORJビット
に割り当てられており、 rERRoR」ビットが立て
られても、ユーザが予め定められている処置を施すこと
により処理の再開は可能である。rERRORJビット
はユーザが上記予め定められた処置を施すとSSCによ
りリセット可能になる。 既に説明したように、上記概略ステータス情報はローカ
ルモードマツプ34に保持されている詳細ステータス情
報を要約して形成される。これらの詳細ステータス情報
の保持されているローカルモードマツプ34の一部はS
SC標準モードマツプと呼ばれており、SSC標準モー
ドマツプの論理アドレス空間に割り当てられる詳細ステ
ータス情報を第14図に示す。アドレスr05H」、 
「06H」、「08H」、 r09H」はそれぞれ「E
RRORJビット、 「FATAL」ビット、 「BU
SYJビット、 rNOT  READYJビットに対
応して設けられており、それぞれステータスレジスタ3
3に保持される概略ステータス情報についての詳細ステ
ータス情報を保持する。これらをエラーレジスタ、フエ
イタルレジスタ、ビイジ−レジスタ、ノットレ°デイー
レジスタと呼ぶ。 なお、アドレスrOcHJは以下に詳述するレポートモ
ードとポーリングモードとの切り替えの参照に使用され
るレポートモード情報に割り当てられている。 次に、レポートモードとポーリングモードとについて説
明する。ポーリングモードに間しては第5図〜第7図を
用いて説明したように、N5C21は複数の5SC22
〜26と共通の信号線5O9SIで接続されており、シ
ステムp配線は簡略されるものの、MSC21と5SC
22〜26との通信は通信要求に対する応答の形でなさ
れるので、通信の処理速度が低いという欠点がある。こ
れに対して、MSC21と5SC22〜26とを個別に
接続する方式(以下、レポート方式という)では通信網
が複雑になるものの処理速度を向上させることができる
という利点がある。そこで、本実施例にがかるレーザプ
リンタのSSCは標準モードマツプ内にレポートモード
情報を保持できるようにし、標準モードマツプ内にレポ
ートモード情報が書き込まれていれば、当該SSCはM
SCとレポート方式で通信し、反対にレポートモード情
報が書き込まれていないときには、既に説明したポーリ
ング方式で通信することになる。このように、MSCと
SSCとの通信方式はSSC毎に選択できるので、例え
ば第15図に示されているように5SC1501〜15
03はバッフアートマルチプレクサ1504を介してM
SC1505に接続し、SSC1501〜1503とM
SC1505とはポーリング方式で通信し、SSCI 
506.1507とMSCI 505とはレポート方式
で通信するように構成することもてきる。このように、
レポート方式とポーリング方式とを混在させることによ
り、MSCに接続されるSSCが多くなっても、通信処
理時間の長大化を防止することができる。特に、レーザ
プリンタ内のSSCの内、高速での通信処理を必要とし
ないものをポーリング方式に設定し、高速での通信を要
するものをレポート方式にすれば、レーザプリンタの通
信網を僅かに複雑化させるだけで通信効率のよいシステ
ムにすることができる。なお、第15図に示したように
ポーリング方式とレポート方式とを混在させる場合でも
、電源投入後に実行される初期化時には、全ての5SC
1501,1502,1503,1506,1507を
ポーリング方式で通信させることにより、フレームの衝
突を防止することができる。 (以下余白) −お びパー − 以下、一実施例に係るレーザプリンタで実行されるソフ
トウェアについて説明するが、ソフトウェアの説明に先
立って、主要なパラメータとフラグとについて説明する
。 JABACTニブリント動作等、システムがジョブを実
行中であるか否かを示すフラグであり、「0」に設定さ
れているなら、レーザプリンタのシステム全体は待機中
であることを示す。これに対して、 「1」に設定され
るなら、MSC21の管理下にあるいずれかのSScが
その支配下のユニットに動作を指示し、その動作が未完
了であることを示す。 5YSWAIT:レーザプリンタのシステム全体が初期
化実行中か否かを示すフラグであり、初期化の実行開始
により「1」にセットされ、初期化終了により「0」に
リセットされる。 LOOPF: MSCがメインルーチンにおいてジョブ
処理を実行するタイミング(メインループタイミング)
に達したか否かを示すフラグであり、ジョブ処理を実行
すべきタイミングに達すると「Lrにセットされ、この
フラグが「0」にリセットされているとジョブ処理は実
行されない。 MS IFS: MSC21の管理下にある複数のSS
Cについての初期イヒの段階を表すパラメータであり、
初期化の進展にともない「0」〜「5」のいずれかの値
に設定される。 UN I TF:外部給紙ユニットの接続状態を示すフ
ラグであり、外部給紙ユニット(第2図の実施例では給
紙ユニット用コントローラ24の管理下にある)がレー
ザプリンタの一部として接続されていることが検出され
ると「1」にセットされ、未接続時には「0」にリセッ
トされる。 UNI TS:ソータ(第2図の実施例ではソータ用コ
ントローラ25の管理下にある)がレーザプリンタの一
部として接続されていることが検出されると「1」にセ
ットされ、未接続時には「0」にリセットされる。 ENBF:外部給紙ユニット選択許可フラグであり、 
「l」にセットされていると選択可能、 「0」にリセ
ットされていると選択不可を表している。 ENBS:ソータに関してのモード指定許可フラグであ
り、「1」にセットされていると指定許可を、「θノに
リセットされていると指定不許可を表す。 PANS:ステータスアンサの受信フラグであり、ステ
ータスアンサを受信すると「1」にセットされている。 PCYCLE:全SSCへ通信要求を送出した回数を示
す管理データである。 PEND: SSC区切り検出を示すフラグであり、フ
レーム継続ピッ)Nが「0」に設定されていることを検
出したとき、または終了コード「7FHIを検出したと
きにrlJにセットされる。 PT IMrNG:ポーリングタイミング(第7図のt
pl〜tp4)の発生を示すフラグである。 CCNT:フレーム受信時のキャラクタ数を計数するカ
ウンタの値であり、受信したキャラクタがそのフレーム
の何番目のキャラクタであるかを表す。 IDS:受信されたフレームのIDキャラクタ内の識別
コードSに対応するデータであり、通信の対象となって
いるSSCを特定するコードである。 I DU:受信されたフレームのIDキャラクタ内のエ
リアコードUに対応するデータであり、通信の対象とな
っているSSC内のアクセスすべき論理アドレス空間を
示す。 FLEN:通信の対象となっているSSCから供給され
るフレーム中のキャラクタ数を示すカウントデータであ
り、受信バッファが新たなキャラクタを受信する毎に歩
進する。 LENTBL:全SSCについてのFLENを別途保持
している管理データであり、全SSCについてポーリン
グが完了すると更新される。 pssc:ポーリングすべきSSCを指定する管理デー
タである。 T RML :送信中のフレームを構成するキャラクタ
が送信レジスタ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処理サブルーチンプログラム(
SBII)とその完了を判断する判断ステップ(P 1
02)とで構成されるループを反復実行し、判断ステッ
プP102がイエスになるのを待つ。MSIF処理サブ
ルーチンプログラム5BIIではマクロシステムインタ
フェース27に関して後に言及する割り込み処理とメイ
ンループとの同期が取られ、上述のようにマクロシステ
ムインタフェース27と接続可能なSSCに関して接続
の有無がチエツクされる。MS I F処理サブルーチ
ンプログラム5BIIが終了すると、ステップP102
の判断結果がイエスになるので、マイクロプロセッサ6
1はフラグLOOPFをチエツクしてメインルーチン中
のジョブ処理を実行すべきタイミング(以下、メインル
ープタイミングという)が到来したか否かを判断する(
P 103)。°もし、メインループタイミングが未到
来ならば、ステップP103の判断結果はノーになるの
で、マイクロプロセッサ61はサブルーチンプログラム
5BIIに戻って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、受信割
り込みイベン)EV3および送信割り込みイベン)EV
4の発生に対処することになる。 ンルー ン ロ゛ラム 第17図はMSC21で実行されるメインルーチンプロ
グラムの具体的な実行手順を示すフローチャート図であ
り、上述のように、メインルーチンプログラムは電源オ
ンイベン)EVIにより発生する。電源オンイベントE
■1の発生により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にもrlJを初期設定す
る(ステップP1705)。したがって、MSC21は
SSC1についてまず通信要求を送信することになる。 続いて、マイクロプロセッサ61はステップP1706
において上述したフラグ等の内ステップP1705にて
「1」に初期設定されたものを除き全て「0」に設定す
る。 したがって、MSIF処理サブルーチン5BIIの実行
中に参照されるパラメータMSIFSはこのステップで
「0」に設定されることになる。 マイクロプロセッサ61は続いてステ1ツブP1707
に進みMSC21の割り込みタイマー66をセットし、
次のステップP1708でイベント(EV2.EV3.
EV4)発生時の割す込ミヲ許可してメインループの実
行を開始する。 メインループはマクロシステムインターフェースに関す
る手111(SB171〜5B174)とジョブの制御
を実行する手順(P1709〜5BI76)とで構成さ
れており、これらの2種類の手11[1の内、マクロシ
ステムインターフェースに間する手順は常時実行されて
おり、ジョブの制御を実行する手順はマクロシステムイ
ンターフェースの準備が完了した時点て5YSWAIT
が「0」にリセットされると実行可能になる(ステップ
P1709)。MSIF監視サブルすチンプログラムS
B 171ては、マイクロプロセッサ61がマクロシス
テムインターフェース27の初期化と、該マクロシステ
ムインターフェース27と接続可能な全SSCに関して
個別に接続の有無をチエツクする。続く受信データ処理
サブルーチンプログラム5B172では各5SC22〜
26からMSC21の受信バッファ47に供給されたフ
レームの解析を実行し、送信要求処理サブルーチンプロ
グラム5B173では、MSC21のグローバルモード
マツプ44、ローカルモードマツプ45およびコマンド
レジスタ41に保持されている情報の内、5SC22〜
26に送信すべき情報をフレームに変換し、送信バッフ
ァ48に保持する。送信バッファ48に保持されたフレ
ームはタイマー割り込み処理および送信割り込み処理の
実行によりマクロシステムインターフェース27に送出
する。 続くポーリング制御サブルーチンプログラム5B174
では、上述したポーリング方式にしたがい各5SC22
〜26に通信要求を送出してMSC21と各5SC22
〜26との通信を実現する。 この通信要求では、MSC21はステータスリクエスト
を対象となるSSCに送出し、この通信要求に対して、
対象とされたSSCはステータスアンサで応答し、送信
すべきデータを出力する。 一方、ジョブの実行を制御する手順は、5YSWAIT
が「0」にリセットされた後(ステップP1709の判
断結果がイエスとなる)に、ジョブ処理のタイミングL
OOPFが「1」と判断される(ステップP1710で
イエスと判断される)と開始されることになる。このよ
うにジョブ処理のタイミングが到来すると、マイクロプ
ロセッサ61は将来のジョブ実行制御に備えて、直ちに
ステップP1711でLOOPFを「o」にリセットす
る。したがって、ジョブの実行制御(SBI75.5B
176)は所定の叩期で実行されることになる。また、
ジョブの実行を制御する手順では複数のジョブ処理サブ
ルーチン(JOBI〜JOBn)が順次実行されること
になる。 以上概略説明したメインループの手順を、以下詳細に説
明する。 第18A図〜第18B図はMSIF監視サブルーチンプ
ログラムの手順を示すフローチャート図であり、ステッ
プPI301でMSIF監視サブルーチンプログラム5
B171が開始されると、マイクロプロセッサ61はパ
ラメータMSIFSをチエツクし、該パラメータMSI
FSが「0」に設定されているか否かを調べる(ステッ
プP1802)。本サブルーチンプログラム5B171
の開始直後はメインルーチンプログラム(第17図)の
ステップP1706で「0」に初期設定されているので
、マイクロプロセッサ61は必須のコントローラ5SC
22,23,26とマクロシステムインターフェース2
7との接続をチエツクする。即ち、マイクロプロセッサ
61はステップP 1803で5SC22からのステー
タスアンサを受信したか否かを受信通知フラグRRによ
りチエツクする。MSIF監視サブルーチンプログラム
5B171の実行開始直後は、まだ送信要求サブルーチ
ンプログラム5B173を実行していないので、当然、
受信データ処理サブルーチンプログラム5B172で通
信要求対象となっているSSCからの受信フレームの解
析も実行しておらず、ステップP 1802の判断はノ
ー(N)となる。ステップP1802の判断がノーの場
合には、マイクロプロセッサ61はステップP1803
〜P1810を実行することなくステップP1811へ
進む。既に説明したように、パラメータMSIFSは「
0」に初期設定されているので、ステップP1811の
判断もノーとなり、ステップP1812〜P1814を
実行することなくステップP1815に進む。後述する
ように、マイクロプロセッサ61は参照する値を増加さ
せつつパラメータMSIFSを繰り返しチエツクしてゆ
くが、上述のように、パラメータMSIFSは「0」に
初期設定されたままなので、以後のいずれのステップ(
P1819,1822)における判断もノーとなり、ス
テップP1831に進む。マイクロプロセッサ61はス
テップP1831においてフラグJOBACTが「0」
であるか否かをチエツクするが、フラグJOBACTは
、ジョブ処理中以外では「0」なので、ステップP18
31の判断結果はイエスとなり、マイクロプロセッサ6
1は、ステップP 1832でフラグ5YSWAITが
rOJか否かをチエツクする。フラグ5YSWAITは
ステップP1705で「1」にセットされているので、
MSIF監視サブルすチンプログラムSB 171の開
始直後はフラグ5YSWAIT=rlJであり、マイク
ロプロセッサ61はオプション接続チエツクサブルーチ
ンプログラム5B182を実行することなく、SSCス
テータスチエツクサブルーチンプログラム5B183を
実行して、メインルーチンプログラムに復帰する。 このようにして、メインルーチンプログラムへの復帰を
繰り返しつつMSIF監視サブルーチンプログラム5B
171を繰り返し実行し、必須のコントローラ(SSC
22,23,26)とマクロシステムインターフェース
27との接続をチエツクする。ステータスリクエストに
対して5SC22〜26から応答されたステータスアン
サが受信されたことを示す受信通知フラグRRが「1」
にセットされていることを検出すると、マイクロプロセ
ッサ61はステップP1803〜1805についてそれ
ぞれイエスと判断し、これらの5SC22,23,26
が全てマクロシステムインターフェース27と接続され
ていることが確認される。 このようにして、必須のコントローラ5SC22,5S
C23,5SC26についてマクロシステムインターフ
ェース27との接続が確認されると、マイクロプロセッ
サ61はステップP1806に進み、フラグUNITF
が「0」以外の値、すなわち「1」にセットされている
か否かを判断する。フラグUN ITFはメインルーチ
ンプログラムのステップP1706で「0」にリセット
されているので、MS I F監視サブルーチンプログ
ラム5B171の実行開始当初は、ステップP1806
の判断結果がノーになる。そこで、マイクロプロセッサ
61はステップP1807を実行することなくステップ
P 1805でフラグUNITSが「0」以外の値にセ
ットされているか否かを判断する。MSIF監視サブル
すチンプログラムSB 171の実行開始当初はステッ
プP1808の判断結果がノーなので、マイクロプロセ
ッサ61はステップpieioに進んでパラメータMS
IFSを「1」に歩進させ、必須のコントローラの接続
を確認する時間間隔を制御するためにパラメータPCY
CLEを「0」に設定する。上記フラグUNITFとU
NITSとはオプション接続チエツクサブルーチン58
1B2において5SC24,25がマクロシステムイン
ターフェース27に接続されているのが確認されるまで
は「0」を維持するので、その後も上記5SC24,2
5の接続確認完了までは5SC24,25からの応答を
ステップP1807.P1809で判断することなくス
テップP1810に進む。このようにして初期化の第1
段階を終了する。 ステップP18]0の終了後、マイクロプロセッサ61
はステップP1811においてパラメータMSIFSを
チエツクし、初期化の第1段階の終了を確認する。もし
、ステップP1811の判断結果がノーの場合には、S
SCステータスチエツクサブルーチンプログラムSB 
183の終了後、−旦メインルーチンプログラムに戻り
、その後、ステップP1802を経て、再びステップP
1811にてパラメータMSIFSの値をチエツクする
。必須のコントローラ5SC22,23,26の接続が
確認された状態では、パラメータMSIFSは「1」に
セットされているので、ステップP1811の判断結果
は、通常イエスとなり、マイクロプロセッサ61はステ
ップP1812にてパラメータPCYCLEの値を制限
値nと比較する。この制限値nは必須のコントローラ5
SC22,23,26の接続を確認するのに必要な通信
要求回数に所定の余裕回数を加えた値に設定されている
(ステップP 1812)。必須のコントローラ5SC
22,23,26について接続が確認された当初はステ
ップP1812の判断結果がノ−になるので、マイクロ
プロセッサ61はステップP1815.P1819.P
1822.、P1831、サブルーチンプログラム5B
183を経てメインルーチンプログラムに復帰する。上
記制限値nは後に詳述するポーリング制御サブルーチン
プログラム5B174において「1」ずっ歩進するので
、やがて、ステップP1812の判断結果はイエスとな
り、マイクロプロセッサ61はステップP1813に進
み、接続の確認されたSSCにリセットコマンドを供給
するためにMSC21のコマンドレジスタ41にリセッ
トコマンドRESETをセットする。接続の確認された
SSCに対するリセットコマンドRESETの送信は送
信要求処理サブルーチンプログラムSB173および送
信バッファ処理ルーチンプログラム5B41において実
行され、リセットコマンドRESETの供給されたSS
Cの実現する機能については後述するSSCにより実行
されるプログラムにおいて説明する。このようにリセッ
トコマンドRESETがステップP1813て接続の確
認されたSSCについてのMSC21のコマンドレジス
タ41にセットされると、マイクロプロセッサ61はパ
ラメータMSIFSを「2」に歩進させ、第2段階を終
了する。 続くステップP1815において、マイクロプロセッサ
61は、パラメータMSIFSが値「2」となっている
か否かを判断する。ステップP1815の判断結果がノ
ーの場合には、SSCステータスチエツクサブルーチン
SB 183の実行後、−旦メインルーチンプログラム
に戻り、ステップP1802.P1811を経て再びス
テップP1815にてパラメータMSIFSの値をチエ
ツクする。しかしながら、パラメータMSIFSは第2
段階完了時にはステップP1814で既に値「2」に設
定されているので、ステップP1815の判断結果は通
常イエスとなり、マイクロプロセッサ61は接続の確認
された全SSCがリセットコマンドRESETを保持し
たか否かを判断しくステップP 1816)、その判断
結果がノーの場合には、−旦メインルーチンプログラム
に復帰した後にステップP1802.P1811.P1
815を経てステップP1816の判断を繰り返す。 これに対して、リセットコマンドRESETの送信が完
了し、ステップP1816の判断結果がイエスになった
なら、マイクロプロセッサ61はそのグローバルモード
マツプ44に保持されている標準モード(ステップP1
702にて設定済み)を接続の確認されている全ssc
に供給すべくその送信要求フラグTRを「1」にセット
する(ステップP 1817)。この後、マイクロプロ
セッサ61はパラメータMSIFSを「3」に設定し、
第3段階を終了する。 第3段階の終了後、マイクロプロセッサ61はパラメー
タMSIFSの値が「3」となっているか否かをチエツ
クし、その判断結果がノーの場合にはSSCステータス
チエツクサブルーチンプログラム58183の実行後、
−旦メインルーチンプログラムに戻り、ステップP・1
802.P1811、P4O10を経てステップP18
19で再びパラメータMSIFSをチエツクする。パラ
メータMSIFSはステップP1818で値「3」に設
定されているので、ステップP1819の判断は通常イ
エスであり、マイクロプロセッサ61はかかるイエスの
判断結果をもってステップPI320に進み、送信要求
フラグTRが「0」にリセットされたか否かを判断する
。送信要求フラグが「1」に設定された標準モードに関
する情報は上述のリセットコマンドと同様に送信要求処
理サブルーチンプログラム5B173と送信バッファ処
理サブルーチンプログラム5B41とを実行することに
より供給対象になっているSSCに送出され、その後、
送信要求フラグTRは「0」にリセットされる。したが
って、ステップP 1820の判断結果がノーであるな
ら、標準モードに関する情報はまだ供給対象のSSCに
送出されていないことになるので、マイクロプロセッサ
61はSSCステータスチエツクサブルーチンプログラ
ム58183の実行後、−旦メインルーチンプログラム
に復帰し、その後、ステップP1802.P1811、
P4O10,P1819を経てステッブP1820の判
断を繰り返す。やがて、標準モードに間する情報が供給
対象のSSCに送出され、標準モードに関する情報に付
されていた送信要求フラグTRが全て「0」にリセット
されると、マイクロプロセッサ61はパラメータMSI
FSを「4」に設定しくステップP1821)、第4段
階を終了する。 第4段階の終了後、マイクロプロセッサ61はパラメー
タMSIFSの値が「4」にセットされているか否かを
判断し、その判断結果がノーの場合には、SSCステー
タスチエツクサブルーチンプログラムS8183の終了
後に一旦、メインルーチンプログラムに復帰し、その後
、ステップP1802、P1811.P1815.P1
819を経てステップP1B22の判断を繰り返す。パ
ラメータMSIFSはステップP1821で「4」に設
定されているので、通常、ステップP1822の判断結
果はイエスであり、マイクロプロセッサ61はステップ
P1822に対するイエスの判断結果をもってステップ
P1823に進む。ステップP1823においては、マ
イクロプロセッサ61は5SC22から送信されるフレ
ームの受信状態が安定したか否かを判断する。この受信
状態の判断は後述するポーリング制御サブルーチンプロ
グラム5B174にてカウントデータ情報FLENに基
づき形成される管理データ情報LENTBLの値により
判断される。カウントデータ情報FLENは受信データ
処理サブルーチンプログラムSB 172において受信
されたフレームのデータ長を表しており、具体的には通
信の対象となっているSSC<ステップP1823にお
いては5SC22)から送出されるステータス情報の量
を表している。したがって、MSC21のマイクロプロ
セッサ61は管理データ情報LENTBLO値が一定値
以下になると、通信の対象となっているSSCからの受
信が安定したと判断することになる。マイクロプロセッ
サ61はステップP1823の判断結果がノーの間はS
SCステータスチエツクサブルーチンプログラム5B1
83から一旦メインルーチンプログラムに戻り、ステッ
プP1802、P1811.P1815.P1819゜
P4O10を経て再びステップP 1823の判断を繰
り返し、ステップP 1 B23の判断結果がイエスに
なるのを待つ。ステップP1823の判断結果がイエス
になると、マイクロプロセッサ61はステップP182
4に進み、5SC23からの受信状態が安定したか否か
をステップP 1823と同様の方法で判断する。この
ようにして、マイクロプロセッサ61は必須のコントロ
ーラ5SC22,23,26に間しそれぞれの受信状態
をチエツクしくステップP1823.P1824.P1
B25)、全ての必須のコントローラ5SC22,23
,26からの受信状態が安定すると、ステップP1B2
6に進んで、フラグUNI TFが「0」以外、すなわ
ち「1」にセットされているか否かを判断する。後述す
るオプション接続チエツクサブルーチンプログラムS8
1 B2が実行されていない状態であればフラグUNI
TF、UNITSはステップPIToeにおいて「0」
に設定されたままなので、ステップP1826の判断結
果はノートなり、マイクロプロ、セッサ61はステップ
P1B27で5SC24からの受信状態をチエツクする
ことなくステップP 182Bに進み、フラグUNIT
Sの値が「0」以外の値に設定されているか否かを判断
する。フラグUNITSについても、オプション接続チ
エツクサブルーチンプログラムSB182を実行する以
前では初期設定値rOJなので、マイクロプロセッサ6
1はステップP 1B29を実行することなく、ステッ
プP1830に進む。しかしながら、本実施例のように
、5SC24,25がマクロシステムインターフェース
27に接続されている場合は、オプション接続チエツク
サブルーチンプログラム5BI82を実行した結果、フ
ラグUNITF、UNITSはそれぞれ「1」に設定さ
れるので、やがて、ステップP1826.P1B28の
判断結果はイエスになり、マイクロプロセッサ61はス
テップP1B27.P1B29でそれぞれS S C2
4゜25の受信状態をチエツクする。ステップP182
7、P1829の判断結果がそれぞれイエスになると、
マイクロプロセッサ61はステップP1830に進み、
パラメータMSIFSを「5」に、フラグ5YSWAI
Tを「0」にそれぞれ設定する。続いて、マイクロプロ
セッサ61はシステム更新サブルーチンプログラム58
181 (第19図)を実行し、MSC21からコマン
ド等を供給するSSCを確定する。しかしながら、第1
9図に示されているように、ステップP1902.P1
905でフラグUNITFとUNITSとをチエツクし
てこれらがいずれも「1」に設定されていないなら、直
ちにMSIF監視サブルーチンプログラム5B171に
復帰する。これらのフラグUNITF、UNITSとは
オプション接続チエツクサブルーチンプログラムの実行
の結果、5sC24,25がマクロシステムインターフ
ェース27に接続されていることが確認されると「1」
に設定されるので、システム更新サブルーチンプログラ
ムSB 181の詳細手順はオプション接続チエツクサ
ブルーチンプログラム5B182の手順を説明した後に
説明する。 マイクロプロセッサ61はシステム更新サブルーチンプ
ログラムS8181からMS I F監視サブルーチン
プログラム5B171に復帰すると、ステップP183
1に進んでフラグJOBACTがrOJに設定されてい
るか否かを判断し、その判断結果がノーの場合には、S
SCステータスチエツクサブルーチンプログラム581
83の実行後にメインルーチンプログラムに復帰する。 フラグJOBACTはステップP1706で「0」に設
定されるので、この段階では通常ステップP1832の
判断結果はイエスとなり、マイクロプロセッサ61はオ
プション接続チエツクサブルーチンプログラム5818
2を実行する。 オプション接続チエツクサブルーチンプログラム5B1
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に進み、フラグUN■TSが「0」
に設定されているか、否かを判断する。 一方、本実施例のように5SC24がマクロシステムイ
ンターフェース27に接続されているなら、ステップP
2O03の判断結果はイエスになるはずであり、マイク
ロプロセッサ61はステップP2O03に対するイエス
の判断結果をもってステップP2O04に進み、5SC
24の接続確認を表すべくフラグUNITFを「1」に
設定する。 マイクロプロセッサ61は再び上述したプログラムの手
順を繰り返すべく、初期化の段階を表すパラメータMS
IFSを初期値「0」に、フラグ5YSWAITを「1
」にそれぞれ設定する。その後、MSC21のステータ
スレジスタ42に保持されている5SC24に関するス
テータス情報にそれぞれ付されている受信通知フラグR
Rを「0」にリセットする(ステップP2O05)。 このように、5SC24に間する接続チエツクと接続確
認後の処理とが終了すると、マイクロプロセッサ61は
5SC25に関して5SC24と同様の確認手続きを実
行するためにステップP2006へ進み、フラグUNI
TSO値が「0」か否かを判断する。すでにフラグUN
ITSが「1」に設定されているなら、5SC25の接
続は確認されているので、マイクロプロセッサ61はス
テップP2O07〜P2O09を実行することなくMS
 I F監視サブルーチンプログラム5B171に復帰
する。しかしながら、上述したように、第1回目のオプ
ション接続チエツクサブルーチンプログラムSB 18
2の実行時には、5SC25の接続は未確認であり、フ
ラグUNITSは「0」に設定されているはずである。 したがって、マイクロプロセッサ61はステップP2O
06をイエスと判断してステップP2O07に進み、上
記必須のコントローラ5SC22,23,26の接続確
認手順と同様の手順で5SC25についてマクロシステ
ムインターフェース27との接続を確認する。もし、5
SC25が接続されていなければ、マイクロプロセッサ
61はステップP 2008゜P2O09を実行するこ
となく、フラグUNITSを「0」にしたままでMS 
I F監視サブルーチンプログラム5B171に復帰す
る。ところが、本実施例のように5SC25がマクロシ
ステムインターフェース27に接続されているなら、ス
テップP2O07の判断結果はイエスになるはずであり
、かかる判断結果をもフてマイクロプロセッサ61はス
テップP2O08に進み、フラグUNITSを「1」に
設定して5SC25の接続確認を表す。マイクロプロセ
ッサ61は更に、ステップP2O04に間して説明した
のと同様の理由でパラメータMSIFSを「0」に、フ
ラグ5ysWATTを「1」にそれぞれ設定する。しか
る後に、マイクロプロセッサ61はステップP2O09
に進み、MSC21のステータスレジスタ42に保持さ
れているステータス情報に付されている受信通知フラグ
RRを「0」にリセットする。このように、フラグ類の
操作が終了すると、マイクロプロセッサ61はMS I
 F監視サブルーチンプログラムSB 171に復帰す
る。 MS I F監視サブルーチンプログラム5B171に
復帰したマイクロプロセッサ61は、SSCステータス
チエツクサブルーチンプログラム5B183を実行した
後にメインルーチンプログラムに更に復帰し、パラメー
タMSIFSをrOJから順次歩進させつつ上記プログ
ラムを再実行する。 本実施例の場合、この再実行時には、オプション接続チ
エツクサブルーチンプログラムSB 182の実行によ
りフラグUNITFとUNITSとは共に「1」に設定
されているので、ステップP1806、P180Bの判
断結果はそれぞれイエスになる。従って、マイクロプロ
セッサ61はステップP1807、P1O09において
5SC24゜25とマクロシステムインターフェース2
7との接続状態に変化はないかをそれぞれチエツクする
。 これらのステップP 1807、P1O09で上記5S
C24,25とマクロシステムインターフェース27と
の接続が再確認されると、マイクロプロセッサ61は第
2段階中のステップP1813において5SC24,2
5についてもリセットコマンドRESETをセットし、
5SC22,23゜26だけでなく5SC24,25に
もリセットコマンドRESETを供給する。また、第3
段階になると、マイクロプロセッサ61はグローバルモ
ードマツプ44内の標準モードに関する情報を再び供給
すべく送信要求フラグTRを「1」にセットするので、
5SC24,25のグローバルモードマツプ35にも標
準モードがセットされることになる。次の第5段階にお
いては、ステップP1826、P1O28の判断結果が
それぞれイエスになるので、マイクロプロセッサ61は
5SC24,25についてもフレームの受信安定をチエ
ツクする(ステップP1B27.P1B29)。 このようにして、マイクロプロセッサ61は対象となる
SSCを5SC24,25にも拡張してすでに説明した
手順を再実行し、ステップP1830においてパラメー
タMSIFSを「5」に、フラグ5YSWAITを「0
」にそれぞれ設定する。この後、マイクロプロセッサ6
1はシステム更新サブルーチンプログラム5B181の
実行を開始する。オプション接続チエツクサブルーチン
プログラムSB1 B2を実行する以前では、すてに説
明したようにシステム更新サブルーチンプログラム5B
181は実質的に実行されることなくMSIF監視サブ
ルーチンプログラム5B171に復帰するが、再実行時
には、すてにオプション接続チエツクサブルーチンプロ
グラムSB 182が実行され、フラグUNITF、U
NITSはそれぞれ「1」に設定されている(ステップ
P2O04、P2O0B)。したがって、システム更新
サブルーチンプログラム5B181では、ステップP 
1902の判断結果がイエスになるので、マイクロプロ
セッサ61はステップP1903に進んで、外部給紙ユ
ニット選択許可フラグENBFを「1」に設定する。こ
の後、マイクロプロセッサ61はの給紙機構に関してグ
ローバルモードマツプ44に保持されている情報を更新
する(ステップP1904)。本実施例の場合には、ソ
ータも具備しているので、ステップP1905の判断結
果もイエスとなり、マイクロプロセッサ61はステップ
PI906においてソータ選択許可フラグENBSも「
l」に設定する。この後に、マイクロプロセッサ61は
MSC2・lのグローバルモードマツプ44に保持され
ているソータに関する情報を更新して(ステップP19
07)、−MSIF監視サブルーチンプログラム5B1
71に復帰する。 このように本実施例に係るレーザプリンタのMSC21
はその電源オンイベントの発生後に必須のコントローラ
5SC22,23,26についてその接続をチエツクす
るとともに、オプション接続チエツクサブルーチンプロ
グラム5B182においてレーザプリンタの構成上から
は必ずしも必要でない5SC24,25ついて接続の有
無をチエツクする。このオプション接続チエツクサブル
ーチンプログラムSB]82はレーザプリンタのシステ
ム全体が待機中(JOBACT= rOJ )であり、
かつフラグ5YSWAITが「o」なら常に実行される
。したがって、上記電源オンイベント後の初期化時でな
くても、システムの待機時に5SC22〜26の接続チ
エツクが繰り返され、レーザプリンタの起動後に給紙機
構やソータが追加接続された場合でも、その接続の確認
を図ることができ、システムを自由に拡張することがで
きる。 すでに第17図に間して説明したように、MSIF監視
サブルーチンプログラム5B171の後には、受信デー
タ処理サブルーチンプログラム58172、続いて送信
要求処理サブルーチンプログラム5B173、更に続い
て、ポーリング制御サブルーチンプログラムSB174
が順次実行されるが、以下、MSC21の動作順序を考
慮して、メインループタイマー処理サブルーチンプログ
ラム5B21.ポーリング制御タイマー処理サブルーチ
ンプログラムS B 22.ポーリング制御サブルーチ
ンプログラムSB 174、送信要求処理サブルーチン
プログラム5B173、受信データ処理サブルーチンプ
ログラム5B172の順にそれぞれの詳細手順を説明す
る。 メインループタイマー処理サブルーチンプログラム5B
21とポーリング制御タイマー処理サブルーチンプログ
ラム5B22とは上述のようにタイマー割り込みイベン
)EV2が発生する毎に開始され、マイクロプロセッサ
61はメインルーチンプログラムの一連のジョブ処理サ
ブルー1ンブログラムJOBI〜JOBnの実行周期を
制御するためループタイマーのカウント値を歩進させ(
ステップP2101)、続いて該歩進されたカウント値
をジョブ処理を実行すべきタイミングを表すジョブ処理
実行タイミング値に達したか否かを判断する(ステップ
P2102)。ステップP2102の判断結果がノーの
場合には、ステップP2103を実行することなくステ
ップP2104に進む。これに対して、ステップP21
02の判断結果がイエスの場合には、ステップP210
3に進み、フラグLOOPFを「1」に設定すると共に
、ループタイマーをリセットして初期値「o」とする。 したがって、ループタイマーは再スタートすることにな
る。このようにフラグ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がrlJに設定さ
れた後、マイクロプロセッサ61は当該SSCに間し通
信不良と判断して以後のポーリング処理を強制的に中止
すべくポーリングエラー処理サブルーチンプログラム5
B211を実行する。 これに対して、ステップP2106の判断結果がノーの
場合には、MSC21と通信要求のなされたSSCとは
正常な通信状態なので、ステップP2107を実行する
ことなく、直ちにステップP2108に進む。 ステップ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」にセットしてス
テップP2112に進み、次回のポーリングタイミング
を検出するためにポーリングタイマーを「0」にリセッ
トして、ポーリングタイマーを再スタートさせる。 次に、マイクロプロセッサ61は、後述する送信要求処
理サブルーチンSB173の実行準備のためにフラグT
RMLが「0」か否かを判断しくステップP2113)
、フラグTRMLが「0」以外、すなわち「1」にセッ
トされているなら、送信中のキャラクタが有るので、ス
テップP2113の判断結果はノーになり、マイクロプ
ロセッサ61はステップP2114〜ステップP211
5を実行することなく直ちにタイマー割り込みイベント
発生時に実行されていたプログラムに復帰する。これに
対して、ステップP2113の判断結果がイエスの場合
にはMSC21の送信バッファ48にキャラクタが保持
されているか否かを判断しくステップP2114)、ス
テップP2114の判断結果がノーならマイクロプロセ
ッサ61はステップP2115の実行することなく直ち
にタイマー割り込みイベン)EV2発生時に実行されて
いたプログラムに復帰する。これに対して、ステップP
2114の判断結果がイエスの場合には、送信バッファ
48内のキャラクタを送信レジスタ49に転送し、フラ
グTRMLを「1」にセットする(ステップP2115
)。ステップ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,26のいずれかであ
れば、ステップP2203〜ステップP2205のいず
れかで判断結果がイエスになるので、マイクロプロセッ
サ61はステップP2209に進み所定のエラー処理を
実行してポーリング制御タイマー処理サブルーチンプロ
グラムSB2.2に戻る。これに対して、応答エラーを
起こしたSSCが5SC22,23,2Bのいずれでも
なかった場合には、マイクロプロセッサ61はフラグU
NI TFをチエツクして5SC24がマクロシステム
インターフェース27に接続されているか否かを判断す
る(ステップP2206)。5SC24がマクロシステ
ムインターフェース27に接続されているなら、ステッ
プP2206の判断結果はイエスになるので、マイクロ
プロセッサ61はステップP2207に進み、応答エラ
ーを起こしたのが5S024であるか否かを判断する。 ステップP2207の判断結果がイエスなら、マイクロ
プロセッサ61はフラグJOBACTをチエツクして、
レーザープリンタがジョブ実行中であるか否かを判断す
る(ステップP2208)。ステップP2208の判断
結果がノーなら、マイクロプロセッサ61はステップP
2209に進み、所定のエラー処理を実行し、ポーリン
グ制御タイマー処理サブルーチンプログラム5B22に
戻る。これに対して、ステップP2208の判断結果が
イエスなら、度マクロシステムインターフェース27と
の接続が確認されているにもかかわらず、待機中に応答
エラーを起こしているので、マイクロプロセッサ61は
フラグUNITF、ENBFをそれぞれ「0」に設定し
、5SC24がマクロシステムインターフェース27か
ら切り離されたものとして処置する。この後、マイクロ
プロセッサ61はパラメータMSIFSを「0」に、フ
ラグ5YSWAITを「1」にそれぞれ設定しくステッ
プP2211)、続いてMSC21のステータスレジス
タ42に保持されているステータス情報に付された受信
通知フラグRRを「0」にリセットする(ステップP2
212)。このような一連の処置(ステップP2210
〜ステツプP2212)により、MSC21はMSIF
監視サブルーチンプログラム5B171を再度実行する
ことになり、5S024.25等の接続も再度チエツク
されることになる。一方、上記ステップP 2206.
 ステップP2207におけるいずれかの判断結果がノ
ーならば、マイクロプロセッサ61はステップP221
3進んでフラグUNITSをチエツクし、5SC25が
マクロシステムインターフェース27に接続されている
か否かを判断する(ステップP2213)。5SC25
がマクロシステムインターフェース27に接続されてい
るなら、ステップP2213の判断結果はイエスになる
ので、マイクロプロセッサ61はステップP2214に
進み、応答エラーを起こしたのが5SC25であるか否
かを判断する。ステップP2214の判断結果がイエス
なら、マイクロプロセッサ61はフラグJOBACTを
チエツクして、レーザープリンタがジョブ実行中である
か否かを判断する(ステップP2215)。ステップP
2215の判断結果がノーなら、マイクロプロセッサ6
1はステップP2216に進み、所定のエラー処理を実
行し、ポーリング制御タイマー処理サブルーチンプログ
ラム5B22に戻る。これに対して、ステップP221
5の判断結果がイエスなら、5SC25は一度マクロシ
ステムインターフェース27との接続が確認されている
にもかかわらず待機中に応答エラーを起こしているので
、マイクロプロセッサ61はフラグUNITS、ENB
Sをそれぞれ「0」に設定し、5SC25がマクロシス
テムインターフェース27から切り離されたものとして
処置する。この後、マイクロプロセッサ61はパラメー
タMSIFSを「0」に、フラグ5YSWAITを「1
」にそれぞれ設定しくステップP2211)、続いてM
SC21のステータスレジスタ42に保持されているス
テータス情報に付された受信通知フラグR,RをrOJ
にリセットする(ステップP2212)。このような一
連の処置(ステップP221?、  ステップP221
1〜ステップP2212)により、MSC21はMSI
F監視サブルーチンプログラム5B171を再度実行す
ることになり、5SC24,25等の接続も再度チエツ
クされることになる。 (以下余白) 次に、ポーリング制御サブルー、チンプログラム5B1
74の詳細手順について第23図を参照して説明する。 ポーリング制御サブルーチンプログラム5BI74がス
テップP2301において開始されると、マイクロプロ
セッサ61はフラグPTIMINGが「1」に設定され
ているか否かを判断しくステップP2302)、該ステ
ップP2302の判断結果がノーならポーリングタイミ
ングがまだ到来していないので(第7図参照)、マイク
ロプロセッサ61はポーリング制御サブルーチンプログ
ラムSB 174を直ちに中断してメインルーチンプロ
グラムに復帰する。 これに対して、上述したポーリング制御タイマー処理サ
ブルーチンプログラム5B22のステップP2111に
おいてフラグPTIMINGが「1」に設定されている
と、ステップP2302の判断結果はイエスとなり、マ
イクロプロセ・ンサ61はステップP2303に進んで
フラグPENDが「1」に設定されているか否かを判断
する。マイクロプロセッサ61は後述する受信データ処
理サブルーチンSB1?2において受信フレームを構成
するキャラクタのフレーム継続ビットNが「0」である
か、終了コード(7FH)が検出されたときにSSC区
切り検出を認識し、フラグPENDが「1」にセットさ
れる。したがって、フラグPENDが「1」に設定され
ていると受信中のフレームを構成する全キャラクタがM
SC21に取り込まれたことになり、他のSSCに通信
要求を実施することが可能になる。 ところが、フラグPENDが「0」であるなら、受信中
のフレームは未送信のキャラクタを有しているので、マ
イクロプロセッサ61はステップP2303においてノ
ーと判断してポーリング制御サブルーチン5B174を
直ちに終了させ、メインルーチンプログラムに復帰する
。 これに対して、ステップP2303のは判断結果がイエ
スなら、マイクロプロセッサ61はステップP2304
に進み、送信バッファ48に空きがあるか否かを判断し
、もし、送信バッファ48に空きがなければ、以後のス
テップの実行を中止して直ちにメインルーチンプログラ
ムに復帰する。 このように、本実施例では、送信要求を実行するために
は、ポーリングタイミングが到来しており、前回の送信
要求に対する応答が完了しており、しかも送信バッファ
48に空きがなければならない。 上述の全ての条件が満たされると、マイクロプロセッサ
61はステップP2305に進んでフラグPTIMIN
G、PEND、PANSをそれぞれ「0」にリセットし
、続いて、前回の通信要求に対する応答を構成したデー
タ長を表すカウントデータFLENの値を転送して管理
データLENTBLを更新する(ステップP2306)
。このように、管理データLENTBLが更新されると
、マイクロプロセッサ61はカウントデータFLENを
クリアして、前回の通信要求に関する後処理を終了する
。 この後、マイクロプロセッサ61は通信要求を実行する
ためにステータスリクエストをMSC21の送信バッフ
ァ48に送出し、保持させる(ステップP230B)。 しかる後、マイクロプロセッサ61はSSCとの通信状
態を監視するためトラブルタイマーをスタートさせる(
ステップ″P2309)。このようにして、通信要求の
準備が完了すると、マイクロプロセッサ61はステップ
P2310において通信要求を送出する対象のSSCを
指定する管理データpsscを歩進させて次回のポーリ
ング制御サブルーチンプログラム5B174の実行に備
える。上記ステップP230Bにおいて送信バッファ4
8に保持されたステータスリクエストは送信割り込みイ
ベン)EV4の発生後に実行される送信バッファ処理サ
ブルーチンプログラム5B41において通信の対象にな
っているSSCに送出される。 このように今回の通信要求に関する処理が終了すると、
マイクロプロセッサ61はマクロインターフェース27
に接続されている全SSCに対して順次通信要求を送出
したか否かを判断しくステップP2311)、ステップ
P2311の判断結果がノーなら、−旦メインルーチン
プログラムに復帰し、ステップP2311の判断結果が
イエスなら、ステップP2312に進んで通信要求すべ
きSSCを「22」に処理設定して再度5SC22から
順次通信要求を送出できるように準備する。 また、マイクロプロセッサ61はパラメータPCYCL
Eを「】」歩進させて通信要求の繰り返し回数を管理し
、メインルーチンプログラムに復帰する。 次に、送信要求処理サブルーチンプログラム5B173
の詳細手順を第24図を参照して説明する。送信要求処
理サブルーチンプログラム5BI73がステップP24
01において開始されると、マイクロプロセッサ61は
制限カウンタに管理データLMTFをセットしくステッ
プP2402)、送信バッファ48に空きがあるか否か
を判断する(ステップP2403)。もし、送信バッフ
ァ4に空きがなければ、ステップP2403の判断結果
はノーになるので、マイクロプロセッサ61は送信要求
に対応できないと判断して直ちにメインルーチンプログ
ラムに復帰する。 これに対してステップP2403の判断結果がイエスな
ら、マイクロプロセッサ61はステップP2404に進
み、グローバルモードマツプ44とローカルモードマツ
プ45とを検索し、これらのマツプ44.45上に送信
要求フラグTRが「1」にセットされた情報等の発見に
努める。もし、送信要求フラグTRが「1」にセットさ
れた情報等が発見されなければ、ステップP2405の
判断結果はノーとなり、マイクロプロセッサ61はステ
ップP2406〜ステップP2409を実行することな
くステップP2410に進む。これに対して、ステップ
P2405の判断結果がイエスなら、マイクロプロセッ
サ61は発見された送信要求フラグTRを「0」にリセ
ットして(ステップP2406)、該送信要求フラグT
Rの付されていた情報をフレームに変換して送信バッフ
ァ4日に送出する(ステップP240?)。この後、マ
イクロプロセッサ61はステップP2409において制
限カウンタを「1」減少させ、続いて制限カウンタの値
が「0」に達したか否かを判断する(ステップP240
9)。ステップP2409の判断結果がイエスなら、マ
イクロプロセッサ61は以後の処理を中断して直ちにメ
インルーチンプログラム尤こ復帰し、反対にステップP
2409の判断結果がノーならステップP2410に進
んでローカルモードマツプ34とグローバルモードマツ
プ35とに保持されている全ての情報について検索が終
了したか否かを判断する。ステップP2410の判断結
果がノーならマイクロプロセッサ61はステップP24
03に戻って送信バッファ4日に空きがあるか否かチエ
ツクし、以後、送信バッファ48がフレームを保持でき
なくなるか、ローカルモードマツプ34およびグローバ
ルモードマツプ35上の全情報について検索が終了する
までステップP2403〜ステップP2410で構成さ
れるループを繰り返す。このように本実施例では、制限
カウンタを用いて1回の送信要求処理サブルーチンプロ
グラムの実行中に送出されるキャラクタ数を制限してい
るので、MSC21は他の処理を犠牲にすることなく5
SC22〜26と通信することができ、5SC22〜2
6側でも送信要求に対する応答が遅れることはない。 やがてステップ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」減少させ、続いて制限カウン
タの値が「O」に達したか否かを判断する(ステップP
2417)。ステップP2417の判断結果がイエスな
ら、マイクロプロセッサ61は以後の処理を中断して直
ちにメインルーチンプログラムに復帰し、反対にステッ
プP2417の判断結果がノーならステップP2418
に進んでコマンドレジスタ32に保持されている全ての
情報について検索が終了したか否かを判断する。ステッ
プP2418の判断結果がノーならマイクロプロセッサ
61はステップP2411に戻って送信バッファ4日に
空きがあるか否かチエツクし、以後、送信バッファ48
が新たなフレームを保持できなくなるか、コマンドレジ
スタ32上の全情報について検索が終了するまでステッ
プP2411〜ステップP2418で構成されるループ
を繰り返す。やがてステップP2418の判断結果がイ
エスになるとマイクロプロセッサ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でこの受信データ処理サブルーチン
プログラムSB172が開始されると、マイクロプロセ
ッサ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とをデータID
S、IDUとしてそれぞれMSC21のRAM62内の
作業エリアに転送する(ステップP2505)。この後
、マイクロプロセッサ61はステップP2506に進み
、カウントデータCCNTを「2」に設定する。尚、こ
のプログラムにおいてはカウントデータCCNTとして
「1」は使用されない。その後、マイクロプロセッサ6
1はメインルーチンプログラムに復帰する。 マイクロプロセッサ61がメインルーチンプログラムを
構成する一連のサブルーチンプログラムを繰り返し実行
しているときに、2番目のキャラクタが受信バッファ4
7にラッチされると、受信データ処理サブルーチンSB
1?2のステップP2503の判断はノーとなり、マイ
クロプロセッサ6】はステップP2507に進んで受信
されたキャラクタがデータキャラクタであるか否かを判
断する。受信されたキャラクタがIDキャラクタである
と、ステップP2507の判断結果はノーになるので、
マイクロプロセッサ61はステップP2505に進んで
、受信したIDキャラクタの識別コードS及びエリアコ
ードUをデータIDSおよびIDtJとしてRAM62
の作業エリアに保持する。その後、カウントデータCC
NTを「2」に設定して(ステップP2506)メイン
ルーチンプログラムに復帰する。一方、受信されたキャ
ラクタがデータキャラクタの場合には、ステップP25
07の判断結果はイエスになるので、マイクロプロセッ
サ61はカウントデータFLENを「1」だけ歩進させ
て(ステップP2508)、ステップP 2509で受
信中のフレームのIDキャラクタのエリアコードUがコ
マンドレジスタまたはステータスレジスタを指定してい
るか否かを判断する。エリアコードUがコマンドレジス
タまたはステータスレジスタを指定しているなら、ステ
ップP2509の判断結果はイエスなので、マイクロプ
ロセッサ61はステータス/レポート解析サブルーチン
プログラム5B251を実行する。 反対に、ステップP2509の判断結果がノーなら、マ
イクロプロセッサ61はモード解析サブルーチン5B2
52を実行する。まず、ステップP2509の判断結果
がイエスとなり、ステータス/レポート解析サブルーチ
ンプログラムがステップP2601において開始された
場合について第26図を参照して説明する。このステー
タス/レポート解析サブルーチンプログラムでは、lキ
ャラクタ毎の処理が実行される。エリアコードIDUが
「3」に設定されているときにマイクロプロセッサ61
はステータス/レポート解析サブルーチンプログラムに
進むので、上述のフレーム識別−覧表から明らかなよう
に、ステータス/レポート解析サブルーチンプログラム
ではステータスアンサまたはシーケンスレポートの解析
が実行される。マイクロプロセッサ61は、まずステッ
プP2602においてカウントデータCCNTをチエツ
クし、カウントデータCCNTが「3」であるか否かを
チエツクする。データキャラクタ1の場合には、ステッ
プP2506においてカウントデータCCNTは「2」
に設定されているので、ステップP26°02の判断結
果はノーとなり、マイクロプロセッサ61はステップP
2603に進んで受信されたデータキャラクタ1をマイ
クロプロセッサ61内の一時レジスタに保持する(ステ
ッブP2603)。この後、マイクロプロセッサ61は
カウントデータCCNTをrlJ歩進させて、受信デー
タ処理サブルーチンSB 172、更にメインルーチン
プログラムに復帰する。 上記第11図(f)、  (g)からも明らかなように
、ステータスアンサとシーケンスレポートとは共に3キ
ヤラクタで構成されているので、通信の対象となってい
るSSCからはやがてデータキャラクタ2が供給され、
受信バッファ47にラッチされることになる。データキ
ャラクタ2が受信バッファ47にラッチされた後に実行
される受信データ処理サブルーチンプログラムでは、デ
ータキャラクタlの時と同様、ステータス/レポート解
析サブルーチンプログラムが実行され、この度はステッ
プP2602の判断結果がイエスになるので、マイクロ
プロセッサ61はステップP2605に進んでデータキ
ャラクタ2をマイクロプロセッサ61内の一時レジスタ
2に保持する。次に、マイクロプロセッサ61は受信し
たデータキャラクタ1,2の内容により受信したフレー
ムはステータスアンサであるか否かを判断する(ステッ
プP260B)。もし、受信されたフレームがシーケン
スレポートなら、マイクロプロセッサ61はステップP
2606においてノーと判断して、ステップP2607
に進み、−時レジスタ1,2に保持されているデータキ
ャラクタ1,2をレポートレジスタ37に転送し、その
後、通信の対象になっているSSCから応答のあったこ
とを示すためこれらのデータキャラクタ1,2に付され
ていた受信通知フラグRRを「1」にセットする(ステ
ップP260B)。このようにして受信されたシーケン
スレポートは後述するジョブ処理サブルーチンプログラ
ムにおいて使用される。 これに対して、受信されたフレームがステータスアンサ
なら、ステップP2606の判断結果はイエスになり、
マイクロプロセッサ61はステップP2609に進んで
、まず、トラブルタイマーを停止する。そして、フラグ
PANSを「1」に設定する。このように、トラブルタ
イマーが停止され、フラグPANSが「1」に設定され
ると、ポーリング制御タイマー処理サブルーチンプログ
ラム5B22のステップP2106(第21図)で応答
エラーと判断されることはない。この後、マイクロプロ
セッサ61はステップP2610に進み、コマンドレジ
スタ41に送信後確認待となっている、即ち、データキ
ャラクタ1の第7ビツトQが1であるコマンドがあるか
調べ、このコマンドと受信したステータスアンサ中に通
信の対象となっているSSCに最後に供給したコマンド
と一致しているか否かを判断する(第11図(f)参照
)。ステップP2610の判断結果がノーなら、マイク
ロプロセッサ61はステップP2611、P2612を
実行することなくステップP2613に進むが、ステッ
プP2610の判断結果がイエスなら、マイクロプロセ
ッサ61はステップP2611で受信されたフレームに
含まれていたコマンドが通信の対象になっているSSC
に対して最後に送出されたコマンドと一致するか否かを
判断する。もし、これらのコマンドが不一致であるなら
、ステップP2611の判断結果はノーになるので、マ
イクロプロセッサ61はステップP2612に進んで通
信の対象になっているSSCに最後に供給したコマンド
の通信要求フラグTRを「1」にセットして該コマンド
を再送する準備をする。これに対して、ステップP26
11の判断結果がイエスなら、マイクロプロセッサ61
は一時レジスタ1,2に保持されているデータキャラク
タ1,2をそれぞれコマンドレジスタ32とステータス
レジスタ33とに転送し、保持させる(ステップP26
13)。この後、マイクロプロセッサ61は、通信の対
象となっているSscから応答のあったことを示すため
、受信したデータキャラクタ1,2に付されていた受信
通知フラグRRを「1」にセットする(ステップP26
14)。続いてマイクロプロセッサ61は受信されたデ
ータキャラクタのフレーム継続ビットNをチエツクして
、フレームが更に継続するのか否かを判断する(ステッ
プP2615)。フレームが継続するならステップP2
615の判断結果はノーになるので、マイクロプロセッ
サ61はステップP2616を実行することなくステッ
プP2617に進み、ステップP2615の判断結果が
イエスなら、マイクロプロセッサ61はSSC区切り検
出を示すPENDを「1」に設定して(ステップP26
16)、カウントデータCCNTを「O」に初期設定し
て次回のフレーム受信に備える(ステップP261?)
。この後、マイクロプロセッサ61はメインルーチンプ
ログラムに復帰する。 次に受信したフレームがモードアンサを構成するデータ
キャラクタであった場合について第27図を参照して説
明する。モードアンサは、第11図(h)、  (i)
に間して説明したようにワードタイプとストリングタイ
プとがあり、それぞれのフレーム構成は互いに異なる。 そこで、モード解析サブルーチンプログラム5B252
がステップP2701で開始されると、マイクロプロセ
ッサ61はカウントデータCCNTをチエツクして、受
信したキャラクタがデータキャラクタ5であるか否かを
判断する(ステップP2702)。IDキャラクタ受信
後にはデータキャラクタ1が受信されるので、カウント
データCCNTは「2」に設定されているはずであり(
第25図のステップP2506参照)、ステップP27
02の判断結果はノーになる。そこで、マイクロプロセ
ッサ61はステップP2703に進み、カウントデータ
CCNTが「2」であるか否かを判断する。上述のよう
にフレーム受信開始後、最初にモード解析サブルーチン
プログラム5B252が実行されるのはデータキャラク
タ1を受信したときであり、カウントデータCCNTは
「2」である。したがってステップP2703の判断結
果はイエスとなり、マイクロプロセッサ61はステップ
P2704に進み、受信したデータキャラクタ(マツプ
アドレスM)が7FHであるか否かを判断する。第11
図(h)に間して説明したように、マツプアドレスMと
して禁止されている値は終了コードを表す(7FH)の
みであるから、ステップP2704において終了コード
(7FH)が検出されるなら、マイクロプロセッサ61
はステップP2705に進み、SSC区切り検出を表す
フラグPENDを「0」にリセットし、続いて、カウン
トデータCCNTを「0」にリセットする(ステップP
2706)。一方、ステップP2704の判断結果がイ
エスなら、マイクロプロセッサ61はフラグ5TRNG
を「0」にリセットしくステップP2707)、カウン
トデータCCNTを「4」に設定すると共に、受信した
データキャラクタ1をマイクロプロセッサ61のアドレ
スレジスタに転送する(ステップP2708)。この後
、マイクロプロセッサ61は上記アドレスレジスタに保
持したデータキャラクタ1により表されているマツプア
ドレスMを解析して該マツプアドレスMがストリングエ
リアを指定しているか否かを判断する(ステップP27
09)。もし、マツプアドレスMがストリングエリアを
指定しているなら、ステップP2709の判断結果はイ
エスなので、マイクロプロセッサ61はステップP27
10に進んでフラグ5TRNGを「1」にセットする。 しかる後に、マイクロプロセッサ61はカウントデータ
CCNTを「3」に設定しなおしくステップP2711
)、受信データ処理サブルーチンプログラム5B172
に復帰する。これに対して、ステップP2709の判断
結果がノーなら、受信中のモードアンサはワードタイプ
なので、マイクロプロセッサ61はステップP2710
.  ステップP2711を実行することなく受信デー
タ処、理サブルーチンプログラムSB1?2に復帰する
。 やがて、3番目のキャラクタが受信されると、マイクロ
プロセッサ61は再びモード解析サブルーチンプログラ
ム5B252の実行を開始する。 今度はステップP2703の判断結果がノーになるので
、マイクロプロセッサ61はステップP2712に進み
カウントデータが「3」であるか否かを判断する。上述
のように、モードアンサがストリングタイプならカウン
トデータCCNTは「3」に設定されているが、ワード
タイプなら「4」に設定されているので、マイクロプロ
セッサ61はステップP2712の判断結果がイエスな
ら受信したデータ長を表すデータキャラクタ2をマイク
ロプロセッサ61内のデータカウンタに転送して保持し
くステップP2713)、ステップP2712の判断結
果がノーなら設定データDの第1バイトを表すデータキ
ャラクタ2をマイクロプロセッサ61内の一時レジスタ
1に転送して保持する(ステップP2714)。これら
いずれの処理を実行したにしても、その後、マイクロプ
ロセッサ61はカウントデータCCNTを「1」だけ歩
進させ(ステップP2715)、受信データ処理サブル
ーチンプログラムSB172に復帰する。 もし、モードアンサがストリングタイプなら、マイクロ
プロセッサ61は受信したデータキャラクタ3のために
ステップP2702、ステップP2703、ステップP
2712、ステップP2714を実行し、設定データを
表すデータキャラクタ3を一時レジスタ1に転送して保
持する。 次に、後続のデータキャラクタが受信され、再びモード
解析サブルーチンプログラムの実行が開始されたとする
。今回はステップP2702の判断結果がイエスになる
ので、マイクロプロセッサ61はステップP2718に
進み、受信したデータキャラクタを一時レジスタ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てデータカウンタに保持したデータ
長をrlj減少させる(ステップP2722)。更に、
マイクロプロセッサ61は受信したデータキャラクタが
終了コードを示しているか否かを判断しくステップP2
723)、その判断結果がノーの場合は直ちに受信デー
タ処理サブルーチンプログラムSB1?2に復帰する。 このようにして、受信中のモードアンサがストリングタ
イプなら、マイクロプロセッサ61は、データキャラク
タが受信される毎にステップP2702、ステップP 
2703.ステップP2712を経てステップP271
4でデータキャラクタを一時レジスタ1に一旦保持し、
しかる後に、ステップP2716で受信したデータキャ
ラクタを一時しジスタlに保持されているデータキャラ
クタと共に1ワード(2バイト)づつストリングエリア
に保持する。これに対して、受信したモードアンサがワ
ードタイプの場合には、マイクロプロセッサ61はステ
ップP 2702.  ステップP2703、ステップ
P2707〜ステップP2709、更にステップP27
12を経てステップP2714で受信したデータキャラ
クタを一時レジスタ1に一旦保持し、P2716で1ワ
ードづつローカルモードマツプ45に転送保持する。や
がて、全データを受信完了すると、データカウンタがカ
ウントを終了しくステップP2722)、ステップP2
723の判断結果がイエスになるので、マイクロプロセ
ッサ61はカウントデータCCNTを「2」に設定し、
受信通知フラグRRをセットしくステップP2724)
、ついで、その後に受信される終了コード(アドレス7
FH)をステップP2704で検出し、ステップP27
05.P2706をへてモードアンサの受信に伴う受信
データ処理サブルーチンプログラムの実行を終了する。 次に、SSCステータスチエツクサブルーチンプログラ
ム58183の詳細手順を第28図を参照して説明する
。本実施例ではMSC21は定期的にステータスレジス
タ42から各SSCの概略ステータス情報を読み出し、
概略ステータス情報がSSCの異常を示しているなら、
更に詳細を把握するためにモードリクエストを当該SS
Cに送出してそのローカルモードマツプ34から詳細ス
テータス情報を読み出す。そのために、MSC21はM
SIF監視サブルーチンプログラム5BI71中にSS
CSSステータスチエツクサブルーチンプログラム 1
83を有している。以下、SSCステータスチエツクサ
ブルーチンプログラムの詳細手順を説明す。 SSCステータスチエツクサブルーチンプログラム5B
183がステップP2801で開始されると、マイクロ
プロセッサ61はチエツクの対象となるSSCとして5
SC22を特定しくステップP2802)、すでに取り
込んであるチエツク対象となっているSSCの概略ステ
ータス情報の受信通知フラグRRが「1」であるか否か
をチエツクする(ステップP2803)。もし、受信通
知フラグRRが「0」ならステップP2803の判断結
果はノーになり、マイクロプロセッサ61はステップP
2809に進みチエツク対象のssCを変更して、全S
SCについて概略ステータス情報のチエツクが終了した
か否かを判断する(ステップP2810)。MSC21
が全SSCについて概略ステータス情報のチエツクを終
了していないなら、ステップP2810の判断結果はノ
ーになり、マイクロプロセッサ61はステップP280
3に戻ってステップP2803〜ステップP2810で
構成されるループをステップP2810の判断結果がイ
エスになるまで繰り返し実行する。もし、ステップP2
803の判断結果がイエスなら、マイクロプロセッサ6
1はチエツク対象のSSCに間する概略ステータス情報
に付されていた受信通知フラグRRを「0」にリセット
しくステップP2804)、当該チエツク対象のssC
に間する概略ステータス情報のピッ)Gl(ERROR
ビット)が立てられているか否かを判断する(ステップ
P2805)。ステップP2805の判断結果がイエス
なら当該チエツク対象のSSCの管理下にあるユニット
でユーザによる処置の可・能な比較的軽微なトラブルが
発生したことを示しており、マイクロプロセッサ61は
チエツク対象となっているSSCのローカルモードマツ
プ34から検知されたERRORビットに関係する詳細
ステータス情報を読み出すためにモードリクエストを送
信バッファにセットする(ステップP2806)。これ
に対して、ステップP2805の判断結果がノーなら、
上記軽微なトラブルは発生していないので、マイクロプ
ロセッサ61はステップP280Bを実行することなく
ステップP2807に進み、チエツクの対象になってい
るSSCに間する概略ステータス情報のビットG2(F
ATALビット)をチエツクする。もし、FATALビ
ットが「1」なら当該チエツクの対象になっているSS
Cの管理下にあるユニットで復帰不可能なトラブルが発
生したことになるので、マイクロプロセッサ61はFA
TALビットに関係したローカルモードマツプ34内の
詳細ステータス情報にアクセスするためにモードリクエ
ストを送信バッファ48にセットする(ステップP28
09)。これに対して、ステップP2807の判断結果
がノーなら、マイクロプロセッサ61はステップP28
08を実行することなくステップP2809に進み、チ
エツク対象のSSCを変更する。このようにして、全S
SCに関して概略ステータス情報のチエツクが終了する
と、ステップ22810の判断結果はイエスになるので
、マイクロプロセッサ61はMSIF監視サブルーチン
プログラム5B171に復帰する。 このようにして、マイクロプロセッサ61はERROR
ビット、またはFATALビットに関係する詳細ステー
タス情報をローカルモードマツプ34から読み出す準備
をする。こうして送信バッファ48に保持されたモード
リクエストは上述の送信要求処理サブルーチンプログラ
ムSB 173および送信バッファ処理サブルーチンプ
ログラム5B41の実行時にトラブルの発生しているS
SCに送出され、トラブルの発生しているSSCからモ
ードアンサが到着すると、受信バッファ処理サブルーチ
ンプログラムSB31と受信データ処理サブルーチンプ
ログラムとを実行して詳細ステータス情報を取り込む。 こうしてMSC21に取り込まれた詳細ステータス情報
は後述するトラブルチエツク処理サブルーチンプログラ
ム5B291において解析され、必要な処置が取られる
。 第17図に間して説明したように、メインループにおい
てMSIF監視サブルすチンプログラムSB 171〜
ポーリング制御サブルーチンプログラム5B174が終
了すると、マイクロプロセッサ61はフラグ5YSWA
ITをチエツクして、レーザプリンタがジョブ処理中か
、待機中かを判断する。もし、待機中ならフラグ5YS
WAITは「1」に設定されているので、ステップP1
709の判断結果はノーとなり、マイクロプロセッサ6
1はMS I F監視サブルーチンプログラムを実行す
るため5B171に戻る。これに対して、フラグ5YS
WAITが「O」になっているなら、ジョブ処理サブル
ーチンプログラムを実行すべく、まず、フラグLOOP
Fが「1」に設定されているか否かをチエツクする(ス
テップP1710)。 メインループタイマー処理サブルーチンプログラムに関
して説明したように、マイクロプロセッサ61は一定時
間間隔毎にフラグLOOPFを「1」に設定しているの
で、ステップP1710の判断も一定時間間隔毎にイエ
スになり、かかる肯定の判断結果をもってマイクロプロ
セッサ61はステップP1711においてフラグLOO
PFを「0」にリセットし、以下に説明するジョブ処理
サブルーチンプログラムの実行完了後は、再び一定の時
間間隔が経過するまでジョブ処理サブルーチンプログラ
ムが実行されないようにする。 第29図に示すように、ジョブ処理サブルーチンプログ
ラムにおいては、まず、フラグJOBACTが「1」で
あるか否かが判断されるが、フラグJOBACTはステ
ップP2908で「1」にセットされるので、通常、ジ
ョブ処理サブルーチンの開始直後はステップP2902
の判断結果がノーになる。ステップP2902の判断結
果がノーの場合、マイクロプロセッサ61はステップP
2906に進み、プリントに関する指示の有無を判断す
る。このステップP2906の判断結果がノーの場合に
は、マイクロプロセッサ61は上位のユーザシステムか
らプリント用紙の選択が供給されたか否かをステップP
2909で判断し、その判断結果がイエスならその選択
が外部給紙ユニットを選択するものであるか否かをステ
ップP2910で判断する。もし、ステップP2910
の判断結果がイエスならフラグENBFをチエツクして
外部給紙ユニットが選択可能か否かを判断しくステップ
P2911)、外部給紙ユニットが選択可能なら(すな
わち、ENBF=1)、マイクロプロセッサ61は給紙
口を変更する(ステップP2912)。これに対して、
ステップP2910の判断結果がノーならマイクロプロ
セッサ61は直接ステップP2912に進み、ステップ
P2911の判断結果がノーならマイクロプロセッサ6
1は直接トラブルチエツク処理サブルーチンプログラム
5B291に進む。 更に、ステップP2909の判断結果がノーなら、マイ
クロプロセッサ61はソータモードの設定が上位のユー
ザシステムから供給されたか否かを判断しくステップP
2913)、ステップP2913の判断結果がイエスな
ら、マイクロプロセッサ61はステップP2914でフ
ラグENBSが「1」であるか否か、すなわちソータを
選択可能か否かを判断する。ステップP2914の判断
結果がイエスなら、マイクロプロセッサ61はソータモ
ードに設定しくステップP2915)、ステップP29
14の判断結果がノーなら、マイクロプロセッサ61は
ステップP2915を実行することなくトラブルチエツ
ク処理サブルーチンプログラム5B291を実行する。 これに対して、ステップP2913の判断結果がノーな
ら、マイクロプロセッサ61は印字データ等のジョブデ
ータを上位のユーザシステムから供給を受け(ステップ
P2916)、トラブルチエツク処理サブルーチンプロ
グラム5B291を実行する。 やがて動作モード等プリントに関する指示がユーザシス
テムから供給されるとステップP2906の判断結果は
イエスになるので、動作モード等をローカルモードマツ
プ45とグローバルモードマツプ44とに書き込む(ス
テップP2907)。 もちろん、このとき送信要求フラグTRもセットされる
。その後、マイクロプロセッサ61はフラグJOBAC
Tを「1」に設定し、トラブルチエツク処理サブルーチ
ンプログラム5B291を実行する。 このようにフラグJOBACTが「1」に設定されると
、ステップP2902の判断結果がイエスになり、マイ
クロプロセッサ61はジョブシーケンスを実行する(ス
テップP2903)。この後、マイクロプロセッサ61
は上記ジョブシーケンスが終了したか否かを判断しくス
テップP2904)、ステップP2904の判断結果が
イエスなら、マイクロプロセッサ61はステップP29
05に進んで、待機状態を表示すべくフラグJOBAC
TをrOJに設定する。ステップP2905の終了後、
またはステップP2904の判断結果がノーの場合には
、マイクロプロセッサ61は後述するトラブルチエツク
処理サブルーチンプログラム5B291を実行する。 トラブルチエツクサブルーチンプログラム5B291の
詳細手順は第30図に示されており、トラブルチエツク
サブルーチンプログラム5B291がステップP300
1で開始されると、マイクロプロセッサ61はチエツク
の対象となるSSCとして5SC22を特定しくステッ
プP3002)、すでに取り込んであるチエツク対象と
なっているSSCのERRORビットに関する詳細ステ
ータス情報の受信通知フラグRRが「1」であるか否か
をチエツクする(ステップP3003)。もし、受信通
知フラグRRが「1」ならば、マイクロプロセッサ61
は該詳細ステータス情報に付されている受信通知フラグ
RRを「0」にリセットしくステップP3004)、続
いて、ステップP3005において詳細ステータス情報
に基づくエラー処理(ERROR処理)を実行する。こ
のERROR処理においては、トラブル箇所の表示等が
なされる。この後、マイクロプロセッサ61はステップ
P3006に進む。 これに対して、もし受信通知フラグRRが「o」ならス
テップP3003の判断結果はノーになり、マイクロプ
ロセッサ61は直接ステップP3006に進み、FAT
ALビットに関する詳細ステータス情報の受信通知フラ
グRRが「1」であるか否かを判断する。もし、ステッ
プP3006の判断結果がイエスなら、マイクロプロセ
ッサ61はステップP3007において受信通知フラグ
RRを「0」にリセットし、続いてステップP3008
に進んでFATAL処理を実行する。このFATAL処
理では、復帰不可能なトラブルであることの表示等が実
行される。この後、マイクロプロセッサ61はステップ
P3009に進む。 一方、ステップP3006の判断結果がノーの場合には
、マイクロプロセッサ61はステップP3009に進み
、チエツク対象のSSCを変更して、全SSCについて
詳細ステータス情報のチエツクが終了したか否かを判断
する(ステップP3010)。MSC21が全SSCに
ついて詳細ステータス情報のチエツクを終了していない
なら、。 ステップP3010の判断結果はノーになり、マイクロ
プロセッサ61はステップP3003に戻ってステップ
P3003〜ステップP3010で構成されるループを
ステップP3010の判断結果がイエスになるまで繰り
返し実行する。これに対して、ステップP3010の判
断結果がイエスなら、全SSCに関して詳細ステータス
情報のチエツクが終了しており、マイクロプロセッサ6
1はジョブ処理サブルーチンプログラムに復帰する。 (以下余白) 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がジョブ処理中であることを示
すフラグであり、 rlJにセットされているなら、ジ
ョブ処理中、 「0」にリセットされているなら待機中
であることを示す。 LOOPF: SSCのメインループの周期を制御する
フラグあり、このフラグが「1」に設定されていると、
ジョブ処理を実行するタイミングに達したことが示され
る。 MSIFS:MSIF監視サブルーチンプログラムの実
行段階を示すパラメータであり、 「0」〜「3」のい
ずれかの値に設定される。 5TOPF:ジョブ制御処理の強制終了要求フラグであ
る。 5YSWAIT:ジョブ制御処理の実行禁止フラグ。 TYPE:モードセットのタイプを表すフラグであり、
ストリングタイプのモードセットの場合は「1」にセッ
トされる。 5SC−され  ロ −ムの 第32図はSSCで実行されるプログラムの概略構成を
示すフローチャート図であり、同図からも明らかなよう
に、SSCは電源投入時に実行が開始されるメインルー
チンプログラムと、3つの互いに独立した割り込みプロ
グラムとで構成されている。 まず、電源を投入すると、電源オンイベントとなりEV
Iとなり、各SSCのマイクロプロセッサ61(以下、
単にマイクロプロセッサ61という)は、後に詳述する
SSC初期化サブルーチンプログラム5B501を実行
し、続いてMSTF処理サブルーチンプログラム5B5
02を実行する。このMSIF処理サブルーチンプログ
ラム58502の手順についても後に詳述する。MSI
F処理サブルーチンプログラムの完了を判断して(ステ
ップP3201)、マイクロプロセッサ61はジョブ処
理サブルーチンの実行可能を示すメインループタイミン
グの到来を判断しくステップP3202)、メインルー
プタイミングの到来が検出されるとジョブ処理サブルー
チンプログラム5B503を実行する。かかるMSIF
処理サブルーチンプログラム58502〜ジョブ処理サ
ブルーチンプログラム5B503て構成されるループの
実行中に各SSCの割り込みタイマー66が所定期間の
計時を終了すると、タイマー割り込みイベントEV12
が発生し、マイクロプロセッサ61はメインループタイ
ミングの発生を制御するためにメインループタイマー処
理サブルーチンプログラム5B504をまず実行し、続
いて、ジョブ制御タイマー処理サブルーチンプログラム
5B505を実行し、タイマー割り込みイベント発生時
のメインルーチンプログラムのステップに復帰する。受
信割り込みイベントEV13は、SSCの受信レジスタ
が1キヤラクタをラッチすると発生し、フレームの解析
やMSCに対するアンサの送出等を含む受信データ処理
サブ、ルーチンプログラム5B506が実行される。一
方、SSCの送信レジスタ3103内の最初のキャラク
タがマクロシステムインターフェース27に送出される
と、送信割り込みイベン)EV14が発生し、送信割り
込みイベン)EV14の発生により送信データ処理サブ
ルーチンプログラム5B507が実行される。この送信
データ処理サブルーチンプログラム5B507では、S
SCの送信バッファ3102内のフレームを順次マクロ
システムインターフェース27に送出する。以上、SS
Cで実行されるプログラムの概要を説明したが、以下、
各プログラムの詳細手順を説明する。 第33図はメインルーチンプログラムの詳細手順を示す
フローチャート図であり、メインルーチンプログラムは
上述のように電源オンイベントEv1の発生で開始され
、まず、マイクロプロセッサ61の内部回路の初期化を
実行しくステップP3302)、その後、ローカルモー
ドマツプ34゜グローバルモードマツプ35およびコマ
ンドレジスタ32をそれぞれクリアする(ステップP3
303)。しかる後、マイクロプロセッサ61はステー
タスレジスタ33のG5ビット(NOT  READY
ビット)を「1」にセットして初期化実行中であること
を示す。次に、フラグ5YSWAITを「1」にセット
してジョブ制御処理の実行を禁止しくステップP330
5)、パラメータMSIFSを「0」に設定して後続す
るMS I F監視サブルーチンプログラム5B511
の実行の準備をする(ステップP3306)。更に、マ
イクロプロセッサ61はステップP3307においてメ
インループタイマーをセットし、メインループタイミン
グの発生を可能にする。このような一連の準備が終了す
ると、マイクロプロセッサ61は割り込み許可フラグを
セットして上述の各種別り込みを可能にする(ステップ
P3308)。 このようにしてSSC初期化サブルーチンプログラム5
B501が完了すると、マイクロプロセッサ61はMS
 I F監視サブルーチンプログラム5B511、そし
て、送信要求処理サブルーチンプログラム5B512を
順次実行する。 MS I F監視サブルーチンプログラム5B511は
第34図に示されているようにステップP3400にお
いて開始され、SScのマイクロプロセッサ61はステ
ップP3401においてMSC21からリセットコマン
ド(RESET)がすでに供給されているか否かを判断
しく第18図に示されているMSIF監視サブルーチン
プログラムのステップP1813を参@)、その判断結
果がノーならステップP3407に進みパラメータMS
IFSが「1」にセットされているか否かを判断する。 パラメータMSIFSはステップP3306において「
0」にセットされているので、当初はステップP340
7の判断結果はノーになり、マイクロプロセッサ61は
更にステップP3411に進み、パラメータMSIFS
が「2」であるか否かを判断する。ステップP3411
でも、当初はその判断結果がノーになるので、マイクロ
プロセッサ61は直ちにメインルーチンプログラムに復
帰する。やがて、MSC21からりセットコマントが供
給されると、ステップP3401の判断結果がイエスに
なるので、マイクロプロセッサ61はステップP340
2に進んでリセットコマンドに付されている取り込み確
認ビットQを「0」にリセットする。その結果、MSC
21は次のコマンドを送信可能になる。なお、リセット
コマンドに対するステータスアンサは受信データ処理サ
ブルーチンプログラム58506においてなされるので
、メインルーチンプログラムではステータスアンサに関
する処理はなされない。次に、マイクロプロセッサ61
はステータスレジスタの05ビツトを「1」にセットし
くステップP3403)、続いてフラグ5YSWAIT
が「0」であるか否かを判断する(ステップP 340
4)。フラグ5YSWAITはステップP3305で「
1」に設定されているので、MS I F監視サブルー
チンプログラムの未完了時では、ステップP3404の
判断結果は通常ノーになる。したがって、マイクロプロ
セッサ61はステップP3405を実行することなくス
テップP3406に進む。しかしながら、既にSSCが
動作中にリセットコマンドを受信した場合には、フラグ
5YSWAITは「0」にリセットされているので、マ
イクロプロセッサ61はステップP3405でフラグ5
TOPFを「1」にセットしてジョブ処理を強制的に停
止させてからステップP3406に進む。フラグSTO
,PFはジョブ処理の中断が終了するとrOJにリセッ
トされる。 ステップP3406では、パラメータMSIFSをrl
Jにセットし、続くステップP3407でパラメータM
SIFSが「1」であるか否かを判断する。もし、パラ
メータMSIFSが「0」であるなら、マイクロプロセ
ッサ61はステップP3407をノーと判断し、ステッ
プP3411を経てメインルーチンプログラムに復帰す
る。反対に、パラメータMSIFSが「1」であるなら
、ステップP3407の判断結果はイエスなので、マイ
クロプロセッサ61はフラグ5TOPFが「0」である
か否かを判断し、その判断結果がノーなら、マイクロプ
ロセッサ61はステップP3411を経てメインルーチ
ンプログラムに復帰する。 これに対して、ジョブ処理が一旦中断された後にフラグ
5TOPFが「0」にリセットされた場合などフラグ5
TOPFが「O」なら、マイクロプロセッサ61はこれ
をステップP3408で検出してその判断結果(イエス
)に基づきローカルモードマツプ34の初期化を実行す
る。このようにしてローカルモードマツプ34が初期化
されると、マイクロプロセッサ61はローカルモードマ
ツプ34に保持されている情報の送信要求フラグTRを
「1」にセットして、その内容をMSC21に通知する
準備をする(ステップP3409)。このようにして送
信要求フラグTRのセットされた情報は後述する送信要
求処理サブルーチンプログラムSB512、送信データ
処理サブルーチンプログラム5B507の実行によりM
SC21に送出される。 この後、マイクロプロセッサ61はステップP3410
でフラグ5YSWAIT、MS IFSをそれぞれrl
J、 「2」に設定し、ステップP3411に進んでパ
ラメータMSIFSが「2」に設定されているか否かを
判断する。ステップP3411の判断結果がノーの場合
には、マイクロプロセッサ61はメインルーチンプログ
ラムに復帰し、その判断結果がイエスの場合にはステッ
プP3412に進んでローカルモードマツプ34内の全
ての情報がMSC21に送出されたか否かを判断する。 ステップP3412の判断結果がノーなら、マイクロプ
ロセッサ61はメインルーチンプログラムに復帰し、そ
の判断結果がイエスならステップP3413に進んでパ
ラメータMSIFSを「3」に設定すると共に、ステー
タスレジスタの05ビツト(NOT  READY)を
「0」にリセットする。この後、マイクロプロセッサ6
1はフラグ5YSWAITを「0」にリセットして(ス
テップP3414)メインルーチンプログラムに復帰す
る。したがって、ローカルモードマツプ34内に保持さ
れている全ての情報がMSC21に送信されるまで、フ
ラグ5YSWAITは「l」を維持し、ジョブ処理の実
行は禁止されることになる。 次に、第35図を参照して送信要求処理サブルーチンプ
ログラム5B512の手順を説明する。 送信要求処理サブルーチンプログラム5B512はMS
IF監視サブルーチン5B511からメインルーチンプ
ログラムに復帰すると直ちにステップP3501におい
て開始され、まず、アドレスバッファ3101に空きが
あるか否かを判断する(ステップP3502)。アドレ
スバッファ3101に空きがなければ、マイクロプロセ
ッサ61はステップP3502をノーと判断して直ちに
メインルーチンプログラムに復帰し、空きがあればステ
ップP3502をイエスと判断してローカルモードマツ
プ34内に保持されている情報に付された送信要求ピッ
)TRを検索する(ステップP3503)。もし、特定
のローカルモードマツプ34に送信要求フラグTRの「
1」に設定された情報がなければ、マイクロプロセッサ
61はステップP3504をノーと判断してステップP
3508に進み、反対にその判断結果がイエスなら、当
該送信要求フラグTRが「1」に設定されている情報の
アドレスは既にアドレスバッファ3101に登録されて
いるか否かを判断する(ステップP3505)。もし、
アドレスが既にアドレスバッファ3101に登録されて
いれば、マイクロプロセッサ61はステップP3505
をノーと判断してステップP3507に進み、反対に未
登録であれば、マイクロプロセッサ61はステップP3
506に進んてそのアドレスをアドレスバッファ310
1に登録する。こうして、ステップP3507に進んだ
マイクロプロセッサ61は送信要求フラグTRのセット
された情報のアドレス登録を全ローカルモードマツプ3
4について終了したか否かを判断し、その判断結果がノ
ーならステップP3503に戻り、その判断結果がイエ
スならステップP350Bに進んで再びアドレスバッフ
ァ3101に空きがあるか否かを判断する。ステップP
3508の判断結果がノーならメインルーチンプログラ
ムに復帰し、反対にイエスならステップP3509に進
む。マイクロプロセッサ61はステップP3509にお
いてMSC21に送信すべきレポートがあるか否かを判
断する。もし、ステップP3509の判断結果がノーな
らステップP3512に進み、反対に、その判断結果が
イエスなら、マイクロプロセッサ61はステップP35
10において上記レポートを記憶しているメモリのアド
レスがアドレスバッファ3101に未登録か否かを判断
する。もし、アドレスが既に登録されていれば、マイク
ロプロセッサ61はステップP3512に進み、反対に
未登録ならステップP3511において上記アドレスを
アドレスバッファ3101に登録した後にステップP3
512に進む。 ステップP3512においては、まず、ローカルモード
マツプ34のアドレス「OCH」 (第14図参照)を
参照してレポートモードであるか否かを判断し、レポー
トモードでなければメインルーチンプログラムに直ちに
復帰し、レポートモードならMSC12に送信すべきス
テータスがあるか否かを判断する(ステップP3513
)。もし、MSC21に送信すべきステータスがなけれ
ばメインルーチンプログラムに直ちに復帰し、もし、そ
のようなステータスがあればステップP3514に進ん
で該ステータスを記憶しているメモリのアドレスがアド
レスバッフy3101に未登録であるか否かを判断する
。もし、既に登録されていれば、直ちにメインルーチン
プログラムに復帰し、反対に、未登録であればアドレス
をアドレスバッファ3101に登録してからメインルー
チンプログラムに復帰する。 再び、第33図に戻ってメインルーチンプログラムの手
順の説明を続ける。送信要求処理サブルーチンプログラ
ム5B512からメインルーチンプログラムに復帰する
と、マイクロプロセッサ61はフラグ5YSWAITを
チエツクして該フラグ5YSWAITが「0」にリセッ
トされているか否かを判断する(ステップP3309)
。もし、フラグ5YSWAITが「1」にセットされた
ままなら依然として初期化の実行中なので、マイクロプ
ロセッサ61は再びMS I F監視サブルーチンブロ
グラム5B511を実行する。これに対して、フラグ5
YSWAITが既に「0」にリセットされているなら、
マイクロプロセッサ61はフラグLOOPFが「1」に
セットされているか否かを判断しくステップP3310
)、もし、その判断結果がノーなら、メインループタイ
ミングは未到来なので、MSIF監視サブルーチンプロ
グラム5B511を再び実行してメインループタイミン
グの到来を待つ。もし、メインループタイミングが到来
すると、ステップP3310の判断結果がイエスになる
ので、マイクロプロセッサ61はステップP3311に
進んでフラグLOOPFを「0」にリセットして次回の
メインループタイミングの到来までジョブ処理の実行を
禁止する。 ステップP3311の実行後、マイクロプロセッサ61
は一連のジョブ処理を実行してプリント用紙上に所定の
像を形成することを可能にする(ステップP3312〜
ステップP3313)。このように、マイクロプロセッ
サ61はメインルーチンプログラムにおいてサブルーチ
ンプログラム5B511〜P3313からなるループを
繰り返し実行する。 次に、タイマー割り込みイベン)EV12発生時に実行
されるサブルーチンプログラム5B504.505の手
順について第36図を参照してメインループタイマー処
理サブルーチンプログラム5B504が開始されると、
マイクロプロセッサ61はステップP3601でメイン
ループタイマーの値を歩進させ、歩進されたメインルー
プタイマーの値がメインループタイミングの到来を示す
値に達したか否かを判断する(ステップP3602)。 もし、ステップP3602の判断結果がノーなら、マイ
クロプロセッサ61はステップP3604に進み、反対
に、その判断結果がイエスならフラグLOOPFを「1
」に設定してジョブ処理を可能にし、メインループタイ
マーに初ltn値を設定して再びメインループタイミン
グの到来までの時間間隔を計る(ステップP3603)
。 続いて、マイクロプロセッサ61はシーケンスタイマー
処理をステップP3604で実行し、続いて、レポート
モードであるか否かを判断する(ステップP 3605
)。もし、レポートモードで無ければ、マイクロプロセ
ッサ61はステップP3611に進み、反対に、レポー
トモードであればステップP3606に進んでアドレス
バッファ3101に送信すべきデータのアドレス情報が
あるか否かを判断する。もし、アドレスバッファ310
1に上記アドレス情報がなければ、マイクロプロセッサ
61は直ちにステップP3611に進み、反対に、アド
レスバッファ3101にアドレス情報があればステップ
P3607に進んで送信バッファ3102にデータがあ
るか否かを判断する。もし、送信バッファ3102にデ
ータがなければ、マイクロプロセッサ61はステップP
3611に進み、反対にデータがあればステップP36
08に進んでアドレスバッファ3101内のアドレス(
以下、指定アドレス)で指定されているメモリ位置に保
持されている情報をフレームに変換して送信バッファ3
102に転送する。このようにして送信バッファ310
2内に保持されて情報は、送信割り込みイベン)EV、
14の発生時に送信データ処理サブルーチンプログラム
5B507の実行によりマクロシステムインターフェー
ス27に送出される。マイクロプロセッサ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は「0」
なので、ステップP3704の判断結果はイエスとなり
、マイクロプロセッサ61は受信したキャラクタがID
キャラクタであるか否かを判断する(ステップP370
5)。カウントデータCCNTが「0」であるにもかか
わらず、受信したキャラクタがIDキャラクタではない
と判断されると、通信中に異常が発生した可能性がある
ので、マイクロプロセッサ61は以後の処理を中止して
直ちに受信割り込みイベント発生時に実行していたプロ
グラムに復帰する。これに対して、ステップP3705
で受信されたキャラクタカilDキャラクタであると判
断されるなら、マイクロプロセッサ61はIDキャラク
タの識別コードとエリアコードとをそれぞれデータID
S、IDUとして取り込むと共にカウントデータCCN
Tを「2」に設定する(ステップP3706)。コノヨ
ウニシテ、データIDS。 IDUが形成されると、マイクロプロセッサ61はデー
タIDSに基づき受信したキャラクタが特定のSSCを
対象としているか否かを判断する(ステップP3707
)。もし、ステップP3707の判断結果がノーなら、
受信中のフレームはMSC21のグローバルモードマツ
プ35から全SSCに共通して送信されたものなので、
マイクロプロセッサ61は直ちに受信割り込みイベント
発生時に実行されていたプログラムに復帰する。これに
対して、ステップP3707の判断結果がイエスなら、
マイクロプロセッサ61は受信したキャラクタが自らを
対象にして送信されたものか否かを判断しくステップP
3708)、その判断結果がイエスなら直ちに受信割り
込み発生時に実行されていたプログラムに復帰する。こ
れに対して、受信したキャラクタが他の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キャラクタに続くデータキャラクタlを受信した場
合は、カウントデータが「1」になっているので、ステ
ップP3803の判断結果はノーになり、マイクロプロ
セッサ61は受信したデータキャラクタを一時レジスタ
1に転送し、カウントデータを「3」に設定(ステップ
P3804)L/て受信データ処理サブルーチンプログ
ラム5B506に復帰する。これに対して、データキャ
ラクタ2が受信されたときは、カウントデータCCNT
はステップP3804で「3」に設定されているので、
マイクロプロセッサ61はステップP3803をイエス
と判断してステップP3805に進み、前回供給された
コマンドがコマンドレジスタ32からマイクロプロセッ
サ61に供給されて処理が実行されたか否かを判断する
。既に、前回のコマンドに間する処理が実行されたなら
く取り込み確認ピッ)Qが「0」にリセットされている
)、ステップP3805の判断結果はイエスになるのて
、マイクロプロセッサ61はステップP3806に進ん
で一時レジスタに保持していたデータキャラクタ1と共
に受信したデータキャラクタ2をコマンドレジスタ32
に供給して保持する。これに対して、ステップP380
5の判断結果がノーなら、マイクロプロセッサ61はス
テップP3806を実行することなく直接ステップP3
807に進む。続いて、マイクロプロセッサ61はステ
ップP3807にてレポートモードか否かを判断し、ス
テップP3807の判断結果がノーならマイクロプロセ
ッサ61はステップP3812に進む。これに対して、
ステップP3807の判断結果がイエスなら、マイクロ
プロセッサ61はステータスレジスタ33に保持されて
いる情報の送信要求フラグを「1」にセットしくステッ
プP3808)、続いてアドレスバッファ3101に空
きがあるか否かを判断する(ステップP3809)。も
し、アドレスバッファ3101に空きがなければ、マイ
クロプロセッサ61はステップP3812に進み、アド
レスバッファ3101に空きがあれば、ステップP38
08にて送信要求フラグを「1」にセットした情報のア
ドレスを登録して(ステップP3810)ステップP3
812に進む。 これに対して、ステップP3802の判断結果がイエス
なら、マイクロプロセッサ61はポーリングモードか否
かを判断しくステップP3811)、その判断結果がノ
ーならステップP380Bに進む。これに対して、ステ
ップP3811の判断結果がイエスなら、マイクロプロ
セッサ61はポーリングアンサ処理サブルーチンプログ
ラム5B531を実行してステップP3812に進む。 ステップP3812では、カウントデータCCNTを「
0」に初期設定して次回の受信データ処理サブルーチン
プログラムの実行に備え、その後、受信データ処理サブ
ルーチンプログラムに復帰する。 上記ポーリングアンサ処理サブルーチンプログラム5B
531の詳細手順は第39図に示されており、このサブ
ルーチンプログラム5B531はステップP3901に
て開始する。マイクロブロセ・ンサ61はステップP3
902に進んで、ステータスレジスタ33に保持されて
いる情報の送信要求フラグTRをリセットする。続いて
、アドレスバッファ3101に送信すべき情報のアドレ
スが登録されているか否かを判断しくステップP390
2)、もし、アドレスが登録されていなければ、マイク
ロプロセッサ61は、フレーム継続ビットNが「0」の
ステータスアンサを送信バッファ48に送出してその送
信準備をする(ステップP3904)、  このように
、フレーム継続ビットNが「0」のステータスアンサに
ついて送信準備が終了すると、マイクロプロセッサ61
はステップP3915に進む。 これに対して、アドレスバッファ3101に送信すべき
情報のアドレスが登録されていてステップP3903の
判断結果がイエスになる場合には、マイクロプロセッサ
61は、フレーム継続ビットNが「1」のステータスア
ンサを送信バッファ3102に供給して送信準備をし、
 (ステップP3905)、続いて、ステップP390
6にてアドレスバッファ3101にシーケンスレポート
のアドレスが登録されているか否かを判断する。もし、
シーケンスレポートのアドレスが登録されているなら、
該シーケンスレポートのアドレスをアドレスバッファ3
101から削除すると共に、レポートレジスタ37内に
保持されているレポート情報に付されている送信要求フ
ラグTRをリセットする(ステップP3907)。この
後、マイクロプロセッサ61は送信すべき情報の保持さ
れているアドレスがアドレスバッファ3101に登録さ
れているか否かを判断しくステップP3908)、ステ
ップP3908の判断結果がノーなら、フレーム継続ビ
ットNが「0」のシーケンスレポートを送信バッファ3
102に供給して送信準備をしくステップP3909)
、反対に、ステップP3908の判断結果がイエスなら
、フレーム継続ビットNが「1」のシーケンスレポート
を送信バッファ3102に供給して送信準備をする(ス
テップP3910)。 次に、マイクロプロセッサ61はアドレスバッファ31
01内をチエツクして送信すべきストリングタイプのモ
ードアンサのアドレスが登録されているか否かを判断す
る(ステップP3911)。 もし登録されていれば、マイクロプロセッサ61は該ア
ドレスをアドレスバッフ・ア3101から削除し、モー
ドアンサを構成する情報に付されていた送信要求ビット
TRをリセットする(ステップ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の実行に
よりN5C21に送出される。 次に、モードセット処理サブルーチンプログラム5B5
22の手順を第40図を参照しつつ説明する。モードセ
ット処理サブルーチンプログラム5B522がステップ
P4001において開始されると、マイクロプロセッサ
61は、まず、カウントデータCCNTをチエツクし、
て、カウントデータCCNTの値が「5」であるか否か
を判断する(ステップP4002)。データキャラクタ
1の受信時には、カウントデータCCNTは通常「2」
に設定されているので、ステップP4002の判断結果
はノーになる。したがって、マイクロプロセッサ61は
ステップP4003に進み、再びカウントデータCCN
Tをチエツクしてその値が「2」であるか否かを判断す
る。データキャラクタ1の受信時には、カウントデータ
CCNTは前述のように「2」に設定されているはずで
あり、ステップP4003に判断結果はイエスになる。 モードセットの場合、データキャラクタ1はマツプアド
レスMに割り当てられているので、マイクロプロセッサ
61はステップP4004に進んでマツプアドレスMを
アドレスレジスタに転送して保持する0次に、カウント
データCCNTを「4」に設定し、フラグTYPEをリ
セットする(ステップP4005)。次に、ステップP
4004でアドレスレジスタに保持したマツプアドレス
を参照してストリングエリア36が指定されているか否
かを判断する(ステップP4006)。もし、ステップ
P4006の判断結果がイエスなら、マイクロプロセッ
サ61はステップP4007に進んでカウントデータC
CNTを「3」に設定すると共に、フラグTYPEをr
lJにセットして、受信データ処理サブルーチンプログ
ラム5B506に復帰する。これに対して、ステップP
4006の判断結果がノーなら、マイクロプロセッサ6
1はステップP4007を実行することなく受信データ
処理サブルーチンプログラム5B506に復帰する。や
がてデータキャラクタ2が受信されモードセット処理サ
ブルーチンプログラム5B522が開始すると、ステッ
プP4002.  ステップP4003の判断結果はい
ずれもノーになるので、マイクロプロセッサ61は一ス
テップP4008に進み、カウントデータCCNTが「
3」であるか否かを判断する。上述してステップP40
05〜ステップP4007の処理により、ストリングタ
イプのモードセットでは、カウントデータCCNTは「
3」に、ワードタイプのモードセットでは「4」にそれ
ぞれ設定されているので、受信中のフレームがストリン
グタイプのモードセットならステップP4008の判断
結果はイエスに、ワードタイプのモードセットなら判断
結果はノーとなる。それて、受信中のフレームがストリ
ングタイプのモードセットなら、データキャラクタ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で判断し、も
し、ステップP4016の判断結果がノーなら直ちに受
信データ処理サブルーチンプログラム58506に復帰
し、反対に、ステップP4016の判断結果がイエスな
ら、マイクロプロセッサ61はカウントデータCCNT
を「0」に設定し、受信した設定データの受信通知フラ
グRRを「1」にセットする。しかる後に、マイクロプ
ロセッサ61は受信データ処理サブルーチンプログラム
5B506に復帰する。 次に、モードリクエストサブルーチンプログラムの手順
を第41図を参照して説明する。モードリクエストサブ
ルーチンプログラム5B523はステップP 4.10
1において開始し、ステップP4102でアドレスバッ
ファ3101をまず検索する。この検索に基づき、マイ
クロプロセッサ61は、受信したデータキャラクタによ
り表されているマツプアドレスMがアドレスバッファ3
101に未登録であるか否かを判断しくステップP41
03)、もし、既にアドレスバッファ3101に登録さ
れていれば、ステップP4103の判断結果はノーにな
るので、マイクロプロセッサ61はステップP4107
に進んでカウントデータを「0」に設定して受信データ
処理サブルーチンプログラムに復帰する。これに対して
、もし、マツプアドレスMが未登録なら、ステップP4
103の判断結果はイエスになるので、マイクロプロセ
ッサ61はアドレスバッファ3101に空きがあるか否
かを判断しくステップP4104)、もし、空きがあれ
ばステップP4105にてマツプアドレスMをアドレス
バッファ3101に登録してからステップP4107に
進む。これに対して、ステップP4104の判断結果が
ノーなら、マイクロプロセッサ61はマツプアドレスM
で指定された情報の送信要求フラグTRを「1」にセッ
トしてからステップP4107に進む。ステップP41
07では、上述のように、カウントデータCCNTを「
0」に設定し、その後、マイクロプロセッサ61は受信
データ処理サブルーチンプログラム5B506を実行す
る。 再び第33図において、送信要求処理サブルーチンプロ
グラムSB512から復帰したマイクロプロセッサ61
は、ステップP3309においてフラグ5YSWAIT
をチエツクし、SSCの初期化が終了している(SYS
WAI T=0)か否かを判断する。フラグ5YSWA
ITはMSIF監視サブルーチンプログラム5B511
のステップP3414において「0」にリセットされる
ので、未だ、初期化が終了していなければ、ステップP
3309の判断結果はノーになり、マイクロプロセッサ
61はSSCの初期化を継続するためにMSIF監視サ
ブルーチンプログラムを再実行する。これに対して、初
期化が完了していれば、ステップP3309の判断結果
はイエスになり、マイクロプロセッサ61はフラグLO
OPFをチエツクしてメインループタイミングが到来し
ている(LOOPF=1)か否かを判断する。もし、メ
インループタイミングが未到来なら、マイクロプロセッ
サ61はMS I F監視サブルーチンプログラム5B
511に復帰し、反対に、メインループタイミングが到
来しているなら、フラグLOOPFを「0」にリセット
し、ジョブ処理サブルーチンステップP3312、・・
・ ステップP3313を実行する。 ジョブ処理サブルーチンプログラムの手順は第42図に
示されており、本サブルーチンプログラムはステップP
4201において開始され、マイクロプロセッサ61は
、まず、フラグJOBACTが「1」に設定されSSC
が待機状態から抜は出しているか否かを判断する(ステ
ップP4202)。フラグJOBACTはステップP4
208で「1」にセットされるので、一連のジョブ処理
の開始当初では、ステップP4202の判断結果はノー
になり、マイクロプロセッサ61はステップP4203
に進んで、コマンドレジスタ32にコマンドが保持され
ているか否かを判断する。もし、ステップP4203の
判断結果がノーなら、マイクロプロセッサ61はステッ
プP4204に進みローカルモードマツプ34およびグ
ローバルモードマツプ35に受信したフレームがあるか
否かを受信通知フラグRRを検索して判断する。もし、
ステップP4204の判断結果がノーなら、マイクロプ
ロセッサ61はトラブルチエツクサブルーチンプログラ
ム5B541に進み、反対に、ステップP4204の判
断結果がイエスなら、受信したフレームを構成する情報
の受信通知フラグRRを「0」にリセットしくステップ
P 4205)、続いて、受信したフレームに関するモ
ードの内部処理を実行する(ステップP4206)。こ
の後、マイクロプロセッサ61はトラブルチエツクサブ
ルーチンプログラム5B541に進む。 やがて、コマンドレジスタ32にコマンドが保持される
と、ステップP4203の判断結果はイエスになり、マ
イクロプロセッサ61は取り込まれたコマンドの取り込
み確認ビットQを「0」にリセットしくステップP42
07)、続いて、フラグJOBACTを「1」に設定す
る(ステップP4208)。このようにしてジョブ処理
の準備が完了すると、マイクロプロセッサ61はローカ
ルモードマツプ34内に設定されているビジィ−レジス
タ(BUSY−REG)上のジョブ処理中ビットをセッ
トしくステップP4209)、トラブルチエツクサブル
ーチンプログラム5B541を実行する。 上述のように、フラグJOBACTが「1」にセットさ
れると、次回のジョブ処理サブルーチンプログラムの実
行時に、ステップP4202の判断結果はイエスになり
、マイクロプロセッサ61はステップP4210におい
てフラグ5TOPFが「0」であるか否かを判断し、も
し、その判断結果がイエスならジョブ処理の強制的中止
は要請されていないので、マイクロプロセッサ61はロ
ーカルモードマツプ34、グローバルモードマツプ35
に保持されている情報とコマンドレジスタ32に保持さ
れているコマンドとにしたがい所定の機能の実現を図る
。もし、一連のジョブ処理が完了していれば、ステップ
P4212の判断結果はイエスになるので、マイクロプ
ロセッサ61はフラグJOBACTを「0」に設定しく
ステップP4213)、ローカルモードマツプ34内に
設定されたビイジ−レジスタのジョブ処理中ビットをリ
セットする(ステップP4214)。マイクロプロセッ
サ61はこの後トラブルチェックサブルーチンプログラ
ムを実行する。 一方、ステップP4210の判断結果がノーの場合には
、ジョブ停止シーケンス処理を実行しくステップP42
15)、ステップP4216でジョブ処理の停止が完了
したか否かを判断する。もし、ジョブ処理の停止が完了
していれば、マイクロプロセッサ61はフラグ5TOP
Fを「0」に1ルヒツトしてからトラブルチエツクサブ
ルーチンプログラムを実行し、ジョブ処理の停止が完了
していなければ、ステップP4217を実行することな
くトラブルチエツクサブルーチンプログラムを実行する
。 トラブルチエツクサブルーチンプログラムは第43図に
示されているようにステップP4301で開始され、マ
イクロプロセッサ61はローカルモートマツプ34内に
設定されているエラーレジスタ(ERROR−REG)
をチエツクし、エラーレジスタ内に保持されているエラ
ー情報はエラーの未発生を示す値「0」であるか否かを
判断する(ステップP4301)。もし、エラー情報が
値「l」でエラーの発生を示していれば、マイクロプロ
セッサ61はステータスレジスタ33の01ビツトを「
1」にセットしくステップP4303)、反対に、エラ
ー情報が値「o」でエラーの未発生を示していれば、ス
テータスレジスタ33の01ビツトを「0」にリセット
する(ステップP4303)。このようにステータスレ
ジスタ33の01ビツトをエラー情報に応じて操作した
後、マイクロプロセッサ61はローカルモードマツプ3
4内に設定されているフェイタルレジスタ(FATAL
−REG)内のフェイタル情報が重大事故の未発生を示
す値ro」に設定されているか否かを判断する(ステッ
プP4304)。もし、フエイタル情報が値「1」で重
大事故の発生を示していれば、マイクロプロセッサ61
はステータスレジスタ33の02ビツト(FATALビ
ット)を「1」にセットしくステップP4306)、反
対に、フェイタル情報が値rOJで重大事故の未発生を
示していれば、ステータスレジスタ33の02ビツトを
rO」にリセットする(ステップP4305)。このよ
うにステータスレジスタ33の02ビツトをフエイタル
情報に応じて操作した後、マイクロプロセッサ61はロ
ーカルモードマツプ34内に設定されているビイジ−レ
ジスタ(BUSY−REG)内のビイジー情報がコマン
ドやモード変更に渾う動作の不実行を示す値rOJに設
定されているか否かを判断する(ステップP4307)
。もし、ビイジー情報が値「1」で上記コマンドやモー
ド変更に伴う動作実行中を示していれば、マイクロプロ
セッサ61はステータスレジスタ33の64ビツト(B
 U S Yビット)を「1」にセットしくステップP
4309)、反対に、ビイジー情報が値「0」で動作不
実行を示していれば、ステータスレジスタ33の64ビ
ツトを「0」にリセットする(ステップP4308)。 このようにステータスレジスタ33の64ビツトをビイ
ジー情報に応じて操作した後、マイクロプロセッサ61
はローカルモードマツプ34内に設定されているノット
レディーレジスタ(NOTREADY−REG)内のノ
ットレディー情報が初期化終了を示す値「0」に設定さ
れているか否かを判断する(ステップP4310)。も
し、ノットレディー情報が値「1」て初期化実行中を示
していれば、マイクロプロセッサ61はステータスレジ
スタ33(7)G 5ビツト(NOT  READYビ
ット)を「1」にセットしくステップP4312)、反
対に、ノットレディー情報が値「o」で初期化終了を示
していれば、ステータスレジスタ33の05ビツトを「
0」にリセットする(ステップP4311)。このよう
にステータスレジスタ33の05ビツトをノットレディ
ー情報に応じて操作した後、マイクロプロセッサ61は
ジョブ処理サブルーチンプログラムに復帰する。
[Configuration 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 character following the ID character is a data character.
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 bit STA, parity bit
Data excluding bit PA and synchronization stop bit STO
The information represented by tabbits bO to b7 is an ID character.
This will differ depending on the data character. That is, I
For D characters, b)b7 is set to "1".
This bit b7 set to “1” causes it to become “0”.
Identified from the data characters set. bit b
6 indicates whether a response of a predetermined frame is requested from the destination.
It is used as response request bit A to indicate whether the
) b2 to b5 are 4-bit identifiers that specify the destination of the information.
Functions as a code (SO to S3). remaining 2 bits
bl and bo are any area in the logical address space of the destination
A 2-bit area code (U
l, U2). Therefore, the ID character with the above bit configuration is the response
Request bit, identification code (So~S3) and area code
The values of the code (Ul, U2) are combined to represent various information.
combinations of these and subsequent data characters
Various frames can be constructed with first
, frames used in this embodiment will be explained. Scene 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. On the i-Nie site (Sent from MSC21) From MSC21 to all 5SC22-26, their operation modes are sent.
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. m-1 engineering (MSC21 transmission) MSC21 is the status register of each 5SC22 to 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
[52 that functions as a mando] Shishi intrusion top (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. Gojigami 1noe (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. Entering 52 Esu Enonami (Each 5SC 22-26 transmission) The above status list is sent from MSC21 to each 5SC 22-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 status answer, each SSC
Information and commands held in the status register of
The command written in the register is sent. Sequence review (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, MSC21 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 N5C21 outputs a sequence command,
Each of the 5SCs 22-26 responds with a status of 4. Also, when MSC21 sends a status request,
, each 5SC22-26 responds with a status answer.
do. Similarly, MSC21 sends information in mode request.
If requested, each 5SC22-26 will be available on mode answer.
:Jdv Tanji! Next, the ID characters that constitute each frame mentioned above and
Detailing the bit structure with the data characters that follow it
do. MSC Shin frame Figure 11 (a) shows the keys and letters that make up the sequence command.
FIG. 2 is a format diagram showing the bit structure of a character. C
The Kens command consists of 3 characters, ID
The characters are as shown in the table above. ID character
(b
7) are each set to "0", and the data character
Bit b6 of vector 1 is read-in confirmation beep) (Q)
This capture confirmation bit (Q) is
It is used to synchronize the commands, and is used in combination with status answer.
In total, each 5SC22-26 is supplied from MSC21.
To check whether the command was successfully imported,
used for Bit b5 of data character l and
and data character 2 p)b6 will be used in future expansion.
Bits (x) used, in this example, each 5SC
22-26 ignore bit (X). Therefore, de
For data character 1, bits 0 (L, SB) to bits
4 is assigned the command code (Co-C4).
, in data character 2, bits 0 to 6 (PO to
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.
and the data character l following the ID character.
Bits 0 to G are data keys 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, if the identification code S is "0"
”, the setting data D 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
Depending on the value of Accord U, the writing destination is local mortematsu.
map 34 or global mode map 35. In addition, the map address M must be set to "r7FH".
As will be explained later, M=r7FH] is the final
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 word type mode set mentioned above, the l address is
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 l specifying the map address M.
After , indicates the number of words L (LO to L6) of the setting data.
Data character 2 follows. Therefore, the setting data D is
represented by data character 3 to data character n
It turns out. Furthermore, for the same reason as mentioned above, the data cache
In vector 1, the map address is set to r7FHJ.
It won't happen. 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.
Data character bit bO (LSB) ~ b)
6 indicates the map address M that is requested to be read.
ing. Also in case of mode request, map address
M is never set to 7FHJ. SSC 9 books REM Figure 11 (f) shows the characters that make up the status answer.
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.
) Q, and the capture confirmation bit 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
The input confirmation bit 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 Bit b6 of data character 2 is the frame from SSC.
frame continuation bit 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 of data character 2 (LSB)
~Bit b5 is held in status register 33
It is assigned to a code that represents information. Each of the above 5S
The information held in C22 to C26 is one frame.
If the message cannot be sent in 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 to R4), and the data character
Bits bO to bits 5 of 2 are parameters P (PO to P5
) is assigned to. 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 r7FHJ and therefore
, map address M and setting data are r7FHJ values.
I never take it. Figure 11(i) shows the construction of a string type mode answer.
A format diagram showing the bit structure of the characters that
Yes, and corresponds to the mode set of the string type above.
. For string type mode answers, the ID character
Data character 1 following the data is assigned to the map address.
The data character 2 that follows is set
Represents data length. Data character 3 ~ Data character
Tan n-1 is assigned to the 1st word to the Lth word.
Each word consists of 14 bits (Do-DD).
There is. The string type mode answer also has an exit code (
7FH) and ends with a data character n representing However,
Therefore, the map address M and setting data have the value "7FH".
"I can't get it. 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
The frame continuation bit N is set to “1” and the final
The frame bit is set to ``0'' for SSC break detection.
” or with exit code r7FH. Sl: As mentioned above, 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 bit'' has been
It is called ``to''. rNOTREADYJ bit set
The SSC that has the sequence command and mote set
reception is possible, and the rNOT READYJ bit is
It will be reset after the initial period is completed. Next, bit G4 is
r represents the execution status of SSC due to commands and mode changes
It is assigned to the B U S YJ bit, and the above implementation
Reset at the end of the row state. Beep) G3 and GO
are unused bits and are assigned to certain summary status information.
Not assigned. Bit G2 is an unrecoverable trouble
rFATAL indicates that processing was interrupted due to the occurrence of a file.
J bit, rFATALJ bit
The port cannot be reset even with MSC21, and the service
The process cannot be resumed unless it is dealt with by Suman.
Can not. Bit G1 indicates that a recoverable trouble has occurred.
rERRORJ bit indicating that processing was interrupted due to
and the rERRoR” bit is set.
The user should take predetermined actions even if the
It is possible to restart the process. rERRORJ bit
will be notified by SSC when the user performs the above predetermined action.
can be reset. 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 S
It is called the SC standard mode map.
Detailed steps assigned to the logical address space of the domain map.
Figure 14 shows the status information. address r05H”,
"06H", "08H", r09H" are respectively "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 register
It is called a register. Note that the address rOcHJ 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. For polling mode, see Figures 5 to 7.
As explained above, N5C21 has multiple 5SC22
~26 is connected with the common signal line 5O9SI, and the system
Although the stem p 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, connect SSC1501 to 1503 and M
Communicate with SC1505 using polling method, and use SSCI
506.1507 and MSCI 505 are reporting 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, 1503, 1506, 1507
Frame collisions are avoided by communicating using the polling method.
It is possible to prevent bumps. (The following is a blank space) - and par - The following is a description of the software executed by the laser printer according to one embodiment.
software, but do not explain the software first.
Stand and explain the main parameters and flags
. The system executes the job, such as JABACT niblint operation.
This is a flag that indicates whether or not the process is in progress, and is set to "0".
If it is, the entire laser printer system is on standby.
. In contrast, if it is set to "1"
If any SSc under the management of MSC21
Instructs units under its control to perform an action, but the action is incomplete.
It shows that it has been completed. 5YSWAIT: The entire laser printer system is in its initial stage.
This is a flag indicating whether initialization is being executed or not.
It is set to “1” by
will be reset. 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 desired timing is reached, "Lr" is set and this
If the flag is reset to "0", job processing will not be executed.
Not performed. MS IFS: Multiple SSs under the management of MSC21
is a parameter representing the initial stage for C,
One of the values from "0" to "5" as initialization progresses.
is set to UN I 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. UNI TS: Sorter (In the embodiment shown in Fig. 2, the sorter code is
controller 25) is one of the laser printers.
Set to “1” when it is detected that the
It is reset to “0” when not connected. ENBF: External paper feed unit selection permission flag,
Can be selected when set to “l”, 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 set to ``θ''.
If it is reset, 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;
Check that N (frame continuation beep) is set to “0”.
or when the exit code "7FHI" is detected.
It is set to rlJ when PT IMrNG: Polling timing (t in Figure 7)
This is a flag indicating the occurrence of pl to tp4). 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 within the ID character of a received frame
This data corresponds to code S and is the subject of communication.
This is a code that identifies the SSC that is present. IDU: An error in the ID character of a received frame.
This data corresponds to rear code U and is not subject to communication.
The logical address space to be accessed in the SSC that is
show. FLEN: Supplied from the SSC that is the target of communication.
This is count data that indicates the number of characters in the frame.
and steps are taken each time the receive buffer receives a new character.
proceed. 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 poll.
It is ta. T RML: Characters that make up the frame being transmitted
is a flag indicating whether or not is in the transmission register 49,
The character is transferred from the transmit buffer 48 to the transmit register 49.
When it is transferred, it is set to "1" and the transmission register 49
All bits are sent to the macro system interface 27.
When issued, 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 shows the overall structure of the program executed by 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
SBII) and the judgment step to determine its completion (P 1
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 main processing that will be mentioned later regarding phase 27
synchronized with the macro system as described above.
Connection regarding SSC that can be connected to system interface 27
The presence or absence of is checked. MS IF processing subroutine
When the program 5BII is completed, step P102
Since the judgment result is YES, the microprocessor 6
1 checks the flag LOOPF and is in the main routine
When to execute job processing (hereinafter referred to as main run)
Determine whether or not the loop timing (referred to as loop timing) has arrived (
P 103). °If the main loop timing is not reached
If so, the judgment result in step P103 will be no.
The microprocessor 61 is a subroutine program.
Return to 5BII and MSIF processing subroutine program
will be executed again, and eventually the main loop timing will be reached.
Since the judgment result in step P103 is yes,
The microprocessor 61 is a job processing subroutine program.
Execute the ram (SB12). Job processing subroutine
At the end of the program (SB12), the microprocessor
The processor 61 returns to the subroutine program 5BII and performs the following steps.
After that, it consists of subroutine programs 5BII to 5B12.
Executes 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 subroutine 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-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) EV3 and transmission interrupt event) EV
4 will be dealt with. Figure 17 shows the main routine program executed on the MSC21.
FIG.
As mentioned above, the main routine program
caused by EVI. Power on event E
■By the occurrence of 1, 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 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 also initialize rlJ in pssc.
(Step P1705). Therefore, MSC21 is
First, a communication request will be sent to SSC1. Subsequently, the microprocessor 61 executes step P1706.
Among the flags etc. mentioned above, in step P1705
Set all to "0" except for those that are initially set to "1".
Ru. 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 runs the step P1707.
Go to and set the interrupt timer 66 of the MSC21.
In the next step P1708, an event (EV2.EV3.
EV4) Enable interrupts when they occur and execute the main loop.
Start a line. The main loop is about the macro system interface.
Hand 111 (SB171 to 5B174) and job control
It consists of steps to execute (P1709 to 5BI76).
These two types of moves 11 [1, macroshi
Procedures between 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). MSIF monitoring subroutine program S
B 171, the microprocessor 61 is Macrosys
initialization of the system interface 27 and the macro system
Regarding all SSCs that can be connected to the system interface 27
Check for connectivity individually. Subsequent received data processing
In the subroutine program 5B172, each 5SC22~
26 to the reception buffer 47 of the MSC 21.
executes the frame analysis and executes the transmission request processing subroutine program.
In Gram 5B173, MSC21 global mode
Map 44, local mode map 45 and commands
Among the information held in the register 41, 5SC22~
26, converts the information to be transmitted into a frame and stores it in the transmission buffer.
48. Frames held in the transmission buffer 48
The system is used for timer interrupt processing and transmission interrupt processing.
Send to macro system interface 27 by execution
do. 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 "o" in step P1711.
Ru. Therefore, job execution control (SBI75.5B
176) will be executed at a predetermined timing. 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 MSIF monitoring subroutines.
This is a flowchart diagram showing the steps of the program.
MSIF monitoring subroutine program 5 using PI301
When B171 is started, the microprocessor 61
Check the parameter MSIFS and check the parameter MSIFS.
Check whether FS is set to “0” (step
P1802). This subroutine program 5B171
Immediately after the start of the main routine program (Figure 17)
Since it is initially set to "0" in step P1706,
, the microprocessor 61 is an essential controller 5SC
22, 23, 26 and macro system interface 2
Check the connection with 7. i.e. microprocessor
61 is the stage from 5SC22 in step P1803.
The reception notification flag RR indicates whether or not the task answer has been received.
Check again. MSIF monitoring subroutine program
Immediately after starting execution of 5B171, the transmission request subroutine is still running.
Since the program 5B173 has not been executed, of course,
Passed by the received data processing subroutine program 5B172.
The resolution of the received frame from the SSC that is the target of the communication request.
No analysis has been performed, and the judgment in step P1802 is
-(N). If the judgment in step P1802 is no
If so, the microprocessor 61 executes step P1803.
~Proceed to step P1811 without executing P1810
move on. As already explained, the parameter MSIFS is
0", so step P1811
The judgment is also no, and steps P1812 to P1814 are executed.
The process proceeds to step P1815 without executing the process. Described later
, the microprocessor 61 increases the reference value.
Check the parameter MSIFS repeatedly while
However, as mentioned above, the parameter MSIFS is set to “0”.
The initial settings remain, so any subsequent steps (
The judgment in P1819, 1822) was also no, and the
Proceed to step P1831. The microprocessor 61
At step P1831, the flag JOBACT is "0"
, but the flag JOBACT is
, is "0" except during job processing, so step P18
The judgment result of 31 is yes, and the microprocessor 6
1, flag 5YSWAIT is set in step P1832.
Check whether it is rOJ. Flag 5YSWAIT is
Since it is set to "1" in step P1705,
Opening the MSIF monitoring subroutine program SB 171
Immediately after the start, the flag is 5YSWAIT=rlJ, and the microphone
The processor 61 is an optional connection checker routine.
SSC scan without running program 5B182.
Status check subroutine program 5B183
Execute and return to the main routine program. In this way, you can return to the main routine program.
Repeating MSIF monitoring subroutine program 5B
171 repeatedly and install the required controller (SSC
22, 23, 26) and macro system interface
Check the connection with 27. to status request
In response, the status answer from 5SC22 to 26 is
The reception notification flag RR indicating that the service has been received is “1”
If it detects that the microprocessor is set to
The processor 61 performs the steps P1803 to P1805.
Judging as yes, these 5SC22, 23, 26
are all connected to the macro system interface 27.
It is confirmed that In this way, the essential controllers 5SC22, 5S
Macro system interface for C23, 5SC26
Once the connection with the interface 27 is confirmed, the microprocessor
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 UN ITF is the main route
reset to “0” in step P1706 of the program.
MS IF monitoring subroutine program
At the beginning of execution of RAM 5B171, step P1806
The result of the judgment is no. Therefore, the microprocessor
61 is a step without executing step P1807.
If the flag UNITS is set to a value other than "0" in P1805,
Determine whether or not it has been written. MSIF monitoring subable
At the beginning of execution of program SB 171, the step
Since the judgment result of step P1808 is no, the microprocessor
The processor 61 proceeds to step pieio and sets the parameter MS.
Step the IFS to "1" and connect the required controller
Parameter PCY to control the time interval to check
Set CLE to "0". The above flags UNITF and U
What is NITS? Option connection check subroutine 58
In 1B2, 5SC24 and 25 are macro system inputs.
until it is confirmed that it is connected to interface 27.
maintains "0", so the above 5SC24,2
Responses from 5SC24 and 25 are not received until the connection confirmation of 5 is completed.
Step P1807. P1809 without judgment
Proceed to step P1810. In this way, the first initialization
Finish the stage. After step P18] 0 is completed, 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 SB
After completing step 183, return to the main routine program.
, then step P1802 and step P again.
Check the value of parameter MSIFS at 1811
. Connection of essential controller 5SC22, 23, 26
In the confirmed state, the parameter MSIFS is set to "1".
Since it is set, the judgment result of step P1811
is normally YES, and the microprocessor 61
Limit the value of parameter PCYCLE in step P1812.
Compare with value n. This limit value n is the required controller 5
Communication necessary to confirm the connection of SC22, 23, 26
The value is set to the number of requests plus a predetermined margin number of times.
(Step P 1812). Essential controller 5SC
When the connection was confirmed for 22, 23, and 26, the status
Since the judgment result of step P1812 is no, micro
The processor 61 performs step P1815. P1819. P
1822. , P1831, subroutine program 5B
The program returns to the main routine program via step 183. Up
The limit value n is determined by the polling control subroutine described in detail later.
In program 5B174, it advances by "1", so
, Eventually, the judgment result of step P1812 becomes YES.
The microprocessor 61 then proceeds to step P1813.
and sends a reset command to the connected SSC.
To do this, reset the command register 41 of the MSC21.
Set the reset command RESET. Connection confirmed
Sending the reset command RESET to the SSC is
communication request processing subroutine program SB173 and
Executed in the communication buffer processing routine program 5B41.
SS is executed and the reset command RESET is supplied.
The functions realized by C are executed by SSC, which will be described later.
This will be explained in the program. Reset like this
The reset command RESET confirms the connection in step P1813.
MSC21 command register for recognized SSCs
When set to the controller 41, the microprocessor 61
Step the parameter MSIFS to “2” and end the second stage.
Complete. In the following step P1815, the microprocessor
61, the parameter MSIFS has the value "2"
Determine whether or not. The judgment result of step P1815 is
, the SSC status check subroutine
After executing SB 183, -1 main routine program
Return to step P1802. After P1811, the screen returns to
Check the value of parameter MSIFS in step P1815.
Tsuku. However, the parameter MSIFS is
When the stage is completed, the value is already set to "2" in step P1814.
Since the determination result in step P1815 is
The result is always YES, and the microprocessor 61 confirms the connection.
All SSCs that have been reset hold the reset command RESET.
(Step P 1816) to determine whether the
If the result is no, -dan main routine program
After returning to step P1802. P1811. P1
The determination in step P1816 is repeated through step P815. 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) for all SSCs that have been confirmed to be connected.
Set the transmission request flag TR to "1" to supply the
(Step P 1817). After this, micropro
The processor 61 sets the parameter MSIFS to "3",
Finish stage 3. After the completion of the third stage, the microprocessor 61
Check whether the value of data MSIFS is "3".
If the judgment result is no, the SSC status
After executing the check subroutine program 58183,
- Return to the main routine program and step P.1
802. Step P18 via P1811 and P4O10
At step 19, the parameter MSIFS is checked again. para
The meter MSIFS is set to the value “3” in step P1818.
Since the determination in step P1819 is normally
The microprocessor 61 is
With the judgment result, proceed to step PI320, and issue a transmission request.
Determine whether flag TR has been reset to "0"
. Regarding standard mode where the transmission request flag is set to “1”
The information to be sent is sent in the same way as the reset command above.
Processing subroutine program 5B173 and transmission buffer processing
to execute the physical subroutine program 5B41.
It is sent to the SSC that is the target of supply, and then
The transmission request flag TR is reset to "0". However,
So, the judgment result at step P1820 is no.
However, information regarding the standard mode is still provided to the SSC to be supplied.
The microprocessor
61 is the SSC status check subroutine program
After execution of program 58183, the main routine program
After that, the process returns to step P1802. P1811,
Step P1820 after P4O10 and P1819
Repeated refusal. Eventually, information will be provided for standard mode.
Sent to the target SSC and attached with information about standard mode.
All transmission request flags TR that had been set are reset to "0"
When the microprocessor 61 inputs the parameter MSI
Set FS to "4" Step P1821), 4th stage
Finish floor. 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 S8183
After that, return to the main routine program, and then
, steps P1802, P1811. P1815. P1
The determination in step P1B22 is repeated through step 819. pa
The parameter MSIFS is set to “4” in step P1821.
Since the determination result in step P1822 is
The answer is yes, and the microprocessor 61
Step with a yes result for P1822
Proceed to P1823. In step P1823,
The microprocessor 61 receives the frames sent from the 5SC22.
Determine whether the reception status of the system has stabilized. This reception
The status is determined by the polling control subroutine program described later.
Based on count data information FLEN in Gram 5B174
Based on the value of management data information LENTBL formed based on
be judged. Count data information FLEN is received data
Received in processing subroutine program SB 172
It represents the data length of the transmitted frame.
If the SSC targeted for communication is
amount of status information sent from 5SC22)
represents. Therefore, the MSC21 micropro
The processor 61 has a constant value of management data information LENTBLO.
If the following occurs, the reception from the SSC that is the target of communication will be
It is determined that the trust is stable. microprocessor
While the judgment result in step P1823 is NO, the sensor 61
SC status check subroutine program 5B1
83, return to the main routine program and step
P1802, P1811. P1815. P1819゜
After passing through P4O10, the judgment in step P1823 is repeated again.
Repeatedly, the judgment result of step P1 B23 is YES.
wait for it to happen. The judgment result of step P1823 is YES
Then, the microprocessor 61 executes step P182.
Proceed to step 4 and check whether the reception status from 5SC23 has stabilized or not.
is determined in the same manner as in step P1823. this
In this way, the microprocessor 61 is an essential controller.
The reception status of each controller 5SC22, 23, and 26
Please check step P1823. P1824. P1
B25), all required controllers 5SC22,23
, 26 becomes stable, step P1B2
Proceed to step 6 and if the flag UNI TF is other than "0", that is
Then, it is determined whether or not it is set to "1". Described later
Option connection check subroutine program S8
1 If B2 is not running, flag UNI
TF, UNITS are “0” in step PIToe
Since it is still set to , the judgment result in step P1826 is
The result is a notebook, MicroPro, and Sessa 61 are steps.
Check the reception status from 5SC24 on P1B27
Proceed to step P182B and set the flag UNIT.
Determine whether the value of S is set to a value other than "0"
do. The flag UNITS also has an optional connection chip.
After executing the EX subroutine program SB182,
In the previous example, the initial setting value is rOJ, so the microprocessor 6
1 is step P without executing step P1B29.
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
Step P1B27. P1B29 respectively S S C2
4. Check the reception status of 25. Step P182
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 58
181 (Fig. 19) and execute the command from MSC21.
Determine the SSC that supplies the code, etc. However, the first
As shown in FIG. 9, step P1902. P1
Check the flags UNITF and UNITS at 905.
If none of these are set to 1, then directly
Later, in the MSIF monitoring subroutine program 5B171.
Return. What are these flags UNITF and UNITS?
Execute option connection check subroutine program
As a result, 5sC24 and 25 are macro system interface
When it is confirmed that it is connected to the interface 27, it becomes "1".
The system update subroutine program
For detailed instructions on system SB 181, see the optional connection checker.
After explaining the procedure of routine program 5B182
explain. The microprocessor 61 executes the system update subroutine
MS IF monitoring subroutine from program S8181
When returning to program 5B171, step P183
Go to step 1 and check if the flag JOBACT is set to rOJ.
If the judgment result is no, S
SC status check subroutine program 581
After executing step 83, the program returns to the main routine program. The flag JOBACT is set to "0" in step P1706.
Therefore, at this stage, normally step P1832 is performed.
The judgment result is yes, and the microprocessor 61 is turned off.
Option connection check subroutine program 5818
Execute 2. Option connection check subroutine program 5B1
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 UN■TS 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, the connection check and connection confirmation between 5SC24
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
Determine whether the TSO value 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
do. However, as mentioned above, the first
Connection connection check subroutine program SB 18
When executing step 2, the connection of 5SC25 is unconfirmed, and the
The lag UNITS should be set to "0". Therefore, the microprocessor 61 performs step P2O
Judge 06 as yes, proceed to step P2O07, and proceed to step P2O07.
Confirm the connection of controllers 5SC22, 23, and 26, which must be recorded.
Macrosystem for 5SC25 using the same procedure as the verification procedure.
Check the connection with the system interface 27. If, 5
If SC25 is not connected, the microprocessor
61 is to execute step P2008゜P2O09.
Instead, leave the flag UNITS set to "0" and run the MS.
Return to IF monitoring subroutine program 5B171
Ru. However, as in this embodiment, the 5SC25 is
If connected to stem interface 27,
The judgment result of step P2O07 should be yes.
, the microprocessor 61 uses the result of this judgment to
Proceed to step P2O08 and set flag UNITS to "1"
Set to indicate connection confirmation of 5SC25. microprocessor
The sensor 61 further explained during step P2O04.
For the same reason as above, set the parameter MSIFS to "0" and set the
Lag 5ysWATT is set to "1", respectively. deer
After the microprocessor 61 performs step P2O09
, and the information is stored in the status register 42 of the MSC21.
Receipt notification flag attached to status information
Reset RR to "0". In this way, flags
When the operation is finished, the microprocessor 61
Return to F monitoring subroutine program SB171
Ru. MS IF monitoring subroutine program 5B171
The recovered microprocessor 61 has the SSC status
Check subroutine program 5B183 was executed.
Later, it returns further to the main routine program and changes the parameters.
The above program is performed while sequentially advancing the data MSIFS from rOJ.
Run the ram again. In this example, when re-executing, the optional connection
By executing the EX subroutine program SB 182,
Both flags UNITF and UNITS are set to “1”.
Therefore, the judgment in steps P1806 and P180B is
The result of each decision is yes. Therefore, micropro
In steps P1807 and P1O09, the processor 61
5SC24゜25 and macro system interface 2
Check whether there is any change in the connection status with 7.
. In these steps P1807 and P1O09, the above 5S
C24, 25 and macro system interface 27
When the connection is reconfirmed, the microprocessor 61
5SC24,2 in step P1813 of the 2nd stage
Also set the reset command RESET for 5.
Not only 5SC22, 23゜26 but also 5SC24, 25
also supplies a reset command RESET. 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
, the judgment results of steps P1826 and P1O28 are
Since each answer is yes, the microprocessor 61
Also check frame reception stability for 5SC24 and 25.
(Steps P1B27.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 “0.”
” respectively. After this, microprocessor 6
1 is the system update subroutine program 5B181.
Start execution. Option connection check subroutine
Before running programs SB1 and B2,
As explained above, the system update subroutine program 5B
181 effectively runs the MSIF monitoring sub
Returns to routine program 5B171, but when re-executing
All option check subroutine connections
Gram SB 182 is executed and flags UNITF, U
NITS are each set to “1” (step
P2O04, P2O0B). Therefore, system update
In the 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". child
After that, the microprocessor 61 performs a grid regarding the paper feed mechanism.
Update information held in global mode map 44
(Step P1904). In this example, the software
Since the data is also provided, the decision result in step P1905 is
The result is yes, and the microprocessor 61 takes the step.
In PI906, the sorter selection permission flag ENBS is also set to “
"l". After this, the microprocessor 61
It is held in the global mode map 44 of MSC2.l.
Update the information regarding the sorter (step P19).
07), -MSIF monitoring subroutine program 5B1
Returns to 71. 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
Processing program SB] 82 is the system of the laser printer.
The entire system is on standby (JOBACT=rOJ),
And if flag 5YSWAIT is "o", it will always be executed
. Therefore, during initialization after the above power-on event,
Even if the system is on standby, the 5SC22-26 connection
The printing is repeated, and after the laser printer starts up, the paper feeder
Check the connection even if additional structures or sorters are connected.
The system can be expanded freely.
Wear. As already explained in Figure 17, MSIF monitoring
After the subroutine program 5B171, the received data
data processing subroutine program 58172, then send
Request processing subroutine program 5B173, continued
The polling control subroutine program SB174
are executed sequentially, but below we will consider the operation order of the MSC21.
The main loop timer processing subroutine program
Ram 5B21. Polling control timer processing subroutine
Program S B 22. Polling control subroutine
Program SB 174, transmission request processing subroutine
Program 5B173, received data processing subroutine
The detailed procedures for each program will be explained in the order of program 5B172.
Ru. Main loop timer processing subroutine program 5B
21 and polling control timer processing subroutine program
Ram 5B22 is a timer interrupt event as mentioned above.
) is started every time EV2 occurs and the microprocessor
61 is a series of job processing services of the main routine program.
The execution cycle of Blue 1 program JOBI~JOBn
To control, increment the count value of the loop timer (
Step P2101), then the incremented count value
A job process that indicates when the job process should be executed.
Determine whether the 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 P21
If the judgment result in step P210 is YES, step P210
Proceed to step 3, set the flag LOOPF to "1" and
, reset the loop timer to the initial value "o". Therefore, the loop timer has to be restarted.
Ru. In this way, the flag LOOPF is set to "1"
, the step will be executed the next time the main routine program is executed.
The judgment result of step P1710 is YES, and the job processing
Bluechin programs JOBI to JOBn are executed.
. 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 in rlJ.
After that, the microprocessor 61 immediately 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 P2108. 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 processor 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 P2112 and check the next polling timing.
Reset 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.
The flag T is set in preparation for execution of the processing subroutine SB173.
Step P2113) Determine whether RML is “0” or not.
, flag TRML is set to other than “0”, that is, set to “1”.
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.
timer interrupt event) is executed when 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 TRML to "1" (step P2115)
). After the end of step P2115, the control of the MSC21 is
Timer interrupt event) In the program when EV2 occurs
Return. 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 selected SSC is either 5SC22, 23, or 26.
If so, any of steps P2203 to P2205
Since the judgment result is yes in either case, the microprocessor
The server 61 proceeds to step P2209 and performs predetermined error processing.
Run polling control timer processing subroutine pro
Return to Gram SB2.2. For this, the response error is
Whether the caused SSC is 5SC22, 23, or 2B
If not, the microprocessor 61 sets the flag U.
Check NI TF and 5SC24 is macro system
Determine whether or not it is connected to interface 27.
(Step P2206). 5SC24 is macro system
If connected to system interface 27,
Since the judgment result of P2206 is YES, micro
The processor 61 proceeds to step P2207 and detects the response error.
5S024 is the one that caused the problem. If the judgment result in step P2207 is YES, the micro
Processor 61 checks the flag JOBACT and
Determine whether the laser printer is running a job
(Step P2208). Judgment in step P2208
If the result is no, the microprocessor 61 performs step P.
Proceeds to step 2209, executes predetermined error handling, and returns polling.
to the control timer processing subroutine program 5B22.
return. On the other hand, the determination result of step P2208 is
If yes, the degree macro system interface 27
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
Reset the notification flag RR to "0" (step P2
212). Such a series of treatments (step P2210
~ step P2212), the MSC21
Execute the monitoring subroutine program 5B171 again.
Therefore, check the connection of 5S024.25 etc. again.
will be done. On the other hand, step P2206.
If any of the judgment results in step P2207 is
-, the microprocessor 61 executes step P221.
Proceed to 3 and check the flag UNITS, 5SC25 is
Connected to macro system interface 27
It is determined whether or not (step P2213). 5SC25
is connected to the macro system interface 27.
If so, the judgment result of step P2213 is YES.
Therefore, the microprocessor 61 goes to step P2214.
Proceed to check whether it is 5SC25 that caused the response error.
to judge. The judgment result of step P2214 is YES
If so, the microprocessor 61 sets the flag JOBACT to
Check to see if the laser printer is running a job.
It is determined whether or not (step P2215). Step P
If the judgment result of 2215 is no, the microprocessor 6
1 proceeds to step P2216 and executes predetermined error handling.
and polling control timer processing subroutine program
Return to Ram 5B22. On the other hand, step P221
If the judgment result in step 5 is yes, 5SC25 will run the macro program once.
Connection with stem interface 27 has been confirmed.
Despite this, a response error occurs while waiting.
, the microprocessor 61 sets the flags UNITS, ENB.
Set each S to "0" and 5SC25 is Macrosys.
as separated from the system interface 27.
Treat. After this, the microprocessor 61
Set the data MSIFS to “0” and set the flag 5YSWAIT to “1.”
” in step P2211), then M
The status register 42 of the SC21
The reception notification flags R and R attached to the status information are set to rOJ.
(Step P2212). One like this
Continuous treatment (Step P221?, Step P221
1 to step P2212), the MSC21
Execute the F monitoring subroutine program 5B171 again.
Therefore, check the connections of 5SC24, 25, etc.
This will result in being blocked. (Left below) Next, polling control subroutine, Chin program 5B1
The detailed procedure of step 74 will be explained with reference to FIG. 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 microphone has not yet arrived (see Figure 7).
The processor 61 is a polling control subroutine program.
Immediately interrupts RAM SB 174 and restarts the main routine program.
Return to Gram. In contrast, the polling control timer processing service described above
Step P2111 of routine program 5B22
The flag PTIMING is set to "1" in
, the judgment result in step P2302 is YES, and the
The microprocessor 61 proceeds to step P2303.
Determine whether flag PEND is set to "1"
do. The microprocessor 61 processes received data, which will be described later.
The received frame is constructed in the processing subroutine SB1?2.
The frame continuation bit N of the character is “0”.
or when the exit code (7FH) is detected.
The cut detection is recognized and the flag PEND is set to “1”.
It will be done. Therefore, the flag PEND is set to "1".
If it is, all characters that make up the frame being received are M.
It will be taken into SC21 and communicated to other SSCs.
It becomes possible to implement the request. However, if the flag PEND is "0", it means that
frame has untransmitted characters, so the frame
In step P2303, the microprocessor 61
It is determined that the polling control subroutine 5B174 is
Immediately terminate and return to the main routine program
. 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 is complete and the send buffer is
There must be space in 48. If all the above conditions are met, the microprocessor
61 proceeds to step P2305 and sets the flag PTIMIN.
Reset G, PEND, and PANS to “0”.
, followed by the data that constituted the response to the previous communication request.
Transfer and manage the value of count data FLEN that represents the data length.
Update data LENTBL (step P2306)
. In this way, when the management data LENTBL is updated,
, the microprocessor 61 outputs the count data FLEN.
Clear and end post-processing related to the previous communication request.
. After this, the microprocessor 61 executes the communication request.
Send status request to MSC21 buffer
The data is sent to the buffer 48 and held there (step P230B). After that, the microprocessor 61 sends the communication letter to the SSC.
Start a trouble timer to monitor the situation (
Step "P2309). In this way, communication requests are
When the preparation is completed, the microprocessor 61 performs step
In P2310, the SSC to which the communication request is sent is
Advances the specified management data pssc and performs the next poll.
In preparation for execution of the processing control subroutine program 5B174.
I can do it. In step P230B above, the transmission buffer 4
A status request held at 8 is sent by a transmit interrupt
Ben) Transmit buffer processing service executed after EV4 occurs
The target of communication in routine program 5B41.
is sent to the SSC that is currently in use. When the processing related to this communication request is completed in this way,
Microprocessor 61 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 complete the communication request.
Then set the SSC to "22" and start again from 5SC22.
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 advancing E by "]".
, return to the main routine program. Next, the transmission request processing subroutine program 5B173
The detailed procedure will be explained with reference to FIG. Send request processing
The physical subroutine program 5BI73 executes step P24.
01, the microprocessor 61
Steps to set the management data LMTF in the limit counter.
P2402), whether there is space in the transmission buffer 48 or not.
(Step P2403). If the send buffer
If there is no vacancy in space 4, the judgment result of step P2403
is no, so the microprocessor 61 issues a transmission request.
It was determined that the main routine program could not be handled immediately.
Return to Ram. On the other hand, the judgment result in step P2403 is YES.
Then, the microprocessor 61 proceeds to step P2404.
Global mode map 44 and local mode map
Search for map 45 and send on these maps 44.45
To discover information, etc. whose request flag TR is set to "1"
I will try. If the transmission request flag TR is set to “1”,
If no information is found, proceed to step P2405.
The judgment result is no, and the microprocessor 61
Do not execute steps P2406 to P2409.
The process then proceeds to step P2410. In contrast, step
If the result of P2405 is yes, the microprocessor
The server 61 resets the discovered transmission request flag TR to "0".
(step P2406), and sets the transmission request flag T.
Convert the information marked with R into a frame and send it to the buffer
on the 4th day (step P240?). After this, ma
The microprocessor 61 controls the control in step P2409.
The limit counter is decremented by 1, and then the value of the limit counter is
It is determined whether or not the value has reached "0" (step P240).
9). If the judgment result in step P2409 is YES, the
The microprocessor 61 interrupts further processing and immediately
The in-routine program returns, and on the contrary, step P
If the judgment result in 2409 is no, proceed to step P2410.
So local mode map 34 and global mode map 34
The search is completed for all information held in the
judge whether it has been completed or not. Judgment result of step P2410
If the result is no, the microprocessor 61 performs step P24.
Return to 03 and check if there is free space in the sending buffer on day 4.
The transmission buffer 48 is unable to hold the frame from then on.
Local mode map 34 and global
The search for all information on Lumode Map 35 ends.
It consists of steps P2403 to P2410.
Repeat the loop. In this way, in this example, the restriction is
One-time transmission request processing subroutine program using a counter
limits the number of characters sent out during program execution.
Therefore, MSC21 can perform 5 steps without sacrificing other processing.
Can communicate with SC22-26, 5SC22-2
Even on the 6 side, there is no delay in responding to the transmission request. Eventually, the judgment result of step P2410 becomes YES.
, the microprocessor 61 proceeds to step P2411.
It is determined whether there is free 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 performs the process in step P2416.
decrements the limit counter by 1, and then
It is determined whether the value of the data has reached "O" (step P
2417). The judgment result of step P2417 is YES.
, the microprocessor 61 interrupts subsequent processing and immediately
immediately return to the main routine program and step
If the judgment result in step P2417 is no, step P2418
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 the transmission buffer on the 4th day.
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 steps P2411 to P2418
repeat. Eventually, the judgment result of step P2418 will be
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. Therefore, 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 SB172 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. Already in the flag category
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 received character despite the fact that CCNT is "0"
If the character is not an ID character, there is a reception error or
ID cache that has already been processed in the received data processing subroutine.
Since the microprocessor 61 is considered to be a
Interrupts subsequent processing and immediately returns to the main routine program.
Return. In contrast, the received character
If it is a character, the judgment result in step P2504 is YES.
Then, the microprocessor 61 reads the received ID card.
Data ID is the identification code S and area code U of the tractor.
S and IDU in the RAM 62 of the MSC 21, respectively.
Transfer to the work area (step P2505). After this
, the microprocessor 61 proceeds to step P2506.
, set the count data CCNT to "2". Furthermore, this
In the program, as count data CCNT
"1" is not used. Then the microprocessor 6
1 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 reception data processing subroutine SB
The judgment in step P2503 of 1?2 is no, and my
[6] 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.
RAM62 as data IDS and IDtJ
Keep it in your work area. After that, count data CC
Set NT to "2" (step P2506) 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 P2508), and then receive it in Step P2509.
The area code U of the ID character of the frame being transmitted is
command register or status register.
Determine whether or not. Area code U is command register
If specifying a data or status register, the status
Since the judgment result of step P2509 is YES, micro
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 P2601.
The case will be explained with reference to FIG. 26. This stay
In the task/report analysis subroutine program, the l key
Processing is executed for each character. 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.
and check whether the count data CCNT is “3” or not.
Check. For data character 1, step
In step P2506, count data CCNT is “2”
Since the judgment result of step P26°02 is
The result is no, and the microprocessor 61 executes step P.
Proceed to 2603 and write the received data character 1
held in a temporary register in the microprocessor 61 (step
P2603). After this, the microprocessor 61
The count data CCNT is incremented by rlJ and the received data
Data processing subroutine SB 172, and main routine
Return to 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
P260B). 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
P260B). 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 P2613 without executing it, 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
The microprocessor 61 proceeds to step P2612 and
The last command supplied to the SSC being communicated
Set the communication request flag TR to "1" and issue the command.
Prepare to resend. On the other hand, step P26
If the judgment result in step 11 is yes, the microprocessor 61
is the data character held in temporary registers 1 and 2.
command register 32 and status register 1 and 2 respectively.
The data is transferred to the register 33 and held (step P26).
13). After this, the microprocessor 61 performs communication pairing.
To indicate that there was a response from the SSC in question
, received information attached to received data characters 1 and 2
Set the notification flag RR to "1" (step P26
14). The microprocessor 61 then processes the received data.
Check the frame continuation bit N of the data character.
, determine whether the frame continues further (step
P2615). If the frame continues, step P2
Since the judgment result of 615 is no, the microprocessor
The server 61 steps without executing step P2616.
The process advances to step P2617, and the judgment result of step P2615 is
If yes, microprocessor 61 is SSC break test
PEND indicating output is set to "1" (step P26).
16), initialize the count data CCNT to “O”.
to prepare for next frame reception (step P261?)
. After this, the microprocessor 61 starts the main routine.
Return to program. The next received frame is the data that constitutes the mode answer.
The case where it is a character is explained with reference to Figure 27.
I will clarify. The mode answer is shown in Figure 11 (h) and (i).
Word types and string ties as explained in
There are two types, each with a different frame structure. Therefore, mode analysis subroutine program 5B252
is started in step P2701, the microprocessor
The processor 61 checks the count data CCNT and receives it.
whether the received character is data character 5 or not.
A judgment is made (step P2702). ID character reception
Later, data character 1 is received, so count
Data CCNT should be set to "2" (
(See step P2506 in FIG. 25), step P27
The judgment result of 02 is no. Therefore, the microprocessor
The sensor 61 proceeds to step P2703 and stores the count data.
It is determined whether CCNT is "2" or not. as mentioned above
After starting frame reception, the mode analysis subroutine is first executed.
Program 5B252 is executed using data characters.
This is when count data CCNT is received.
It is "2". Therefore, the judgment result of step P2703 is
The result is yes, and the microprocessor 61 takes the step.
Proceeds to P2704 and displays the received data character (map).
It is determined whether address M) is 7FH. 11th
As explained in Figure (h), map address M and
The prohibited value is the exit code (7FH).
Therefore, in step P2704, the end code is
(7FH) is detected, the microprocessor 61
Proceeds to step P2705 and indicates SSC break detection
The flag PEND is reset to “0”, and then the counter
reset data CCNT to "0" (step P
2706). On the other hand, if the judgment result in step P2704 is
If S, the microprocessor 61 sets flag 5TRNG.
Step P2707), the counter should be reset to "0".
Set the received data CCNT to "4" and
data character 1 to the address of microprocessor 61.
transfer to the storage register (step P2708). After this
, the microprocessor 61 stores the information in the address register.
Matupua represented by data character 1 held
Analyzing the address M, the map address M is determined as a string element.
Determine whether rear is specified (step P27)
09). If map address M is string area
If specified, the judgment result of step P2709 is
Since it is S, the microprocessor 61 executes step P27.
Proceed to step 10 and set flag 5TRNG to "1". After that, the microprocessor 61 receives the count data.
Reset CCNT to "3" in step P2711.
), received data processing subroutine program 5B172
to return to. In contrast, the judgment in step P2709
If the result is no, the mode answer being received is of word type.
Therefore, the microprocessor 61 performs step P2710.
.. Received data without executing step P2711.
data processing, return to processing subroutine program SB1?2
. 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 in step P2703 will be no.
, the microprocessor 61 proceeds to step P2712.
It is determined whether the count data is "3". mentioned above
If the mode answer is a string type, the counter
The word data CCNT is set to "3", but the word
If it is a type, it is set to "4", so the micropro
For the processor 61, the judgment result in step P2712 is YES.
data character 2 representing the data length received from the microphone.
The data is transferred to the data counter in the processor 61 and held.
(step P2713), the judgment result of step P2712
If the result is no, the data key representing the first byte of configuration data D is
Character 2 is set as a temporary register in the microprocessor 61.
1 and held (step P2714). these
No matter which process you perform, the microprocessor
The processor 61 steps the count data CCNT by "1".
(Step P2715), and the received data processing sub-table
The process returns to the process program SB172. 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 P2718.
advances and stores the received data character in temporary register 1.
This retained data character, along with the lid, can be transferred to the local model.
in the word map 45 (word type) or string area.
Transfer and retain. Next, the microprocessor 61
Check flag 5TRNG to cancel mode during reception.
It is determined whether or not the character is a word type (step P271).
? ). If the mode answer being received is word type
, the judgment result in step P2717 is YES, so
The microprocessor 61 processes the received data characters.
Set the reception notification flag RR to notify the mode change.
Step P2718), the count data CCNT is
2” (step P2719). On the contrary
, if the judgment result in step P2717 is no, the micro
The processor 61 does not execute step P2718.
The process then proceeds 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 at step P2713
The length is decreased by rlj (step P2722). Furthermore,
The microprocessor 61 determines whether the received data character is
Step P2 to determine whether the end code is indicated or not.
723), and if the judgment result is no, the received data is immediately
The process returns to the data processing subroutine program SB1?2. 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 P271 via step P2712
4 temporarily holds the data character in register 1,
After that, the data cache received in step P2716 is
Data characters temporarily stored in the register
String area of 1 word (2 bytes) along with the vector
to hold. In contrast, the received mode answer
In the case of a board type, the microprocessor 61 is
P 2702. Step P2703, step
P2707 to step P2709, further step P27
12 and received in step P2714
Temporarily hold the data in register 1, and then write one word in P2716.
The data is transferred and held in the local mode map 45 one by one. or
When all the data has been received, the data counter will start counting.
Step P2722), Step P2
Since the judgment result of 723 is YES, the microprocessor
The sensor 61 sets the count data CCNT to "2",
Set the reception notification flag RR (Step P2724)
, then the exit code (address 7) received after that.
FH) is detected in step P2704, and step P27
05. Reception accompanying reception of mode answer via P2706
Ends execution of the data processing subroutine program. Next, run the SSC status check subroutine program.
The detailed procedure of the program 58183 will be explained with reference to FIG.
. In this embodiment, the MSC21 periodically registers the status register.
Read the summary status information of each SSC from the data controller 42,
If the summary status information indicates an abnormality in the SSC,
In order to understand further details, send a mode request to the relevant SS.
C and the detailed scan from its local mode map 34.
Read status information. For this purpose, MSC21
SS during SIF monitoring subroutine program 5BI71
CSS status check subroutine program 1
It has 83. Below is the SSC status checker
Describe the detailed steps of a routine program. SSC status check subroutine program 5B
183 is started in step P2801, the micro
The processor 61 selects 5 as the SSC to be checked.
Specify SC22 (step P2802), and
A summary of the SSC that is subject to a detailed check.
Whether the reception notification flag RR of the status information is “1” or not
is checked (step P2803). If the received notification
If the knowledge flag RR is "0", the judgment result of step P2803
The result is no, and the microprocessor 61 executes step P.
Proceed to 2809, change the ssC to be checked, and check all S
Check for summary status information about SC has finished.
It is determined whether or not (step P2810). MSC21
has finished checking summary status information for all SSCs.
If not, the determination result of step P2810 is NO.
-, and the microprocessor 61 executes step P280.
Return to step 3 and perform steps P2803 to P2810.
The loop to be constructed is
Repeat until you get an error. If step P2
If the judgment result of 803 is yes, microprocessor 6
1 is the summary status information for the SSC to be checked
Reset the reception notification flag RR attached to "0"
Step P2804), the ssC to be checked
GL (ERROR)
bit) is set (step
P2805). The judgment result of step P2805 is YES
If so, the unit under the control of the SSC to be checked.
If there is a relatively minor problem that can be handled 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 P280B.
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 step 08, 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 22810 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 SB 173 and transmit buffer processing subroutine
Trouble occurs when executing program 5B41
sent to the SC and sent to the module from the SSC where the problem has occurred.
When a code answer arrives, the receive buffer processing subroutine
Program SB31 and received data processing subroutine
Run the program to capture detailed status information. Detailed status information imported into MSC21 in this way
is the trouble check processing subroutine program described later.
System 5B291 analyzes the information and takes necessary action.
. As explained in Figure 17, the main loop
MSIF monitoring subroutine program SB 171~
Polling control subroutine program 5B174 ends.
Once completed, the microprocessor 61 sets the flag 5YSWA.
Check IT to see if the laser printer is processing a job.
, determine whether it is on standby. If on standby, flag 5YS
Since WAIT is set to "1", step P1
The judgment result of 709 is no, and the microprocessor 6
1 executes the MS IF monitoring subroutine program.
Return to 5B171 to On the other hand, flag 5YS
If WAIT is “O”, job processing is possible.
In order to run the program, first set the flag LOOP.
Check whether F is set to "1" (step
Step P1710). Main loop timer processing subroutine program
As explained above, the microprocessor 61
The flag LOOPF is set to "1" for each interval.
Therefore, the judgment in step P1710 is also made if the judgment is YES at regular time intervals.
microprocessor with such positive determination.
The processor 61 flags LOO in step P1711.
Reset PF to "0" and process the job as described below.
After the execution of the subroutine program is completed,
The job processing subroutine program continues until the interval elapses.
prevent the system from running. As shown in Figure 29, the job processing subroutine program
In the RAM, first, the flag JOBACT is "1".
It is determined whether or not there is a flag JOBACT.
It is set to "1" in chip P2908, so it is normally
Immediately after starting the job processing subroutine, step P2902
The result of the judgment is no. Judgment result of step P2902
If the answer is no, the microprocessor 61 performs step P.
Proceed to step 2906 to determine whether there are instructions regarding printing.
Ru. If the judgment result of this step P2906 is no,
Is the microprocessor 61 the upper user system?
Step P
Judge with 2909, and if the judgment result is yes, select it.
Select whether or not to select an external paper feed unit.
Judgment is made in step P2910. If step P2910
If the judgment result is yes, check the flag ENBF.
Steps to determine whether external paper feed unit can be selected
P2911), if the external paper feed unit is selectable (i.e.
That is, ENBF=1), the microprocessor 61 feeds paper
Change the mouth (step P2912). On the contrary,
If the judgment result in step P2910 is no, the micropro
The processor 61 directly proceeds to step P2912, and
If the judgment result of P2911 is no, microprocessor 6
1 is a direct trouble check processing subroutine program
Proceed to 5B291. Furthermore, if the judgment result in step P2909 is no, my
The cross processor 61 is used by users with higher sorter mode settings.
Step P
2913), the judgment result of step P2913 is YES.
Then, the microprocessor 61 executes the flag in step P2914.
Whether the lag ENBS is "1" or not, i.e. the sorter
Determine whether selection is possible. Judgment in step P2914
If the result is yes, the microprocessor 61
Step P2915), Step P29
If the judgment result in step 14 is no, the microprocessor 61
Trouble check without executing step P2915
Executes the block processing subroutine program 5B291. On the other hand, the determination result in step P2913 is no.
The microprocessor 61 also processes job data such as print data.
data is supplied from the upper user system (step
P2916), Trouble check processing subroutine program
Execute program 5B291. Before long, instructions regarding printing, such as operation mode, will be provided to the user system.
If supplied from the system, the judgment result of step P2906 is
Since the answer is yes, change the operation mode etc. to local mode.
write to the map 45 and the 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.
Set T to "1" and run the trouble check processing subroutine.
Run program 5B291. When the flag JOBACT is set to "1" in this way,
, the judgment result in step P2902 is YES, and my
The processor 61 executes the job sequence (step
Step P2903). After this, the microprocessor 61
is unable to determine whether the above job sequence has finished or not.
Step P2904), the judgment result of Step P2904 is
If yes, the microprocessor 61 performs step P29.
Proceed to 05 and set the flag JOBAC to display the standby state.
Set T to rOJ. After completing step P2905,
Or if the judgment result in step P2904 is no,
, the microprocessor 61 performs a trouble check described later.
The processing subroutine program 5B291 is executed. Trouble check subroutine program 5B291
The detailed procedure is shown in Figure 30, and the trouble check
Subroutine program 5B291 executes step P300
1, the microprocessor 61 checks
5SC22 as a target SSC
P3002), and check targets that have already been imported.
Detailed steps regarding the ERROR bit of the SSC
Whether the reception notification flag RR of the status information is “1” or not
is checked (step P3003). If the received notification
If the knowledge flag RR is "1", the microprocessor 61
is the reception notification flag attached to the detailed status information
Reset RR to "0" (step P3004), continued.
detailed status information in step P3005.
Executes error processing (ERROR processing) based on child
In the ERROR processing, the display of trouble points etc.
It will be done. After this, the microprocessor 61 steps
Proceed to P3006. On the other hand, if the reception notification flag RR is "o", the
The judgment result of step P3003 is no, and the microprop
The processor 61 directly proceeds to step P3006, and the FAT
Reception notification flag for detailed status information regarding AL bits
It is determined whether GRR is "1" or not. If the step
If the judgment result of step P3006 is yes, the microprocessor
The processor 61 sets the reception notification flag in step P3007.
RR is reset to "0", and then step P3008
Proceed to FATAL processing. This FATAL treatment
In the process, there is no indication that the problem is irreversible.
will be carried out. After this, the microprocessor 61 steps
Proceed to P3009. On the other hand, if the determination result in step P3006 is no,
, the microprocessor 61 proceeds to step P3009.
, change the SSC to be checked and check for all SSCs.
Determine whether detailed status information has been checked
(Step P3010). MSC21 becomes all SSC
has not finished checking for detailed status information.
Then. The judgment result in step P3010 is no, and the micro
The processor 61 returns to step P3003 and executes step P3003.
A loop consisting of steps P3003 to P3010 is
Repeat until the judgment result in step P3010 is YES.
Execute the return. In contrast, the judgment in step P3010
If the result is yes, detailed status for all SSCs
The information check has been completed and the microprocessor 6
1 returns to the job processing subroutine program. (Left below) SSC version The hardware configuration of the SSC is roughly shown in Figure 6.
However, the configuration of the transmission buffer 47 and its related circuits is the same as that of the 31st
As shown in the figure. Status as shown
Register 33 (GSTAT-REG), report register
Star 37 (REPO-REG), local mode Matsu
34 (LM-MAP) etc. each frame information.
Information stored in units and searched in advance by MSC21
etc., the address of the information to be supplied to the MSC is in the address buffer.
The data is stored in the file 3101 in units of frames. In this way, the information to be sent and how that information is stored
The addresses are stored in different buffers.
You can In this way, information is memorized in advance.
Since the memory address is searched and held, the MSC
Information is sent from registers etc. in a short time when a transmission request is made from
, convert it to a frame, and then convert it character by character.
Temporarily held in the transmission buffer 3102 and sent to the transmission register.
Macro system interface 27 via 3103
can be sent to. Also, transmission to all SSCs
When a request goes through a cycle and a sending request is received again, the information is lost along the way.
Provides the latest information to MSC21 no matter how many times it is updated.
be able to. However, the status register 33 is directly
Information can be provided to the transmit buffer 3102. This is
Enable status answers to be sent as soon as possible
It's for a reason. 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 means that the more addresses are registered, the more
The number of reports from SSC increases, and the polling cycle increases.
This is to prevent it from becoming too long. Programs executed by each SSC are explained below.
. Used in the explanation of each program before the program explanation
First, we will explain the meanings of typical flags and the like. - and par - CCNT: Indicates character position in received frame
This is count data, and the microprocessor 6 of the SSC
1 is used when analyzing received data. JOBACT: Indicates that the SSC is processing a job.
flag, and if set in rlJ,
Job processing in progress, waiting if reset to 0
. LOOPF: Controls the cycle of the SSC main loop
If there is a flag and this flag is set to "1",
Indicates that it is time to process the job.
Ru. MSIFS: MSIF monitoring subroutine program execution
This is a parameter that indicates the row stage, and is a value from "0" to "3".
Set to one of the following values. 5TOPF: Forced termination request flag for job control processing.
Ru. 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.
will be played. Figure 32 of ROHM shows the schematic structure of the program executed in SSC.
This is a flowchart diagram showing the
The SSC runs the main routine that starts running on power-up.
program and three mutually independent interrupt programs.
It consists of grams. First, when the power is turned on, a power-on event occurs and the EV
I, the microprocessor 61 (hereinafter referred to as
(simply referred to as microprocessor 61) will be described in detail later.
Execute SSC initialization subroutine program 5B501
Then, MSTF processing subroutine program 5B5
Execute 02. This MSIF processing subroutine program
The procedure for RAM 58502 will also be described in detail later. MSI
Determine the completion of the F processing subroutine program (step
P3201), the microprocessor 61 performs job processing.
Main loop timing indicating executable subroutine
Step P3202) to determine the arrival of the main loop.
When the arrival of job processing timing is detected, the job processing subroutine is executed.
Execute Chin program 5B503. Such MSIF
Processing subroutine program 58502 ~ Job processing service
The loop composed of routine program 5B503
During execution, the interrupt timer 66 of each SSC is set for a predetermined period.
When timing ends, timer interrupt event EV12
occurs, and the microprocessor 61 interrupts the main loop tie.
main loop timer processing to control the occurrence of
First execute the management subroutine program 5B504, and then continue.
job control timer processing subroutine program
Execute 5B505 and when a timer interrupt event occurs
Return to the main routine program step. Receiving
The signal interrupt event EV13 is the receive register of the SSC.
Occurs when latches one character, and the frame analysis
Processing of received data, including sending answers to and MSC
The sub-routine program 5B506 is executed. one
On the other hand, the first character in the transmit register 3103 of the SSC
data is sent to the macro system interface 27.
, a transmission interrupt event) EV14 occurs, and a transmission interrupt event occurs.
(event) Due to the occurrence of EV14, the transmission data processing sub
Routine program 5B507 is executed. This send
In the data processing subroutine program 5B507, S
The frames in the SC transmission buffer 3102 are sequentially macro-framed.
It is sent to the system interface 27. That's all, SS
I have explained the outline of the program executed in C, but below,
Detailed procedures for each program will be explained. Figure 33 shows the detailed procedure of the main routine program.
It is a flowchart diagram, and the main routine program is
As mentioned above, it starts with the occurrence of power-on event Ev1.
, First, initialize the internal circuit of the microprocessor 61.
Step P3302), then local mode
Domap 34°Global mode map 35 and frame
Clear each register 32 (step P3
303). After that, the microprocessor 61
G5 bit of status register 33 (NOT READY)
bit) is set to "1" and initialization is being executed.
shows. Next, set flag 5YSWAIT to "1"
step P330 to prohibit execution of job control processing.
5), set the parameter MSIFS to "0" and continue
MS IF monitoring subroutine program 5B511
Prepare for execution (step P3306). Furthermore, ma
In step P3307, the microprocessor 61
Set the in-loop timer and set the main loop timer
This allows for errors to occur. After completing this series of preparations,
Then, the microprocessor 61 sets the interrupt enable flag.
set to enable the various separations described above (step
P3308). In this way, SSC initialization subroutine program 5
When B501 is completed, the microprocessor 61
IF monitoring subroutine program 5B511, and
Then, execute the transmission request processing subroutine program 5B512.
Execute sequentially. The MS IF monitoring subroutine program 5B511 is
In step P3400 as shown in FIG.
The microprocessor 61 of the SSc
Reset command from MSC21 in step P3401
Determine whether the code (RESET) has already been supplied.
The MSIF monitoring subroutine shown in Figure 18
Please refer to step P1813 of the program @) and its judgment result.
If the result is no, proceed to step P3407 and set the parameter MS
Determine whether IFS is set to "1". The parameter MSIFS is set to “
0", so initially step P340
The judgment result of step 7 is no, and the microprocessor 61
Further, the process advances to step P3411, and the parameter MSIFS
is "2". Step P3411
However, at first, the result of that judgment will be no, so micro
Processor 61 immediately returns to the main routine program.
Return. Eventually, the MSC21 karari set command was provided.
If the answer is yes, the judgment result in step P3401 will be YES.
Therefore, the microprocessor 61 executes step P340.
Proceed to step 2 and check the import confirmation attached to the reset command.
Reset the authorization bit Q to "0". As a result, the MSC
21 becomes capable of transmitting the next command. In addition, reset
The status answer for the command is sent by the receive data processing service.
Because it is done in routine program 58506
, the main routine program contains information regarding status answers.
No processing is performed. Next, the microprocessor 61
sets bit 05 of the status register to “1”.
step P3403), then flag 5YSWAIT
is “0” (step P 340
4). Flag 5YSWAIT is set to "
1, so the MS IF monitoring subroutine
If the chin program is not completed, step P3404
The result is usually no. Therefore, micropro
Processor 61 executes step P3405 without executing step P3405.
Proceed to step P3406. However, SSC has already
If a reset command is received during operation, the flag
5YSWAIT is reset to “0”, so the
The microprocessor 61 flags 5 in step P3405.
Set TOPF to “1” to forcefully stop job processing.
After stopping, the process advances to step P3406. Flag STO
, PF is reset to rOJ when job processing is interrupted.
will be played. In step P3406, the parameter MSIFS is set to rl
J, and in the following step P3407 the parameter M
Determine whether SIFS is "1". If para
If the meter MSIFS is ``0'', the microprocessor
The processor 61 determines step P3407 as NO, and proceeds to step P3407.
Return to the main routine program via step P3411.
Ru. On the other hand, if the parameter MSIFS is "1"
, the judgment result in step P3407 is yes, so my
The flag 5TOPF of the macroprocessor 61 is “0”.
If the judgment result is no, the microprop
Processor 61 passes through step P3411 to the main route.
Return to the current program. In contrast, after job processing is interrupted, the flag
Flag 5, such as when 5TOPF is reset to "0"
If TOPF is "O", the microprocessor 61 is
is detected in step P3408 and the judgment result (YES
) to initialize the local mode map 34.
Ru. In this way, the local mode map 34 is initialized.
When the microprocessor 61
The information transmission request flag TR held in the push button 34 is
Set to "1" and notify the contents to MSC21
Make preparations (step P3409). Send it like this
The information for which the transmission request flag TR is set is the transmission request flag described later.
request processing subroutine program SB512, transmission data
M by executing the processing subroutine program 5B507.
It is sent to SC21. After this, the microprocessor 61 performs step P3410.
and rl flags 5YSWAIT and MS IFS respectively.
J, set it to “2” and proceed to step P3411 to
whether the parameter MSIFS is set to "2" or not.
to decide. If the judgment result in step P3411 is no
, the microprocessor 61 runs the main routine program.
If the judgment is yes, step
Proceed to step P3412 and display all items in local mode map 34.
It is determined whether all information has been sent to the MSC 21. If the judgment result in step P3412 is no, the microprocessor
Processor 61 returns to the main routine program and
If the judgment result is YES, proceed to step P3413 and perform the
Set the parameter MSIFS to "3" and
05 bit (NOT READY) of the status register
Reset to "0". After this, microprocessor 6
1 by resetting flag 5YSWAIT to “0” (switching
Step P3414) Return to the main routine program
Ru. Therefore, the information stored in the local mode map 34 is
until all information contained in the file has been sent to the MSC21.
Lag 5YSWAIT remains 'l' and job processing is not executed.
lines will be prohibited. Next, referring to FIG. 35, the transmission request processing subroutine routine will be explained.
The procedure of program 5B512 will be explained. The transmission request processing subroutine program 5B512 is MS
Main routine jump from IF monitoring subroutine 5B511
Immediately after returning to the program, go to step P3501.
First, there is free space in the address buffer 3101.
It is determined whether there is one (step P3502). address
If there is no space in the buffer 3101, the microprocessor
The sensor 61 determines step P3502 as no and immediately
Return to the main routine program and move to the step if there is space.
If P3502 is judged as yes, local mode Matsu
The transmission request pin attached to the information held in the
) Search for TR (step P3503). If specific
The transmission request flag TR is displayed in the local mode map 34 of
If there is no information set to 1, the microprocessor
61 determines step P3504 as NO and returns to step P.
Proceed to 3508, and conversely, if the judgment result is yes, the current
Information for which the transmission request flag TR is set to "1"
The address has already been registered in the address buffer 3101.
It is determined whether or not there is one (step P3505). if,
The address has already been registered in the address buffer 3101.
If so, the microprocessor 61 executes step P3505.
is judged as no and proceeds to step P3507, and on the contrary, if the
If it is registered, the microprocessor 61 performs step P3.
Proceeding to 506, the address is stored in the address buffer 310.
Register to 1. In this way, we proceeded to step P3507.
The microprocessor 61 sets the transmission request flag TR.
All local mode map 3 for address registration of information
Determine whether or not 4 has been completed, and the result of that determination is
- If so, return to step P3503 and the judgment result is YES.
If so, proceed to step P350B and write the address buffer again.
It is determined whether or not there is space in the space 3101. Step P
If the judgment result of 3508 is no, the main routine program
If yes, proceed to step P3509.
nothing. The microprocessor 61 proceeds to step P3509.
to determine whether there is a report to be sent to the MSC21.
cut off If the judgment result in step P3509 is no,
Then, the process proceeds to step P3512, and conversely, the judgment result is
If yes, the microprocessor 61 performs step P35.
10, the address of the memory that stores the above report
Determine whether the response is not registered in the address buffer 3101
do. If the address is already registered, the microphone
The processor 61 proceeds to step P3512, and vice versa.
If not registered, enter the above address in step P3511.
Step P3 after registering in address buffer 3101
Proceed to step 512. In step P3512, first, the local mode
Address “OCH” on map 34 (see Figure 14)
to determine whether it is in report mode and start reporting.
If the mode is not set, the main routine program is immediately executed.
If it returns and is in report mode, the stream to be sent to MSC12.
Determine whether there is a status (step P3513
). If there is no status to send to MSC21,
immediately returns to the main routine program, and if
If there is a status like this, proceed to step P3514.
The address of the memory that stores the status is added.
Determine whether it is unregistered in Resbuff y3101
. If it is already registered, the main routine will be started immediately.
Return to the program, and on the other hand, if it is not registered, the address
is registered in the address buffer 3101, and then the main route
Return to chin program. Returning to Figure 33 again, the steps for the main routine program are shown.
Continue explaining the order. Transmission request processing subroutine program
Return to main routine program from program 5B512
, the microprocessor 61 sets the flag 5YSWAIT.
Check and reset the flag 5YSWAIT to “0”.
(Step P3309)
. If flag 5YSWAIT is set to "1"
If this is the case, initialization is still in progress and the microprocessor is still being initialized.
The processor 61 again executes the MS IF monitoring subroutine block.
Execute program 5B511. On the other hand, flag 5
If YSWAIT has already been reset to "0",
The microprocessor 61 has the flag LOOPF set to "1".
Step P3310 to determine whether it is set or not.
), if the result is no, the main loop tie
Since the timing has not yet arrived, the MSIF monitoring subroutine program
Run Gram 5B511 again and check the main loop timing
wait for the arrival of If the main loop timing arrives
Then, the judgment result in step P3310 becomes YES.
Therefore, the microprocessor 61 goes to step P3311.
Proceed and reset the flag LOOPF to "0" for the next
Execute job processing until main loop timing arrives
prohibit. After executing step P3311, the microprocessor 61
executes a series of job processes to print the specified image on the print paper.
Enable to form an image (steps P3312~
Step P3313). In this way, the microprocessor
The server 61 is a subroutine in the main routine program.
The loop consisting of program 5B511 to P3313 is
Execute repeatedly. Next, execute when timer interrupt event (EV12) occurs
Hand of subroutine program 5B504.505
Please refer to Figure 36 for the order of main loop timer processing.
When the physical subroutine program 5B504 is started,
The microprocessor 61 is the main processor in step P3601.
Increments the value of the loop timer and returns the incremented main loop.
The value of the loop timer indicates that the main loop timing has arrived.
It is determined whether the value has been reached (step P3602). If the judgment result in step P3602 is no, my
The processor 61 proceeds to step P3604 and
If the judgment result is yes, set the flag LOOPF to "1".
” to enable job processing and main loop type.
Set the initial ltn value to the marker and start the main loop timing again.
(Step P3603)
. Next, the microprocessor 61 operates a sequence timer.
The process is executed in step P3604, and then the report
Determine whether mode is selected (Step P 3605
). If not in report mode, the microprocessor
The processor 61 proceeds to step P3611 and, on the contrary, reports
If it is in the address mode, proceed to step P3606 and
The address information of the data to be sent to the buffer 3101 is
Determine whether it exists or not. If the address buffer 310
If 1 does not have the above address information, the microprocessor
61 immediately proceeds to step P3611, and on the contrary, the add
If there is address information in the response buffer 3101, step
Proceed to P3607 and check that there is data in the transmission buffer 3102.
Determine whether or not. If the data in the transmit buffer 3102 is
If there is no data, the microprocessor 61 proceeds to step P.
Proceed to 3611, and if there is data, proceed to step P36
Proceed to step 08 and write the address in the address buffer 3101 (
The data is stored in the memory location specified by the specified address below.
The stored information is converted into a frame and sent to the transmission buffer 3.
102. In this way, the transmit buffer 310
The information held within 2 is the transmission interrupt event) EV,
Transmit data processing subroutine program when 14 occurs.
By executing 5B507, the macro system interface
It is sent to step 27. The microprocessor 61
After transferring the information to the sending buffer 3102 in
, delete the specified address from the address buffer 3101.
except step P3609), the data stored in the specified address is
The transmission request bit TR attached to the information is set to ``0''.
”. In this way, it is held in the address buffer 3101.
The information specified by the specified address is now ready to be sent.
Then, the microprocessor 61 proceeds to step P3611.
Proceed to determine whether there is information being transmitted. If sending
If the microprocessor 61 has the information, the microprocessor 61 immediately
The program that was running when the interrupt event occurred
On the other hand, if there is no information being sent, the sending buffer
Determine whether there is space in the file 3102 (step
P3612). If there is still some data in the send buffer 3102,
When the information is held, the microprocessor 61
is the program immediately upon the occurrence of a timer interrupt event.
, and if there is free space in the transmission buffer 3102, the transmission is scheduled.
Transfer the specified information to the transmission buffer 48 (step P3
613). After that, the microprocessor 61 issues a timer interrupt.
Return to the program at the time the event occurred. Next, the received data processing subroutine program 5B50
6 will be explained in detail with reference to FIG. Reception discount
When a write event occurs, the microprocessor 61
takes the character from the receive register 46 (step
P3701), determines whether a reception error has occurred (
Step P3702). If a reception error occurs,
If so, the microprocessor 61 executes step P3703.
Proceed to and execute the specified error handling, and no reception errors occur.
Sometimes, the step P3703 is not executed.
Proceeds to step P3704 and the count data CCNT is set to “0”.
Determine whether or not. As previously explained, the frame
At the start of frame reception, the count data CCNT is “0”.
Therefore, the judgment result in step P3704 is YES.
, the microprocessor 61 identifies the received character as an ID.
Determine whether it is a character (step P370
5). Even though the count data CCNT is "0"
However, the received character is not an ID character.
If it is determined that an error may have occurred during communication.
Therefore, the microprocessor 61 cancels further processing.
Immediately restarts the program that was running when the receive interrupt event occurred.
Return to Gram. In contrast, step P3705
The character received is determined to be an ilD character.
If the ID character is
data ID and area code respectively.
S, import as IDU and count data CCN
T is set to "2" (step P3706). Konoyo
Unisite, data IDS. Once the IDU is formed, the microprocessor 61
The character received based on the data IDS has a specific SSC.
Determine whether it is targeted (Step P3707
). If the judgment result in step P3707 is no,
The frame being received is the global mode of MSC21.
Since it is commonly sent from step 35 to all SSCs,
The microprocessor 61 immediately receives an interrupt event.
Return to the program that was running at the time of occurrence. to this
On the other hand, if the judgment result in step P3707 is YES,
The microprocessor 61 allows the received character to identify itself.
Step P to determine whether the message was sent as a target or not.
3708), and if the judgment result is yes, the reception is assigned immediately.
Return to the program that was running when the error occurred. child
In contrast, if the received character targets another SSC
If so, the microprocessor 61 executes step P3.
709 in preparation for receiving a frame that targets itself for transmission.
to initialize the count data to “0” and then
return to the program that was running when the event occurred
do. The received frame targets itself for transmission, and
In the case of a data request (step P3710), 1
Since it is a character frame, status/command processing support is
Execute routine 5B521. On the other hand, the determination result in step P3704 is no.
In this case, the microprocessor 61 executes step P371.
Step 1, the received character is a data character.
Determine whether it exists or not. If the judgment in step P3711
If the result is no, the received character is an ID character.
Therefore, the microprocessor 61 performs step P370.
Proceed to step 6 and perform the steps P3706 to P371 above.
Execute 0. In contrast, the received character
If it is a data character, the microprocessor 61 accepts it.
The frame being transmitted is a mode set or mode request.
It is determined whether or not (step P3712). If Ste.
If the judgment result of step P3712 is no, the frame being received is
Since the command is a sequence command, the microprocessor 6
1 is the status/command processing subroutine program
58521, and conversely, execute the judgment in step P3712.
If the result is YES, the microprocessor 61
The frame being received by P3713 is a mode request.
Determine whether it exists or not. If the frame being received is
If it is a request, the judgment result of step P3713 is
The microprocessor 61 issues a mode request.
Execute the client processing subroutine program 5B523. On the other hand, the judgment result in step P3713 is no.
Since the frame being received is a mode set, the micro
The processor 61 is a mode set processing subroutine program.
Run ram 5B522. These three subroutines
The program procedure is detailed below. First, the status/command processing subroutine program
The detailed procedure of the program 5B521 will be explained with reference to FIG.
. Status/command processing subroutine program
Starting at step P3801, microprocessor 6
1 indicates that the frame being received in step P3802 is a stator.
Determine whether or not the request is a request. If receiving
If the frame is a sequence command, step P
The judgment result of 3802 is no, and the microprocessor
61 indicates whether the count data CCNT is "3" or not.
A judgment is made (step P3803). If the data character l following the ID character is received,
If so, the count data is “1”, so the step
The judgment result of step P3803 is no, and the micropro
The processor 61 stores the received data characters in a temporary register.
1 and set the count data to “3” (step
P3804) L/te received data processing subroutine program
Return to Ram 5B506. In contrast, data cache
When the controller 2 is received, the count data CCNT
is set to "3" in step P3804, so
Microprocessor 61 answers step P3803 as YES.
It is judged that the process proceeds to step P3805, and the
The command is transferred from the command register 32 to the microprocessor.
is supplied to the server 61 to determine whether or not the process has been executed.
. If the processing between the previous command has already been executed
(confirmation beep) Q has been reset to “0”.
), the judgment result of step P3805 will be YES.
, the microprocessor 61 proceeds to step P3806.
along with data character 1 that was temporarily held in the register.
Data character 2 received in the command register 32
supply and hold. In contrast, step P380
If the judgment result in step 5 is no, the microprocessor 61
Step P3 directly without executing step P3806
Proceed to 807. Next, the microprocessor 61
Step P3807 determines whether the mode is report mode or not.
If the judgment result of step P3807 is no, the microprocessor
The processor 61 proceeds to step P3812. On the contrary,
If the judgment result in step P3807 is YES, the micro
The processor 61 is held in the status register 33.
Please set the information transmission request flag to “1”.
address buffer 3101), then the address buffer 3101 is empty.
It is determined whether there is any time (step P3809). too
If there is no space in the address buffer 3101, the My
The processor 61 proceeds to step P3812 and adds
If there is space in the response buffer 3101, step P38
Access information whose transmission request flag was set to “1” in 08
Register the dress (Step P3810) Step P3
Proceed to 812. On the other hand, the judgment result in step P3802 is YES.
If so, the microprocessor 61 is in polling mode or not.
step P3811), and the result of that judgment is
- If so, proceed to step P380B. On the other hand, Ste.
If the judgment result of P3811 is YES, micropro
The processor 61 is a polling answer processing subroutine program.
The program executes RAM 5B531 and proceeds to step P3812. In step P3812, the count data CCNT is
0” and executes the next received data processing subroutine.
In preparation for program execution, then the incoming data processing sub
Return to routine program. The above polling answer processing subroutine program 5B
The detailed procedure of 531 is shown in Figure 39, and this sub
The routine program 5B531 goes to step P3901.
Start. Microblossom sensor 61 is step P3
The process advances to 902 and is held in the status register 33.
The transmission request flag TR of the information is reset. continue
, the address of the information to be sent to the address buffer 3101
Step P390
2) If the address is not registered, the microphone
When the frame continuation bit N is “0”,
Sends the status answer to the transmission buffer 48 and transmits it.
Prepare for communication (step P3904), like this
, the status answer with frame continuation bit N is “0”
When the transmission preparation is completed, the microprocessor 61
The process advances to step P3915. In contrast, it should be sent to the address buffer 3101.
If the address of the information is registered and step P3903
If the decision is yes, the microprocessor
61 is a status attribute whose frame continuation bit N is “1”.
supply the sensor to the transmission buffer 3102 to prepare for transmission;
(Step P3905), then Step P390
Sequence report to address buffer 3101 at 6
Determine whether or not the address is registered. if,
If the sequence report address is registered,
The address of the sequence report is stored in address buffer 3.
101 and in the report register 37.
Send request file attached to retained report information
The lag TR is reset (step P3907). this
After that, the microprocessor 61 stores the information to be transmitted.
address is registered in the address buffer 3101.
Step P3908)
If the determination result of step P3908 is no, the frame continuation bit is
Send sequence report with bit N “0” to buffer 3
Step P3909)
, On the other hand, if the judgment result of step P3908 is YES, then
, sequence report where frame continuation bit N is “1”
is supplied to the transmission buffer 3102 to prepare for transmission (step
Step P3910). Next, the microprocessor 61 uses the address buffer 31
01 to check the string type model to be sent.
Determine whether the address of the address is registered or not.
(Step P3911). If it is registered, the microprocessor 61
address from the address buffer 3101 and
Transmission request bit attached to the information composing the door answer
TR is reset (step P3912). After that
, the microprocessor 61 is in string type mode.
The answer is supplied to the transmission buffer 48 and held, and the transmission is ready.
Complete preparations. After this, the microprocessor 61 terminates
The code is sent to the transmission buffer 3102 and held there. In this way, in this example, the string type mode
For answers, send all their data characters
Add end code before storing in buffer 3102
do. This is because string type mode answers are usually
Since it consists of many data characters, all can be processed at the same time.
If you process multiple responses, it will take a long time for one response and other
This is because communication with the SSC becomes slow. On the other hand, the judgment result in step P3911 is no.
, the microprocessor 61 uses the address buffer 310
Check 1 and enter the word type mode answer address.
Determine whether the device is registered and if
If the address is not registered, the microprocessor 61 immediately
Proceed to step P3915, and conversely, type the word type.
If a mode answer is registered, first
is deleted from the address buffer 3101 and the word type is
The transmission request attached to the information that constitutes the mode answer
Bit TR is reset (step P3917). child
After that, the microprocessor 61 enters the word type mode.
The answer is sent to the transmission buffer 3102 and held, and then
If the address of another word type mode answer is
Determine whether it is registered in the response buffer 3101
(Step P3919). If the address of the pond is registered,
If recorded (i.e., if the decision is no), then
The microprocessor 61 returns to step P3917 again.
and continue until the judgment result in step P3919 is YES.
A rule consisting of step P3917 to step P3919
Repeatedly execute the loop, and check the judgment result of step P3919.
is YES, the microprocessor 61 steps
Proceed to P3914 and send the end code to the buffer 3102
supply to. In this way, the file held in the transmission buffer 3102
The frame has one character in step P3915.
transfer from the transmit buffer 3102 to the transmit register 3103.
status/command processing subroutine program
Proceed to step P3812 of RAM 5B521. thus
, the characters held in the transmission register 3103 are transmitted.
To execute the data processing subroutine program 5B507
It is sent to N5C21. Next, mode set processing subroutine program 5B5
The procedure of step 22 will be explained with reference to FIG. mode set
The cut processing subroutine program 5B522
When started in P4001, the microprocessor
61 first checks the count data CCNT,
Therefore, whether the value of count data CCNT is "5" or not.
(Step P4002). data character
When receiving 1, the count data CCNT is normally ``2''.
Since the determination result in step P4002 is
becomes no. Therefore, the microprocessor 61
Proceed to step P4003 and count data CCN again.
Check T and determine whether its value is "2" or not.
Ru. When data character 1 is received, the count data
CCNT should be set to "2" as mentioned above.
Yes, the determination result in step P4003 is YES. For mode set, data character 1 is the map address.
Since it is assigned to address M, the microprocessor
61 proceeds to step P4004 and enters the map address M.
0, which is transferred to the address register and held, then the count
Set data CCNT to “4” and reset flag TYPE.
Set (step P4005). Next, step P
Map address held in address register in 4004
Whether or not the string area 36 is specified by referring to
(Step P4006). If step
If the result of P4006 is yes, the microprocessor
The server 61 proceeds to step P4007 and stores the count data C.
Set CNT to "3" and set flag TYPE to r.
Set it to lJ to start the received data processing subroutine program.
Return to Ram 5B506. On the other hand, step P
If the judgment result of 4006 is no, microprocessor 6
1 is received data without executing step P4007.
The process returns to the processing subroutine program 5B506. or
Then data character 2 is received and the mode set processing
When routine program 5B522 starts, the step
P4002. Judgment result of step P4003 is yes
Since both of the deviations are negative, the microprocessor 61
Proceeding to step P4008, count data CCNT is "
3". As described above, step P40
05 to step P4007, the string data is
In the type mode set, the count data CCNT is “
3”, and “4” in word type mode set.
Since each frame is set, the frame being received is
If the mode is set to type
Result is yes, judge if word type mode set
The result is no. Also, the frame being received is streamed.
If it is a mode set of type
Since it represents the data length, the microprocessor 61
Transfer data character 2 to data counter and hold it.
(Step P4009). After this, the microprocessor
The server 61 proceeds to step P4011. On the other hand, the reception
If the frame being transmitted has a word type mode set, the
Since data character 2 is the first byte of configuration data,
The microprocessor 61 reads the received data character 1.
Temporarily hold in register 1 (step P4010), counter
Increments the count data CCNT by "1" (step P4
011). Any type of microprocessor
The processor 61 processes the received data after executing step P4011.
The process returns to the management subroutine program 5B506. Eventually, when data character 3 is received, the string
In case of mode set of type, count data CC
Since NT is "4", step P4002, step
PuP 4003. The judgment result of step P4008 is
If the answer is NO in both cases, data capture is performed in step P4010.
After holding the data counter 3 in the temporary register, the data counter
Step CCNT by “1” and enter the received data processing subroutine.
Returns to the program 5B506. In contrast,
For mode sets of type code and data characters.
If the string type mode set receives the
If so, the judgment result in step P4002 becomes YES.
Therefore, the microprocessor 61 processes the received data character.
The last received data held in the vector and temporary register 1.
Retain data characters as configuration data (step
P4012). In the process of this step P4012
For word type mode sets, the local mode
The string type model is
In the case of a code set, it is set in the string area.
It turns out. Next, the microprocessor 61
Flag TY whether the frame is a string type
Judgment is made with reference to PE, and if the judgment result is no (all
In other words, the word type) has a reception of data character 3.
Since the reception has been completed, proceed to step P4017.
Initializes the count data CCNT to "0" and
Reception of setting data stored in local mode map 34
Set the notification flag RR to "1". On the contrary,
If the mode set being received is a string type, the step
The judgment result of P4013 is YES, and the micropro
The processor 61 steps to set the count data to “4”.
P4014), data held in the data counter
The length value is decreased (step P4015). like this
As a result of reducing the data length value, all configuration data
It is determined in step P4016 whether or not the
However, if the judgment result in step P4016 is no, immediately accept the
Return to communication data processing subroutine program 58506
However, on the other hand, if the judgment result in step P4016 is YES.
, the microprocessor 61 outputs count data CCNT.
is set to "0", and the reception notification flag of the received configuration data is displayed.
Set RR to "1". After that, the microp
Processor 61 is a received data processing subroutine program.
Return to 5B506. Next, the mode request subroutine program steps
will be explained with reference to FIG. mode request sub
Routine program 5B523 is step P 4.10
1, and in step P4102 the address buffer is
The file 3101 is searched first. Based on this search,
The processor 61 uses the received data characters to
The map address M represented by
Step P41 to determine whether it is unregistered in 101.
03), if it is already registered in the address buffer 3101.
If so, the judgment result in step P4103 will be no.
Therefore, the microprocessor 61 executes step P4107.
Go to , set the count data to "0" and receive the received data.
Return to the processing subroutine program. On the contrary
, if the map address M is not registered, step P4
Since the judgment result of 103 is yes, the microprocessor
The processor 61 checks whether there is space in the address buffer 3101.
Step P4104), if there is a vacancy
For example, address map address M in step P4105.
After registering in the buffer 3101, proceed to step P4107.
move on. On the other hand, the determination result of step P4104 is
If no, the microprocessor 61 uses the map address M
Set the transmission request flag TR of the information specified in
After that, the process advances to step P4107. Step P41
In 07, as mentioned above, the count data CCNT is
0", and then the microprocessor 61 receives
Execute data processing subroutine program 5B506.
Ru. Referring again to FIG. 33, the transmission request processing subroutine
Microprocessor 61 returned from Gram SB512
The flag 5YSWAIT is set in step P3309.
Check that SSC initialization has been completed (SYS
WAI T=0). Flag 5YSWA
IT is MSIF monitoring subroutine program 5B511
It is reset to "0" in step P3414 of
Therefore, if initialization is not completed yet, step P
The judgment result of 3309 is no, and the microprocessor
61 uses the MSIF monitoring service to continue SSC initialization.
Rerun the routine program. In contrast, the first
If the initialization has been completed, the judgment result of step P3309
becomes YES, and the microprocessor 61 sets the flag LO.
Check the OPF and the main loop timing has arrived.
(LOOPF=1). If,
If the in-loop timing has not arrived, the microprocessor
The server 61 is the MS IF monitoring subroutine program 5B.
511, and on the other hand, the main loop timing has arrived.
If so, reset the flag LOOPF to "0"
Then, job processing subroutine step P3312,...
- Execute step P3313. The procedure of the job processing subroutine program is shown in Figure 42.
This subroutine program is shown in step P.
Starting at 4201, the microprocessor 61
, first, the flag JOBACT is set to "1" and the SSC
Determines whether the device has been removed from the standby state (step
P4202). Flag JOBACT is at step P4
Since it is set to "1" in 208, a series of job processing
At the beginning of the process, the determination result in step P4202 is NO.
, the microprocessor 61 executes step P4203.
The command is held in the command register 32.
Determine whether or not. If step P4203
If the judgment result is no, the microprocessor 61
Proceed to step P4204 and display local mode map 34 and group.
Is there a received frame in the global mode map 35?
It is determined by searching the reception notification flag RR. if,
If the judgment result in step P4204 is no, the microprocessor
The processor 61 is a trouble check subroutine program.
Proceeds to step P4204, and conversely proceeds to step P4204.
If the result is YES, the information that makes up the received frame
Step to reset the reception notification flag RR to "0"
P 4205), followed by a module related to the received frame.
The internal processing of the code is executed (step P4206). child
After that, the microprocessor 61 performs a trouble check subroutine.
Proceed to routine program 5B541. Eventually, the command will be held in the command register 32.
, the judgment result in step P4203 is YES, and the master
The microprocessor 61 takes in the taken commands.
Step P42 to reset the confirmation bit Q to "0".
07), then set the flag JOBACT to "1".
(Step P4208). Process the job like this
When the preparation is completed, the microprocessor 61
Busy register set in the mode map 34
Set the job processing bit on the controller (BUSY-REG).
Trouble check step P4209)
Execute the program 5B541. As mentioned above, the flag JOBACT is set to "1".
When the next job processing subroutine program is executed,
At the time of execution, the judgment result of step P4202 becomes YES.
, the microprocessor 61 in step P4210
Determine whether flag 5TOPF is “0” or not.
If the judgment result is yes, the job processing is forcibly stopped.
is not requested, so the microprocessor 61
local mode map 34, global mode map 35
The information held in the command register 32 and the information held in the command register 32
Aims to achieve the specified function according to the commands provided.
. If the series of job processing is completed, step
Since the judgment result of P4212 is YES, the microprop
The processor 61 should set the flag JOBACT to “0”.
Step P4213), in the local mode map 34
Reset the job processing bit in the busy register that was set.
Set (step P4214). microprocessor
After this, the trouble check subroutine program
Run the program. On the other hand, if the determination result in step P4210 is no,
, step P42 to execute the job stop sequence process.
15), job processing is completed in step P4216
decide whether or not. If job processing has stopped
If so, the microprocessor 61 sets flag 5TOP.
Set F to "0" once, then trouble check sub.
Execute the routine program and stop job processing.
If not, do not execute step P4217.
Execute the trouble check subroutine program
. The trouble check subroutine program is shown in Figure 43.
Starting at step P4301 as shown, the master
The microprocessor 61 is located in the local motor map 34.
Set error register (ERROR-REG)
and check the errors held in the error register.
- Check whether the information has a value of “0” indicating that no error has occurred.
A judgment is made (step P4301). If the error information
If the value "l" indicates that an error has occurred, the microprocessor
The processor 61 sets the 01 bit of the status register 33 to “
1" (step P4303), on the contrary, the error
If the information indicates that no error has occurred with the value “o”, the
Reset bit 01 of status register 33 to “0”
(Step P4303). Like this the status bar
Bit 01 of register 33 was manipulated according to the error information.
After that, the microprocessor 61 uses the local mode map 3.
Fatal register (FATAL) set in 4
- The fatal information in REG) indicates that no serious accident has occurred.
ro” is set (step
P4304). If the fatal information is ``1'' and
If it indicates that a major accident has occurred, the microprocessor 61
is bit 02 (FATAL bit) of status register 33.
Step P4306) should be set to "1".
On the other hand, fatal information indicates that no serious accident has occurred at the value rOJ.
If so, set bit 02 of status register 33.
rO” (step P4305). This way
02 bit of status register 33 is set as fatal.
After operating according to the information, the microprocessor 61
The busy level set in the local mode map 34
Busy information in register (BUSY-REG) is commanded.
The value rOJ is set to indicate the non-execution of operations that involve changing the mode or changing the mode.
(Step P4307)
. If the busy information is ``1'' and the above command or mode
If it indicates that an operation is being executed due to a code change, the microprocessor
The processor 61 uses the 64 bits (B
Set the US Y bit) to "1" in step P.
4309), on the other hand, the busy information is 0 and the operation is disabled.
If execution is indicated, 64 bits of status register 33
reset to "0" (step P4308). In this way, the 64 bits of the status register 33 are read.
After operating according to the microprocessor 61
is the knot set in the local mode map 34.
The node in the ready register (NOTREADY-REG)
The set ready information is set to the value “0” indicating completion of initialization.
It is determined whether or not (step P4310). too
Then, the not ready information has a value of “1” indicating that initialization is being executed.
If so, the microprocessor 61 registers the status register.
Star 33 (7) G 5 bits (NOT READY bit)
Step P4312) should be set to "1".
On the other hand, the not ready information indicates the end of initialization with the value "o".
If so, set bit 05 of status register 33 to “
0'' (step P4311). like this
The 05 bit of status register 33 is set to not ready.
- After operating in accordance with the information, the microprocessor 61
Return to the job processing subroutine program.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明のクレーム対応図、 第2図は本発明の一実施例のマクロシステム構成を示す
ブロック図、 第3図はスレーブ処理ユニット内に設定される論理アド
レス空間を示すブロック図、 第4図はマスタ処理ユニット内の機能ブロックと該マス
タ処理ユニットに管理される論理アドレス空間との関係
を示すブロック図、 第5図は一実施例に係るレーザプリンタ内に実現される
通信ネットワークを示すブロック図、第6図はMSCの
ハードウェア構成を示すブロック図、 第7図は一実施例の通信方式を説明するタイミングチャ
ート図、 第8図は複数キャラクタで構成されるフレームの構成を
示すブロック図、 第9図は各キャラクタのビット構成を説明するフォーマ
ット図、 第1O図はIDキャラクタのビット構成を示すフォーマ
ット図、 第11図(a)〜(i)は各フレー15を構成するキャ
ラクタのビット構成を示すフォーマット図、第12図は
複数フレームに跨り情報が発信される場合のSSC区切
り検出を説明するブロック図、第13図はステータスレ
ジスタの各ビットに割り当てられたステータス情報を示
すフォーマット図、 第14図はローカルモードマツプの一部に割り当てられ
るSSC標準モードマツプ内の詳細ステータス情報を説
明するアドレスマツプ図、第15図はレポートモードと
ポーリングモードとが混在する一実施例の変形例を示す
ブロック図、第16図はMSCで実行されるプログラム
の全体構成を示すフローチャート図、 第17図はMSCで実行されるメインルーチンプログラ
ムの実行手順を示すフローチャート図、第18A図〜第
18B図はMSIF監視サブルーチンの実行手順を詳細
に説明するフローチャート図、 第19図はシステム更新サブルーチンプログラムの手順
を示すフローチャート図、 第20図はオプション接続チエツクサブルーチンプログ
ラムの手順を示すフローチャート図、第21図はメイン
ループタイマー処理サブルーチンプログラムとポーリン
グ制御タイマー処理サブルーチンプログラムとの手順を
示すフローチャート図、 第22図はポーリングエラー処理サブルーチンプログラ
ムの詳細手順を示すフローチャート図、第23図はポー
リング制御サブルーチンプログラムの手順を示すフロー
チャート図、 第24図は送信要求処理サブルーチンプログラムの手順
を示すフローチャート図、 第25図は受信データ処理サブルーチンプログラムの詳
細手順を示すフローチャート図、第26図はステータス
/レポート解析サブルゴチンの詳細手順を示すフローチ
ャート図、第27図はモード解析サブルーチンプログラ
ムの手順を示すフローチャート図、 第28図はSSCステータスチエツクサブルーチンプロ
グラムの手順を示すフローチャート図、第29図はジョ
ブ処理サブルーチンプログラムの手順を示すフローチャ
ート図、 第30図はトラブルチエツク処理サブルーチンプログラ
ムの手順を示すフローチャート図、第31図はSSCの
送信バッファとその関連回路の構成を示すブロック図、 第32図はSSCて実行されるプログラムの概略構成を
示すフローチャート図、 第33図はSSCで実行されるメインルーチンプログラ
ムの手順を示すフローチャート図、第34図はMSIF
監視サブルーチンプログラムの手順を示すフローチャー
ト図、 第35図はSSCの送信要求処理サブルーチンプログラ
ムの手順を示すフローチャート図、第36図はメインル
ープタイマー処理サブルーチンプログラムとジョブ制御
タイマー処理サブルーチンプログラムとの手順を説明す
るフローチャート図、 第37図は受信データ処理サブルーチンプログラムの手
順を説明するフローチャート図、第38図はステータス
/コマンド処理サブルーチンプログラムの手順を示すフ
ローチャート図、第39図はポーリングアンサ処理サブ
ルーチンプログラムの手順を説明するフローチャート図
、の手順を示すフローチャート図、 第43図はトラブルチエツクサブルーチンプログラムの
手順を示すフローチャート図である。 1〜3・・・・スレーブ処理ユニット、4・・・・・・
マスタ処理ユニット、 5・・・・・・通信手段、 6・・・・・・マスタ処理ユニット管理下のアドレス空
間、 7〜9・・・・スレーブ処理ユニット管理下のアドレス
空間。
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 in the master processing unit and the logical address space managed by the master processing unit, and FIG. 5 shows the communication network realized in the laser printer according to one embodiment. 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, and FIG. 8 shows the structure of a frame composed of multiple characters. Block diagram; FIG. 9 is a format diagram explaining the bit structure of each character; FIG. 1O is a format diagram showing the bit structure of the ID character; FIGS. 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. 16 is a flowchart showing the overall configuration of the program executed by the MSC, FIG. 17 is a flowchart showing the execution procedure of the main routine program executed by the MSC, and FIGS. 18A to 18B are Figure 19 is a flowchart showing the steps of the system update subroutine program; Figure 20 is a flowchart showing the steps of the option connection check subroutine program; Figure 21 is the main flowchart. Flowchart showing the steps of the loop timer processing subroutine program and polling control timer processing subroutine program, FIG. 22 is a flowchart showing the detailed steps of the polling error processing subroutine program, and FIG. 23 is a flowchart showing the steps of the polling control subroutine program. Fig. 24 is a flowchart showing the procedure of the transmission request processing subroutine program, Fig. 25 is a flowchart showing the detailed procedure of the received data processing subroutine program, and Fig. 26 is a flowchart showing the detailed procedure of the status/report analysis subroutine program. 27 is a flowchart showing the procedure of the mode analysis subroutine program; FIG. 28 is a flowchart showing the procedure of the SSC status check subroutine program; FIG. 29 is a flowchart showing the procedure of the job processing subroutine program; 31 is a block diagram showing the configuration of the SSC transmission buffer and its related circuits. FIG. 32 is a flowchart showing the schematic configuration of the program executed by the SSC. , Figure 33 is a flowchart showing the procedure of the main routine program executed in SSC, Figure 34 is 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. 43 is a flowchart showing the procedure of the trouble check subroutine program. 1 to 3...Slave processing unit, 4...
Master processing unit, 5... Communication means, 6... Address space under master processing unit management, 7-9... Address space under slave processing unit management.

Claims (1)

【特許請求の範囲】[Claims] (1)各々が所定の機能を実現する複数のスレーブ処理
ユニットと、 上記スレーブ処理ユニットを管理するマスター処理ユニ
ットと、 上記スレーブ処理ユニットと上記マスター処理ユニット
とを接続する通信手段とを備えた画像処理装置において
、 上記マスタ処理ユニットは固定配線通信方式とポーリン
グ方式とのいずれを上記各スレーブ処理ユニットとの通
信に採用しているかを表す通信モード情報を保持するア
ドレス空間を管理しており、上記複数のスレーブ処理ユ
ニットはそれぞれの管理するアドレス空間内に上記通信
モード情報を上記マスタ処理ユニットからの指令にした
がい書き換え可能に保持しており、 上記マスタ処理ユニットと上記各スレーブ処理ユニット
とは上記通信モード情報で指定された方式で通信するこ
とを特徴とする画像処理装置。
(1) An image including a plurality of slave processing units, each of which realizes a predetermined function, a master processing unit that manages the slave processing units, and a communication means that connects the slave processing units and the master processing unit. In the processing device, the master processing unit manages an address space that holds communication mode information indicating whether the fixed wiring communication method or the polling method is used for communication with each of the slave processing units. The plurality of slave processing units hold the above communication mode information in their respective managed address spaces in a rewritable manner according to commands from the master processing unit, and the master processing unit and each slave processing unit communicate with each other in the above communication mode. An image processing device characterized in that it communicates using a method specified by mode information.
JP63172445A 1988-07-11 1988-07-11 Picture processor Pending JPH0221375A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP63172445A JPH0221375A (en) 1988-07-11 1988-07-11 Picture processor
US07/377,943 US5191648A (en) 1988-07-11 1989-07-10 Image processing system
US07/950,232 US5251295A (en) 1988-07-11 1992-09-24 Image processing system having slave processors for controlling standard and optional modules

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63172445A JPH0221375A (en) 1988-07-11 1988-07-11 Picture processor

Publications (1)

Publication Number Publication Date
JPH0221375A true JPH0221375A (en) 1990-01-24

Family

ID=15942116

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63172445A Pending JPH0221375A (en) 1988-07-11 1988-07-11 Picture processor

Country Status (1)

Country Link
JP (1) JPH0221375A (en)

Similar Documents

Publication Publication Date Title
US6138234A (en) Node booting method in high-speed parallel computer
JP3937469B2 (en) Information processing system and method and apparatus thereof
JPH02146618A (en) Method and device for print control
JPH0221375A (en) Picture processor
JP2950467B2 (en) Data processing system and related methods
JP2003308286A (en) Composite device system
EP1118942B1 (en) Method of and system for managing reselection on a scsi bus
JPH0221742A (en) Picture processor
JPH0221741A (en) Picture processor
JP2000326597A (en) Printer control device
JP3423477B2 (en) Printing method and system
JPH09190359A (en) Application shared system and its control method and information processing method and device
JPH09190317A (en) Printing device and printing method
JP3740198B2 (en) Implementation method of operation command processing mechanism in distributed system
JP2006345329A (en) Image forming apparatus, image forming system, and image control device
JP6988065B2 (en) Image forming apparatus, image forming system, and image forming program
JPH0991212A (en) Software distribution method
JP3105705B2 (en) Online form output method
JPH08286953A (en) Program verifying system
JPH05204794A (en) File transfer method
JPH01147939A (en) Robot control system
JP2890962B2 (en) Loosely coupled multi-hot standby computer system
JP3267068B2 (en) Printing equipment
JPH09276549A (en) Tv game system
JPH06348659A (en) Data processing system