JPS61249116A - Voice output unit for programmable controller - Google Patents

Voice output unit for programmable controller

Info

Publication number
JPS61249116A
JPS61249116A JP60090146A JP9014685A JPS61249116A JP S61249116 A JPS61249116 A JP S61249116A JP 60090146 A JP60090146 A JP 60090146A JP 9014685 A JP9014685 A JP 9014685A JP S61249116 A JPS61249116 A JP S61249116A
Authority
JP
Japan
Prior art keywords
message
command
output
bits
audio
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
JP60090146A
Other languages
Japanese (ja)
Inventor
Masazumi Tsubakizaka
正純 椿阪
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP60090146A priority Critical patent/JPS61249116A/en
Publication of JPS61249116A publication Critical patent/JPS61249116A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To generate voice signals successively in an optionally designated link order by providing a means which generates a voice generating command at each time of the end of voice generation successively in the detected link order in response to detection of presence of an output start command. CONSTITUTION:A microprocessor (MPU) 501 takes in data from a system bus DB and decodes it as a voice output instruction to detect presence/absence of the output start command. Since the first message number, the second mes sage number, and the third message number are stored in bits 0-7, bits 24-31, and bits 16-23 as binary codes and a message link number 3 is stored in bits 12 and 13 as a binary code by a control system program corresponding to the voice output instruction in a system program ROM 502, the MPU 501 issues the voice generating command, where three messages are linked at intervals of one secon in accordance with this program in response to presence of the output start command.

Description

【発明の詳細な説明】 (発明の分野) この発明は、ごルテイング・ブロックタイプのプログラ
マブル・コントローラに使用される新規な出カニニット
に係わり、特にユーザプログラムの内容に従って様々な
音声信号を発生できるようにした出カニニットに関する
DETAILED DESCRIPTION OF THE INVENTION (Field of the Invention) The present invention relates to a novel output unit used in a converting block type programmable controller, and in particular to a new output unit capable of generating various audio signals according to the contents of a user program. Concerning the crab knit that was made.

(発明の概要) この発明は、ユーザが任意にプログラムした内容の音声
信号を、出カニニット自体から発生可能とするとともに
、ユーザが任意に指定した複数の音声内容に相当する音
声信号を、任意に指定した連結順序をもって順次発生可
能としたものである。
(Summary of the Invention) The present invention enables generation of an audio signal with contents arbitrarily programmed by the user from the output unit itself, and also enables the generation of audio signals corresponding to a plurality of audio contents arbitrarily specified by the user. This allows them to occur sequentially with the specified connection order.

(従来技術とその問題点) プログラマブル・コントローラを用いて、各種の産業機
械を制御する場合、機械と人間との対話をスムーズに行
なわせるには、音声を用いることが好ましい場合がある
(Prior Art and its Problems) When controlling various industrial machines using a programmable controller, it is sometimes preferable to use voice in order to facilitate smooth interaction between the machine and a human.

すなわち、機械と人間との対話に音声を用いれば、表示
盤を用いた視覚を通じての対話に比べ、内容をより正確
に伝達することができ、また表示盤による視覚的な対話
のように、常時監視する必要もなく、従って音声が届く
範囲内であれば、オペレータを他の作業に従事させるこ
ともでき、省力化の点からも好ましい。
In other words, if voice is used for dialogue between machines and humans, content can be conveyed more accurately compared to visual dialogue using a display board, and unlike visual dialogue using a display board, it is possible to convey the content more accurately than with visual dialogue using a display board. There is no need for monitoring, and therefore, as long as the operator is within sound range, the operator can be engaged in other work, which is preferable from the viewpoint of labor saving.

また、以上の一般的な利点の伯に、産業界においては必
ずしも自動化を好まない制御分野も存在する。例えば、
原子力設備等のように極度の信頼性を要求される技術分
野においては、自動化による誤動作を恐れ、最終的な弁
操作等については行政指導等により、手動操作をすべき
旨が義務付けられる場合もある。
Furthermore, despite the general advantages mentioned above, there are control fields in industry that do not necessarily favor automation. for example,
In technical fields that require extreme reliability, such as nuclear equipment, there are cases in which administrative guidance requires manual operation of final valve operations, etc., due to fear of malfunction due to automation. .

このような場合、手動操作手順を、音声により案内放送
してやれば、一層の信頼性を向上させることができる。
In such a case, reliability can be further improved by broadcasting the manual operation procedure by voice.

ざらに、身近な例をとって説明すれば、一般に電磁弁等
の自動弁には、必ずバイパス路が設けられ、これには手
動弁が介挿されて、電磁弁故障時においても流れに支障
なきよう配慮されているが、この自動弁が故障したこと
を流量スイッチ等で検知できたとしても、どの手動弁を
開ければ良いか等については、オペレータが予め確認し
ておかない限り、なかなか即座に対応できるものではな
い。
To give a rough explanation using a familiar example, automatic valves such as solenoid valves are generally always provided with a bypass path, and a manual valve is inserted into this to ensure that the flow is not interrupted even when the solenoid valve malfunctions. However, even if it is possible to detect a malfunction of this automatic valve using a flow switch, etc., unless the operator confirms in advance which manual valve to open, it will not be possible to immediately It is not possible to respond to

