DE2703602B1 - Circuit arrangement for addressing jump commands in a programmable control unit - Google Patents

Circuit arrangement for addressing jump commands in a programmable control unit

Info

Publication number
DE2703602B1
DE2703602B1 DE2703602A DE2703602A DE2703602B1 DE 2703602 B1 DE2703602 B1 DE 2703602B1 DE 2703602 A DE2703602 A DE 2703602A DE 2703602 A DE2703602 A DE 2703602A DE 2703602 B1 DE2703602 B1 DE 2703602B1
Authority
DE
Germany
Prior art keywords
command
word
jump
signal
output
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.)
Withdrawn
Application number
DE2703602A
Other languages
German (de)
Inventor
Robert Dipl-Ing Lindner
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.)
Siemens AG
Original Assignee
Siemens AG
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 Siemens AG filed Critical Siemens AG
Priority to DE2703602A priority Critical patent/DE2703602B1/en
Publication of DE2703602B1 publication Critical patent/DE2703602B1/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/3005Arrangements for executing specific machine instructions to perform operations for flow control
    • G06F9/30058Conditional branch instructions
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • General Engineering & Computer Science (AREA)
  • Programmable Controllers (AREA)

Description

Während in den Zentraleinheiten von digitalen Rechenanlagen die Sprungbefehle nur in Abhängigkeit von internen Zuständen durchgeführt werden, ist es bei programmierbaren Steuerwerken erforderlich, daß Sprungbefehle auch in Abhängigkeit von Zuständen in einem zu steuernden Schaltwerk durchgeführt werden. While the jump commands in the central units of digital computing systems can only be carried out as a function of internal states, it is programmable Control units require that jump commands are also dependent on states be carried out in a switchgear to be controlled.

Diese Zustände werden durch vom Schaltwerk abgegebene Zustandssignale dargestellt.These states are determined by the state signals emitted by the switching mechanism shown.

Der Erfindung liegt die Aufgabe zugrunde, für ein programmierbares Steuerwerk, bei dem die Befehlsworte jeweils nur eine Adresse enthalten, eine Schaltungsanordnung zum Adressieren der Sprungbefehle anzugeben, bei der die Ausführung von Programmschritten sowohl von in einem zu steuernden Schaltwerk erzeugten externen Zustandssignalen als auch von in dem programmierbaren Schaltwerk intern erzeugten Zustandssignalen abhängt. Neben dem Programmspeicher soll dabei kein weiterer Speicher für die Adressen der Sprungbefehle erforderlich sein. The invention is based on the object for a programmable Control unit in which the command words each contain only one address, a circuit arrangement for addressing the jump instructions to be used for the execution of program steps both from external status signals generated in a switchgear to be controlled as well as status signals generated internally in the programmable switching mechanism depends. In addition to the program memory, there should be no further memory for the addresses the jump instructions may be required.

Erfindungsgemäß wird die Aufgabe bei der Schaltungsanordnung der eingangs genannten Art gelöst durch einen Multiplexer, an dessen Auswahleingängen die Steuersignale anliegen, an dessen Dateneingängen die Zustandssignale und in einem zu steuernden Schaltwerk erzeugte weitere Zustandssignale anliegen und der an seinem Ausgang ein Signal abgibt, das einem das erste Teilwort in den Befehlszähler einspeichernden Setzsignal zugeordnet ist. According to the invention, the object in the circuit arrangement of type mentioned above solved by a multiplexer, at its selection inputs the control signals are present, at whose data inputs the status signals and in further status signals generated by a switching mechanism to be controlled are present and the at its output emits a signal that the first partial word in the command counter is assigned to the setting signal to be stored.

Die Schaltungsanordnung gemäß der Erfindung hat den Vorteil, daß sie einen geringen Aufwand erfordert, da kein weiterer Speicher für die Adressen der Sprungbefehle erforderlich ist. Die Sprungbefehle werden in Abhängigkeit von den Binärwerten von intern, aber auch von extern erzeugten Zustandssignalen durchgeführt. Die extern erzeugten Zustandssignale greifen dabei direkt in das Steuerwerk ein. Sprungbefehle, die in Abhängigkeit von den extern erzeugten Zustandssignalen durchgeführt werden sollen, werden damit sehr schnell und ohne Benutzung des Ein/Ausgabekanals durchgeführt. The circuit arrangement according to the invention has the advantage that it requires little effort, since there is no additional memory for the addresses the jump instructions are required. The jump commands are dependent on the binary values of internally, but also externally generated status signals. The externally generated status signals intervene directly in the control unit. Jump commands that are carried out as a function of the externally generated status signals are to be done very quickly and without using the input / output channel carried out.

