SU1483431A1 - Modulo 9 check and program control unit - Google Patents

Modulo 9 check and program control unit Download PDF

Info

Publication number
SU1483431A1
SU1483431A1 SU874275544A SU4275544A SU1483431A1 SU 1483431 A1 SU1483431 A1 SU 1483431A1 SU 874275544 A SU874275544 A SU 874275544A SU 4275544 A SU4275544 A SU 4275544A SU 1483431 A1 SU1483431 A1 SU 1483431A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
block
output
register
adder
Prior art date
Application number
SU874275544A
Other languages
Russian (ru)
Inventor
Владимир Львович Кошкин
Александр Иванович Лапандин
Юрий Александрович Симецкий
Original Assignee
Предприятие П/Я В-2190
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 Предприятие П/Я В-2190 filed Critical Предприятие П/Я В-2190
Priority to SU874275544A priority Critical patent/SU1483431A1/en
Application granted granted Critical
Publication of SU1483431A1 publication Critical patent/SU1483431A1/en

Links

Abstract

Изобретение относитс  к автоматике и вычислительной технике и может быть использовано в системах числового программного управлени . Цель изобретени  - повышение быстродействи . Устройство контрол  по модулю 9 дл  программного управлени  состоит из блока 1 ввода программ, блока 2 отработки координатных перемещений и контрольного счетчика 3, дополнительных блоков: двух блоков сравнени  4, 5, двух сумматоров 6, 7, двух регистров 8,9, блока 10 формировани  кода, элемента И 11. 2 ил.The invention relates to automation and computing and can be used in numerical control systems. The purpose of the invention is to increase speed. The control unit modulo 9 for software control consists of a block 1 of program input, block 2 of working out coordinate movements and a control counter 3, additional blocks: two comparison blocks 4, 5, two adders 6, 7, two registers 8.9, block 10 code element 11. 11 Il.

Description

ЈьЈ

00 СО Ј СО00 CO Ј CO

Фиг. 1FIG. one

Изобретение относитс  к автоматике и вычислительной технике и может быть использовано в системах числового программного управлени .The invention relates to automation and computing and can be used in numerical control systems.

Цель изобретени  - повышение быстро действи .The purpose of the invention is to increase the speed of action.

На фиг. 1 приведена блок-схема устройства; на фиг. 2 - по снени  к работе блока формировани  кода.FIG. 1 shows a block diagram of the device; in fig. 2 - to explain the operation of the code generation unit.

Устройство контрол  по модулю 9 дл  программного управлени  содержит блок 1 ввода программ, блок 2 отработки координатных перемещений, контрольный счетчик 3, первый 4 и второй 5 блоки сравнени , первый 6 и второй 7 сумматоры, второй 8 и первый 9 регистры, блок 10 формировани  кода и элемент И 11.The control unit modulo 9 for program control contains a block 1 for entering programs, a block 2 for working out coordinate movements, a check counter 3, first 4 and second 5 comparison blocks, first 6 and second 7 adders, second 8 and first 9 registers, code generation block 10 and element and 11.

Блок 10 формирует дополнительный код числа 9, что соответствует коду числа 7.Block 10 forms the additional code of the number 9, which corresponds to the code of the number 7.

Сумматор 7 может быть выполнен на элементе К155ИМЗ. При этом один из входов старшего разр да соединен с нулем, а три младших разр да через три повторител  с выходом блока 5. Функционально эти повторители  вл ютс  формирователем 10 кода.The adder 7 can be performed on the element K155IMZ. In this case, one of the inputs of the high-order bit is connected to zero, and the three lower-order bits through three repeaters with the output of block 5. Functionally, these repeaters are shaper 10 codes.

Алгоритм работы устройства основан на свойствах дес тичного числа иметь одинаковый остаток от делени  на дев ть как всего числа, так и суммы составл ющих его дес тичных цифр.The algorithm of the device operation is based on the properties of a decimal number to have the same remainder of the division by nine as the total number, and the sum of the decimal components that make it up.