このような場合にも、各故障時における対応策を、直ち
に音声によりオペレータ(報知させることができれば、
故障復旧時間の短縮化を図り、設備の損害を最小限にと
どめることができる。
In such cases, the operator (if it is possible to immediately notify the operator (or
It is possible to shorten failure recovery time and minimize damage to equipment.

このように、産業界においては機械と人間との対話に音
声を用いる要望が各種存在するが、従来既存のプログラ
マブル・コントローラを用いてこれらの要望に応えるに
は、プログラマブル・コントローラの出カニニットから
有接点または無接点で出力される2値付号を、さらに出
カニニットとは別に設けられたエンドレステープ装置、
音声合成LSI等の音声信号発生装置に導く等の複雑か
つ高価な構成を採用せねばならなかった。
As described above, there are various demands for the use of voice in dialogue between machines and humans in the industrial world, but in order to meet these demands using conventional programmable controllers, it has been necessary to use the technology since the beginning of programmable controllers. An endless tape device, which is installed separately from the output unit, can output binary numbers output with contact or non-contact.
A complicated and expensive configuration such as leading to an audio signal generating device such as an audio synthesis LSI had to be adopted.

(発明の目的) この発明の目的は、ユーザが任意にプログラムした内容
の音声信号を、出カニニット自体から発生可能とすると
ともに、ユーザが任意に指定した複数の音声内容に相当
する音声信号を、指定した連結順序をもって順次発生可
能とすることにある。
(Objective of the Invention) The object of the present invention is to enable generation of audio signals with contents arbitrarily programmed by the user from the output unit itself, and to generate audio signals corresponding to a plurality of audio contents arbitrarily specified by the user. The purpose is to enable sequential generation using a specified connection order.

(発明の構成と効果) この発明は上記の目的を達成するために、プログラマブ
ル・コントローラのシステムバス上に、当該ユニットに
あてて送出されたデータを取込むデータ取込み手段と: 前記取込まれたデータを音声出力命令として解読し、連
結されて出力すべき各音声内容、連結順序および出力開
始指令の有無を検出する命令解読手段と: 前記出力開始指令有りと検出されるのに応答して、検出
された各音声内容に係わる発音指令を、検出された連結
順序をもって、発音終了のたびに順次発する発音指令手
段と: 前記発音指令に応答して、該当する音声信号を発する音
声信号発生手段と: を具備することを特徴とするものである。
(Structure and Effects of the Invention) In order to achieve the above object, the present invention includes: a data importing means for importing data sent to the unit onto a system bus of a programmable controller; a command decoding means for decoding data as a voice output command and detecting each voice content to be concatenated and output, the concatenation order, and the presence or absence of an output start command; in response to the detection that the output start command is present; A sound generation command means that sequentially issues a sound production command related to each detected sound content in the detected concatenation order each time a sound is completed; and a sound signal generation means that generates a corresponding sound signal in response to the sound sound command. : It is characterized by comprising the following.

このような構成によれば、ユーザが任意に指定した内容
の音声信号を、出カニニット自体から発生可能とすると
ともに、任意に指定した音声内容に相当する音声信号を
、指定した連結順序をもって順次発生可能とすることが
できる。
According to such a configuration, it is possible to generate an audio signal with content arbitrarily specified by the user from the output unit itself, and the audio signals corresponding to the arbitrarily specified audio content can be sequentially generated in the specified connection order. It can be made possible.

(実施例の説明) 第1図に本発明を適用したプログラマブル・コントロー
ラ全体の外観を示す。
(Description of Embodiments) FIG. 1 shows the overall appearance of a programmable controller to which the present invention is applied.

同図に示す如く、このプログラマブル・コントローラ1
は、電源ユニット2.CPUユニット3゜1または2以
上のI10ユニット4および本発明に係わる音声出カニ
ニット5とから構成されている。
As shown in the figure, this programmable controller 1
is power supply unit 2. The CPU unit 3 is composed of one or more I10 units 4 and a sound output unit 5 according to the present invention.

各ユニット2〜5は、ブックケース形ハウジング内に所
望の回路基板を内蔵して構成されており、各ハウジング
の背面から突出され、たプラグを、ラック6に敷設され
たシステムバス上のソケットに差込むことによって、各
ユニット2〜5はシステムバスを介して互いに電気的に
接続されるようになっている。
Each of the units 2 to 5 is configured with a desired circuit board built into a book case-shaped housing, and a plug protruding from the back of each housing is inserted into a socket on the system bus installed in the rack 6. By being plugged in, the units 2 to 5 are electrically connected to each other via the system bus.

また、後述する如く、音声出カニニット5からは、ユー
ザプログラムで指定された音声信号が発生し、これをア
ンプ7で増幅することによって、スピーカ8から発音さ
せるようになっている。
Further, as will be described later, the sound output unit 5 generates a sound signal designated by the user program, and by amplifying this signal with the amplifier 7, the sound is produced from the speaker 8.

電源ユニット2は、商用電源を整流、平滑した後安定化
して、各ユニット3,4および5に供給するもので、こ
の電源ユニット2側においてコントローラ全体の電源オ
ン、オフが可能になっている。
The power supply unit 2 rectifies and smoothes the commercial power, stabilizes it, and supplies it to the units 3, 4, and 5. The power supply unit 2 can turn on and off the power of the entire controller.

I10ユニット4は、すでに公知であるため詳細には説
明しないが、1チヤンネルを16点として、1もしくは
2以上のチャンネルに割り当て可能になっており、また
各1点毎には一対の入力および出力回路が備えられてお
り、内蔵されたデジタルスイッチの設定によって、16
点単位で入力または出力として自由に設定可能1なって
いる。
The I10 unit 4 is already known and will not be described in detail, but each channel has 16 points and can be assigned to one or more channels, and each point has a pair of inputs and outputs. The circuit is equipped with a built-in digital switch that allows 16
Can be freely set as input or output on a point-by-point basis.

また、この実施例では、各ユニット4内にアドレス設定
用のデジタルスイッチが内蔵されでおり、これを適宜に
設定することにより、ラック6上のソケット位置辷は拘
束されずに任意のアドレス設定が可能な、いわゆるフリ
ーロケーション方式が採用されている。
Furthermore, in this embodiment, each unit 4 has a built-in digital switch for address setting, and by setting this appropriately, the socket position on the rack 6 is not restricted and any address setting can be made. A so-called free location method is adopted.

第2図に示す如く、CPLJユニット3は、6800等
に代表される8ビツトマイクロプロセツサ(MPU)3
0を主体として構成されており、そのデータバスDB、
アドレスバスAS、コントロールバスCBには、それぞ
れ入出力状態RAM31、ワーキングRAM32.シス
テムプログラムROM33aJ:(F−L−fプログラ
ムPRoM34が接続される他、プログラム書込み等の
際にプログラミングツールを接続するだめのソケット3
5が接続されており、またプラグ36.ソケット37を
介して、ラック6上のシステムバスSBに接続可能とな
っている。
As shown in FIG. 2, the CPLJ unit 3 is an 8-bit microprocessor (MPU) 3 typically such as
0 as the main component, and its data bus DB,
The address bus AS and the control bus CB include an input/output state RAM 31 and a working RAM 32 . System program ROM33aJ: (In addition to connecting the F-L-f program PRoM34, socket 3 is used to connect a programming tool when writing a program, etc.)
5 is connected, and plug 36. It can be connected to the system bus SB on the rack 6 via the socket 37.

入出力状態RAM31としては、1ワード8ビツトのR
AMが使用されており、このRAM31のアドレス空間
は、8ビット単位で入力または出力として割り当て可能
な入出カニリアの他に、補助リレーエリア、カウンタ素
子のカウント情報エリア、キープリレーエリアおよびタ
イマ素子のタイム情報エリア等に割当てられている。
The input/output status RAM 31 has one word of 8 bits R.
AM is used, and the address space of this RAM 31 includes input/output channels that can be assigned as inputs or outputs in 8-bit units, as well as an auxiliary relay area, a count information area for counter elements, a keep relay area, and a timer area for timer elements. It is assigned to the information area, etc.

ワーキングRAM32は同様に19−ド8ビツトのRA
Mが使用されており、MPU30における各種演算の際
の一時記憶エリア等として利用される。
Similarly, the working RAM 32 is a 19-bit 8-bit RA.
M is used as a temporary storage area during various calculations in the MPU 30.

システムプログラムROM33は、同様に1ワード8ビ
ツトのメモリで構成され、プログラマブル・コントロー
ラの動作に必要な各種のシステムプログラムが記憶され
ている。このシステムプログラムの詳細については後に
説明する。
The system program ROM 33 is similarly composed of a memory of 8 bits per word, and stores various system programs necessary for the operation of the programmable controller. Details of this system program will be explained later.

ユーザプログラムPROM34は、同様に1ワード8ビ
ツトのFROMが使用され、このFROM34にはプロ
グラマブル・コントローラ言語(高級言語)によって、
ユーザが任意に設定したユーザプログラムが記憶されて
いる。なお、この実施例ではユーザプログラムはラダー
図入力用のフォーマットで記憶されている。
Similarly, the user program PROM 34 uses a FROM of 8 bits per word, and this FROM 34 is programmed with the programmable controller language (high-level language).
A user program arbitrarily set by the user is stored. In this embodiment, the user program is stored in a format for inputting a ladder diagram.

第3図に、システムプログラムROM33に記憶された
システムプログラムの一例(ENDリフレッシュ方式の
場合)を示す。同図に示す如く、電源投入とともにシス
テムプログラムが起動されると、イニシャル処理によっ
て、入出力状態RAM31.ワーキングRAM32等の
内容の初期設定が行なわれ(ステップ300) 、次い
で各種のシステムサービス処理(ステップ301)が行
なわれる。
FIG. 3 shows an example of a system program (in the case of the END refresh method) stored in the system program ROM 33. As shown in the figure, when the system program is started upon power-on, the input/output state RAM 31. The contents of the working RAM 32 and the like are initialized (step 300), and then various system service processes are performed (step 301).

このサービス処理では、モニタ、故障診断等のサービス
処理の他、プログラミングツールが接続されている場合
には、ユーザプログラムPROM34に対するプログラ
ムの書込み処理等が行なわれる。
In this service processing, in addition to service processing such as monitoring and failure diagnosis, if a programming tool is connected, processing for writing a program into the user program PROM 34 is performed.

サービス処理が終了すると、続いて入力更新処理が行な
われる(ステップ302)。この入力更新処理では、I
10ユニット4,4・・・の中で、入力に割当てられた
端子の状態を、8ビット単位で順次取込み、これを入出
り状態RAM31内の該当するアドレスに転送する処理
が行なわれる。
When the service processing is completed, input update processing is subsequently performed (step 302). In this input update process, I
Among the 10 units 4, 4, . . . , a process is performed in which the states of the terminals assigned to the inputs are sequentially taken in in 8-bit units and transferred to the corresponding addresses in the input/output state RAM 31.

以後、サービス処理301において、RtJNモードに
相当するキー操作が行なわれない限り(ステップ303
否定)、以上の動作が繰り返し行なわれ(ステップ30
1,302>、入力更新だけが継続的に行なわれる。
Thereafter, in the service process 301, unless a key operation corresponding to the RtJN mode is performed (step 303
negation), and the above operations are repeated (step 30).
1,302>, only input updates are performed continuously.

この状態で、サービス処理301において、RUNモー
ドに相当する所定のキー操作が行なわれると、入力更新
処理に続いてRLINモードの判定が行なわれ(ステッ
プ303肯定)、命令実行処理が行なわれる(ステップ
304)。
In this state, when a predetermined key operation corresponding to RUN mode is performed in service processing 301, RLIN mode is determined following input update processing (Yes at step 303), and command execution processing is performed (step 303). 304).

この命令実行処理では、プログラムカウンタの内容に従
って、ユーザプログラムFROM34からユーザ命令を
順次読込み、ラダー図上の接点接続関係に応じた回路演
算等を行ない、OUT命令の実行とともに、それまでの
演算結果で入出力状態RAM31の該当出カニリアを書
替える処理を行なう。そして、命令実行を繰り返す間に
、END命令が読みだされると、命令実行処理を終了し
て、続く出力更新処理(ステップ305)を行なう。
In this instruction execution process, user instructions are sequentially read from the user program FROM 34 according to the contents of the program counter, circuit calculations etc. are performed according to the contact connection relationships on the ladder diagram, and along with the execution of the OUT instruction, the calculation results up to that point are A process of rewriting the corresponding output canister in the input/output status RAM 31 is performed. When the END instruction is read while repeating instruction execution, the instruction execution process is ended and the subsequent output update process (step 305) is performed.

この出力更新処理では、命令実行の結果書替えられた入
出力状態RAMの出カニリアの内容を、I10ユニット
の出力として割当てられた各8個の端子に転送する処理
が行なわれる。
In this output update process, the contents of the output canister of the input/output state RAM, which have been rewritten as a result of instruction execution, are transferred to each of the eight terminals assigned as outputs of the I10 unit.

以後、RUNモードが続く限り、システムサービス処理
(ステップ301)、入力更新処理(ステップ302)
、命令実行処理(ステップ304)、出力更新処理(ス
テップ305)を繰り返し実行する。
Thereafter, as long as the RUN mode continues, system service processing (step 301) and input update processing (step 302) are performed.
, instruction execution processing (step 304), and output update processing (step 305) are repeatedly executed.

なお、この実施例では、ユーザプログラムはプログラマ
ブル・コントローラ言語で記述されてい′るため、これ
を直接マイクロプロセッサ30で実行することはできず
、このためシステムプログラムROMに記憶されたイン
タプリタプログラムを介して間接的に実行している。
In this embodiment, since the user program is written in the programmable controller language, it cannot be directly executed by the microprocessor 30, and therefore is executed via an interpreter program stored in the system program ROM. Executed indirectly.

次に、一般にこの種のラダー図入力式プログラマブル・
コントローラで使用されるOPコードの中で、本実施例
音声出カニニットの理解に必要とされるOUT、MOV
に対する命令実行動作を説明する。   ゛ 第4図(a)に示されるラダー図は、OPコードである
LD、0tJTを用いて同図(b)に示す如く表わされ
、またその命令解読結果は同図(C)のフローチャート
で表わされる。
Next, this kind of ladder diagram input type programmable
Among the OP codes used in the controller, OUT and MOV, which are necessary for understanding the sound output crab unit of this embodiment, are
The instruction execution operation will be explained.゛The ladder diagram shown in Fig. 4 (a) is expressed as shown in Fig. 4 (b) using the OP codes LD and 0tJT, and the instruction decoding results are shown in the flow chart in Fig. 4 (C). expressed.

すなわち、プログラムカウンタに従って命令を読込んだ
結果(ステップ400) 、OUT命令と判定されると
(ステップ401肯定)、それまでの演算結果、すなわ
ち入力3000はONか否かが判定され、ONの場合に
は(ステップ402肯定)、同図(d)に示す如く、入
出力状態RAM31の出力10に相当するエリアにはO
Nに相当する1″が吉込まれ、他方入力3000がOF
Fの場合には(ステップ402否定>、OFFに相当す
るOIUが書込まれる(ステップ404)。
That is, if the result of reading the instruction according to the program counter (step 400) is determined to be an OUT instruction (step 401 affirmative), it is determined whether the calculation result up to that point, that is, input 3000, is ON or not. (Yes at step 402), as shown in FIG.
1″ corresponding to N is entered, and the other input 3000 is OF
In the case of F (step 402 negative>), an OIU corresponding to OFF is written (step 404).

このように、OPコードOUTを実行すると、必ず該当
する出力はそれまでの演算結果に応じた内容に書替えら
れる。
In this way, when the OP code OUT is executed, the corresponding output is always rewritten to the content corresponding to the calculation result up to that point.

次に、第5図(a)に示されるラダー図は、OPコード
であるLD、MOVを用いて同図(b)に示す如く表わ
され、またその命令解読結果は同図(C)のフローチャ
ートで表わされる。
Next, the ladder diagram shown in Fig. 5(a) is expressed as shown in Fig. 5(b) using the OP codes LD and MOV, and the instruction decoding result is shown in Fig. 5(C). Represented as a flowchart.

すなわち、プログラムカウンタに従って命令を読込んだ
結果(ステップ500) 、MOVと判定されると(ス
テップ501肯定)、それまでの演算結果、すなわち入
力3000がONか否かの判定が行なわれ、ONと判定
された場合に限り(ステップ502#定)、BCDコー
ドで表わされたデータ1234は、入出力状態RAM3
1のOチャンネルに転送される。
That is, when the result of reading an instruction according to the program counter (step 500) is determined to be MOV (step 501 affirmative), it is determined whether the calculation result up to that point, that is, the input 3000 is ON, and it is determined that it is ON. Only when it is determined (step 502 #determined), the data 1234 represented by the BCD code is stored in the input/output state RAM3.
1 O channel.

このように、OPコードであるMOVを実行した場合に
は、それまでの演算結果がONである場合に限り、OP
コードMOVに続いて記述されたBCDコードのデータ
が、同図(d)に示す如く、入出力状態RAM31のO
チャンネルへと転送される。
In this way, when executing MOV, which is an OP code, only if the calculation result up to that point is ON, the OP code is
The data of the BCD code written following the code MOV is stored in the input/output state RAM 31 as shown in FIG.
transferred to the channel.

このように、OUTコードの場合とは異なり、MOVコ
ードの場合には、それまでの演算結果がONの場合に限
り、指定されたチャンネルの内容をプログラム中に記述
されたデータで書替えるのであって、OFFの場合には
何等書替え動作は行なわれない。
In this way, unlike the case of the OUT code, in the case of the MOV code, the contents of the specified channel are rewritten with the data written in the program only when the previous calculation result is ON. In the case of OFF, no rewriting operation is performed.

以上説明したOUT、MOVコードは、本発明に係わる
音声出カニニットのプログラミングの際に利用される。
The OUT and MOV codes described above are used when programming the audio output crab unit according to the present invention.

次に、本発明に係わる音声出カニニットの構成について
説明する。第6図に示す如く、音声出カニニット5のハ
ウジング5つは、■10ユニットと同様なブックケース
形に形成され、その前面パネルには、発音中のメツセー
ジNO,を表示するための32個のLED表示器52.
音声信号を取り出すためのジャック53.後述する各種
の動作設定等に使用される8ビツトのDIPスイッチ5
4および着脱可能な前面蓋55が設けられている。
Next, the configuration of the voice output crab knit according to the present invention will be explained. As shown in Fig. 6, the five housings of the sound output crab unit 5 are formed in a book case shape similar to the unit 10, and the front panel has 32 housings for displaying the message number being sounded. LED indicator 52.
Jack 53 for taking out audio signals. 8-bit DIP switch 5 used for various operation settings described later
4 and a removable front cover 55.

そして、ジャック53にプラグ56を差込むことによっ
て音声信号を取出し、これを図示しないアンプまたはモ
ニタスピーカへと導くようになっている。
By inserting a plug 56 into the jack 53, an audio signal is extracted and guided to an amplifier or monitor speaker (not shown).

また、前面蓋55の背後には、メモリ収納用の空所(図
示せず)が設けられており、この空所に音声メモリカー
ド57を装着することによって発音すべきメツセージを
32種類単位で交換可能になっている。
Further, a space (not shown) for storing memory is provided behind the front cover 55, and by inserting a voice memory card 57 into this space, messages to be pronounced can be exchanged in units of 32 types. It is now possible.

また、後述する如く、音声メモリカード57には、ジャ
ンパ線の着脱により状態設定が可能な識別ビットが設け
られており、後述するMPU501では、この識別ビッ
トの論理状態に応じて、当該音声メモリカードが、ビッ
ト対応命令用かコード対応命令用かを識別可能になって
いる。
Further, as described later, the voice memory card 57 is provided with an identification bit whose state can be set by attaching/detaching a jumper wire. However, it is possible to identify whether the instruction is for a bit-compatible instruction or a code-compatible instruction.

さらに、ハウジング51の背面には、図示しないプラグ
58が突出形成されており、このプラグ58をラック6
上に敷設されたシステムバス上のソケット59に差込む
ことによって、CPUユニット3との接続を行なうよう
になっている。
Furthermore, a plug 58 (not shown) is formed protruding from the rear surface of the housing 51, and this plug 58 is connected to the rack 6.
The CPU unit 3 is connected to the CPU unit 3 by inserting it into a socket 59 on the system bus installed above.

音声出カニニット5の電気的な構成を第7図に示す。同
図に示す如く、音声出カニニット5は8ビツト構成のマ
イクロプロセッサ(MPU)501を主体として構成さ
れており、そのデータバスDB”、アドレスバスAB−
,コントロールバスCB−には、システムプログラムR
OM502゜ワーキングRAM503が接続されている
The electrical configuration of the audio output unit 5 is shown in FIG. As shown in the figure, the audio output unit 5 is mainly composed of an 8-bit microprocessor (MPU) 501, and its data bus DB'', address bus AB-
, control bus CB- has the system program R
A working RAM 503 is connected to the OM502.

システムブログヴムROM502内には、音声出カニニ
ットの制御に必要なシステムプログラムが予め記憶され
ており、このプログラムの内容については後述するフロ
ーチャートで詳細に説明する。
A system program necessary for controlling the voice output unit is stored in advance in the system blog ROM 502, and the contents of this program will be explained in detail with reference to a flowchart to be described later.

ワーキングRAM503内には、第8図に示す如く、第
1.第2のスタックエリアが設けられており、後述する
如く、これらのスタックエリアには、コード対応命令の
場合には32ビツトの音声出力命令そのものが、またビ
ット対応命令の場合にはその解読結果に相当するBCD
コードで表わされたメツセージNo、が記憶される。な
お、これらスタックエリアの機能については、後に詳細
に説明する。
In the working RAM 503, as shown in FIG. A second stack area is provided, and as described later, these stack areas contain the 32-bit audio output instruction itself in the case of a code-compatible instruction, and the decoding result in the case of a bit-compatible instruction. Equivalent BCD
The message number represented by the code is stored. Note that the functions of these stack areas will be explained in detail later.

音声出カニニット5内のデータバスDB”と、プログラ
マブル・コントローラのデータバスDBとは、ソケット
59.プラグ58.ラッチ部504およびラッチ部50
5を介して接続されている。
The data bus DB in the audio output unit 5 and the data bus DB in the programmable controller are the socket 59, the plug 58, the latch section 504, and the latch section 50.
5.

ラッチ部504は、8ビツト構成のラッチ回路を4個並
列に接続し、アドレスデコーダを介して各ラッチ回路に
択一的にアクセスするようにしたものである。
The latch unit 504 has four 8-bit latch circuits connected in parallel, and each latch circuit is selectively accessed via an address decoder.

従って、CPUユニット3からアドレスバスDB上に、
8ビット単位で4回に分けて時分割的に送出されたデー
タは、このラッチ部504の作用によって、並列32ビ
ツトに変換される。また、特にこの例では、並列変換後
の第14ビツト目は、専用の割込み信号(割込み2)と
して、MPU501に供給されている。
Therefore, from the CPU unit 3 to the address bus DB,
The data transmitted in a time-division manner in four 8-bit units is converted into 32-bit data in parallel by the action of the latch section 504. Furthermore, particularly in this example, the 14th bit after parallel conversion is supplied to the MPU 501 as a dedicated interrupt signal (interrupt 2).

ラッチ部505は、8ビツト構成のラッチ回路を4個並
列に設け、その出力側に設けたゲートの出力を8ビット
単位で共通接続したもので、各ラッチ回路を同時にトリ
ガし、かつ各ゲートをアドレスデコーダの出力で択一的
に動作させることによって、並列32ビツトのデータ、
すなわち音声出力命令を、8ピット単位でデータバスD
B”上に送り出すことが可能となっている。
The latch unit 505 has four 8-bit latch circuits arranged in parallel, and the outputs of the gates provided on the output side are commonly connected in units of 8 bits, so that each latch circuit is triggered simultaneously, and each gate is By selectively operating the address decoder output, parallel 32-bit data,
In other words, audio output commands are sent to the data bus D in units of 8 pits.
It is possible to send it out onto "B".

LED表示器52は、前述した如く32ビツト構成のも
ので、ハウジング51のフロントパネル上部に配列され
ている。このLED表示器52は、前述したラッチ部5
04と略同−構成のラッチ部506を介して、データバ
スDB−に接続されている。
The LED display 52 has a 32-bit configuration as described above, and is arranged on the upper part of the front panel of the housing 51. This LED indicator 52 is connected to the latch section 5 described above.
It is connected to the data bus DB- through a latch section 506 having substantially the same configuration as 04.

DIPスイッチ54は、前述した如く8ビツト構成のも
ので、ハウジング51のフロントパネル上に取り付けら
れている。このDIPスイッチ54は、ゲート部507
を介してデータバスDB−に接続されている。
The DIP switch 54 has an 8-bit configuration as described above, and is mounted on the front panel of the housing 51. This DIP switch 54 has a gate section 507
The data bus DB- is connected to the data bus DB-.

次に、音声信号発生部の構成を説明する。この実施例で
は、音声合成方式として、ADPCM方式(Adapt
ive Differencial Pu1se Co
ded Hoduration)が採用され、これによ
り音質の向上が図られている。なお、音声信号発生部の
構成としてはPARCOR方式等でも良い。
Next, the configuration of the audio signal generator will be explained. In this embodiment, the ADPCM method (Adapt
ive Differential Pulse Co
ded hoduration) has been adopted, thereby improving the sound quality. Note that the configuration of the audio signal generating section may be a PARCOR system or the like.

音声データROM508は前述した音声メモリカード5
7に内蔵されるもので、第9図に示す如く1ワード8ビ
ツトのメモリで構成されている。
The audio data ROM 508 is the audio memory card 5 described above.
7, and is composed of a memory of 8 bits per word as shown in FIG.

そして、この音声データROM508内には、メツセー
ジNo、別にスタートアドレス、ストップアドレスをそ
れぞれ記憶させたアドレス記憶エリア508aと、メツ
セージNo、別に音声データを記憶させた音声データ記
憶エリア508bが設けられている。
This audio data ROM 508 is provided with an address storage area 508a in which the message number, a separate start address, and a stop address are stored, and an audio data storage area 508b in which the message number and audio data are stored separately. .

また、音声データROM50Bには、ジャンパ線509
の接離により状@設定が可能な識別ビットが設けられて
おり、この識別ビットの内容は特定のアドレスに対応し
て、データバスDB=上に読出し可能となっている。そ
して、この識別ビットの内容により、ビット対応命令用
かコード対応命令用かを識別可能としている。
In addition, a jumper wire 509 is connected to the audio data ROM 50B.
An identification bit whose state can be set by connecting and separating is provided, and the contents of this identification bit can be read onto the data bus DB= in response to a specific address. Depending on the contents of this identification bit, it is possible to identify whether the instruction is for a bit-compatible instruction or a code-compatible instruction.

音声合成部510は、音声データROM508から出力
される1バイト分のデータに対応して、微小時間分の音
声信号を合成するとともに、合成が終了するたびに割込
み信号(割込み1)をMPU501に送り返すようにな
っている。
The voice synthesis unit 510 synthesizes a minute time worth of voice signals in response to 1 byte of data output from the voice data ROM 508, and sends an interrupt signal (interrupt 1) back to the MPU 501 every time the synthesis is completed. It looks like this.

ローパスフィルタ511では音声合成部510から出力
される音声信号から、高調波成分を除去する。次いで、
高調波成分を除去された音声信号は、2系統に分岐され
、一方の系統はトランス512の一次側へと、また他方
の系統はモニタ用アンプ513の入力へと供給される。
The low-pass filter 511 removes harmonic components from the audio signal output from the audio synthesizer 510. Then,
The audio signal from which harmonic components have been removed is branched into two systems, one system being supplied to the primary side of the transformer 512, and the other system being supplied to the input of the monitor amplifier 513.

トランス512の二次側出力と、アンプ513の出力と
は、切替スイッチ514を介して択一的にジャック53
へと導出可能となっており、これにより切替スイッチ5
14をアンプi13側へと切替えれば、ジャック53に
直接モニタ用スピーカを接続して音声テスト等を行なう
ことが可能となっている。なお、この切替スイッチ51
4はハウジング51の内部に取付けられ、蓋55を取外
して操作するようにしている。
The secondary output of the transformer 512 and the output of the amplifier 513 are selectively connected to the jack 53 via a changeover switch 514.
This makes it possible to derive the changeover switch 5.
14 to the amplifier i13 side, it is possible to connect a monitor speaker directly to the jack 53 and perform audio tests, etc. Note that this changeover switch 51
4 is attached inside the housing 51, and is operated by removing the lid 55.

また、ローパスフィルタ511の出力を2系統に分岐し
、一方をトランス512を介してジャック53へと導出
する一方、他方をモニタアンプ513を介してジャック
53へと導出するように構成しているため、増幅後の音
声信号と原音声信号とを択一的に同一のジャックに導出
し得るという基本的な効果に加え、原音声信号を外部の
増幅器に導く場合にあっても、外部アンプ側のアースを
基準として信号を取出すことができるため、アース電位
が安定してノイズ等の影響を受けにくいという効果があ
る。
Furthermore, since the output of the low-pass filter 511 is branched into two systems, one of which is led out to the jack 53 via the transformer 512, and the other is led out to the jack 53 via the monitor amplifier 513, In addition to the basic effect that the amplified audio signal and the original audio signal can be selectively routed to the same jack, even when the original audio signal is routed to an external amplifier, the external amplifier side Since signals can be extracted with the ground as a reference, the ground potential is stable and less susceptible to noise and the like.

すなわち、トランス512を介さずに、ローパスフィル
タ511の出力を直接にジャックへ導出した場合、外部
アンプのアースと、音声用カニニット5のアースとを共
通接続することが必要となるが、この際両者間に電位差
が生じてノイズが信号に乗りやすいという状態が生ずる
が、本発明にあってはこのような配慮を必要としないわ
けである。
That is, if the output of the low-pass filter 511 is led directly to the jack without going through the transformer 512, it is necessary to connect the ground of the external amplifier and the ground of the audio crab unit 5 in common. Although a potential difference occurs between the two and the signal tends to be affected by noise, the present invention does not require such considerations.

次に、システムプログラムROM502内に記憶された
制御用システムプログラムの構成を説明する。
Next, the configuration of the control system program stored in the system program ROM 502 will be explained.

この制御用システムプログラムは、命令フォーマットの
異なる2種類の音声出力命令に対して対応可能となって
いる。
This control system program is compatible with two types of audio output commands having different command formats.

第1のフォーマットの音声出力命令を第10図に示す。FIG. 10 shows the audio output command in the first format.

この音声出力命令はOピットル31ビツトからなる32
ビツト長データで構成され、またOピットル31ビツト
の各内容は、それぞれメツセージNo、O〜メツセージ
No、31に対応している。例えば、7ビツト目が“′
1″ということは、発音すべきメツセージ内容がメツセ
ージN0.7に対応することを意味する。
This audio output command consists of 32 bits of O pitles.
It is composed of bit length data, and each content of the 31 bits of O pits corresponds to message No. O to message No. 31, respectively. For example, the 7th bit is "'
1'' means that the message content to be sounded corresponds to message No. 0.7.

また、各ビットの内容が“0″から“1″に変化するこ
とによって、当該ビットに対応するメツセージの音声出
力開始指令有りを表わすようになっている。以下、この
第1のフォーマットの音声出力命令を、ピット対応命令
と称することとする。
Further, the content of each bit changes from "0" to "1" to indicate that there is an instruction to start audio output of the message corresponding to the bit. Hereinafter, this first format audio output command will be referred to as a pit compatible command.

第2のフォーマットの音声出力命令を、第11図に示す
。この音声出力命令もやはりOピットル31ビツトから
なる32ビツト長データで構成されている。
The audio output command in the second format is shown in FIG. This audio output command also consists of 32-bit length data consisting of 31 bits of O pitles.

そして、0ビツト〜7ビツトからなる1バイト部分、2
4ビット〜31ビットからなる1バイト部分および16
ビツト〜23ビツトからなる1バイト部分には、それぞ
れ1番目、2番目および3番目に発音ずべき内容に相当
するメツセージNo。
Then, a 1-byte portion consisting of 0 bits to 7 bits, 2
1 byte part consisting of 4 bits to 31 bits and 16 bits
The 1-byte portion consisting of bits to 23 bits contains message numbers corresponding to the contents to be pronounced first, second, and third, respectively.

が、BCDコードで記憶されている。is stored in BCD code.

また、8ビツト〜11ビツトからなる4ビツト部分には
繰り返し回数が、12ビツト〜13ビツトにはメツセー
ジ連結数が、それぞれ記憶される他、14ビツト目はメ
ツセージ認識ビットとされ、“0パから“1′′への状
態変化によって、音声出力開始指令の有りを表わす他、
15ビツト目は優先機能選択ビットとされ、1′′によ
って優先機能選択有りを表わすようになっている。以下
、この第2のフォーマットの音声出力命令を、コード対
応命令と称することにする。
In addition, the 4-bit part consisting of 8 bits to 11 bits stores the number of repetitions, and the 12 bits to 13 bits store the number of message concatenations.The 14th bit is used as a message recognition bit, and is stored in "0 to 13 bits". In addition to indicating the presence of a voice output start command by changing the state to “1'',
The 15th bit is a priority function selection bit, and 1'' indicates that the priority function is selected. Hereinafter, this second format audio output command will be referred to as a code-compatible command.

次に、以上の各命令フォーマットを前提として、システ
ムプログラムの動作をビット対応命令の場合から説明す
る。
Next, on the premise of each of the above instruction formats, the operation of the system program will be explained starting from the case of bit-compatible instructions.

なお、後に詳細に説明するが、ピット対応命令をCPU
ユニット3から音声出カニニット5に対して送り込むた
めには、例えば入出力アドレス空間のO〜1チャンネル
(1チヤンネルは16ビツト)に音声出カニニットをア
ドレス割付けし、ユーザプログラム内においてOUT命
令を使用し、所望のメツセージNo、に対応する出力リ
レーを、所望のタイミングで動作させるようにプログラ
ムすれば良い。
Note that, as will be explained in detail later, pit-compatible commands are executed by the CPU.
In order to send data from the unit 3 to the audio output unit 5, for example, assign the address of the audio output unit to channels 0 to 1 (one channel is 16 bits) in the input/output address space, and use the OUT command in the user program. , the output relay corresponding to the desired message number may be programmed to operate at the desired timing.

このようなプログラミングを行なえば、所望のピット対
応命令に相当する32ビツトのデータは前述の出力更新
処理(第3図ステップ305)によって、CPUユニッ
ト3内の入出力状態RAM31から音声出カニニット5
内のラッチ部504へと自動的に転送される。
If such programming is performed, the 32-bit data corresponding to the desired pit-compatible command will be transferred from the input/output state RAM 31 in the CPU unit 3 to the audio output crab unit 5 by the aforementioned output update process (step 305 in FIG. 3).
The data is automatically transferred to the latch unit 504 inside.

第12図において、電源投入などにより、プログラムが
スタートすると、一般的な公知のイニシャライズ処理(
図示せず)を経た後、命令種別がピット対応命令かコー
ド対応命令かの判定処理が行なわれる(ステップ120
1>。
In Fig. 12, when the program is started by turning on the power, etc., the general well-known initialization process (
(not shown), a determination process is performed as to whether the instruction type is a pit-compatible instruction or a code-compatible instruction (step 120).
1>.

この判定処理は、音声データROM508のジャンパ線
509により設定された識別ビットの状態を、データバ
スDB−を介して読込むことにより行なわれる。
This determination process is performed by reading the state of the identification bit set by the jumper line 509 of the audio data ROM 508 via the data bus DB-.

ここで、ピット対応命令と判定されると(ステップ12
01ビツト対応命令)、ワーキングRAM503内の第
1.第2スタツクエリア等に対するイニシャライズ処理
を経た後(ステップ1202)、命令解読から発音指令
に至る一連の動作が開始される。
Here, if it is determined that it is a pit compatible command (step 12
01 bit corresponding command), the 1st . After initializing the second stack area and the like (step 1202), a series of operations from command decoding to generation command is started.

今仮に、音声出カニニットに割り当てられた32ビツト
分の出力リレーがすべてOFFであり、後述する発音中
フラグF1が非発音中にセットされており、第1.第2
スタツクエリアは空の、状態にあり、ざらにテストスイ
ッチ(DIRスイッチ54の第2ビツト目に相当)がO
Nであると仮定する。
Suppose now that all 32 bits of output relays assigned to the sound output unit are OFF, the sounding flag F1 (described later) is set to the non-sounding state, and the first... Second
The stack area is in an empty state, and the rough test switch (corresponding to the second bit of the DIR switch 54) is OFF.
Assume that N.

この状態において、プログラムが起動されると、“非発
音中パ(ステップ1203否定)、スタックにメツセー
ジNo、に相当するBCDコード無しくステップ120
4否定)、テストスイッチ0FF(ステップ1205否
定)とそれぞれ判定された後、当該時点でラッチ部50
4にラッチされた32ビツト長のピット対応命令は、ラ
ッチ部505へと並列に転送ラッチされる。
In this state, when the program is started, if there is no BCD code corresponding to the message number in the stack and there is no BCD code corresponding to the message number in the stack,
4 negative) and the test switch 0FF (step 1205 negative), the latch unit 50
The 32-bit length pit corresponding instruction latched in bit 4 is transferred and latched in parallel to the latch unit 505.

次いで、このラッチされたピット対応命令を、8ビツト
ずつ4回に分けて時分割的に読込み、前回の読込みデー
タと比較することによって、“0゛′(ステップ120
7否定)、ステップ1203に戻り以上の動作を繰り返
す。
Next, this latched pit corresponding instruction is read in a time-sharing manner four times each with 8 bits, and is compared with the previous read data to obtain "0" (step 120).
7 (No), the process returns to step 1203 and the above operations are repeated.

これに対して、CPUユニット3における命令実行の結
果、音声出カニニットにυjり当てられた出力リレーの
いずれか1つがONすると、変化ビット有り、すなわち
音声出力開始指令有りと判定され(ステップ1207肖
定)、次いで命令解読処理が行なわれる(ステップ12
08>。
On the other hand, when any one of the output relays assigned to the audio output unit υj turns ON as a result of the command execution in the CPU unit 3, it is determined that there is a change bit, that is, there is an audio output start command (step 1207). (step 12), then instruction decoding processing is performed (step 12).
08>.

この命令解読処理では、“0+eから“1゛°に変化し
たビットが、Oピットル31ビツトのいずれで有るかを
検出し、この検出されたピッ1〜番号をメツセージNo
、として、これに対応するBCDコードを第8図に示す
ワーキングRAM503内の第1スタツクエリアに格納
する。なお、後述するが、ビット対応命令の場合、第1
.第2スタツクエリアに何等機能上の相違はない。
In this instruction decoding process, it is detected which of the 31 O pitles the bit that changed from "0+e" to "1°" is, and the detected bits 1 to 1 are assigned to the message No.
, and the corresponding BCD code is stored in the first stack area in the working RAM 503 shown in FIG. Note that, as will be described later, in the case of bit-compatible instructions, the first
.. There is no functional difference in the second stack area.

ステップ1203に始まる次の動作サイクルでは、スタ
ックにメツセージNo、に相当するBCDコード有りと
判定され(ステップ12041定)、1秒間ポーズ処理
を経た後(ステップ1209)、発音指令処理へと移行
する。
In the next operation cycle starting at step 1203, it is determined that there is a BCD code corresponding to the message No. in the stack (step 12041), and after passing through pause processing for one second (step 1209), the process shifts to sound production command processing.

なお、この1秒間ポーズ処理(ステップ1209)は、
後述する如く、複数のメツセージを連続的に発音させる
場合、メツセージ間に1秒間の無音期間を挿入するため
のものでおる。
Note that this one-second pause process (step 1209) is
As will be described later, this is for inserting a silent period of one second between messages when a plurality of messages are to be sounded continuously.

発音指令処理の内容には、優先機能有りの場合と無しの
場合とがあり、これらは優先機能選択スイッチ(DIP
スイッチ54の第Oビットに相当)の状態を読込むこと
により設定される。
There are two types of sound generation command processing: with and without a priority function, and these are determined by the priority function selection switch (DIP).
It is set by reading the state of the bit (corresponding to the Oth bit of the switch 54).

ここでは、優先機能無しの場合を先に説明し、優先機能
有りの場合は、後に詳細に説明する。
Here, the case without the priority function will be explained first, and the case with the priority function will be explained in detail later.

優先機能選択スイッチの状態に基づいて、優先機能無し
と判定されると(ステップ1210否定)、第1.第2
スタツクエリアに記憶された1もしくは2以上のメツセ
ージNo、の中で、最初に記憶されたメツセージNo、
が読み出され(ステップ1211)、この読みだされた
メツセージNo、によって、音声データROM50.8
がアクセスされて、メツセージNO0に対応するスター
ト、ストップアドレスの読み込みが行なわれる(ステッ
プ1213)。なお、この際第1.第2スタツクエリア
は直列のFIFOスタックとして動作し、読出されたメ
ツセージNo、データは消失する。
If it is determined that there is no priority function based on the state of the priority function selection switch (No in step 1210), the first. Second
The message number stored first among one or more message numbers stored in the stack area,
is read out (step 1211), and the voice data ROM 50.8 is read out according to the read message number.
is accessed, and the start and stop addresses corresponding to message NO0 are read (step 1213). In addition, at this time, 1. The second stack area operates as a serial FIFO stack, and read message numbers and data are lost.

次いで、読込まれたスタートアドレスに基づいて、音声
データROM508のアドレス設定が行なわれ(ステッ
プ1214)、ラッチ部506を介して、メツセージN
o、に対応するLEDの点灯が行なわれた後(ステップ
1215>、最終的に音声合成部510に対してスター
ト指令が発せられ、同時に発音中フラグF1は“発音中
″にセットされる(ステップ1216>。以後、ステッ
プ1203に戻り、次の実行サイクルに移行するわけで
ある。
Next, the address of the audio data ROM 508 is set based on the read start address (step 1214), and the message N is set via the latch section 506.
After the LED corresponding to o is turned on (step 1215>), a start command is finally issued to the speech synthesis unit 510, and at the same time, the sounding flag F1 is set to "sounding" (step 1215). 1216>. After that, the process returns to step 1203 and moves to the next execution cycle.

一方、音声データROM508側では、スタートアドレ
スの設定に応じて、該当アドレスに記憶された1バイト
分のデータを音声合成部510へと送出する。音声合成
部510では、スタート指令に応答して、音声合成処理
を行ない、該当メツセージNo、に対応する微小時間分
の音声信号を合成し、合成が終了すると割込み信号(割
込み1)をMPU501に返送する。
On the other hand, on the audio data ROM 508 side, according to the setting of the start address, 1 byte of data stored at the corresponding address is sent to the audio synthesis section 510. In response to the start command, the speech synthesis section 510 performs speech synthesis processing, synthesizes a minute period of speech signals corresponding to the corresponding message number, and returns an interrupt signal (interruption 1) to the MPU 501 when the synthesis is completed. do.

すると、MPU501側では、割込み信号(割込み1)
に応答して、以後第13図に示される発音継続処理を実
行する。
Then, on the MPU501 side, the interrupt signal (interrupt 1)
In response to this, the sound generation continuation process shown in FIG. 13 is executed thereafter.

すなわち、まず後述する中断指令無しを確認した後(ス
テップ1301否定〉、ビット対応命令の場合には(ス
テップ1302ビツト対応)、現在の設定アドレスが前
述のストップアドレスに達するまでの間(ステップ13
03否定)、音声合成部510から割込み信@(割込み
1)が返送されるたびに、現在の設定アドレスを順次イ
ンクリメントしくステップ1304)、新アドレスによ
って音声データROM508をアドレス設定する(ステ
ップ1305)。
That is, first, after confirming that there is no interruption command (described later) (step 1301, negative), in the case of a bit-compatible instruction (step 1302, bit-compatible), the command is executed until the current set address reaches the above-mentioned stop address (step 13).
03 (No), and each time an interrupt signal @ (interrupt 1) is returned from the voice synthesis section 510, the currently set address is sequentially incremented (step 1304), and the voice data ROM 508 is set to the new address (step 1305).

これに対して、現在の設定アドレスがストップアドレス
に達した場合には(ステップ1303肯定)、音声合成
部510に対してストップ指令を発するとともに、発音
中フラグF+を“非発音中′。
On the other hand, if the current set address has reached the stop address (step 1303 affirmative), a stop command is issued to the speech synthesis unit 510, and the sounding flag F+ is set to "non-sounding".

にリセットしくステップ1306)、同時にそれまで発
音されていたメツセージNO,に対応するLEDを消灯
する(ステップ1307)。
(Step 1306), and at the same time, the LED corresponding to the message NO., which had been sounded until then, is turned off (Step 1307).

以後、DIPスイッチ54の第3ビツト〜第6ビツトで
与えられる繰り返し回数情報がrOJである場合には(
ステップ1308肯定)、直ちに発音継続処理を終了し
て、当該メツセージNo、に係わる音声の1回分の発音
処理を終了し、次の発音指令を待機する。
Thereafter, when the repetition number information given by the third to sixth bits of the DIP switch 54 is rOJ, (
Step 1308 (Yes), immediately ends the pronunciation continuation process, completes the pronunciation process for one round of the voice related to the message number, and waits for the next pronunciation command.

また、DIPスイッチ54の第3ビツト〜第6ビツトか
ら読込まれた繰り返し情報がrNJの場合には、同一の
メツセージNo、に:関してN+1回分だけ発音指令を
発する(ステップ1309,1310.1311>。
Furthermore, if the repetition information read from the third to sixth bits of the DIP switch 54 is rNJ, a sound generation command is issued for the same message number N+1 times (steps 1309, 1310, 1311> .

以上一連の処理が行なわれると、音声合成部510から
は、メツセージNo、に対応する音声信号が出力され、
この音声信号はローパスフィルタ511を介して高調波
成分を除去された後、切替えスイッチ514の設定状態
に応じて、トランス512を介して直接ジャック53へ
と、またモニタアンプ513を介してジャック53へと
択一的に供給される。
When the above series of processing is performed, the speech synthesis unit 510 outputs an audio signal corresponding to the message No.
This audio signal passes through a low-pass filter 511 to remove harmonic components, and then goes directly to the jack 53 via a transformer 512 or to the jack 53 via a monitor amplifier 513, depending on the setting state of the changeover switch 514. is supplied alternatively.

従って、切替えスイッチ514をトランス512側へと
切替えた状態で、第6図に示す如く、プラグ56をジャ
ック53に差込みさえすれば、音声用カニニット5自体
から原音声信号を取出すことができ、これにアンプを接
続しさえすれば、該当メツセージをスピーカから発音さ
せることができる。
Therefore, the original audio signal can be extracted from the audio crab unit 5 itself by simply inserting the plug 56 into the jack 53 as shown in FIG. As long as you connect an amplifier to the speaker, you can hear the corresponding message from the speaker.

また、切替えスイッチ514をアンプ513側へ接続し
た状態で、プラグ56をジャック53に差込めば、ある
程度増幅された音声信号を得ることもでき、これをモニ
タスピーカに直接供給して、俊述する音声出力テストを
行なうことができる。
Furthermore, by inserting the plug 56 into the jack 53 with the selector switch 514 connected to the amplifier 513 side, it is possible to obtain a somewhat amplified audio signal, which is then directly supplied to the monitor speaker. You can perform an audio output test.

このように、ビット対応の音声出力命令を解読した結要
、音声出力開始指令有りが検出され、かつその検出時点
においていかなる音声信号も発生されていない場合には
、検出されたメツセージNO1に係わる内容の音声信号
を直ちに発生させることができる。
As a result of decoding the bit-compatible audio output command, if the presence of an audio output start command is detected and no audio signal is generated at the time of detection, the content related to the detected message No. 1 is audio signals can be generated immediately.

また、この際DIRスイッチ54の第3ビツト〜第6ビ
ツトから繰り返し回数情報Nを与えてやれば、同一メツ
セージを1秒間の無音期間をおいて、N回繰り返し発生
させることもできる。
Furthermore, if repeat count information N is given from the third to sixth bits of the DIR switch 54 at this time, the same message can be repeatedly generated N times with a silent period of one second.

なお、ビット対応命令を解読する際に、CPUユニット
側の同一命令実行サイクル中に2個以上の出力リレーが
同時にONされた場合には、ONされたリレーの中で、
メツセージNo、の最も小さいメツセージが優先される
Note that when decoding a bit-compatible instruction, if two or more output relays are turned on at the same time during the same instruction execution cycle on the CPU unit side, among the turned-on relays,
The message with the smallest message number is given priority.

次に、音声出力開始指令有りが検出された時点において
、いずれかのメツセージに対応する音声信号がすでに発
生中であった場合の処理について、優先機能無しの場合
と優先機能ありの場合とに分けて説明する。
Next, the process to be performed when an audio signal corresponding to one of the messages is already being generated at the time when the presence of an audio output start command is detected is divided into the case without the priority function and the case with the priority function. I will explain.

まず優先機能無しの場合から説明すると、第12図にお
いてなんらかの音声信号発音中(ステップ1203肖定
)に得られた(ステップ1217>音声出力命令を解読
した結果、音声出力開始指令有りが検出されると(ステ
ップ1218肯定)、優先機能無しをV&認した後(ス
テップ1219否定)、検出されたメツセージNo、を
第1.第2スタツクエリアにブツシュする。ここで、優
先機能無しの場合、第1.第2スタツクエリアは直列の
FIFOスタックとして機能する。
First, to explain the case without the priority function, in FIG. 12, the presence of an audio output start command is detected as a result of decoding the audio output command obtained during the generation of some audio signal (step 1203). (step 1218, affirmative), and after confirming that there is no priority function (step 1219, negative), the detected message number is pushed to the first and second stack areas.Here, if there is no priority function, the first and second stack areas. The second stack area functions as a serial FIFO stack.

以後、現在発生中の音声信号が終了するまでの間(ステ
ップ1203肯定)、音声出力命令の取込み(ステップ
1217)、および解読を繰り返しながら待機して、こ
の間にさらに音声出力開始指令有りが検出されれば(ス
テップ1211定)、優先機能無しを確認した上(ステ
ップ1219否定)、検出されたメツセージNo、デー
タを前述と同様にしてスタックエリア内に順次ブツシュ
する(ステップ1224)。
Thereafter, until the currently generated audio signal ends (step 1203 affirmative), the system waits while repeating the acquisition of audio output commands (step 1217) and decoding, and during this time, the presence of an audio output start command is detected. If so (step 1211), it is confirmed that there is no priority function (step 1219 negative), and the detected message numbers and data are sequentially bushed into the stack area in the same manner as described above (step 1224).

この間に、それまで発生されていた音声信号が終了する
とくステップ1203否定)、前述した発音開始指令へ
と移行しくステップ1204向定。
During this time, if the audio signal that has been generated up to that point ends (step 1203: negative), it is determined to proceed to step 1204 to proceed to the above-mentioned sound generation start command.

1209> 、優先機能無しを確認した上(ステップ1
210否定)、第1.第2スタツクエリアを直列のF 
IFO(First In First 0ut) ス
タフ’)として機能させ、最初に記憶された最も古いメ
ツセージNo、を続出し、このメツセージNo、につい
て前述した発音指令処理(ステップ1213,1214
.1215,1216>および第13図に示す発音継続
処理を実行する。
1209>, after confirming that there is no priority function (step 1
210 negation), 1st. The second stack area is connected to the F in series.
It functions as an IFO (First In First Out staff'), successively stores the oldest message number stored first, and performs the above-mentioned pronunciation command processing (steps 1213 and 1214) for this message number.
.. 1215, 1216> and the sound generation continuation process shown in FIG. 13 is executed.

以後、当該メツセージの音声信号発生が終了するたびに
(ステップ1203否定)、より新しいメツセージNO
,を順次読出しくステップ1211)、同様な発音指令
処理および発音継続処理を実行するわけである。
Thereafter, each time the generation of the audio signal for the message ends (No in step 1203), a newer message NO.
, are sequentially read out (step 1211), and similar sound generation command processing and sound generation continuation processing are executed.

このように、なんらかの音声信号発生時間中(この例で
は最大30秒)に、1もしくは2以上の他の音声出力開
始指令が到来し、かつ優先機能無しの場合、この実施例
では、現在発音中の音声信号が終了するたびに、順次1
秒間隔で各メツセージNo、に対応する音声信号を到来
順に発生させることができる。
In this way, if one or more other audio output start commands arrive during some audio signal generation time (up to 30 seconds in this example) and there is no priority function, in this embodiment 1 in sequence every time the audio signal ends.
It is possible to generate audio signals corresponding to each message number at intervals of seconds in the order in which they arrive.

次に、優先機能有りの場合について説明すると、前述し
た如く音声出力開始指令有りが検出され(ステップ12
18肯定)、かつ優先機能有りと判定された場合には(
ステップ1219肯定)、現在発音中のメツセージと到
来したメツセージとの間における優先順位の比較が行な
われる。この例では、メツセージNo、が小さいほど優
先順位が高いものと取り決めている。
Next, to explain the case where the priority function is present, as mentioned above, the presence of the voice output start command is detected (step 12).
18 (affirmative), and if it is determined that there is a priority function (
In step 1219 (Yes), a priority comparison is made between the message currently being sounded and the message that has arrived. In this example, it is decided that the smaller the message number, the higher the priority.

ここで、到来したメツセージの方が優先順位が低い場合
には(ステップ1220否定)1、検出されたメツセー
ジNo、は優先機能無しの場合と同様に直ちにスタック
エリアへとブツシュされる。
Here, if the incoming message has a lower priority (No in step 1220), the detected message No. is immediately pushed to the stack area as in the case without the priority function.

これに対して、到来したメツセージの方が優先順位が高
いと判定された場合には(ステップ1220肖定)、音
声合成部510に対してストップ指令が送られ(ステッ
プ1221)、同時にメツセージNO0に対応するLE
Dは消灯され(ステップ1222)、さらに現在発音中
のメツセージNo、データは再びスタックエリアへと戻
される。
On the other hand, if it is determined that the incoming message has a higher priority (step 1220), a stop command is sent to the speech synthesis section 510 (step 1221), and at the same time message No. Corresponding LE
D is turned off (step 1222), and the message number and data currently being sounded are returned to the stack area.

これにより現在発音中のメツセージは強制的に中断され
る。
As a result, the message currently being sounded is forcibly interrupted.

以後、現在発音中のメツセージが終了するまでの間(ス
テップ1203肯定)、音声出力命令の解読が繰り返し
行なわれ(ステップ1217>、その間に新たな音声出
力開始指令有りが検出されれば(ステップ1218肯定
)、前述した優先順位に応じたいずれかの処理が行なわ
れる。
Thereafter, until the message currently being produced ends (step 1203 affirmative), the voice output command is repeatedly decoded (step 1217>, and if a new voice output start command is detected during that time (step 1218) (Yes), one of the processes according to the priority order described above is performed.

一方、それまで発音されていたメツセージが終了または
前述した如く強制的に中断されると(ステップ1203
否定)、スタックにメツセージNO,データ有りを確認
した後(ステップ1204肯定)、前述した発音開始指
令へと移行する。
On the other hand, when the message that has been being sounded ends or is forcibly interrupted as described above (step 1203
After confirming that the message No. and data are present in the stack (step 1204 affirmative), the process proceeds to the above-mentioned sound generation start command.

優先機能有りの場合の発音指令においては(ステップ1
210肯定)、スタックエリアに記憶されたメツセージ
No、の中で、その時点で最も最小のメツセージNo、
が読み出され、この読みだされたメツセージNo、に従
って前述の発音指令処理(ステップ1213,1214
.1215.1216)および第13図に示される発音
継続処理が行なわれる。
In the sound generation command with priority function (Step 1
210 affirmative), the smallest message number at that time among the message numbers stored in the stack area,
is read out, and the above-mentioned sound generation command processing (steps 1213 and 1214) is performed according to the read message number.
.. 1215, 1216) and the sound generation continuation process shown in FIG. 13 is performed.

そして、スタックエリアに記憶された各メツセージNo
、に対応した音声信号の発生が終了するたびに(ステッ
プ1203否定)、すでに発音されたものを除き最小の
メツセージNo、が順次スタックから読込まれ(ステッ
プ1212> 、同様にして発音指令処理および発音継
続処理が行なわれる。
Then, each message number stored in the stack area
, each time the generation of the audio signal corresponding to , is completed (No in step 1203), the smallest message number excluding those that have already been uttered is sequentially read from the stack (step 1212>), and similarly, the generation command processing and the generation are performed. Continuation processing is performed.

このように、優先機能有りの場合には、なんらかのメツ
セージ発音中に1もしくは2以上の発音指令が到来した
場合、現在発音中のメツセージを含めて現在発音指令を
受けている全メツセージの中で、最もメツセージNo、
の小さいメツセージが優先的に順次発音されることとな
る。
In this way, with the priority function, if one or more production commands arrive while a certain message is being produced, among all the messages that are currently receiving production commands, including the message that is currently being produced, Most message No.
Messages with a smaller number are preferentially pronounced sequentially.

従って、より緊急度の高いメツセージに対するメツセー
ジNo、がより小さい数値となるように音声データRO
Mを構成することによって、優先度を加味した音声出力
プログラムを作成することが可能となる。
Therefore, the voice data RO is set so that the message number for a message with a higher degree of urgency becomes a smaller value.
By configuring M, it becomes possible to create an audio output program that takes priority into consideration.

次に、音声用カニニット5側に設けられたスイッチから
の指令(模擬音声出力命令)によって、指定されたメツ
セージを発音させる発音テストについて説明する。
Next, a pronunciation test will be described in which a specified message is produced by a command (simulated sound output command) from a switch provided on the sound crab knit 5 side.

この場合、DIPスイッチ54の第3ビツト〜第7ビツ
トからなる5ビツトのバイナリデータによって、メツセ
ージNo、ONNo、31のいずれかを指定するととも
に、テストスイッチ(DIPスイッチ54の第2ビツト
に相当)をOFFからONに設定する。
In this case, the message number, ON No., or 31 is specified using 5-bit binary data consisting of the third to seventh bits of the DIP switch 54, and the test switch (corresponding to the second bit of the DIP switch 54) Set from OFF to ON.

プログラムの実行中に、テストスイッチのOFF→ON
が検出されると(ステップ1205肯定)、続いてDI
Pスイッチ54の第3ビット〜第7ヒツトのメツセージ
No、データが読込まれ(ステップ1225)、以後前
述した発音指令処理(ステップ1213.1214,1
215.1216>および第13図に示される発音継続
処理が実行される。
Turn the test switch from OFF to ON while the program is running.
is detected (step 1205 affirmative), then DI
The message numbers and data of the 3rd to 7th bits of the P switch 54 are read (step 1225), and the above-mentioned sound generation command processing (steps 1213, 1214, 1) is then carried out.
215.1216> and the sound generation continuation process shown in FIG. 13 is executed.

従って、メツセージNo、をバイナリコードで設定した
後、テストスイッチをONしさえずれば、当該メツセー
ジに対応した音声信号を直ちに発生させることができ、
切替スイッチ54をモニタアンプ513側へ切替え、か
つジャック53にモニタスピーカを接続すれば、比較的
少音量をもってメツセージの内容を確認することができ
る。同時に、発音中のメツセージNo、に対応したLE
Dが点灯することによって、発音されたメツセージ内容
とメツセージNO,どの関係を容易に確認することがで
きる。
Therefore, after setting the message number in binary code, by turning on the test switch, the audio signal corresponding to the message can be immediately generated.
By switching the selector switch 54 to the monitor amplifier 513 side and connecting a monitor speaker to the jack 53, the contents of the message can be confirmed at a relatively low volume. At the same time, the LE corresponding to the message number being sounded
By lighting up D, it is possible to easily confirm the relationship between the content of the message being pronounced and the message number.

ざらに、なんらかのメツセージ発音中に、テストスイッ
チをON→OFFすると、発音継続処理においてメツセ
ージ中断指令有りと認識され(ステップ1301肖定)
、直ちに音声合成部510に対してストップ指令が発せ
られるとともに(ステップ1312)、LEDの消灯も
行なわれ(ステップ1313)、最大30秒間のメツセ
ージのすべてを聞かなくとも、任意の時点でメツセージ
の発音を強制的に中断させることができる。
Roughly speaking, if the test switch is turned from ON to OFF while some message is being generated, it will be recognized that a message interruption command has been issued during the generation continuation process (step 1301).
, a stop command is immediately issued to the speech synthesis unit 510 (step 1312), and the LED is also turned off (step 1313), so that the message can be pronounced at any time without having to listen to the entire message for up to 30 seconds. can be forcibly interrupted.

従って、順次メツセージの内容を確認するような場合、
各メツセージの発音初期の部分だけで内容がおおよそ理
解できるような場合には、この中断機能を利用して、各
メツセージの最初の部分だけを聞くことにより、テスト
時間の短縮化を図ることが可能となる。
Therefore, when checking the contents of messages sequentially,
If you can roughly understand the content from just the initial part of each message, you can use this interrupt function to shorten the test time by listening to only the first part of each message. becomes.

以上詳細に説明したように、ビット対応命令に対する動
作としては、(1)音声出力開始指令有りの検出に応答
して、直ちに該当音声を発音させる動作、(2)ユニッ
ト側で指定された繰り返し回数だけ、同一メツセージを
繰り返し発音させる動作、(3)なんらかの発音中に、
1もしくは2以上の別の発音指令が到来した場合、先の
発音が終了するのを待って順次各メツセージを到来順に
発音させる動作、(4)同様に発音中に1もしくは2以
上の別の発音指令が到来した場合、発音を中断した後到
来したすべてのメツセージの中で、メツセージNO,の
小さいものから順次優先的に発音させる動作、(5)ユ
ニット側から与えられた模擬音声出力命令に応答して、
指定されたメツセージNo、の音声を発音、中断させる
動作が可能である。
As explained in detail above, the operations in response to bit-compatible commands include (1) immediately generating the corresponding voice in response to the detection of a voice output start command, and (2) the number of repetitions specified on the unit side. (3) During some kind of pronunciation,
When one or more other pronunciation commands arrive, the operation waits for the previous pronunciation to finish and then sequentially pronounces each message in the order in which they arrive; (4) Similarly, one or more other pronunciations are made during the pronunciation. When a command arrives, among all the messages that arrived after interrupting the sound production, the message number is given priority in descending order of number. (5) Responds to the simulated voice output command given from the unit side. do,
It is possible to produce or interrupt the sound of a specified message number.

次に、コード対応命令に対応したシステムプログラムの
動作について説明する。
Next, the operation of the system program corresponding to the code-compatible instructions will be explained.

第12図において、電源投入によりプログラムがスター
トされ、音声データROM508の識別ビットを参照し
て、コード対応命令と判定されると、第15図のフロー
チャートへ移って、ワーキングRAMの第1.第2スタ
ツクエリア等についてのイニシャライズ処理を行なった
後(ステップ1501)、いずれのメツセージも発音中
でないことを条件として(ステップ1502否定)、第
1スタツクエリアに4バイト構成の音声出力命令が格納
されること(ステップ1503肯定)、第2スタツクエ
リアに音声出力命令が格納されること(ステップ150
41定)、またはテストスイッチ(DIRスイッチの第
2ビツトに相当)がONされること(ステップ1505
肯定)を待機する状態となる。
In FIG. 12, when the power is turned on, the program is started, and when it is determined that it is a code-compatible command by referring to the identification bit of the audio data ROM 508, the program moves to the flowchart of FIG. 15, and the first . After initializing the second stack area, etc. (step 1501), a 4-byte audio output command is stored in the first stack area, provided that no message is being produced (step 1502, negative). (Yes at step 1503), the audio output command is stored in the second stack area (step 150)
41 constant) or the test switch (corresponding to the second bit of the DIR switch) is turned on (step 1505
(affirmative).

一方、コード対応の音声出力命令の場合、第11図に示
されるように、第14ビツト目はメツセージ認識ビット
として割り当てられており、この第14ビツト目の“0
″から“1″への変化によって、音声出力開始指令有り
を表わすようになされている。
On the other hand, in the case of a code-compatible voice output command, the 14th bit is assigned as a message recognition bit, as shown in FIG.
A change from `` to 1'' indicates that an audio output start command has been issued.

また、第7図に示す如く、CPUユニットから送り出さ
れた音声出力命令をラッチするラッチ部504の第14
ビツト目の出力は、割込み信号(割込み2)として、M
PtJ501に供給されている。
Furthermore, as shown in FIG.
The bit-th output is M as an interrupt signal (interrupt 2).
It is supplied to PtJ501.

ざらに、後に詳細に説明するが、音声出カニニット5に
対してコード対応の音声出力命令を与えるには、ユーザ
プログラム内において音声出カニニットが割り付けられ
た0、1チヤンネ・ルに対して、音声出力命令に相当す
る32ビツトのデータをMOV命令で転送し、かつ転送
のたびに必ず14番の出力リレーをONするようにプロ
グラムが組まれる。
As will be explained briefly and in detail later, in order to give a code-compatible audio output command to the audio output unit 5, in order to give the audio output command corresponding to the code, the audio A program is set up to transfer 32-bit data corresponding to an output command using a MOV command, and to turn on output relay No. 14 every time the data is transferred.

従って、ユーザプログラムの実行中に、音声出力命令転
送のためのMOV命令、およびこれと一対の関係にある
0UT14命令が起動されると、音声比カニニット5内
のラッチ部504の第14ビツト目出力は、“Oatか
ら“1″へと変化し、この状態変化によってMPU50
1に対して割込みがかかり、第14図に示されるデータ
保存処理が起動される。
Therefore, when the MOV instruction for transferring audio output commands and the 0UT14 instruction paired therewith are activated during execution of the user program, the 14th bit of the latch unit 504 in the audio ratio controller 5 is output. changes from “Oat” to “1”, and this state change causes the MPU50
1, and the data storage process shown in FIG. 14 is activated.

すると、ラッチ部504にラッチされた音声出力命令は
、ラッチ部505へと転送ラッチされ(ステップ140
1)、ざらにラッチ部505にラッチされた音声出力命
令は、データバスDB”を介してMPU501へと読込
まれる(ステップ1402>。
Then, the audio output command latched by the latch unit 504 is transferred to the latch unit 505 and latched (step 140).
1) The audio output command latched by the rough latch unit 505 is read into the MPU 501 via the data bus DB'' (step 1402>).

以後、読込まれた音声出力命令の内容に応じて、種々の
音声出力態様が決定されるわけであるが、まず最初に最
も簡単な例として、あるメツセージNo、に対応した内
容の音声を1回だけ発音させる場合について説明する。
Thereafter, various audio output modes are determined depending on the content of the read audio output command, but first, as the simplest example, the audio with the content corresponding to a certain message number is output once. We will explain the case where only the following words are pronounced.

この場合、第11図のフォーマットにおいて、Oビット
〜7ビツトには、発音対象となるメツセージNo、がB
CDコードで記憶され、8ビツト〜11ビツトの繰り返
し回数はrob、12ビツト。
In this case, in the format shown in FIG. 11, the message number to be sounded is set to B bits
It is stored as a CD code, and the number of repetitions of 8 bits to 11 bits is rob, 12 bits.

13ビットのメツセージ連結数はrlJ、15ビツト目
の優先機能選択ビットは“Opeに設定されている。
The 13-bit message concatenation number is rlJ, and the 15th bit priority function selection bit is set to "Ope."

このような内容の音声出力命令が読込まれ(ステップ1
402>、かつこの読込み時点において何等のメツセー
ジも発音されていないと(ステップ1403否定)、優
先機能無しを確認した後 ゛(ステップ1404否定)
、当該音声出力命令は、FIFOスタックとして機能す
る優先機能無し専用の場合の第2スタツクエリアへと転
送される(ステップ1405)。
A voice output command with such content is read (step 1)
402>, and no message is being pronounced at this reading time (step 1403 negative), after confirming that there is no priority function ゛ (step 1404 negative)
, the audio output command is transferred to the second stack area for exclusive use without a priority function, which functions as a FIFO stack (step 1405).

すると、第15図のメインフローチャート側においては
、第2スタツクエリアに音声出力命令有りが検出され(
ステップ1504肯定)、次いで1秒間ポーズ処理を経
た後(ステップ1506)、第2スタツクエリアからは
、最も古い音声出力命令の第1メツセージNo、(この
場合記憶されたばかりのメツセージNo、が読み出され
(ステップ1507) 、以後このメツセージNo、に
関して発音指令処理(ステップ1508.1509,1
510.1511)および第16図に示される発音継続
処理(ステップ1601否定、1602,1603.1
604.1605>が行なわれ、当該メツセージNo、
に係わる内容の音声が1回だけ発音されることとなる。
Then, on the main flowchart side of FIG. 15, the presence of an audio output command is detected in the second stack area (
Step 1504 (Yes), then after passing through pause processing for one second (Step 1506), the first message number of the oldest voice output command (in this case, the message number that has just been stored) is read out from the second stack area ( Step 1507), from now on, the sound generation command processing for this message No. (Steps 1508, 1509, 1
510.1511) and the pronunciation continuation processing shown in FIG.
604.1605> is performed, and the message No.
The audio related to the content will be pronounced only once.

他方、いずれかの音声発音中に、1もしくは2以上の音
声出力開始指令有りが検出された場合には(ステップ1
403肯定)、優先機能無しを確認した上(ステップ1
406否定)、読込まれた音声出力命令を順次前述した
第2スタツクエリアへとブツシュする(ステップ140
7)。
On the other hand, if one or more voice output start commands are detected during any voice pronunciation (step 1
403 affirmative), after confirming that there is no priority function (step 1
406 (No), and the read audio output commands are sequentially pushed to the second stack area (step 140).
7).

すると、第15図に示すメインフローチャー1・側にお
いて、第2スタツクエリアにメツセージNO,データ有
りとされる間(ステップ15041定)、FIFOスタ
ックの機能によって、1秒間のポーズをあけて(ステッ
プ1506) 、音声合成部510に対して発音指令が
与えられ(ステップ1508.1509,1510.1
511>、さらに第16図に示される発音継続処理が実
行されて、いずれかのメツセージ発音中に到来した1も
しくは2以上の新たなメツセージは、1秒間隔で順次到
来順に発音されることとなる。
Then, on the main flowchart 1 side shown in FIG. 15, while it is determined that the message NO and data are present in the second stack area (step 15041), there is a pause of 1 second due to the FIFO stack function (step 1506). ), a pronunciation command is given to the speech synthesis unit 510 (steps 1508, 1509, 1510.1).
511>, the sound generation continuation process shown in FIG. 16 is further executed, and one or more new messages that arrive during the sounding of any message are successively sounded at 1-second intervals in the order in which they arrive. .

次に、緊急度の低いメツセージの発音中に、緊急度の高
いメツセージを発音させる必要が生じた場合、緊急度の
低いメツセージの発音を中断させ、その代わりに緊急度
の高いメツセージを優先的に発音させる場合について説
明する。 ゛この場合、第11図の命令フォーマットに
おいて、前述の場合に比べ第15ビツト目の優先機能選
択ビットが“1″にセットされる。
Next, if it becomes necessary to pronounce a message with a high degree of urgency while a message with a low degree of urgency is being pronounced, the pronunciation of the message with a low degree of urgency is interrupted and the message with a high degree of urgency is prioritized instead. The case of making sounds will be explained. In this case, in the instruction format shown in FIG. 11, the 15th priority function selection bit is set to "1" compared to the above case.

第14図において、いずれかのメツセージ発音中に(ス
テップ1403肯定)、優先機能有りが検出されると(
ステップ14064定)、さらに現在発生中のメツセー
ジが優先機能有りか否かの判定が行なわれ、発音中のメ
ツセージが優先機能無しの場合(ステップ1408否定
)、現在発音中の音声出力命令は、FIFOスタック機
能を有し、かつ優先機能無しの場合専用の第2スタツク
エリアへと戻され(ステップ1409)、さらに音声合
成部510に対してストップ指令の送出(ステップ14
10)および該当メツセージの消灯処理(ステップ14
11)を経た後、新たに得られた音声出力命令について
は、FIFOスタック機能を有し、かつ優先機能有りの
場合専用の第1スタツクエリアへとブツシュされる(ス
テップ1412)。
In FIG. 14, when a priority function is detected while any message is being sounded (step 1403 is affirmative),
Step 14064), it is further determined whether or not the message currently being generated has a priority function, and if the message being generated does not have a priority function (No in Step 1408), the voice output command currently being generated is If it has a stack function but does not have a priority function, it is returned to the dedicated second stack area (step 1409), and a stop command is sent to the speech synthesis unit 510 (step 14).
10) and turning off the corresponding message (step 14)
After passing through step 11), the newly obtained voice output command is pushed to the first stack area dedicated to the FIFO stacking function and the priority function (step 1412).

すると、第15図のメインフローチャートにおいては、
第1スタツクエリアに音声出力命令有りが検出され(ス
テップ1503肯定)、1秒間のポーズ処理を経た後(
ステップ1512)、第1スタツクエリアからは、最も
古い音声出力命令の −第1メツセージN01(この場
合は格納したばかりのメツセージNo、)が読み出され
(ステップ1513)、この読みだされたメツセージN
O,に関して、前述した発音指令処理(ステップ150
8゜1509.1510.1511)および第16図に
示される発音継続処理が実行される。
Then, in the main flowchart of Figure 15,
The presence of a voice output command is detected in the first stack area (step 1503 affirmative), and after passing through a pause process for 1 second (
Step 1512), the -1st message N01 (in this case, the message number just stored) of the oldest voice output command is read from the first stack area (Step 1513), and this read message N
Regarding O, the above-mentioned sound generation command processing (step 150
8°1509.1510.1511) and the sound generation continuation process shown in FIG. 16 is executed.

この結果、それまで発音されていた優先機能無しに係わ
る緊急度の低いメツセージは強制的に中断され、その代
わりに発音中に到来した緊急度の高いメツセージが優先
的に発音されることとなる。
As a result, messages with low urgency related to non-priority functions that were being sounded are forcibly interrupted, and instead, messages with high urgency that have arrived during sounding are sounded preferentially.

また、優先機能有りに係わるメツセージの発音中に、同
様な優先機能有りに係わる音声出力命令が次々と到来し
た場合には(ステップ1408汚定)、これらの音声出
力命令は、次々と第1スタツクエリアへとブツシュされ
る(ステップ1412)。
In addition, if similar voice output commands related to the presence of the priority function arrive one after another while a message related to the presence of the priority function is being produced (step 1408 pollution), these voice output commands are sequentially transferred to the first stack area. (step 1412).

そして、メインフローチャート側におけるスタック読出
し処理(FIFO)が実行される結果(ステップ151
3)、II先機能有り同志のメツセージの場合には、順
次1秒間隔で到来順に発音されることとなる。
Then, as a result of executing the stack read processing (FIFO) on the main flowchart side (step 151
3) In the case of a message from a comrade with a second function, messages will be sounded in the order in which they arrive at one-second intervals.

以上、発音中に別の音声出力開始指令有りが検出された
場合の処理についてまとめて説明すると、優先機能無し
に係わる音声出力命令の発音中に、優先機能有りおよび
優先機能無し双方の音声出力命令に係わる開始指令が複
数与えられた場合は、優先機能有りに係わる音声出力命
令の開始指令が与えられた時点において、優先機能無し
に係わる発音を強制的に中断させ、その後優先機能有り
に係わる音声出力命令だけを到来順に1秒間隔で発音さ
せ、しかる後、中断された優先機能無しに係わる音声出
力命令を最初から発音し直させ、発音終了とともに、侵
菟機能無しに係わる音声出力命令について、同様に到来
順に1秒間隔で順次発音させるものである。
The above is a summary of the processing when the presence of another voice output start command is detected during sound generation. During the sound generation of a voice output command related to no priority function, voice output commands for both those with priority function and those without priority function If multiple start commands related to the priority function are given, at the time when the start command of the audio output command related to the priority function is given, the pronunciation related to the non-priority function is forcibly interrupted, and then the sound related to the priority function is interrupted. Only the output commands are sounded at 1-second intervals in the order in which they arrive, and then the interrupted voice output commands related to the no-priority function are sounded again from the beginning, and when the sound generation ends, the voice output commands related to the no-priority function are Similarly, the sounds are made to sound sequentially at 1 second intervals in the order in which they arrive.

これに対して、優先機能有りに係わる発音中に、優先機
能有りおよび無しに係わる開始指令がそれぞれ複数到来
した場合には、前述した音声の強制中断処理は行なわず
、単にまず優先機能有りに係わる音声出力命令について
順次到来順に発音させた後、その後優先機能無しに係わ
る音声出力命令について同様に到来順に発音させるもの
である。
On the other hand, if multiple start commands related to priority function presence and non-priority function arrive during the sound generation related to priority function presence, the above-mentioned forced interruption processing of the voice is not performed, and the voice processing related to priority function presence is simply performed. After the voice output commands are sounded in the order in which they arrive, the voice output commands related to the non-priority function are similarly sounded in the order in which they arrive.

なお、この実施例では、優先機能選択ビットを1ビツト
にし、優先レベルを2レベルに設定したが、これを複数
ピッl−として優先レベルを多段階に設定しても良いこ
とは勿論である。
In this embodiment, the priority function selection bit is set to 1 bit and the priority level is set to 2 levels, but it goes without saying that this may be set as a plurality of bits and the priority level may be set in multiple stages.

次に、3個のメツセージを指定された順序で連結して発
音させる場合について説明する。
Next, a case will be described in which three messages are concatenated in a specified order and pronounced.

この場合、第11図の命令フォーマットにおいて、0ビ
ツト〜7ビツトには、第1番目のメツセージNO,が、
24ビツト〜31ビツトには2番目のメツセージNo、
がまだ16ビツト〜23ピッドには3番目のメツセージ
NO,がそれぞれ8CDコードで記憶される。
In this case, in the instruction format shown in FIG. 11, bits 0 to 7 contain the first message NO.
For 24 bits to 31 bits, the second message number,
However, the third message No. is stored in the 16th to 23rd bits as an 8CD code.

また、12ピッ1〜,13ビツトには、メツセージ連結
数「3」に相当するバイナリコードが記憶される。
Furthermore, a binary code corresponding to the number of message connections "3" is stored in 12 bits 1 to 13 bits.

今仮に、説明を簡単にするために、優先機能は無しとし
、また、いずれのメツセージも発音されていないものと
する。
For the sake of simplicity, let us assume that there is no priority function and that no message is being pronounced.

このような状態において、所定の開始指令に応答して音
声出力命令の読み込みが行なわれると(第14図ステッ
プ1402>、音声出力命令は第2スタツクエリアへと
ブツシュされ(ステップ1403否定、1404否定、
1405)、次いで第15図の一連の処理(ステップ1
504〜1511)および第16図に示す割込み処理が
実行されて、音声データROM50Bからのデータ読出
しが順次行なわれ(ステップ1601否定、1602.
1603>、ストップアドレスへ到達するとともに(ス
テップ1601肖定)、音声合成部510に対してスト
ップ指令の送出2発音中フラグF1のリセットが行なわ
れ(ステップ1604)、ざらに該当するメツセージ番
号のLEDが消灯される(ステップ1605)。
In such a state, when an audio output command is read in response to a predetermined start command (step 1402 in FIG. 14), the audio output command is pushed to the second stack area (step 1403 negative, 1404 negative,
1405), then the series of processes in FIG. 15 (step 1
504 to 1511) and the interrupt processing shown in FIG. 16 are executed, and data is sequentially read from the audio data ROM 50B (steps 1601 negative, 1602 .
1603>, the stop address is reached (step 1601), a stop command is sent to the speech synthesis unit 510, and the sounding flag F1 is reset (step 1604), and the LED of the message number corresponding to is turned off (step 1605).

次いで、発音が終了してメツセージ番号が第1番目のメ
ツセージNo、である旨の確認(ステップ1606肯定
)、連結数が「1」でないことの確認(ステップ160
7否定)が行なわれた後、今度は音声出力命令の24ビ
ツト〜31ビツトに記憶された2番目のメツセージfs
4o、についてスタート、ストップアドレスの読込み(
ステップ1609)および第2番目のメツセージNo、
に関してのスタートアドレス設定が行なわれ(ステップ
1610)、さらに2番目のメツセージNo、に係わる
LEDの点灯処理が行なわれた後(ステップ1611)
、2番目のメツセージNo、に係わるスタート指令が音
声合成部510に対して送られる。
Next, it is confirmed that the pronunciation has ended and the message number is the first message number (step 1606, affirmative), and that the number of connections is not "1" (step 160).
7 negation) is performed, then the second message fs stored in bits 24 to 31 of the audio output command is
4o, Read start and stop addresses (
step 1609) and the second message No.
After the start address is set for the second message number (step 1610), and the LED associated with the second message number is lit (step 1611).
, the second message No. is sent to the speech synthesis section 510.

以後、2番目のメツセージNo、に係わる音声データの
読出し処理(ステップ1601否定、1602.160
3>、音声合成終了処理(ステップ1604)、該当メ
ツセージNO,のLED消灯処理(ステップ1605)
を順次経た後、当該発音終了に係わるメツセージが第1
番目のメツセージでないことの確認(ステップ1606
否定)、第2番目のメツセージであることの確認(ステ
ップ1613肯定)および連結数が「2」でないことの
確認(ステップ1614否定)を経た後、音声゛°1゜ 出力命令の16ビツト〜23ビツトに記憶された第3番
目のメツセージについて、スタート、ストップの読込み
処理(ステップ1615)、第3番目のメツセージに係
わるスタートアドレスの設定処理(ステップ1616)
 、当該メツセージNo。
Thereafter, the process of reading audio data related to the second message number (step 1601 negative, 1602, 160
3>, Speech synthesis end processing (step 1604), LED extinguishing processing for the corresponding message number (step 1605)
After successively passing through, the message related to the end of the pronunciation is the first message.
Confirmation that this is not the th message (step 1606)
After confirming that it is the second message (step 1613, affirmative) and confirming that the number of connections is not "2" (step 1614, negative), bits 16 to 23 of the audio "°1" output command are confirmed. Start and stop reading processing for the third message stored in the bit (step 1615), start address setting processing for the third message (step 1616)
, the message No.

に係わるLEDの点灯処理を経た後(ステップ1611
L再度3番目のメツセージに係わるスタート指令が音声
合成部510へと送られる。
After the LED lighting process related to (step 1611
L A start command related to the third message is sent to the speech synthesis section 510 again.

以後、同様にして音声データ読出し処理(ステップ16
01否定、1602.1603)、音声合成終了処理(
ステップ1604)、該当メツセージNo、に係わるL
EDの消灯処理(ステップ1605)を順次経た後、発
音終了に係わるメツセージが第1番目のメツセージでな
いこと(ステップ1606否定)、第2番目のメツセー
ジでないこと(ステップ1613否定)を経た後、後述
する繰り返し処理が終了したことを条件として(ステッ
プ1601定)、メツセージの3連結処理を終了する。
Thereafter, the audio data reading process (step 16) is performed in the same manner.
01 negation, 1602.1603), speech synthesis end processing (
Step 1604), L related to the corresponding message No.
After sequentially going through the ED extinguishing process (step 1605), it is determined that the message related to the end of pronunciation is not the first message (step 1606 negative), and that it is not the second message (step 1613 negative), as will be described later. On the condition that the repeating process has been completed (step 1601), the three-message concatenation process is completed.

このように、音声出力命令のOビット〜7ビツト、24
ビツト〜31ビツト、16ビツト〜23ビツトにそれぞ
れ第1番目、第2番目、第3番目に発音させるべきメツ
セージNo、をBCDコードで記憶させ、かつ12ビツ
ト13ビツトにメツセージ連結数に相当するバイナリコ
ードを記憶させるだけで、3つのメツセージを1秒間隔
で連結して発音させることができるわけである。
In this way, the O bit to 7 bits of the audio output command, 24
The message numbers to be sounded first, second, and third are stored in bits ~ 31 bits and 16 bits ~ 23 bits, respectively, in BCD code, and the binary numbers corresponding to the number of message concatenations are stored in 12 bits and 13 bits. Just by memorizing the code, three messages can be concatenated and pronounced at one-second intervals.

なお、連結数が「2」の場合でも同様に説明される他、
第15ビツト目の優先機能選択ビットを“1″にセット
すれば、前述した如く優先機能無しに係わるメツセージ
を中断し、その代わり優先的に発音させることができる
ことは勿論である。
In addition, the same explanation applies even when the number of connections is "2", and
Of course, by setting the 15th priority function selection bit to "1", it is possible to interrupt messages related to no priority function as described above and to make them sound preferentially instead.

従って、このメツセージ連結機能を利用すれば、32個
のメツセージを任意に組合せることによって、より多く
の情報を音声により報知させることができる。
Therefore, by using this message linking function, more information can be announced by voice by arbitrarily combining the 32 messages.

また、ビット対応命令の場合と同様、このコード対応命
令の場合にも、音声用カニニット側に設けられたメツセ
ージNO,設定器(DIRスイッチ54の3ビツト〜7
ビツトに相当)およびテストスイッチ(DIPスイッチ
54の第2ビツトに相当)を利用して、模擬音声出力命
令を与え、指定されたNO,のメツセージを発音させる
ことができる(ステップ1505肯定、1512)。
In addition, as in the case of the bit-compatible command, in the case of this code-compatible command, the message NO., setting device (DIR switch 54 bits 3 to 7) provided on the audio crab unit side is used.
By using the test switch (corresponding to the second bit of the DIP switch 54) and the test switch (corresponding to the second bit of the DIP switch 54), a simulated voice output command can be given to make the specified NO message sound (step 1505 affirmative, 1512). .

次に、指定された1個のメツセージまたは互いに連結さ
れた複数のメツセージを、指定された繰り返し回数だけ
繰り返し発音させる場合について説明する。
Next, a case will be described in which a specified message or a plurality of messages connected to each other are repeatedly sounded a specified number of times.

この場合、第11図の命令フォーマットにおいて、8ビ
ツト〜11ビツトには、繰り返し回数に相当するバイナ
リコードが記憶される。
In this case, in the instruction format shown in FIG. 11, a binary code corresponding to the number of repetitions is stored in 8 bits to 11 bits.

第16図のフローチャートにおいて、各メツセージまた
は互いに連結された一連のメツセージが発音終了すると
(ステップ1607肯定、1613否定または1614
肯定)、それまでのメツセージ発音回数が指定された繰
り返し回数に達したか否かの判定が行なわれ、達してい
ない場合にはくステップ1608否定)、1秒間のポー
ズ処理を経た俊(ステップ1617>、再び第1#1目
のメツセージに相当するスタートアドレスの設定処理が
行なわれる(ステップ1618)。
In the flowchart of FIG. 16, when each message or a series of messages connected to each other completes pronunciation (step 1607 affirmative, step 1613 negative, or step 1614
(Yes), it is determined whether the number of message pronunciations up to that point has reached the specified number of repetitions, and if it has not reached Step 1608 (No), Shun (Step 1617) has passed the pause processing for one second. >, the process of setting the start address corresponding to the #1 #1 message is performed again (step 1618).

これに対して、それまでの繰り返し回数が、指定された
繰り返し回数に達したものと判定された場合は(ステッ
プ160B) 、発音処理は完全に終了する。
On the other hand, if it is determined that the number of repetitions up to that point has reached the designated number of repetitions (step 160B), the sound generation process is completely terminated.

従って、音声出力命令の8ビツト〜11ビツトに、数値
rNJを記憶させることにより、指定された同一メツセ
ージをN回に亘って繰り返し発音させることが可能とな
るのである。
Therefore, by storing the numerical value rNJ in bits 8 to 11 of the voice output command, it is possible to repeatedly sound the same specified message N times.

以上詳細に説明したように、コード対応命令に対応した
システムプログラムの動作については、(1)音声出力
開始指令有りの検出に応答して、該当するメツセージを
直ちに発音させる動作。
As described above in detail, the operations of the system program corresponding to the code-compatible commands are as follows: (1) In response to the detection of the presence of a voice output start command, the corresponding message is immediately sounded.

(2)いずれかのメツセージ発音中に、次々とメツセー
ジ発音指令が到来した場合、発音中のメツセージの終了
とともに、順次1秒間隔で到来順に発音される動作、(
3)個々のメツセージまたは連結された一連のメツセー
ジ毎に、優先機能の有無をユーザプログラムで選択し、
優先機能無しに係わるメツセージの発音中に、優先機能
布りに係わるメツセージの梅音指令が到来したときには
、発音中のメツセージを強制的に中断させて、後から来
た優先機能布りに係わるメツセージを優先して先に発音
させ、その後中断に係わる優先機能無しに係わるメツセ
ージを再度初めから発音させる動作、(4)指定された
3個以内のメツセージを、指定された順序で連結して発
音させる動作、(5)各メツセージまたは連結された一
連のメツセージ毎に、ユーザ命令で繰り返し回数を指定
し、この指定された繰り返し回数弁だけ繰り返し発音さ
せる動作および模擬音声出力命令によるメツセージ出力
テスト等が可能である。
(2) If message generation commands arrive one after another while any message is being generated, the messages are generated one after another at 1-second intervals in the order in which they arrive at the end of the message being generated.
3) Select the presence or absence of the priority function for each individual message or a series of linked messages using the user program,
If a message related to a priority function is generated while a message related to a non-priority function is being sounded, the message being sounded is forcibly interrupted, and a message related to a priority function that comes later is interrupted. (4) Connect and pronounce up to three specified messages in the specified order. (5) For each message or a series of connected messages, the number of repetitions is specified by a user command, and it is possible to perform an operation in which the valve is repeatedly sounded for the specified number of repetitions, and a message output test using a simulated voice output command. It is.

なお以上の実施例では、音声出カニニットから、原音声
信号またはモニタスピーカが駆動できる程度に増幅され
た増幅済み音声信号を取出すように構成したが、勿論音
声比カニニットの内部にモニタスピーカを取り付け、音
声出カニニット自体から該当するメツセージを発音させ
ても良いことは勿論である。
In the above embodiment, the original audio signal or the amplified audio signal that has been amplified to the extent that the monitor speaker can be driven is taken out from the audio output unit. Of course, the corresponding message may be pronounced from the voice output crab unit itself.

また、以上の実施例では、ラダー図入力方式のプログラ
マブル・コントローラに適用したが、本発明はフローチ
ャート入力式のプログラマブル・コントローラにも同様
に適用できることは勿論である。
Further, in the above embodiments, the present invention is applied to a ladder diagram input type programmable controller, but it goes without saying that the present invention can be similarly applied to a flowchart input type programmable controller.

また、以上の実施例ではユーザプログラムのEND命令
を検出して出力更新を行なういわゆるENDリフレッシ
ュ方式のプログラマブル・コントローラに適用したが、
0LIT命令あるいはMOV命令の実行のたびに、その
都度実行結果に相当するデータを直接にI10ユニット
に転送するいわゆる都度リフレッシュ方式のプログラマ
ブル・コントローラにも適用できることは勿論である。
Furthermore, the above embodiment is applied to a so-called END refresh type programmable controller that detects the END command of the user program and updates the output.
It goes without saying that the present invention can also be applied to a so-called refresh-every-time programmable controller in which data corresponding to the execution result is directly transferred to the I10 unit each time a 0LIT or MOV instruction is executed.

さらに、以上の実施例ではCPUユニットに直結するシ
ステムバスSBに音声出カニニット5を取付けたが、有
線または無線伝送ラインを介して設置された遠隔システ
ムバスにも取付は得ることは勿論である。
Further, in the above embodiment, the audio output unit 5 is attached to the system bus SB directly connected to the CPU unit, but it can of course be attached to a remote system bus installed via a wired or wireless transmission line.

以上で、この実施例に係わる音声出カニニットの構成0
作用、効果について説明してきたが、次に実際にこの音
声出カニニットを使用する場合におけるユーザプログラ
ムの幾つかの例を第17図〜第23図を参照しながら説
明する。
The above is the configuration 0 of the voice output crab knit related to this embodiment.
Having explained the functions and effects, next some examples of user programs for actually using this voice output crab knit will be explained with reference to FIGS. 17 to 23.

なお、以下の説明においては、音声出カニニットは入出
力アドレス空間のOチャンネル、1チヤンネルからなる
2チャンネル分に割り当てられているものと想定する。
In the following description, it is assumed that the audio output unit is allocated to two channels, consisting of channel O and channel 1, in the input/output address space.

第17図(a)の例は、メツセージN0.10に相当す
るメツセージ「7番タンク満タンです」と、メツセージ
N0.11に相当するメツセージ「7番タンク排水完了
」を、それぞれ入力1000.1001のONするタイ
ミングで発音させる場合のラダー図を示す。
In the example shown in Fig. 17(a), the message ``No. 7 tank is full'' corresponding to message No. 0.10 and the message ``No. 7 tank drained completed'' corresponding to message No. 0.11 are input at 1000 and 1001, respectively. A ladder diagram is shown in which the sound is generated at the timing when the button is turned on.

このように、単にメツセージNo、に相当する出力リレ
ー10.11を、該当する入力1000゜1001で起
動するだけで良い。
In this way, it is sufficient to simply activate the output relay 10.11 corresponding to the message No. with the corresponding input 1000.degree. 1001.

この場合、第17図(b)に示す如く、入力1000と
1001とが別々のタイミングでONする場合には、各
出力10.11のONタイミングを、音声用カニニット
に認識させることができるが、第17図(C)に示す如
く、同一のタイミングでONした場合には、メツセージ
No、の小さい出力10が優先される。
In this case, as shown in FIG. 17(b), if the inputs 1000 and 1001 are turned on at different timings, the audio crab unit can recognize the ON timing of each output 10.11. As shown in FIG. 17(C), when the outputs are turned on at the same timing, priority is given to output 10 with the smaller message number.

第18図(a)は、メツセージN0.10に相当するメ
ツセージ「リセットボタンを押して下さい」を、故障検
出用の入力1000,1001のいずれがONLだ場合
にも発音させる場合のラダー図を示す。
FIG. 18(a) shows a ladder diagram in which the message "Please press the reset button" corresponding to message No. 0.10 is sounded even if either of the inputs 1000 and 1001 for failure detection is ONL.

この場合第18図(b)に示す如く、入力1000と1
001とのON期間が重ならない場合は問題ないが、第
18図(C)に示す如く、両人力1000.1001が
一部重権すると、出力10の立上りは1回しか生ぜず、
このため2回故障が起きた場合リセットボタンは2回押
さねばならないような場合には、若干の不都合が生ずる
In this case, as shown in FIG. 18(b), inputs 1000 and 1
There is no problem if the ON period with 001 does not overlap, but as shown in Fig. 18 (C), if both 1000 and 1001 partially overlap, the rise of output 10 will occur only once,
Therefore, if a failure occurs twice, the reset button must be pressed twice, which causes some inconvenience.

第19図(a)は、1命令実行サイクル幅のパルスを出
力するDIFU命令を使用して、上記の欠点を改良した
ほぼ同様な機能を有するラダー図を示す。
FIG. 19(a) shows a ladder diagram having almost the same function, using a DIFU instruction that outputs a pulse with a width of one instruction execution cycle, and improving the above-mentioned drawbacks.

この場合、第19図(b)に示す如く、入力1000と
1001とのON期間が一部重複しても、DIFU32
00とDIFtJ3201とは別々のタイミングで微小
幅パルスとなるため、出力10としては2回のONパル
スを得ることができ、入力1000.1001に対応す
る2回の故障に対しては、メツセージ「リセットボタン
を押して下さい」を2回間違いなく発音させることがで
きる。
In this case, as shown in FIG. 19(b), even if the ON periods of inputs 1000 and 1001 partially overlap, the DIFU 32
Since 00 and DIFtJ3201 become minute width pulses at different timings, it is possible to obtain two ON pulses as output 10, and for two failures corresponding to inputs 1000 and 1001, the message "Reset" is issued. "Please press the button" can be pronounced twice without fail.

第20図(a)は、発車指令に相当する入力1000が
ONした場合、メツセージN0.10に相当するメツセ
ージ「これから発車しますJを5回1秒間隔で発音させ
る場合のラダー図を示す。
FIG. 20(a) shows a ladder diagram in the case where when the input 1000 corresponding to the train departure command is turned ON, the message "The train is about to depart J" is sounded five times at 1-second intervals, which corresponds to the message No. 0.10.

この場合、第20図(b>に示す如く、入力1000の
ONタイミングに応答して、出力3200を入力320
0で自己保持させ、その後0.1秒クロック入力630
0によって出力10を5回ONさせ、5回目のONをC
NTOにカウントさせ、カウントアツプとともに出力3
200を自己保持解除するようにしたものである。
In this case, as shown in FIG. 20 (b), in response to the ON timing of the input 1000, the output 3200 is output
Self-hold at 0, then 0.1 second clock input 630
0 turns output 10 ON 5 times, and turns ON the 5th time by C.
Make NTO count and output 3 as the count up
200 is released from self-holding.

なお、このラダー図では、0.1秒クロックが使用され
ているため、5回カウントする間に他のメツセージが入
り込む可能性が若干想定される。
Note that in this ladder diagram, since a 0.1 second clock is used, it is assumed that there is a slight possibility that another message will be inserted during the five counts.

第21図(a)は、第20図の欠点を改良したもので、
第20図(a)との相違点は、出力3202をチャタリ
ング動作させ、高速パルスを得、出力10をより高速に
5回ONさせる一方、入力1000をそのまま保持させ
るのではなく、DIFU命令を使用して−H微小幅パル
スに変換し、これで出力3201を自己保持させるよう
にしたことにある。
Figure 21(a) is an improved version of the defect in Figure 20.
The difference from FIG. 20(a) is that the output 3202 is chattering, a high-speed pulse is obtained, and the output 10 is turned on five times at a higher speed, while the DIFU instruction is used instead of holding the input 1000 as it is. This is converted into a -H minute width pulse, and the output 3201 is thereby self-maintained.

第21図(b)に示す如く、このラダー図によれば、5
回カウント中に入h1000が再[)Nした場合にも、
直ちにこれに対応が可能である。
As shown in FIG. 21(b), according to this ladder diagram, 5
Even if h1000 enters [)N again during the count,
This can be addressed immediately.

次に、コード対応命令の場合について説明する。Next, the case of code-compatible instructions will be explained.

第22図(a)は、入力1000がONするのに応答し
て、メツセージNo、01,02.03にそれぞれ相当
するメツセージ「バルブ」、「1を」、「開けなさい」
を順に連結して発音させ、ざらに入力1001のONに
対応してメツセージNo。
FIG. 22(a) shows messages "Valve", "1", and "Open" corresponding to message No. 01 and 02.03, respectively, in response to input 1000 being turned on.
are concatenated in order and pronounced, and the message number is generated in response to the ON of input 1001.

10.11.’!2にそれぞれ相当するメツセージ「コ
ンプレッサ」、「3台を」、「運転しなさい」を、1秒
間隔で順次連結して、しかも2回発音させる場合のラダ
ー図を示す。
10.11. '! A ladder diagram is shown in which the messages ``Compressor'', ``3 units'', and ``Operate'' corresponding to 2 are sequentially connected at 1 second intervals and are sounded twice.

このように、コード対応命令の場合には、音声出力命令
に相当するデータを、MOV命令を用いて、Oチャンネ
ル、1チヤンネルにそれぞれ転送すれば良い。
In this way, in the case of a code-compatible command, the data corresponding to the audio output command can be transferred to the O channel and the 1 channel using the MOV command.

また、ここで特に大切なことは、MOV命令の起動条件
に相当する入力1000,1001のONと対応して、
必ず出力14を起動するようにプログラムすることであ
る。これは、前述した如く、MOV命令の場合起動条件
に相当する入力がOFFしても、転送先におけるデータ
には変化がなく、このため同一データに係わるMOV命
令の起動条件が繰り返しONLだような場合、そのON
タイミングを出力14を介して第22図(b)に示す如
く、音声出力命令側で検出させるためである。
What is particularly important here is that in response to the ON of inputs 1000 and 1001, which correspond to the activation conditions of the MOV command,
The first thing to do is to program the output 14 to always be activated. As mentioned above, in the case of the MOV instruction, even if the input corresponding to the activation condition turns OFF, the data at the transfer destination does not change, so if the activation condition of the MOV instruction related to the same data is repeatedly ONL. If so, its ON
This is because the timing is detected on the voice output command side via the output 14, as shown in FIG. 22(b).

第23図(a>は、入力1000と1001とのON期
間が一部重複した場合の対策であって、この場合には前
述と同様にしてDIFU命令を用い、入力1000.1
001のONタイミングを微小幅パルスに変換すれば良
い。
FIG. 23 (a) is a countermeasure for when the ON periods of inputs 1000 and 1001 partially overlap. In this case, the DIFU instruction is used in the same manner as described above,
It is sufficient to convert the ON timing of 001 into a minute width pulse.

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

第1図は本発明に係わる音声出カニニットを適用したプ
ログラマブル・コントローラ全体の外観を示す斜視図、
第2図はCPUユニットの電気的な構成を示すブロック
図、第3図はCPUユニットのシステムプログラムを示
すゼネラルフローチャート、第4図(a)〜(d)は、
OUT命令の解読結果に対応した処理動作を示す図、第
5図(a)〜(d)は、MOV命令の解読結果に対応し
た処理動作を説明する図、第6図は本発明に係わる音声
出カニニットの外観を示す斜視図、第7図は音声出カニ
ニットの電気的な構成を示すブロック図、第8図はワー
キングRAM内に設けられた第1.第2スタツクエリア
を示すメモリマツプ、第9図は音声データROMの内容
を示すメモリマツプ、第10図はビット対応命令の命令
フォーマットを示す図、第11図はコード対応命令の命
令フォーマットを示す図、第12図〜第16図は、音声
出カニニットの制御用システムプログラムの構成を示す
フローチャート、第17図〜第21図は、音声出カニニ
ットをビット対応命令で動作させるためのユーザプログ
ラムの例を示す図、第22図〜第24図は、コード対応
命令で音声出カニニットを動作させるためのユーザプロ
グラムの例を示す図である。 1・・・プログラマブル・コントローラ3・・・CPL
Iユニツ1〜 5・・・音声出カニニット 52・・・メツセージNo、表示用LED53・・・音
声信号取出し用ジャック 54・・・DIPスイッチ 57・・・音声メモリカード 501・・・MPLI 502・・・システムプログラムROM503・・・ワ
ーキングRAM 504.505,506・・・ラッチ部508・・・音
声データROM 509・・・ジャンパ線 510・・・音声合成部 511・・・ローパスフィルタ 512・・・トランス 513・・・モニタ用アンプ 514・・・切替スイッチ DB・・・データバス AB・・・アドレスバス CB・・・コントロールバス
FIG. 1 is a perspective view showing the overall appearance of a programmable controller to which a sound output crab unit according to the present invention is applied;
Fig. 2 is a block diagram showing the electrical configuration of the CPU unit, Fig. 3 is a general flowchart showing the system program of the CPU unit, and Figs. 4 (a) to (d) are:
Figures 5(a) to 5(d) are diagrams illustrating processing operations corresponding to the decoding results of the OUT command, Figures 5(a) to 5(d) are diagrams explaining the processing operations corresponding to the decoding results of the MOV command, and Figure 6 is a diagram illustrating the processing operations corresponding to the decoding results of the MOV command. FIG. 7 is a block diagram showing the electrical configuration of the sound output unit, and FIG. 8 is a perspective view showing the appearance of the output unit. 9 is a memory map showing the contents of the audio data ROM. FIG. 10 is a diagram showing the instruction format of bit-compatible instructions. FIG. 11 is a diagram showing the instruction format of code-compatible instructions. 16 to 16 are flowcharts showing the configuration of a system program for controlling the voice output crab unit, and FIGS. 17 to 21 are diagrams showing examples of user programs for operating the voice output crab unit with bit-compatible instructions. FIGS. 22 to 24 are diagrams showing examples of user programs for operating the voice output crab knit with code-compatible commands. 1...Programmable controller 3...CPL
I units 1 to 5...Audio output unit 52...Message number, display LED 53...Audio signal extraction jack 54...DIP switch 57...Audio memory card 501...MPLI 502... - System program ROM 503... Working RAM 504, 505, 506... Latch unit 508... Audio data ROM 509... Jumper wire 510... Audio synthesis unit 511... Low pass filter 512... Transformer 513... Monitor amplifier 514... Selector switch DB... Data bus AB... Address bus CB... Control bus

Claims (1)

【特許請求の範囲】[Claims] (1)プログラマブル・コントローラのシステムバス上
に、当該ユニットにあてて送出されたデータを取込むデ
ータ取込み手段と; 前記取込まれたデータを音声出力命令として解読し、連
結されて出力すべき各音声内容、連結順序および出力開
始指令の有無を検出する命令解読手段と; 前記出力開始指令有りと検出されるのに応答して、検出
された各音声内容に係わる発音指令を、検出された連結
順序をもって、発音終了のたびに順次発する発音指令手
段と; 前記発音指令に応答して、該当する音声信号を発する音
声信号発生手段と; を具備することを特徴とするプログラマブル・コントロ
ーラの音声出力ユニット。
(1) A data importing means for importing data sent to the unit onto the system bus of the programmable controller; Deciphering the imported data as an audio output command, and connecting each unit to be output. a command decoding means for detecting voice content, concatenation order, and presence or absence of an output start command; in response to the presence of the output start command being detected, a pronunciation command related to each detected voice content is transmitted to the detected concatenation; A sound output unit for a programmable controller, comprising: sound generation command means that sequentially issues sound signals each time the sound production ends; sound signal generation means that generates a corresponding sound signal in response to the sound sound command; .
JP60090146A 1985-04-26 1985-04-26 Voice output unit for programmable controller Pending JPS61249116A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60090146A JPS61249116A (en) 1985-04-26 1985-04-26 Voice output unit for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60090146A JPS61249116A (en) 1985-04-26 1985-04-26 Voice output unit for programmable controller

Publications (1)

Publication Number Publication Date
JPS61249116A true JPS61249116A (en) 1986-11-06

Family

ID=13990358

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60090146A Pending JPS61249116A (en) 1985-04-26 1985-04-26 Voice output unit for programmable controller

Country Status (1)

Country Link
JP (1) JPS61249116A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56166508A (en) * 1980-05-27 1981-12-21 Matsushita Electric Ind Co Ltd Heater

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56166508A (en) * 1980-05-27 1981-12-21 Matsushita Electric Ind Co Ltd Heater

Similar Documents

Publication Publication Date Title
KR880000255B1 (en) Speech recognition microcomputer
CN109345908A (en) Visualization model programing system and its control method
JP2008125731A (en) Game machine
JPS61249114A (en) Voice output unit for programmable controller
JPS61249116A (en) Voice output unit for programmable controller
EP0034562A2 (en) Signal station for fire alarm system
JPS61249111A (en) Voice output unit for programmable controller
JPS61249117A (en) Voice output unit of programmable controller
JPS61249118A (en) Voice output unit of programmable controller
JPS61249113A (en) Voice output unit for programmable controller
JPS61249115A (en) Voice output unit for programmable controller
JPH0610403Y2 (en) Programmable controller audio output unit
JPS61249112A (en) Voice output unit for programmable controller
JPS61249135A (en) Voice output unit of programmable controller
JP2008027156A (en) Simulation device
JPS592923B2 (en) sequence programmer
JP3712303B2 (en) Gas leak alarm
JPS62121517A (en) Output unit of programmable controller
JPS62131330A (en) Output unit for programmable controller
JPS6365504A (en) Output unit for programmable controller
JPS6336401Y2 (en)
JPS62109098A (en) Output unit for programmable controller
KR960002450B1 (en) Brief order type plc & the control method thereof
JPH0679229B2 (en) Programmable controller audio output unit
JP2708566B2 (en) Voice recognition control device