SU1605245A1 - Computer to sensors interface - Google Patents
Computer to sensors interface Download PDFInfo
- Publication number
- SU1605245A1 SU1605245A1 SU884484896A SU4484896A SU1605245A1 SU 1605245 A1 SU1605245 A1 SU 1605245A1 SU 884484896 A SU884484896 A SU 884484896A SU 4484896 A SU4484896 A SU 4484896A SU 1605245 A1 SU1605245 A1 SU 1605245A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- output
- input
- group
- inputs
- counter
- Prior art date
Links
Landscapes
- Selective Calling Equipment (AREA)
Abstract
Изобретение относитс к вычислительной технике и предназначено дл автоматизированных систем группового управлени технологическими устройствами (манипул торами, накопител ми и т.д.) в реальном масштабе времени, особенно когда имеетс большое число подлежащих управлению и контролю объектов (датчиков), дистанционно удаленных от информационно- управл ющей ЭВМ. Целью изобретени вл етс сокращение оборудовани . Устройство содержит группу формирователей импульсов, мультиплексор, элемент ИЛИ, триггер, группу регистров, приемник, дешифратор, передатчик, счетчик. Устройство осуществл ет передачу информационных и управл ющих сигналов к объекту, удаленному от ЭВМ, обеспечивает передачу данных и при одновременном срабатывании нескольких датчиков. 2 з.п. ф-лы, 3 ил.The invention relates to computing technology and is intended for automated systems for group control of technological devices (manipulators, accumulators, etc.) in real time, especially when there are a large number of objects (sensors) to be controlled and monitored remotely from information systems. control computer. The aim of the invention is to reduce equipment. The device contains a group of pulse shapers, a multiplexer, an OR element, a trigger, a group of registers, a receiver, a decoder, a transmitter, a counter. The device transmits information and control signals to an object remote from the computer, provides data transmission and with the simultaneous operation of several sensors. 2 hp f-ly, 3 ill.
Description
Изобретение относитс к вычислительной технике и предназначено дл автоматизированных систем группового управлени технологическими процессами, устройствами (манипул торами , накопител ми и т.д.) в реальном масштабе времени.The invention relates to computing and is intended for automated systems for group control of technological processes, devices (manipulators, accumulators, etc.) in real time.
Цель изобретени - сокращение оборудовани .The purpose of the invention is to reduce equipment.
На фиг.1 представлена блок-схема устройства; на фиг.2 - схема передатчика; на фиг.З - схема приемника .Figure 1 presents the block diagram of the device; figure 2 - diagram of the transmitter; on fig.Z - diagram of the receiver.
Устройство дл сопр жени вычислительной машины с датчиками (фиг„1) содержит группу формирователей 1 импульсов , мультиплексор 2, элемент ИЛИ 3, триггер 4, группу регистров 5, элемент 6 задержки, приемник 7,The device for interfacing the computer with sensors (Fig 1) contains a group of pulse formers 1, multiplexer 2, element OR 3, trigger 4, group of registers 5, delay element 6, receiver 7,
дешифратор 8, передатчик 9 и счетчик 10,a decoder 8, a transmitter 9 and a counter 10,
Передатчик 9 (фиг.2) содержит генератор 11 импульсов, счетчик 12, триггер 13, элемент И 14, формирователь 15 импульсов, регистр 16 сдвига , элемент И 17, блок 18 разв зки, элемент ИЛИ 19, узел 20 контрол четности 8.The transmitter 9 (FIG. 2) contains a pulse generator 11, a counter 12, a trigger 13, an AND 14 element, a pulse shaper 15, a shift register 16, an AND 17 element, an interlock unit 18, an OR 19 element, a parity check node 20.
Приемник 7 (фиг.З) содержит генератор 21 импульсов, счетчик 22,триггер 23, формирователь 24 импульсов, элемент И 25, блок 26 разв зки, регистр 27 сдвига и узел 28 контрол четности.Receiver 7 (FIG. 3) contains a pulse generator 21, a counter 22, a trigger 23, a pulse former 24, an AND block 25, an interlock unit 26, a shift register 27, and a parity check node 28.
Устройство работает следующим образом The device works as follows
Срабатывание любого датчика вызывает по вление перепада напр же05The operation of any sensor causes the occurrence of a voltage gradient05
елate
юYu
4four
слcl
,ни на входе св занного с ним форми- ровател группы формирователей 1 импульсов . Последний формирует импульс малой длительности, который проходит через эле мент ИЛИ 3 на триггер 4. Высокий потенциал с выхода триггера 4 включает передатчик 9, который пре образовывает сигналы, поступающие с мультиплексора 2 и счетчика 10, в последовательный код, поступающий на выход устройства в линию св зи с ЭВМ. Кроме того, передатчик 9 формирует один стартовый импульс и два стоповых., or at the input of the former of the group of pulse shapers 1. The latter generates a pulse of short duration, which passes through the element OR 3 to the trigger 4. The high potential from the output of the trigger 4 turns on the transmitter 9, which converts the signals from multiplexer 2 and counter 10 into a serial code arriving at the output of the device communication with a computer. In addition, the transmitter 9 generates one starting pulse and two stop pulses.
Во врем передачи сообщени (байта ) или в момент передачи стоповых бит передатчик 9 формирует сигнал, поступающий на счетчик 10, измен ет его состо ние и состо ние св занного со счетчиком 10 мультиплексора 2. В результате к входам передатчика 9 оказьшаютс последовательно подключенными все входы устройства . Поскольку передатчик 9 работает непрерывно, состо ние сигналов со всех К входов устройства последовательно , по группам, передаетс в ЭВМ.During the transmission of a message (byte) or at the moment of transmitting stop bits, the transmitter 9 generates a signal arriving at counter 10, changes its state and the state associated with counter 10 of multiplexer 2. As a result, all inputs are connected to the inputs of transmitter 9 devices. Since the transmitter 9 operates continuously, the state of the signals from all the K inputs of the device are sequentially, in groups, transmitted to the computer.
Как только в интерфейс ЭВМ введена информаци от устройства (от датчиков), автоматически устанавливаетс требование на обслуживание процессором. Процессор анализирует полученные данные (код группы датчиков и их состо ни.е) ,и, если требуетс , формирует управл ющее воздействие , которое также вьщает в данный интерфейс.As soon as information from the device (from the sensors) is entered into the computer interface, the requirement for processor maintenance is automatically established. The processor analyzes the received data (sensor group code and its status, e), and, if required, generates a control action, which also causes this interface.
Поскольку длительность цикла обращени процессора к интерфейсу в 200-300 раз меньше длительности передачи байта, процессор успевает опросить и выдать ответную информацию в несколько интерфейсов или другие устройства ЭВМ, прежде чем поступ т данные о следующей группе датчиков .Since the cycle time for a processor to access the interface is 200-300 times shorter than the transmission time of a byte, the processor manages to interrogate and output the response information to several interfaces or other computer devices before the data about the next sensor group is received.
Управл юща команда, сформированна процессором, вьщаетс в интерфейс , который осуществл ет передачу данных зтравлени от ЭВМ в последовательном койе так же, как и передатчик 9.A control command formed by the processor is provided to the interface that transmits the data of the computer from the computer in the serial link in the same way as the transmitter 9.
Приемник 7 устройства по второй линии св зи обеспечивает приём информации от ЭВМ,преобразование ее в параллельный код и вьщачу на входы всех регистров 5 и на входы дешифртора 8. В момент вьвдачи приемником. 7 сигнала окончани приема (момента получени стоповых бит), поступающего на управл ющий вход дешифратора 8, последний выдает сигнал записи на вход соответствующего регистра группы регистров 5, в который и записываетс прин та информаци . В результате на соответствующих выходах группы регистров 5 измен ютс сигналы, используемые дл управлени объектом. Еще один выход группы регистров 5 подключен к входу эле- 5 мента 6 задержки и используетс дл управлени работой передатчика 9 в следующих случа х.The receiver 7 of the device on the second line of communication provides reception of information from the computer, converting it into a parallel code and transmitting it to the inputs of all registers 5 and to the inputs of the decoder 8. At the moment of reception by the receiver. 7, the reception end signal (the moment of receiving the stop bits) received at the control input of the decoder 8, the latter outputs a write signal to the input of the corresponding register of register group 5, in which the received information is written. As a result, the signals used to control the object are changed at the corresponding outputs of the register group 5. Another output of a group of registers 5 is connected to the input of delay element 6 and is used to control the operation of transmitter 9 in the following cases.
Во-первых, дл остановки циклической работы передатчика 9. После то- 0 го, как процессором прин та информа- 1ЩЯ о состо нии всех входов (датчиков ) , ЭВМ формирует на дополнительном выходе группы регистров 5 перепад сигнала с высокого уровн в низкий, 5 который поступает на элемент 6 задержки . Последний задерживает этот сигнал на врем , необходимое дл передачи данных со всех входов (врем задержки отсчитываетс от момента последнего сработавшего датчика), и сбрасывает триггер 4, который останавливает работу передатчика 9.Firstly, to stop the cyclical operation of the transmitter 9. After being received by the processor, informing about the state of all inputs (sensors), the computer generates, at the additional output of the group of registers 5, a signal drop from a high level to a low, 5 which arrives at element 6 delay. The latter delays this signal by the time required to transmit data from all inputs (the delay time is counted from the moment the sensor last triggered) and resets trigger 4, which stops the operation of transmitter 9.
Во-вторых, когда по запросу ЭШ требуетс опросить входы устройства. В этом случае ЭВМ устанавливает на 35 том же выходе группы регистров 5 высокий уровень сигнала, поступающий на второй вход управлени передатчика 9. Последний начинает передавать данные последовательно, по группам , в ЭВМ до момента сн ти высокого уровн сигнала на его управл ю-, щих входах.Secondly, when an ESH is requested to interrogate device inputs. In this case, the computer sets to 35 the same output of a group of registers 5 a high level of the signal, which arrives at the second control input of the transmitter 9. The latter starts transmitting data sequentially, in groups, to the computer until the signal is removed to its control level entrances.
Передатчик 9 работает следующим образом. Сигнал запуска (логической 1) поступает на один из входов управлени и через элемент ИЛИ 19 элемент И 14 запускает формирователь 15 импульсов. Сигнал логического О с инверсного выхода триггера 13 свиде- 5 тельствует о выдаче данных в линию св зи и запрещает прохождение сигнала управлени (запуска) через эле- . мент И 14. После выдачи данных в линию св зи триггер 13 сбрасываетс 55 счетчиком и инверсным выходом разрешает прохождение сигнала запуска через элемент И 14. Импульс с формировател 15 передним фронтом вновь ус0The transmitter 9 operates as follows. The start signal (logical 1) is fed to one of the control inputs and through element OR 19 element AND 14 starts the pulse shaper 15. The logical signal O from the inverse output of the flip-flop 13 indicates the output of data to the communication line and prohibits the passage of the control signal (trigger) through the cell. ment And 14. After the data is output to the communication line, trigger 13 is reset by 55 counter and inverse output permits the trigger signal to pass through element 14. 14. The impulse from the driver 15 is sent to the leading edge again
4040
танавливает триггер .13 и одновременно загружает в регистр 16 данные с информационных входов передатчика 9 стартовые и стоповые сигналы, а также сигнал с выхода узла 20 контрол четности. Дл этого сигнал с выхода узла 20 контрол четности формируетс на основании сигналов, поступающих с информационных входов, и обе- спечивает формирование в линии св зи посылки, например, только с четным количеством сигналов логической 1triggers the trigger .13 and simultaneously loads into the register 16 data from the information inputs of the transmitter 9, start and stop signals, as well as a signal from the output of the parity control node 20. For this, the signal from the output of the parity check node 20 is generated based on the signals from the information inputs, and ensures the formation of a message on the communication line, for example, with an even number of logical 1 signals.
Триггер 13 передним фронтом сиг- нала с формировател 15 устанавливаетс в состо ние, разрешающее работу счетчика 12 и выход информации (стартового бита) через элемент И 17 и выходной блок 18 в линию св зи с ЭВМ. Через каждых 16 тактовых импульсов с генератора .11, что соответствует длительности одного бита, счетчик 12 выдает в регистр 16 сигналы сдвига, обеспечивающие последова- тельный выход информации из регистра 16 сдвига в линию св зи. После отсчета числа бит, соответствующих требуемой посылке, счетчик 12 вьща- ет сигнал, сбрасывающий триггер 13, который запрещает работу счетчика 12 и разрешает подготовку к передаче следующего байта информации (при условии высокого уровн сигналов на одном из входов передатчика 9). По- скольку задним фронтом сигнал с формировател 15 импульсов поступает на счетчик 10 и переводит его в следующее состо ние, то 8-п входов передатчика 9 оказьюаетс подключенным к другим входам устройства. На п входах передатчика 9 информаци также измен етс . Таким образом, в следующем цикле формируетс и передаетс байт данных о следующей группе дат- чиков.The trigger 13 is set to the leading edge of the signal from the driver 15 to enable the counter 12 and the output of information (the start bit) through the element 17 and the output unit 18 to the communication line with the computer. After every 16 clock pulses from the generator .11, which corresponds to the duration of one bit, the counter 12 outputs to the register 16 shift signals, providing a consistent output of information from the shift register 16 to the communication line. After counting the number of bits corresponding to the desired parcel, counter 12 causes the signal to reset trigger 13, which prohibits the operation of counter 12 and allows preparation for the transfer of the next byte of information (subject to high level signals at one of the inputs of transmitter 9). Since the falling edge of the signal from the driver 15 pulses goes to the counter 10 and puts it into the next state, the 8-n inputs of the transmitter 9 are connected to other inputs of the device. At the n inputs of the transmitter 9, the information also changes. Thus, in the next cycle, a byte of data about the next group of sensors is generated and transmitted.
Приемник 7 работает следующим образом . При поступлении с линии приема от ЭВМ стартового бита (он при - ходит логическим путем) и прохожде- НИИ его через блок 26, обеспечивающий согласование уровней сигналов и гальваническую разв зку, включаетс счетчик 22 (синхронизатор приема ) . После отсчета счетчиком 22 интервала времени, равного половине битового, он сбрасывает триггер 23 (дискриминатор длительности стартового бита) и одновременно производитReceiver 7 operates as follows. When the start bit arrives from the computer from the computer (it arrives in a logical way) and passes it through block 26, which ensures the matching of signal levels and galvanic isolation, the counter 22 (reception synchronizer) is turned on. After counting the counter 22 time interval equal to half of the bit, it resets the trigger 23 (the discriminator of the duration of the start bit) and simultaneously produces
ввод информации в сдвиговьш регистр 27, поступающей с блока 26.input information in the shift register 27, coming from block 26.
Если длительность входного сигнала меньше половины длительности бита , счетчик 22 не сбрасывает триггер 23. Таким образом, осуществл етс вьщеление стартового бита от возможных помех в линии св зи устройётва с ЭВМ.If the duration of the input signal is less than half the bit length, the counter 22 does not reset trigger 23. Thus, the start bit is susceptible from possible interference in the communication line of the device with the computer.
После сброса триггера 23 последний разрешает дальнейшую работу счетчика 22 независимо от уровн входного сигнала и приемник 7 принимает любую посылку . Далее счетчик 22 отсчитывает число сдвигов, например 11 импульсов сдвига (стартовый бит, 8 бит данных 2 стоповых бит) или 12 импульсов сдвига (при добавлении бита контрол четности), и устанавливает на выходе триггера 23 сигнал логической 1. Последний сбрасывает счетчик 22 и запускает формирователь 24. 14мпульс с формировател 24 проходит через элемент И 25 на управл к)щий выход приемника в случае наличи разрешающих сигналов на остальных входах этого элемента, поступающих с регистра 27 (стоповые биты) и узла 28 контрол четности (подтверждение четности прин той посыпки). Управл ющий сигнал приемника 7, пройд элемент И 25, подаетс через дешифратор 8 устройства и обеспечивает запись полученной информации в выбран- ный дешифратором 8 регистр группы регистров 5.After resetting the flip-flop 23, the latter allows further operation of the counter 22, regardless of the input signal level, and the receiver 7 receives any parcel. Next, the counter 22 counts the number of shifts, for example, 11 shift pulses (start bit, 8 data bits, 2 stop bits) or 12 shift pulses (when a parity bit is added), and sets a logical 1 signal at the output of the trigger 23. The latter resets the counter 22 and starts shaper 24. A 14 pulse from shaper 24 passes through I 25 element to the control output of the receiver in the event of the presence of permitting signals at the remaining inputs of this element coming from register 27 (stop bits) and parity control node 28 (confirmation and the received spreading). The control signal of the receiver 7, having passed the element 25, is fed through the decoder 8 of the device and ensures the recording of the received information into the register of the group of registers 5 selected by the decoder 8.
Claims (3)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| SU884484896A SU1605245A1 (en) | 1988-06-13 | 1988-06-13 | Computer to sensors interface |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| SU884484896A SU1605245A1 (en) | 1988-06-13 | 1988-06-13 | Computer to sensors interface |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| SU1605245A1 true SU1605245A1 (en) | 1990-11-07 |
Family
ID=21400243
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| SU884484896A SU1605245A1 (en) | 1988-06-13 | 1988-06-13 | Computer to sensors interface |
Country Status (1)
| Country | Link |
|---|---|
| SU (1) | SU1605245A1 (en) |
-
1988
- 1988-06-13 SU SU884484896A patent/SU1605245A1/en active
Non-Patent Citations (1)
| Title |
|---|
| Авторское свидетельство СССР № 1208557, кл. G 06 F 13/00, 1986. Авторское свидетельство СССР № 1185345, кл. G 06 F 13/00, 1985. * |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| GB1565562A (en) | Data communication system | |
| SU1605245A1 (en) | Computer to sensors interface | |
| US3719930A (en) | One-bit data transmission system | |
| GB1108047A (en) | A data transmission system | |
| SU922715A1 (en) | Information input device | |
| SU1753603A2 (en) | Device for supervisory control of repeater stations of communication system | |
| SU1481791A1 (en) | Data transmission and processing simulator | |
| SU1325545A1 (en) | Information reception and transmission device | |
| SU1392573A1 (en) | Device for simulating data transmission and processing system | |
| SU640284A1 (en) | Command information receiving device | |
| SU1411765A1 (en) | Device for interfacing computer with common trunk line | |
| SU1464165A1 (en) | Device for interfacing computer with communication channels | |
| SU1727213A1 (en) | Device for control over access to common communication channel | |
| SU1193655A1 (en) | Serial code-to-parallel code converter | |
| SU1444791A1 (en) | Device for interfacing users with data transmission channel | |
| SU1442997A1 (en) | Device for interfacing computer with subscriber via serial communication channel | |
| RU2050018C1 (en) | Device for receiving and transmission of binary signals | |
| SU1282108A1 (en) | Interface for linking transducers with electronic computer | |
| SU444177A1 (en) | Device for recording random pulses | |
| SU535585A1 (en) | Data transmission equipment | |
| SU1591194A1 (en) | DEVICE FOR TRANSFER AND RECEPTION. DATA | |
| SU1275417A1 (en) | Device for linking serial interface with bus | |
| SU1078421A2 (en) | Data exchange device | |
| SU1487091A1 (en) | DEVICE CONTROL CHANNEL DATA TRANSMISSION | |
| SU1038945A1 (en) | Multi-channel priority device |