В начальный момент регистр 8 находитс  в нулевом состо нии, информаци  на выходе блока 1 отсутствует. Следовательно, на выходе сумматора 6 установлен нулевой код, при этом на выходе блока устанавливаетс  нулевой потенциал, так какО- 9. На выходе блока 10 устанавливаетс  нулевой код, поскольку блок 10 формирует код числа 7 (0111) только если код на выходе сумматора 6 больше или равен числу 9.At the initial moment, register 8 is in the zero state, information at the output of block 1 is missing. Therefore, a zero code is set at the output of the adder 6, while a zero potential is set at the output of the block, since O-9. A zero code is set at the output of block 10, since block 10 forms the code for the number 7 (0111) only if the code at the output of the adder 6 is greater or equal to number 9.

Устройство работает следующим образом .The device works as follows.

Перед началом работы регистры 8 и 9 и счетчик 3 установлены в нулевое состо ние (на выходах - нулевые коды). Информаци  о величине перемещени  по координате в виде последовательно-параллельного двоично-дес тичного кода поступает с выхода блока 1 ввода программ на вход блока 2 отработки координатных перемещений (интерпол тор ). Преобразованна  блоком 2 информаци  в виде унитарного кода поступает на вход контрольного счетчика 3. При вводе информации з блок 2 отработки координатных перемещений код каждого дес тичного разр да величины перемещени  одновременно поступает на первый вход сумматора 6, а с его выхода - на второй вход сумматора 7, с выхода которого код числа поступает наBefore starting operation, registers 8 and 9 and counter 3 are set to the zero state (there are zero codes at the outputs). Information about the magnitude of movement along the coordinate in the form of a serial-parallel binary-decimal code comes from the output of the program input block 1 to the input of the block 2 for working coordinate movements (interpolator). The information converted by unit 2 in the form of a unitary code is fed to the input of the control counter 3. When entering information from the unit 2 to working out coordinate displacements, the code of each decimal digit of the displacement amount simultaneously arrives at the first input of the adder 6, and from its output - to the second input of the adder 7 from the output of which the code of the number arrives at

10ten

1515

2020

2525

30thirty

3535

4040

4545

5050