Zur Umkehrung des Binärwertes eines ausgewählten Steuersignals ist es vorteilhaft, wenn ein Antivalenzglied vorgesehen ist, dessen erster Eingang mit dem Ausgang des Multiplexers verbunden ist. an dessen zweitem Eingang ein den Binärwert des Signals am Ausgang des Multiplexers invertierendes Steuersignal anliegt und das an seinem Ausgang ein dem Setzsignal zugeordnetes weiteres Signal abgibt. To reverse the binary value of a selected control signal is it is advantageous if an antivalence element is provided, the first input of which with is connected to the output of the multiplexer. the binary value at its second input the signal at the output of the multiplexer inverting control signal is applied and which emits a further signal assigned to the set signal at its output.

Ein Einspeichern der Adresse des Sprungbefehls zum richtigen Zeitpunkt wird auf einfache Weise dadurch erreicht, daß ein UND-Glied vorgesehen ist. dessen erster Eingang mit dem Ausgang des Antivalenzgliedes verbunden ist, an dessen zweitem Eingang ein das Setzsignal auslösendes Signal anliegt und das an seinem Ausgang das Setzsignal abgibt. Saving the address of the jump command at the right time is achieved in a simple manner that an AND gate is provided. whose first input is connected to the output of the antivalence element, at the second Input a signal that triggers the setting signal is present and that at its output emits the setting signal.

Zur Zwischenspeicherung eines Zustandssignals ist es zweckmäßig, wenn mindestens ein Flipflop vorgesehen ist, in dem der Binärwert eines Zustandssignals speicherbar ist. For the intermediate storage of a status signal, it is useful to if at least one flip-flop is provided in which the binary value of a status signal is storable.

Im folgenden wird ein Ausführungsbeispiel der Schaltungsanordnung anhand von Zeichnungen beschrieben. The following is an embodiment of the circuit arrangement described with reference to drawings.

Es zeigt Fig. 1 ein Blockschaltbild eines mit einer Schaltstufe versehenen programmierbaren Steuerwerkes, F i g. 2 ein Schaltbild der Schaltstufe. 1 shows a block diagram of a circuit provided with a switching stage programmable control unit, FIG. 2 a circuit diagram of the switching stage.

Das in F i g. 1 dargestellte programmierbare Steuerwerk enthält eine Verarbeitungseinheit VE die gesteuert durch ein in einem Programmspeicher PS gespeichertes Programm jeweils zwei Operanden logisch oder arithmetisch miteinander verknüpft. Die Art der Verknüpfung und die Adressen derjenigen Stellen, die denen die Operanden gespeichert sind und derjenigen Stellen, zu denen die Ergebnisse der Verknüpfung übertragen werden, sind in Befehlswörtern enthalten, die vom Programmspeicher PS ausgelesen werden. Die Befehlswörter enthalten ein erstes Teilwort, das die Adresse jeweils eines Operanden darstellt. Diese Adresse wird beispielsweise durch Signale AD an einen die Operanden enthaltenden Datenspeicher DSP abgegeben. Die durch die entsprechende Adresse adressierten Operanden werden als Datensignale DS über einen Datenbus DB der Verarbeitungseinheit VE zugeführt. Die Befehlswörter enthalten ein zweites Teilwort, das durch Signale BF vom programmierbaren Steuerwerk durchzuführende Operationen angibt. Die Signale BF werden einem Befehlsdecodierer BD zugeführt, der den auszuführenden Operationen zugeordnete Steuersignale B, BS 1 bis BS 3. sowie weitere zur Steuerung des programmierbaren Steuerwerks erforderlichen Signale 85 erzeugt. The in Fig. 1 shown programmable control unit contains a Processing unit VE controlled by a stored in a program memory PS Program two operands each logically or arithmetically linked. The type of link and the addresses of those positions which the operands are stored and those places to which the results of the link are transferred, are contained in command words from the program memory PS can be read out. The command words contain a first partial word, which is the address each represents one operand. This address is given, for example, by signals AD delivered to a data memory DSP containing the operands. The through the Corresponding address addressed operands are used as data signals DS via a Data bus DB supplied to the processing unit VE. The command words contain a second subword, which is to be carried out by signals BF from the programmable control unit Indicating operations. The signals BF are fed to an instruction decoder BD, the control signals B, BS 1 to BS 3 assigned to the operations to be carried out and further signals 85 required for controlling the programmable control unit generated.

