Przedmiotem wynalazku jest sposób wyboru kodu bloków informacyjnych zapisanych w pierwszym lub drugim kodzie, przekazywanych w postaci slów binarnych o parzystej liczbie jedynek logicznych dla pierwszego kodu i nieparzystej liczbie jedynek lo¬ gicznych dla drugiego kodu wraz z sygnalem stro¬ powania przekazywanych slów binarnych.Znane dotychczas sposoby wyboru kodu bloków informacyjnych mozna podzielic na dwie grupy: — pierwsza grupa obejmuje sposoby w których sygnal rodzaju kodu decydujacy o przelaczeniu translatora oraz ukladu kontroli parzystosci na kod przekazywanej informacji przyjmuje stan wybrany przez operatora, który musi znac rodzaj kodu prze¬ kazywanej informacji przed rozpoczeciem transmi¬ sji — i jest wada tej grupy sposobów wyboru ro¬ dzaju kodu, bowiem wydluza sie czas transmisji bloków informacyjnych, o czas identyfikacji rodzaju kodu co przy blednej identyfikacji rodzaju kodu powoduje koniecznosc ponownego rozpoczecia tran¬ smisji; — druga grupa znanych sposobów wyboru rodzaju kodu polega na. przekazywaniu przed blokiem in¬ formacyjnym slowa binarnego o okreslonej kom¬ binacji ' jedynek logicznych, które identyfikuje na¬ stepujacy po nim blok informacyjny.Wybór kodu odbywa sie tu zatem bez ingerencji operatora ale wymaga jednak przekazywania przed kazdym blokiem informacyjnym zapisanym w ko¬ dzie innym niz poprzedni blok dodatkowego slowa. 10 15 20 25 30 Istota sposobu wyboru kodu bloków informa¬ cyjnych wedlug wynalazku polega na tym, ze trans¬ lator slów binarnych przekazywanych w pierwszym lub drugim kodzie i uklad kontroli parzystosci slów binarnych sygnalizujacy parzysta lub nieparzysta liczbe jedynek logicznych steruje sie sygnalem ro¬ dzaju kodu wytwarzanym w ukladzie wyboru kodu w oparciu o sygnal wyjsciowy z ukladu kontroli parzystosci przekazywanego slowa binarnego stro- bowany sygnalem strobowania przekazywanych slów binarnych, a w zaleznosci od stanu logicznego sygnalu rodzaju pracy albo przelacza sie sygnal ro¬ dzaju kodu w stan logiczny odpowiedni dla kodu przekazywanego slowa binarnego albo blokuje sie zmiany sygnalu rodzaju kodu i pobudza sie uklad sygnalizacji bledu po odebraniu sygnalu wyjscio¬ wego z ukladu kontroli parzystosci niewlasciwego dla kodu okreslonego przez sygnal rodzaju kodu.Zaleta techniczna sposobu wyboru kodu bloków informacyjnych wedlug wynalazku jest wyelimino¬ wanie wplywu operatora na wybór kodu, oraz uni¬ wersalnosc sposobu polegajaca na tym, ze urzadze¬ nie w którym jest wykorzystywany moze zarówno identyfikowac kod odbieranego bloku informacyj¬ nego bez kontroli parzystosci jak tez kontrolowac parzystosc odbieranych slów binarnych-przy za¬ blokowanych zmianach sygnalu rodzaju kodu. Blo¬ kada zmian sygnalu rodzaju pracy moze nastepo¬ wac na przyklad po odebraniu slowa binarnego wy- rózniacego bloki przesylane w tym samym kodzie. 110 583110 583 Sposób jest blizej przedstawiony na rysunku, na przykladzie jego realizacji w postaci schematu blo¬ kowego.Sposób wyboru kodu bloków informacyjnych we¬ dlug wynalazku, zapisanych w pierwszym lub dru¬ gim kodzie przekazywanych w postaci slów binar¬ nych 8 o parzystej" liczbie jedynek logicznych dla pierwszego kodu i nieparzystej liczbie jedynek lo¬ gicznych dla drugiego kodu wraz z sygnalem stro- bowania 7 przekazywanych slów binarnych 8 polega na tym, ze translator 1 slów binarnych 8 przekazy¬ wanych w pierwszym lub drugim kodzie'i uklad kontroli parzystosci 2 sygnalizujacy wystapienie parzystej lub nieparzystej liczby jedynek logicz¬ nych steruje sie sygnalem rodzaju kodu 9 wytwa¬ rzanym w ukladzie wyboru kodu 3 w oparciu o sy¬ gnal wyjsciowy 10 z ukladu kontroli parzystosci 2 przekazywanego slowa binarnego 8 strobowany sygnalem strobowania 7 przekazywanych slów bi¬ narnych 8, a w zaleznosci od stanu logicznego syg¬ nalu rodzaju pracy 6 albo przelacza sie sygnal ro¬ dzaju kodu 9 w stan logiczny odpowiedni dla kodu przekazywanego slowa binarnego 8 albo blokuje sie zmiany sygnalu rodzaju kodu 9 i pobudza sie uklad sygnalizacji bledu 4 po odebraniu sygnalu wyjsciowego 10 z ukladu kontroli parzystosci 2 nie¬ wlasciwego dla kodu okreslonego pfzez sygnal ro¬ dzaju kodu 9.Sposób wyboru kodu bloków informacyjnych we¬ dlug wynalazku przedstawiony jest na przykladzie schematu blokowego urzadzenia do translacji i wy¬ boru kodu dzialajacego w oparciu o wymieniony sposób, w którym translator 1 jest przelaczany syg¬ nalem rodzaju kodu 9 przez co moze dekodowac slowa binarne 8 zapisane w jednym z dwóch ko¬ dów, tak ze ten sam sygnal przelacza uklad kon¬ troli parzystosci 2 oraz steruje wskaznikiem kodu 5. Dzieki temu uklad kontroli parzystosci 2 moze sprawdzac parzystosci jedynek logicznych dla pierwszego kodu i nieparzystosc jedynek logicz¬ nych dla drugiego kodu. Uklad wyboru kodu 3 mo¬ ze byc przerzutnikiem, którego stan wskazuje na rodzaj kodu i przerzutnik ten moze albo zmieniac 15 25 35 40 stan po kazdej zmianie sygnalu wyjsciowego 10 z ukladu kontroli parzystosci 2,, albo moze byc usta¬ wiany w okreslony stan na caly, wyrózniony blok informacyjny. W tym ostatnim przypadku niezgod¬ nosc stanu przerzutnika rodzaju kodu ze stanem sygnalu wyjsciowego 10 ukladu kontroli parzystosci 2 powoduje wysterowanie ukladu sygnalizacji ble¬ du 4.Jednym z typowych zastosowan urzadzenia do translacji i wyboru kodu dzialajacego w oparciu o sposób wedlug wynalazku moga byc uklady ste¬ rowania numerycznego obrabiarek, które musza byc przystosowane do odbioru informacji zapisanej na tasmie perforowanej w jednym z dwóch kodów.Opisany wyzej sposób wyboru kodu mozna sto¬ sowac takze w innych systemach które odbieraja jeden z dwóch kodów o podanych wyzej wlasnos¬ ciach.Zastrzezenie patentowe Sposób wyboru kodu bloków informacyjnych za¬ pisanych w pierwszym lub drugim kodzie, przeka¬ zywanych w postaci slów binarnych o parzystej liczbie jedynek logicznych dla pierwszego kodu i nieparzystej liczbie jedynek dla drugiego kodu wraz z sygnalem strobowania przekazywanych slów binarnych, znamienny tym, ze translator (1) slów binarnych (8) przekazywanych w pierwszym lub drugim kodzie i uklad kontroli parzystosci (2) slów binarnych (8) sygnalizujacy parzysta lub nieparzysta liczbe jedynek logicznych steruje sie sygnalem ro¬ dzaju kodu (9) wytwarzanym w ukladzie wyboru kodu (3) w oparciu o sygnal wyjsciowy (10) z ukla¬ du kontroli parzystosci (2) przekazywanego slowa binarnego (8), strobowany sygnalem strobowania (7) przekazywanych slów binarnych (8), a w zalez¬ nosci od stanu logicznego sygnalu rodzaju pracy (6) albo przelacza sie sygnal rodzaju kodu (9) w stan logiczny odpowiedni dla kodu przekazywanego slo¬ wa binarnego (8) albo blokuje sie zmiany sygnalu rodzaju kodu (9) i pobudza sie uklad sygnalizacji bledu (4) po odebraniu sygnalu wyjsciowego (10) z ukladu kontroli parzystosci (2) niewlasciwego dla kodu okreslonego przez sygnal rodzaju kodu (9).LDA. Zakl. 2. Zam. 320/81. Nakl. 120 szt.Cena 45 zl PLThe subject of the invention is a method of selecting the code of information blocks recorded in the first or second code, transmitted in the form of binary words with an even number of logical ones for the first code and an odd number of logical ones for the second code together with the signal for tuning the transmitted binary words. methods of selecting the code of information blocks can be divided into two groups: - the first group includes the methods in which the code type signal deciding about switching the translator and the parity control system to the code of the transmitted information takes the state chosen by the operator, who must know the type of code of the transmitted information before the start of transmission - and there is a disadvantage of this group of methods of selecting the type of code, because the transmission time of information blocks is longer, by the time of identifying the type of code, which in the event of a wrong identification of the type of code causes the necessity to restart the transmission; - the second group of known methods for selecting the type of code consists in. transmitting before the information block a binary word with a specific combination of logical ones, which is identified by the following information block. The selection of the code takes place here without the operator's intervention, but requires transmitting before each information block written in another code than the previous block of the extra word. The essence of the method of selecting the code of information blocks according to the invention consists in the fact that the translator of binary words transmitted in the first or second code and the binary parity check system signaling an even or odd number of logical ones are controlled by a signal of the type code generated in the code selection system based on the output signal from the parity check system of the transmitted binary word, tuned by the strobe signal of the transmitted binary words, and depending on the logical state of the work mode signal, either the code type signal is switched into a logical state appropriate for the transmitted code binary word or the code type signal is blocked and the error signaling system is activated when the output from the parity check system is incorrect for the code specified by the code type signal. The technical advantage of the method of selecting the code of the information blocks according to the invention is to eliminate the operator's influence the choice of code, and the versatility of the method in that the device in which it is used can both identify the code of the received information block without parity check and also check the parity of the received binary words at blocked code type signal changes. The block of changing the mode of signal may occur, for example, upon receipt of a binary word distinguishing blocks transmitted in the same code. 110 583110 583 The method is shown in more detail in the drawing, for example, in the form of a block diagram. The method of selecting the code of information blocks according to the invention, written in the first or second code, transmitted in the form of binary words 8 with even number " the number of logical ones for the first code and an odd number of logical ones for the second code together with the strobe signal 7 of the transferred binary words 8 consists in that the translator 1 of the binary words 8 transmitted in the first or second code parity check 2 signaling the occurrence of an even or odd number of logical ones is controlled by the code type signal 9 generated in the code selection circuit 3 based on the output 10 from the parity check circuit 2 of the transmitted binary word 8 strobe signal 7 transmitted words b depending on the logic state of the work mode signal 6 or the code 9 is already in a logical state corresponding to the code of the transmitted binary word 8, or the changes of the code type 9 signal are blocked and the error signaling system 4 is activated after receiving the output signal 10 from the parity check 2 not proper for the code defined by the code type signal 9. The method of selecting the code of the information blocks according to the invention is illustrated by an example of a block diagram of an operating code-translation and selection apparatus based on said method, in which translator 1 is switched by a code type signal 9, which can decode binary words. 8 is written in one of the two codes, so that the same signal switches the parity checker 2 and controls the code pointer 5. Thanks to this, the parity checker 2 can check the parity of logical ones for the first code and the odd parity of logical ones for the second code. The code selection circuit 3 may be a toggle whose state indicates the type of code, and the toggle may either change state upon each change of output 10 from parity check 2, or may be set to a specific state at complete info block highlighted. In the latter case, the mismatch between the state of the code type trigger and the state of the output signal 10 of the parity check circuit 2 causes the error signaling circuit 4 to be triggered. One of the typical applications of the translation and code selection apparatus operating in accordance with the method of the invention may be Numerical marking of machine tools, which must be adapted to receive information stored on the punched tape in one of the two codes. The method of selecting the code described above can also be used in other systems that receive one of the two codes with the above properties. A method of selecting the code of information blocks written in the first or second code, transmitted in the form of binary words with an even number of logical ones for the first code and an odd number of ones for the second code along with the strobe signal of the transmitted binary words, characterized in that the translator ( 1) binary words (8) transmitted in the first the wrong or second code and the parity check (2) of the binary words (8) signaling the even or odd number of logical ones are controlled by the code type signal (9) produced in the code selection circuit (3) based on the output (10) from the parity check (2) of the transmitted binary word (8), strobe by the strobe signal (7) of the transmitted binary words (8), and depending on the logic state of the operating mode signal (6) or the code type signal (9) is switched into a logical state appropriate to the code of the transmitted binary word (8) or changes to the code type signal (9) are blocked and the error signaling system (4) is activated after receiving the output signal (10) from the parity check (2) incorrect for the code determined by the code type signal (9) .LDA. Zakl. 2. Order 320/81. Nakl. 120 pcs Price PLN 45 PL