дул  9 численной части координатного перемещени . Одновременно производитс  запись этого числа в промежуточную пам ть блока 2. При по влении адреса LF (конец кадра. ввод программы прерываетс .blew 9 the numerical part of the coordinate movement. At the same time, this number is recorded in the intermediate memory of block 2. When the address LF appears (the end of the frame. Program input is interrupted.

По сигналу конца отработки предыдущего кадра происходит перезапись числа из регистра 8 в регистр 9 и одновременно происходит пуск ввода следующего кадра блока 1 и перезапись информации из промежуточной в рабочую пам ть блока 2. Блок 2 начинает отработку этого перемещени . Цикл повтор етс . Запись информации в регистрThe signal of the end of testing the previous frame overwrites the number from register 8 to register 9 and at the same time starts the input of the next frame of block 1 and overwrites the information from the intermediate into the working memory of block 2. Block 2 starts processing this movement. The cycle is repeated. Writing information to the register

9производитс  по заднему фронту импульса записи.9 is generated on the falling edge of the write pulse.

С выхода регистра 8 код числа поступает на вход сумматора 6, суммиру сь со значением следующего дес тичного разр да, вводимого в блок 2. Сумма этих чисел с выхода сумматора 6 поступает на второй вход блока 5 сравнени , на первом входе которого ус- таначливаетс  код числа 9. При превышении суммы чисел на входе сумматоре 6 числа 9 на выходе блока сравнени  5 устанавливаетс  единичный потенциал, включающий блокFrom the output of register 8, the code of the number is fed to the input of the adder 6, adding to the value of the next decimal digit entered in block 2. The sum of these numbers from the output of the adder 6 is fed to the second input of the comparison block 5, at the first input of which the code is set 9. If you exceed the sum of the numbers at the input of the adder 6 of the number 9, a single potential is established at the output of the comparison block 5, which includes the block

10формировани  кода. При этом на выходе блока 10 формируетс  дополнительный код числа 9. Этот код поступает на первый вход сумматора 7. Таким образом, на выходе сумматора 7 формируетс  разность между числом , поступающим на его второй вход, и числом 9. Следовательно, при введении в блок 2 отработки координатных перемещений некоторого дес тичного числа в регистр 8 окажетс  записанным число, равное модулю 9 от суммы цифр, составл ющих это дес тичное число..10 forming code. At the output of the block 10, an additional code of the number 9 is formed. This code goes to the first input of the adder 7. Thus, the output of the adder 7 forms the difference between the number arriving at its second input and the number 9. Consequently, when entered into block 2 practicing the coordinate displacements of a certain decimal number in register 8 will be a recorded number equal to modulo 9 of the sum of the digits constituting this decimal number ..

Так, при вводе в блок 2 числа 1234567 в регистре 2 окажетс  записанным число 1. Из регистра 8 по сигналу конца отработки предыдущего кадра число переписываетс  в регистр 9.Thus, when entering the number 1234567 in block 2, register 2 will contain the recorded number 1. Out of register 8, the signal rewrites the register 9 using the end of the previous frame's signal.

Информаци  с выхода блока 2 в виде унитарного кода поступает на вход контроль ного счетчика 3. Поскольку коэффициент делени  счетчика 3 равен 9, то после отработки блоком 2 заданного перемещени  в счетчике 3 остаетс  число, равное остатку от делени  числа импульсов, поступивших с выхода блока 2, на 9 т.е. в приведенном примере 1 (1234567:9 137174 и остаток 1).The information from the output of block 2 as a unitary code is fed to the input of the control counter 3. Since the division factor of counter 3 is 9, after the unit 2 has completed the specified movement, the counter 3 remains a number equal to the remainder of the division of the number of pulses from the output of block 2 on 9 i.e. in example 1 (1234567: 9 137174 and residue 1).

Числа с выходов счетчика 3 и регистра 9 поступают на блок 4 сравнени . При неравенстве этих чисел, что свидетельствует о неправильной отработке заданного перемещени , на выходе блока 4 устанавливаетс  единичный потенциал. По окончании отработки каждого кадра блок 2 формирует импульс «Конец отработки кадра, который, повход регистра 8, куда и записываетс  по сиг-ступа  на вход элемента И 11, формирует наThe numbers from the outputs of counter 3 and register 9 arrive at block 4 of the comparison. If these numbers are not equal, which indicates the incorrect working out of a given movement, a unit potential is established at the output of block 4. At the end of the processing of each frame, block 2 generates a pulse. The end of development of the frame, which, the turn of register 8, where it is recorded by signal to the input of the element 11, forms

палу синхронизирующего импульса (СИ), сопровождающего каждый дес тичный разр д числа, вводимого в блок 2. При вводе программы в регистр 8 производитс  запись моthe synchronizing pulse (CI) accompanying each decimal digit of the number entered in block 2. When a program is entered into register 8, a record is written

его выходе сигнал «Сбой в случае неправильной отработки заданного перемещени . Данное устройство может быть включено в состав любого устройства программногоits output signal "Failure in case of improper processing of a given movement. This device can be included with any software device.

00

5five

00

5five

00

5five

00

5five

00

дул  9 численной части координатного перемещени . Одновременно производитс  запись этого числа в промежуточную пам ть блока 2. При по влении адреса LF (конец кадра. ввод программы прерываетс .blew 9 the numerical part of the coordinate movement. At the same time, this number is recorded in the intermediate memory of block 2. When the address LF appears (the end of the frame. Program input is interrupted.

По сигналу конца отработки предыдущего кадра происходит перезапись числа из регистра 8 в регистр 9 и одновременно происходит пуск ввода следующего кадра блока 1 и перезапись информации из промежуточной в рабочую пам ть блока 2. Блок 2 начинает отработку этого перемещени . Цикл повтор етс . Запись информации в регистрThe signal of the end of testing the previous frame overwrites the number from register 8 to register 9 and at the same time starts the input of the next frame of block 1 and overwrites the information from the intermediate into the working memory of block 2. Block 2 starts processing this movement. The cycle is repeated. Writing information to the register

9производитс  по заднему фронту импульса записи.9 is generated on the falling edge of the write pulse.

С выхода регистра 8 код числа поступает на вход сумматора 6, суммиру сь со значением следующего дес тичного разр да, вводимого в блок 2. Сумма этих чисел с выхода сумматора 6 поступает на второй вход блока 5 сравнени , на первом входе которого ус- таначливаетс  код числа 9. При превышении суммы чисел на входе сумматоре 6 числа 9 на выходе блока сравнени  5 устанавливаетс  единичный потенциал, включающий блокFrom the output of register 8, the code of the number is fed to the input of the adder 6, adding to the value of the next decimal digit entered in block 2. The sum of these numbers from the output of the adder 6 is fed to the second input of the comparison block 5, at the first input of which the code is set 9. If you exceed the sum of the numbers at the input of the adder 6 of the number 9, a single potential is established at the output of the comparison block 5, which includes the block

10формировани  кода. При этом на выходе блока 10 формируетс  дополнительный код числа 9. Этот код поступает на первый вход сумматора 7. Таким образом, на выходе сумматора 7 формируетс  разность между числом , поступающим на его второй вход, и числом 9. Следовательно, при введении в блок 2 отработки координатных перемещений некоторого дес тичного числа в регистр 8 окажетс  записанным число, равное модулю 9 от суммы цифр, составл ющих это дес тичное число..10 forming code. At the output of the block 10, an additional code of the number 9 is formed. This code goes to the first input of the adder 7. Thus, the output of the adder 7 forms the difference between the number arriving at its second input and the number 9. Consequently, when entered into block 2 practicing the coordinate displacements of a certain decimal number in register 8 will be a recorded number equal to modulo 9 of the sum of the digits constituting this decimal number ..

Так, при вводе в блок 2 числа 1234567 в регистре 2 окажетс  записанным число 1. Из регистра 8 по сигналу конца отработки предыдущего кадра число переписываетс  в регистр 9.Thus, when entering the number 1234567 in block 2, register 2 will contain the recorded number 1. Out of register 8, the signal rewrites the register 9 using the end of the previous frame's signal.

Информаци  с выхода блока 2 в виде унитарного кода поступает на вход контрольного счетчика 3. Поскольку коэффициент делени  счетчика 3 равен 9, то после отработки блоком 2 заданного перемещени  в счетчике 3 остаетс  число, равное остатку от делени  числа импульсов, поступивших с выхода блока 2, на 9 т.е. в приведенном примере 1 (1234567:9 137174 и остаток 1).The information from the output of block 2 as a unitary code is fed to the input of the control counter 3. Since the division factor of counter 3 is 9, after the unit 2 has completed the specified movement, the counter 3 remains a number equal to the remainder of the division of the number of pulses from the output of block 2, by 9 i.e. in example 1 (1234567: 9 137174 and residue 1).

Числа с выходов счетчика 3 и регистра 9 поступают на блок 4 сравнени . При неравенстве этих чисел, что свидетельствует о неправильной отработке заданного перемещени , на выходе блока 4 устанавливаетс  единичный потенциал. По окончании отработки каждого кадра блок 2 формирует импульс «Конец отработки кадра, который, поступа  на вход элемента И 11, формирует наThe numbers from the outputs of counter 3 and register 9 arrive at block 4 of the comparison. If these numbers are not equal, which indicates the incorrect working out of a given movement, a unit potential is established at the output of block 4. At the end of the processing of each frame, block 2 generates a pulse “The end of testing of the frame, which, entering the input of the element 11, forms

его выходе сигнал «Сбой в случае неправильной отработки заданного перемещени . Данное устройство может быть включено в состав любого устройства программногоits output signal "Failure in case of improper processing of a given movement. This device can be included with any software device.

управлени , содержащего блок ввода и блок отработки координатных перемещений (интерпол тор).control, containing the input block and the unit of working coordinate movements (interpolator).

Предлагаемое устройство позвол ет максимально повысить скорость ввода инфор- мании. Так как врем  отработки кадра дол ж- но быть больше времени ввода информации следующего кадра, то повышение скорости ввода позвол ет повышать скорость отработки программы, что имеет значение при про- верке управл ющих программ в ускоренном режиме. Это позвол ет более эффективно использовать канал ввода данных, освобожда  его дл  передачи других данных.The proposed device allows to maximize the speed of inputting information. Since the time taken to complete a frame must be longer than the time to enter information of the next frame, increasing the input speed allows us to increase the speed of the program, which is important when checking control programs in an accelerated mode. This allows for more efficient use of the data entry channel, freeing it to transmit other data.

Claims (1)

Формула изобретени Invention Formula Устройство контрол  по модулю 9 дл  программного управлени , содержащее блок ввода программ, выход которого соединен с входом блока отработки координатных пере- мещений, подключенного первым выходом к входу контрольного счетчика, отличающеес  тем, что, с целью повышени  быстродействи  устройства, в него введены первый и второй блоки сравнени , первый и второй сумматоры , первый и второй регистры, блок формировани  кода и элемент П. причем первый вход первого блока сравнени  соединен с выходом контрольного счетчика, второй вход - с выходом первого регистра, а выход первого блока сравнени  -- с первым BXJ- дом элемента И, второй вход которого соединен с вторым выходом блока отработки координатных перемещений и входом записи первого регистра, информационный вход которого соединен с вторым входом первого сумматора и выходом второго регистра, вход записи которого соединен с первым входом устройства контрол  по модулю 9, а информационный вход - с выходом второго сумматора , первый вход которого соединен с выходом блока формировани  кода, вход которого соединен с выходом второго блока сравнени , первый вход которого соединен с вторым входом устройства контрол  по модулю 9, а второй вход - с входом второго сумматора и выходом первого сумматора , первый вход которого соединен с выходом блока ввода программы.A control unit modulo 9 for software control, containing a program input unit, the output of which is connected to the input of a coordinate movement testing unit connected by a first output to the input of a control counter, characterized in that, in order to improve the speed of the device, the first and the second comparison block, the first and second adders, the first and second registers, the code generation unit and the element P., the first input of the first comparison block is connected to the output of the control counter, the second input is connected to the output the first register, and the output of the first block of comparison — with the first BXJ-house of the element I, the second input of which is connected to the second output of the block of working out coordinate movements and the recording input of the first register, whose information input is connected to the second input of the first adder and the output of the second register, input the recording of which is connected to the first input of the monitoring device modulo 9, and the information input to the output of the second adder, the first input of which is connected to the output of the code generation unit, the input of which is connected to the output of the second block The first input is connected to the second input of the monitoring device modulo 9, and the second input is connected to the input of the second adder and the output of the first adder, the first input of which is connected to the output of the program input block.
SU874275544A 1987-05-06 1987-05-06 Modulo 9 check and program control unit SU1483431A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU874275544A SU1483431A1 (en) 1987-05-06 1987-05-06 Modulo 9 check and program control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU874275544A SU1483431A1 (en) 1987-05-06 1987-05-06 Modulo 9 check and program control unit

Publications (1)

Publication Number Publication Date
SU1483431A1 true SU1483431A1 (en) 1989-05-30

Family

ID=21316060

Family Applications (1)

Application Number Title Priority Date Filing Date
SU874275544A SU1483431A1 (en) 1987-05-06 1987-05-06 Modulo 9 check and program control unit

Country Status (1)

Country Link
SU (1) SU1483431A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Вульфсон И. А. и др. Кодирование информации управл ющих программ.-М.: Энерги , 1968, с. 74-78. Способы подготовки программ и интерпол торы дл контурных систем числового программного управлени .-М.: Машиностроение, 1970, с. 45, 55. Авторское свидетельство СССР № 397891, кл. G 05 В 19/14. *

Similar Documents

Publication Publication Date Title
SU1483431A1 (en) Modulo 9 check and program control unit
US3424898A (en) Binary subtracter for numerical control
SU1695289A1 (en) Device for computing continuously-logical functions
SU1182578A1 (en) Device for generating and storing instruction addresses
SU877588A1 (en) Device for production counting
SU1429122A2 (en) Device for interfacing n sensors with computer
SU670958A2 (en) Telemetry information processing device
SU1168931A1 (en) Pipeline device for calculating values of trigonometric functions
SU1513622A1 (en) Code-to-time interval converter
SU1522154A1 (en) Multicoordinate digital linear interpolator
SU1061128A1 (en) Device for data input/output
SU1513457A1 (en) Program debugging device
SU1387004A2 (en) N-sensors-to-computer interface
SU1089585A1 (en) Device for collecting and processing information for monitoring system
SU1084800A2 (en) Parity check device for binary code
SU1140112A1 (en) Adding device with check
SU842824A1 (en) Device for input and preprocessing of information
SU598076A1 (en) Digital computer control arrangement
SU1434428A1 (en) Device for raising to power
SU849148A1 (en) Program setting device
SU607221A1 (en) Arrangement for testing two-cycle binary counter
SU1594548A1 (en) Device for monitoring of processor addressing the memory
SU1569996A1 (en) Device for detecting errors in code sequence
SU1383331A1 (en) Threshold logical element
SU1617446A1 (en) Device for performing fast walsh transfer