Das programmierbare Steuerwerk enthält einen Befehlszähler BZ, dessen Inhalt bei einem normalen Programmablauf mit Hilfe von von einem Taktgeber TG abgegebenen Taktimpulsen Tl schrittweise um jeweils eine Zähleinheit fortgeschaltet wird. Der Befehlszähler gibt an seinem Ausgang Signale AB ab, die dem Adresseneingang des Programmspeichers PS zugeführt werden und die jeweils die Adresse eines aus dem Programmspeicher PS auszulesenden Befehlswortes angeben. The programmable control unit contains a command counter BZ, its Content in a normal program sequence with the aid of a clock generator TG Clock pulses Tl is incremented step by step by one counting unit. Of the The command counter emits signals AB at its output, which are sent to the address input of the Program memory PS are supplied and each the address of one of the Specify program memory PS command word to be read out.

Falls beispielsweise zwei im Datenspeicher DSP gespeicherte Operanden miteinander verknüpft werden sollen und das Ergebnis an die Ein/Ausgabeeinheit EA übertragen werden soll, wird zunächst aus dem Datenspeicher DSP mit Hilfe eines ersten Befehlswortes der erste Operand ausgelesen und über den Datenbus DB zur Verarbeitungseinheit VE übertragen. If for example two operands stored in the data memory DSP are to be linked with each other and the result to the input / output unit EA is to be transmitted, is first from the data memory DSP with the help of a First command word, the first operand is read out and via the data bus DB to the processing unit Transfer VE.

Anschließend wird mit Hilfe eines zweiten Befehlswortes der zweite Operand aus dem Datenspeicher zur Verarbeitungseinheit VE übertragen. Mit einem weiteren Befehlswort wird die antsprechende Verknüpfung durchgeführt und das Verknüpfungsergebnis am Ausgang der Verarbeitungseinheit VE bereitsgestellt. Mit dem nächstfolgenden Befehiswort wird das Ergebnis an die entsprechende Stelle in der Ein/Ausgabeeinheit EA übertragen.Then, with the help of a second command word, the second Transfer the operand from the data memory to the processing unit VE. With a further command word, the corresponding link is carried out and the link result provided at the output of the processing unit VE. With the next one The result is sent to the appropriate place in the input / output unit EA transferred.

Um auch in Abhängigkeit von Zustandssignalen Sprungbefehle durchführen zu können, enthält das programmierbare Steuerwerk eine Schaltstufe 55, der einerseits vom Befehlsdecodierer BD Steuersignale 8 zugeführt werden und an der andererseits im programmierbaren Steuerwerk selbst erzeugte Zustandssignale ZO sowie in einem zu steuernden Schaltwerk erzeugte Zustandssignale Z 1 bis Zn sowie Taktimpulse T anliegen. Wenn ein Sprungbefehl durchgeführt wird, gibt die Schaltstufe SS ein Setzsignal S an den Befehlszähler BZab. Mit Hilfe dieses Setzsignale Swird eine Mehrzahl von Binärzeichen des gerade am Ausgang des Programmspeichers PS abgegebenen Befehlswortes, beispielsweise das einer Adresse im Datenspeicher DSP zugeordnete erste Teilwort als Adresse des Sprungbefehls in den Befehlszähler BZ eingespeichert. Mit Hilfe der Signale AB wird damit als nächstfolgendes Befehlswort aus dem Programmspeicher PS der Sprungbefehl ausgelesen. Im Anschluß daran wird mit Hilfe der Taktimpulse T1 der Befehlszähler wieder um jeweils eine Zähleinheit fortgeschaltet. Bei einem weiteren Sprungbefehl wird erneut von der Schaltustufe SS ein Setzsignal S an den Befehlszähler BZ abgegeben, und es wird wieder das erste Teilwort eines weiteren Befehiswortes als Adresse des nächstfolgenden auszulesenden Befehlswortes in den Befehlszähler BZeingespeichert. In order to also execute jump commands depending on status signals to be able to, the programmable control unit contains a switching stage 55, on the one hand from the command decoder BD control signals 8 are supplied and on the other hand in the programmable control unit itself generated status signals ZO as well as in one to be controlled switching mechanism generated state signals Z 1 to Zn and clock pulses T issue. When a jump command is carried out, the switching stage SS gives a set signal S to the command counter BZab. With the help of this setting signal S, a plurality of Binary character of the command word just sent to the output of the program memory PS, for example the first partial word assigned to an address in the data memory DSP stored as the address of the jump command in the command counter BZ. With help the AB signals are thus used as the next command word from the program memory PS the jump command read out. Subsequently, with the help of the clock pulses T1 the command counter is incremented again by one counting unit. At a Another jump command is again a set signal S to the switching stage SS Command counter BZ issued, and it is again the first partial word of another Prefix as an address of the next command word to be read out stored in the command counter BZ.

Die vom Befehlsdecodierer BD abgegebenen Steuersingale B geben an, in Abhängigkeit von welchen Zustandssignalen ZO bis Zn ein bedingter Sprungbefehl durchgeführt werden soll. Falls an einer bestimmten Stelle im Programm ein unbedingter Sprung durchgeführt werden soll, wird an den entsprechenden Anschluß für eines der Zustandssignale ein konstanter Binärwert angelegt, mit dem die Sprungbedingung immer erfüllt ist. The control signals B output by the command decoder BD indicate depending on which status signals ZO to Zn a conditional jump command should be carried out. If at a certain point in the program an unconditional Jump is to be carried out, is connected to the appropriate connection for one of the A constant binary value is applied to the status signals, with which the jump condition is always is satisfied.

Die in F i g. 2 dargestellte Schaltstufe 55 enthält einen Multiplexer MX, ein Antivalenzglied EX, ein UND-Glied Uund ein Flipflop FF An den Auswahleingängen des Multiplexers liegen die Steuersignale B 1 bis B3 an, die in Abhängigkeit von ihren Binärwerten eines der Zustandssignale ZO bis Zn zum Ausgang des Multiplexers durchschalten. Die Zustandssignale 71 bis Zn liegen unmittelbar an dem Multiplexer an, während der Binärwert des Zustandssignals ZO mit Hilfe des Flipflops FFzwischengespeichert wird. Die Einspeicherung des Binärwertes erfolgt mit Hilfe eines Taktimpulses T2, der vom Taktgeber TG erzeugt wird. Der Multiplexer MX gibt an seinem Ausgang ein das Setzsignal Svorbereitendes Signal SEI ab, das einem ersten Eingang eines Antivalenzgliedes EX zugeführt wird. Am zweiten Eingang des Antivalenzgliedes EX liegt ein vom Befehlsdecodierer BD erzeugtes weiteres Steuersignal 84 an. Das Antivalenzglied EX gibt an seinem Ausgang ein das Setzsignal S vorbereitendes weiteres Signal 5E2 ab, dessen Binärwert mit dem des Signals SE1 übereinstimmt, wenn das Steuersignal B4 den Binärwert 0 hat. Falls das Steuersignal B4 den Binärwert 1 hat, werden die Binärwerte des Signals SE 1 invertiert. Auf diese Weise wird mit Hilfe des Steuersignals B4 die Bedingung für die Ausführung eines Sprungbefehls invertiert. Das Signal 5E2 liegt am ersten Eingang des UND-Gliedes U an und an seinem zweiten Eingang liegen Taktimpulse T3 an, die vom Taktgeber TG erzeugt werden und den Zeitpunkt für das Auftreten des Setzsignals S am Ausgang des UND-Gliedes U bestimmen. The in F i g. Switching stage 55 shown in FIG. 2 contains a multiplexer MX, an exclusive OR element EX, an AND element U and a flip-flop FF at the selection inputs of the multiplexer are the control signals B 1 to B3, which depend on their binary values of one of the status signals ZO to Zn to the output of the multiplexer switch through. The status signals 71 to Zn are directly applied to the multiplexer on, while the binary value of the status signal ZO is temporarily stored with the aid of the flip-flop FF will. The storage of the binary value takes place with the help of a clock pulse T2, which is generated by the clock generator TG. The multiplexer MX inputs at its output the setting signal S preparatory signal SEI which is sent to a first input of an antivalence element EX is supplied. At the second input of the exclusive OR element EX there is a command decoder BD generated further control signal 84. The antivalence element EX gives on his The output is a further signal 5E2 which prepares the setting signal S and whose binary value corresponds to that of the signal SE1 if the control signal B4 has the binary value 0 Has. If the control signal B4 has the binary value 1, the binary values of the signal become SE 1 inverted. In this way, with the aid of the control signal B4, the condition inverted for the execution of a jump command. Signal 5E2 is on the first The input of the AND element U and its second input are clock pulses T3 which are generated by the clock TG and the time for the occurrence of the set signal Determine S at the output of the AND element U.

Falls beispielsweise ein Sprungbefehl durchgeführt werden soll, wenn das Zustandssignal 71 den Binärwert 1 hat, nehmen die Steuersignale B 1 bis B3 diejenigen Binärwerte an, durch die das Zustandssignal Zt zum Ausgang des Multiplexers MXdurchgeschaltet wird und als Signal SE 1 dort abgegeben wird. Das Steuersignal 84 hat gleichzeitig den Binärwert 0 und das Signal SEI wird unverändert zum Ausgang des Antivalenzgliedes EXdurchgeschaltet und dort als Signal 5E2 abgegeben. For example, if a jump command is to be carried out if the state signal 71 has the binary value 1, the control signals B 1 to B3 take those Binary values through which the status signal Zt is switched through to the output of the multiplexer MX and is output there as signal SE 1. The control signal 84 has simultaneously the binary value 0 and the signal SEI remains unchanged at the output of the antivalence element EX switched through and output there as signal 5E2.

Mit dem Auftreten des Taktimpulses T3 wird das Signal 5E2 zum Ausgang des UND-Glieds U durchgeschaltet und dort als Setzsignal S abgegeben. Falls das Zustandssignal 71, entsprechend der Sprungbedingung, den Binärwert 1 hat, hat auch das Setzsignal 5 den Binärwert 1 und das erste Teilwort des gerade am Ausgang des Programmspeichers PS vorliegenden Befehlswortes wird als neue Adresse in den Befehlszihler BZ eingespeichert. Falls jedoch das abzufragende Zustandssignal 71 gerade den Binärwert 0 hat, wird am Ausgang der Schaltsufe SS kein Setzsignal abgegeben und der Inhalt des Befehlszählers 87 wird, wie bei einem normalen Programmablauf, durch einen Taktimpuls T1 um eine Zähleinheit erhöht Falls ein Sprungbefehl durchgeführt werden soll wenn das Zustandssignal 71 den Binärwert 0 hat, nimmt das Steuersignal B4 den Binärwert 1 an und das Antivalenzglied EX invertiert damit immer den Binärwert des Signals SE 1. Falls das Zustandssignal 71 den Binärwert 1 hat, wird damit am Ausgang der Schaltstufe SS kein Setzsignal S abgegeben und damit kein Sprungbefehl durchgeführt. Falls jedoch das Zustandssignal Z1 den Binärwert 0 hat, nimmt das Signal 5E2 den Binärwert 1 an und am Ausgang der Schaltstufe SS wird ein Setzsignal S abgegeben, das in den Befehlszähler BZ ein erstes Teilwort des am Ausgang des Programmspeichers PS angliegenden Befehlswortes einspeichert.When the clock pulse T3 occurs, the signal 5E2 becomes the output of the AND element U is switched through and output as a set signal S there. If that State signal 71, corresponding to the jump condition, has the binary value 1, too the set signal 5 has the binary value 1 and the first partial word of the just at the output of the Program memory PS present command word is used as a new address in the command counter BZ stored. However, if the status signal to be queried 71 just the binary value 0, no set signal is emitted at the output of the switching stage SS and the content of the command counter 87 is, as in a normal program sequence, by a clock pulse T1 increased by one counting unit If a jump command is to be carried out if the status signal 71 has the binary value 0, the control signal B4 takes the binary value 1 on and the exclusive OR element EX always inverts the binary value of the signal SE 1. If the status signal 71 has the binary value 1, the output is the Switching stage SS no setting signal S issued and therefore no jump command carried out. However, if the status signal Z1 has the binary value 0, the signal 5E2 takes the Binary value 1 at and at the output of the switching stage SS a set signal S is emitted, that in the command counter BZ a first partial word of the at the output of the program memory PS stored command word.

Claims (4)

Patentansprüche: 1. Schaltungsanordnung zum Adressieren von Sprungbefehlen in einem programmierbaren Steuerwerk, bei dem in einem Programmspeicher ein aus einer Mehrzahl von Befehisworten gebildetes Programm gespeichert ist, bei dem die Befehlsworte durch von einem Befehlszähler abgegebene Adressen adressiert werden, bei dem jedes Befehlswort jeweils ein Daten in einem Datenspeicher adressierendes erstes Teilwort und ein auszuführende Operationen bestimmendes zweites Teilwort enthält, bei dem in Abhängigkeit vom zweiten Teilwort und in Abhängigkeit von Zustandssignalen das erste Teilwort als Adresse für das dem Sprungbefehl zugeordnete nächstfolgende Befehlswort in den Befehlszähler eingespeichert wird und bei dem ein Befehlsdecodierer vorgesehen ist, der den zweiten Teilworten zugeordnete Steuersignale erzeugt, g e -kennzeichnet durch einenMultiplexer(MX), an dessen Auswahleingängen die Steuersignale (B) anliegen, an dessen Dateneingängen die Zustandssignale (ZO)und in einem zu steuernden Schaltwerk erzeugte weitere Zustandssignale Z 1 bis Zn) anliegen und der an seinem Ausgang ein Signal (SEI) abgibt, das einem das erste Teilwort (AD) in den Befehlsgeber (BZ) einspeichernden Setzsignal (S)zugeordnet ist. Claims: 1. Circuit arrangement for addressing jump instructions in a programmable control unit, in which in a program memory on off a plurality of instruction words formed program is stored in which the Command words are addressed by addresses given by a command counter, with each command word addressing one data in a data memory first sub-word and a second sub-word defining the operations to be carried out contains, in which as a function of the second sub-word and as a function of status signals the first partial word as the address for the next following one assigned to the jump command Command word is stored in the command counter and in which a command decoder is provided which generates control signals assigned to the second partial words, g e - characterized by a multiplexer (MX), at whose selection inputs the control signals (B) are present, at whose data inputs the status signals (ZO) and in one to be controlled Switching mechanism generated further status signals Z 1 to Zn) are present and the one at his Output emits a signal (SEI) that sends the first partial word (AD) to the command generator (BZ) storing set signal (S) is assigned. 2. Schaltungsanordnung nach Anspruch 1, dadurch gekennzeichnet, daß ein Antivalenzglied (EX) vorgesehen ist, dessen erster Eingang mit dem Ausgang des Multiplexers (MX) verbunden ist, an dessen zweitem Eingang ein den Binärwert des Signals (SE 1) am Ausgang des MuXtiplexers (MX) invertierendes Steuersignal (84) anliegt und das an seinem Ausgang an dem Setzsignal (S)zugeordnetes weiteres Signal (SE2) abgibt. 2. Circuit arrangement according to claim 1, characterized in that an antivalence element (EX) is provided, the first input of which is connected to the output of the Multiplexer (MX) is connected, at the second input of the binary value of the Signal (SE 1) at the output of the MuXtiplexer (MX) inverting control signal (84) is applied and the further signal assigned to the set signal (S) at its output (SE2) surrenders. 3. Schaltungsanordnung nach Anspruch 2, dadurch gekennzeichnet, daß ein UND-Glied (U)vorgesehen ist, dessen erster Eingang mit dem Ausgang des Antivalenzgliedes (EX) verbunden ist, an dessen zweitem Eingang ein das Setzsignal (S) auslösendes Signal (T3) anliegt und das an seinem Ausgang das Setzsignal (5) abgibt. 3. Circuit arrangement according to claim 2, characterized in that an AND element (U) is provided, the first input of which is connected to the output of the non-equivalence element (EX) is connected, at the second input of the set signal (S) triggering Signal (T3) is present and that emits the set signal (5) at its output. 4. Schaltungsanordnung nach einem der vorhergehenden Ansprüche, dadurch gekennzeichnet, daß mindestens ein Flipflop (FF) vorgesehen ist, in dem der Binärwert eines Zustandssignals (ZO bis Zn) speicherbar ist. 4. Circuit arrangement according to one of the preceding claims, characterized characterized in that at least one flip-flop (FF) is provided in which the binary value a status signal (ZO to Zn) can be stored. Die Erfindung bezieht sich auf eine Schaltungsanordnung zum Adressieren von Sprungbefehlen in einem progammierbaren Steuerwerk, bei dem in einem Programmspeicher ein aus einer Mehrzahl von Befehlsworten gebildetes Programm gespeichert ist, bei dem die Befehlsworte durch von einem Befehlszähler abgegebene Adressen adressiert werden, bei dem jedes Befehlswort jeweils ein Daten in einem Datenspeicher adressierendes erstes Teilwort und ein auszuführende Operationen bestimmendes zweites Teilwort enthält, bei dem in Abhängigkeit vom zweiten Teilwort und in Abhängigkeit von Zustandssignalen das erste Teilwort als Adresse für das dem Sprungbefehl zugeordnete nächstfolgende Befehiswort in den Befehlszähler eingespeichert wird und bei dem ein Befehlsdecodierer vorgesehen ist, der den zweiten Teilworten zugeordnete Steuersignale erzeugt. The invention relates to a circuit arrangement for addressing of jump commands in a programmable control unit, in which in a program memory a program formed from a plurality of instruction words is stored in which addresses the command words by means of addresses issued by a command counter are, in which each command word in each case one data in a data memory addressing first sub-word and a second sub-word defining the operations to be carried out contains, in which as a function of the second sub-word and as a function of status signals the first partial word as the address for the next following one assigned to the jump command Instruction word is stored in the instruction counter and in which an instruction decoder is provided which generates the second partial words associated control signals. Es sind bereits programmierbare Steuerwerke bekannt, die aus einem Programmspeicher, aus einem diesem zugeordneten Befehlszähler, aus einer Verarbeitungseinheit, einem Datenspeicher, einem Befehlsdeco dierer und aus einer Ein/Ausgabeeinheit bestehen. In dem Programmspeicher ist ein aus einer Mehrzahl von Befehlsworten gebildetes Programm gespeichert. Die Befehlsworte bestehen häufig aus einem ersten Teilwort, das die Adresse eines zu bearbeitenden Operanden angibt und aus einem zweiten Teilwort, das jeweils eine auszuführende Operation angibt. Die Operanden sind üblicherweise im Datenspeicher gespeichert, können jedoch auch von der Ein/Ausgabeeinheit abgegeben werden. Die Verarbeitungseinheit führt logische oder arithmetische Verknüpfungen von mit jeweils einem Befehlswort adressierten Operanden durch und gibt das Verknüpfungsergebnis an eine ebenfalls durch ein Befehlswort adressierte Stelle ab. There are already programmable control units known that consist of a Program memory, from an instruction counter assigned to this, from a processing unit, a data memory, an instruction decoder and an input / output unit. In the program memory is one formed from a plurality of instruction words Program saved. The command words often consist of a first partial word, which specifies the address of an operand to be processed and from a second partial word, each indicating an operation to be performed. The operands are usually stored in the data memory, but can also be output from the input / output unit will. The processing unit carries out logical or arithmetic operations of operands addressed with one command word each and gives the result of the linkage to a position also addressed by a command word. Die Befehlsworte im Programmspeicher, die nur eine Adresse enthalten werden üblicherweise dadurch adressiert, daß der Befehlszähler schrittweise um jeweils eine Einheit fortgeschaltet wird. Die Befehls worte werden damit nacheinander aus dem Programmspeicher ausgelesen und vom Steuerwerk werden die entsprechenden Operationen durchgeführt. The command words in the program memory that contain only one address are usually addressed by incrementally increasing the command counter a unit is advanced. The command words are thus written out one after the other read out from the program memory and the corresponding operations are carried out by the control unit carried out. Zum Adressieren eines Sprungbefehls ist es bereits bekannt, neben einem Programmspeicher einen weiteren Speicher vorzusehen, in dem die Adresse des Sprungbefehls gespeichert ist. Vor dem Sprungbefehl wird durch ein entsprechendes Befehlswort die Adresse des Sprungbefehls vom Speicher zum Befehlszähler übertragen und damit wird als nächstfolgender Befehl der Sprungbefehl durch den Befehlszähler adressiert. For addressing a jump instruction it is already known next to a program memory to provide a further memory in which the address of the Jump instruction is stored. A corresponding Command word transfer the address of the jump command from the memory to the command counter and thus the next command is the jump command through the command counter addressed. Falls jedoch mehrere verschiedene Sprungbefehle aufgerufen werden müssen, müssen auch in dem weiteren Speicher mehrere Adressen speicherbar sein und es muß eine Auswahleinrichtung für die Adresse des jeweils aufgerufenen Sprungbefehls vorgesehen werden, was einen verhältnismäßig großen Aufwand erfordert.However, if several different jump commands are called must, several addresses must also be storable in the further memory and there must be a selection device for the address of the jump instruction called be provided, which requires a relatively large amount of effort. Aus einer Druckschrift »Siemens-System 300 für Prozeßautomatisierung« Band 1: Zentraleinheiten, Siemens AG, 1971, Seiten 64 bis 69 ist es bereits bekannt, in einem ersten Teilwort eines Sprungbefehls diejenige Adresse anzugeben, mit der der nächstfolgend zu bearbeitende Befehl adressiert wird. In Abhängigkeit vom zweiten Teilwort, das die auszuführende Operation bestimmt, wird das erste Teilwort zum Befehlszähler durchgeschaltet. Falls ein bedingter Sprungbefehl durchgeführt werden soll, wird mit Hilfe des zweiten Teilworts die entsprechende Bedingung überprüft. Falls ein unbedingter Sprungbefehl durchgeführt werden soll, wird das erste Teilwort in jedem Fall zum Befehiszähler durchgeschaltet. Die Abfrage der Bedingungen erfolgt durch eine Überprüfung des Inhalts eines in einem Rechenwerk üblicherweise vorgesehenen Akkumulators. Falls der Inhalt des Akkumulators beispielsweise Q von 0 verschieden, positive oder negative Zahlen darstellt, gibt er unterschiedliche Zustandsignale ab, die mit Hilfe des zweiten Teilwortes überprüft werden. From a publication "Siemens System 300 for Process Automation" Volume 1: Central Units, Siemens AG, 1971, pages 64 to 69, it is already known specify in a first partial word of a jump instruction the address with which the next command to be processed is addressed. Depending on the second The sub-word that determines the operation to be performed becomes the first sub-word for the Command counter switched through. If a conditional jump command is carried out should, the corresponding condition is checked with the help of the second sub-word. If an unconditional jump command is to be carried out, the first partial word is switched through to the command counter in any case. The conditions are queried by checking the content of an arithmetic logic unit usually provided Accumulator. For example, if the content of the accumulator Q is different from 0, represents positive or negative numbers, it gives different status signals which are checked with the help of the second partial word.
DE2703602A 1977-01-28 1977-01-28 Circuit arrangement for addressing jump commands in a programmable control unit Withdrawn DE2703602B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
DE2703602A DE2703602B1 (en) 1977-01-28 1977-01-28 Circuit arrangement for addressing jump commands in a programmable control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
DE2703602A DE2703602B1 (en) 1977-01-28 1977-01-28 Circuit arrangement for addressing jump commands in a programmable control unit

Publications (1)

Publication Number Publication Date
DE2703602B1 true DE2703602B1 (en) 1978-02-09

Family

ID=5999823

Family Applications (1)

Application Number Title Priority Date Filing Date
DE2703602A Withdrawn DE2703602B1 (en) 1977-01-28 1977-01-28 Circuit arrangement for addressing jump commands in a programmable control unit

Country Status (1)

Country Link
DE (1) DE2703602B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0006488A1 (en) * 1978-06-24 1980-01-09 Frankl & Kirchner GmbH. & Co. KG Fabrik für Elektromotoren und elektrische Apparate A jump-method in a memory-controlled sequential control device for machines, especially for industrial sewing machines, and sequential control circuits therefor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0006488A1 (en) * 1978-06-24 1980-01-09 Frankl & Kirchner GmbH. & Co. KG Fabrik für Elektromotoren und elektrische Apparate A jump-method in a memory-controlled sequential control device for machines, especially for industrial sewing machines, and sequential control circuits therefor

Similar Documents

Publication Publication Date Title
DE2755273C2 (en)
DE1499722C2 (en) Device for modifying information words
DE1499203B1 (en) Circuit arrangement for memory protection in data processing systems with simultaneous operation
DE2714805A1 (en) DATA PROCESSING SYSTEM
DE1275800B (en) Control unit for data processing machines
DE2339636A1 (en) PROGRAM CONTROL DEVICE
DE2718110A1 (en) DATA PROCESSING UNIT
DE1909090C3 (en) Protection device for the main memory of a computer system
EP0130269A2 (en) Stored program control
DE2245284A1 (en) DATA PROCESSING SYSTEM
DE2403669A1 (en) SPECIAL COMPUTER
CH632349A5 (en) MICRO COMMAND CONTROL DEVICE.
DE3009121C2 (en) Microprogram controller
DE2440390A1 (en) ELECTRONIC CALCULATOR
DE2622974A1 (en) MICROPROGRAMMABLE CONTROL UNIT
DE2703602B1 (en) Circuit arrangement for addressing jump commands in a programmable control unit
DE1069910B (en) Command unit with index register
DE1806464A1 (en) Address generator for a digital computer
DE2024584B2 (en) Control device for a general data processing device
DE2805939C2 (en) Control unit
DE2954533C2 (en)
DE1195972B (en) Arrangement for performing a branch in a program-controlled computing machine
DE3603319C2 (en)
DE2936801A1 (en) CONTROL DEVICE FOR EXECUTING INSTRUCTIONS
DE2327950C3 (en) Device for controlling industrial facilities

Legal Events

Date Code Title Description
BHN Withdrawal