CN114124613A - Anti-competition industrial 485 networking system and control method thereof - Google Patents
Anti-competition industrial 485 networking system and control method thereof Download PDFInfo
- Publication number
- CN114124613A CN114124613A CN202111388868.XA CN202111388868A CN114124613A CN 114124613 A CN114124613 A CN 114124613A CN 202111388868 A CN202111388868 A CN 202111388868A CN 114124613 A CN114124613 A CN 114124613A
- Authority
- CN
- China
- Prior art keywords
- slave
- module
- state
- host
- data
- 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.)
- Granted
Links
- 230000006855 networking Effects 0.000 title claims abstract description 14
- 238000000034 method Methods 0.000 title claims description 10
- 230000003287 optical effect Effects 0.000 claims description 19
- 230000005540 biological transmission Effects 0.000 claims description 2
- 230000002265 prevention Effects 0.000 claims 2
- 238000004891 communication Methods 0.000 abstract description 6
- 230000008878 coupling Effects 0.000 description 7
- 238000010168 coupling process Methods 0.000 description 7
- 238000005859 coupling reaction Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses an industrial 485 networking system for preventing competition, which comprises: the system comprises a host 485 module, a slave uploading control module and a plurality of slave 485 modules; the signal receiving and transmitting end of the host 485 module is connected to the bus; a plurality of slave 485 modules are connected in parallel on a bus; the host 485 module sends an uploading state control signal to the slave 485 module through the slave uploading control module, and the slave 485 module controls whether to send data to the host 485 module according to the uploading state control signal. According to the invention, by designing the slave uploading control module, a link that the master executes judgment once on the output level signal of the slave uploading control module when the slave sends one stitch of data to the master is added, so that the competition problem generated by RS485 communication is effectively avoided.
Description
Technical Field
The invention relates to the technical field of RS485 communication, in particular to an industrial 485 networking system for preventing competition and a control method thereof.
Background
RS485 is a standard that defines the electrical characteristics of drivers and receivers in a balanced digital multipoint system. The digital communication network using the standard can effectively transmit signals under long-distance conditions and in environments with large electronic noise, and is therefore suitable for use in industrial environments.
The RS485 adopts a half-duplex communication mode, and the communication port can only send data or only receive data at the same time, but cannot receive and send data at the same time. However, there is one such condition in industrial control: when the host sends a control command to the slave, the slave uploads data to the host. Under the working condition, data are sent from the host to the slave, and data are sent from the slave to the host, so that data competition can be caused, the host cannot be effectively transmitted to the slave, and the reliability of the system is influenced. In a common practice, the time sequence of the data is strictly controlled, and when the master determines that a frame of complete slave reply data is received, the master sends a next control instruction. This also affects the timeliness of control instruction download.
Disclosure of Invention
The invention provides a competition-preventing industrial 485 networking system and a control method thereof, which aim to solve the problem of low timeliness of issuing instructions by a host in the prior art.
The invention provides a competition-preventing industrial 485 networking system, which comprises: the system comprises a host 485 module, a slave uploading control module and a plurality of slave 485 modules;
the signal receiving and transmitting end of the host 485 module is connected to the bus; a plurality of slave 485 modules are connected in parallel on a bus; the host 485 module sends an uploading state control signal to the slave 485 module through the slave uploading control module, and the slave 485 module controls whether to send data to the host 485 module according to the uploading state control signal.
Further, the host 485 module includes: a host data receiving and sending unit and a state sending unit; the host data receiving and transmitting unit is connected with the bus; the state sending unit is connected with the input end of the slave uploading control module and is used for sending a state signal of information sent by the host;
the slave 485 module comprises: a slave data receiving and transmitting unit and a state receiving unit; the slave data receiving and transmitting unit is connected with the bus; and the state receiving unit is connected with the output end of the slave uploading control module and is used for receiving a state signal of information sent by the host.
Further, the slave uploading control module comprises: the circuit comprises a first optical coupler, a second optical coupler and a current-limiting resistor; the current limiting resistor is connected between the output end of the first optical coupler and the input end of the second optical coupler in series.
Further, the input voltage of the first optical coupler is set to be 5, and the output voltage of the first optical coupler is set to be 15V; and the output voltage of the second optical coupler is set to be 5V.
The invention also provides a control method of the industrial 485 networking system for preventing competition, which comprises the following steps:
when the master 485 module sends data to the slave 485 module, a continuous level signal is sent by the state sending unit until the sending of the data to be sent by the master 485 module is completed;
when the master 485 module does not need to send data to the slave 485 module, a continuous level signal with opposite state is sent through the state sending unit or the level signal is not sent to the state sending unit;
and the slave 485 module stops or continues to send data to the host 485 module according to the state of the level signal received by the state receiving unit.
Further, when the slave 485 module sends data, the number of each sending pin is judged whether to send the next frame data according to the state of the level signal received by the state receiving unit.
The invention has the beneficial effects that:
1. by designing the slave uploading control module, the link that the master judges once for the output level signal of the slave uploading control module when the slave sends data to the master every time is added, if the level signal is judged to be the level signal allowing the data to be uploaded, the slave continues to reply the data for the master by one needle, and if the level signal is judged to be the level signal forbidding the data to be uploaded, the data uploading of the slave is immediately stopped, so that the competition problem caused by RS485 communication is effectively avoided.
2. The 5V output signal of the host 485 module is converted into 15V to be transmitted outwards through the host part optical coupling circuit of the slave uploading control module, and then the 15V signal is converted into a 3.3V input signal to be input to the slave 485 module through the slave part optical coupling circuit of the slave uploading control module, so that the 15V transmission signal is strong in anti-interference capacity, the transmittable distance is increased, and the external interference cannot be caused.
Drawings
The features and advantages of the present invention will be more clearly understood by reference to the accompanying drawings, which are illustrative and not to be construed as limiting the invention in any way, and in which:
FIG. 1 shows a system diagram of an embodiment of the invention;
fig. 2 shows a schematic circuit diagram of the slave upload control module in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides an industrial 485 networking system for preventing competition, which comprises the following components as shown in figure 1: host computer 485 module, follow the control module that uploads, No. 1 from 485 modules of computers, No. 2 from 485 modules of computers, … …, No. N from 485 modules of computers, wherein: the signal output lines A, B of the host 485 module are correspondingly connected to the bus A, B; the No. 1 slave 485 module is connected to the bus in parallel; the No. 2 slave 485 module is connected to the bus in parallel; … …, respectively; the N slave 485 modules are connected to the bus in parallel; the output signal line X of the host 485 module is connected to the input port IN of the slave uploading control module; no. 1 slave 485 module input signal line Y1An output port OUT connected to the slave upload control module; no. 2 slave 485 module input signal line Y2An output port OUT connected to the slave upload control module; … …, respectively; n number slave 485 module input signal line YNAnd an output port OUT connected to the slave uploading control module.
As shown in fig. 2, the slave upload control module is composed of two parts: the opto-coupler circuit 1 of host computer part, from opto-coupler circuit 2 of machine part, wherein: the light-emitting diode VD1 and the photosensitive semiconductor tube VT1 are packaged into the optical coupling circuit 1 of the host part; the light emitting diode VD2 and the photosensitive semiconductor tube VT2 are packaged into an optical coupling circuit 2 of the slave part; the master 485 module outputs a 5V level signal, the level signal is converted into a 15V level signal through the optical coupling circuit 1 of the master part, the 15V level signal is input into the optical coupling circuit 2 of the slave part through the current limiting resistor R1, the 5V level signal is converted through the optical coupling circuit 2 of the slave part, and the 5V level signal is input into the slave 485 module.
IN the embodiment, when the input of the IN end of the slave uploading control module is a low level, the slave uploading control module works, the OUT end of the slave uploading control module outputs a high level, when the high level is effective, the slave uploading data is forbidden, and the slave 485 module stops uploading data and enters a receiving state. When the input of the IN end of the slave uploading control module is high level, the slave uploading control module does not work, the OUT end of the slave uploading control module outputs low level, when the low level is effective, the slave is allowed to upload data, and the slave 485 module starts to upload data.
The embodiment of the invention also provides a method for preventing competition in 485-layer networking,
the control method of the host side comprises the following steps: when the master 485 module is in a state of sending a control instruction to the slave 485 module, the master 485 module sends a level signal for forbidding uploading data to the slave 485 module through the slave uploading control module; when the master 485 module is in a state of receiving the data uploaded by the slave, the master 485 module sends a level signal allowing data uploading to the slave 485 module through the slave uploading control module. The level signal for prohibiting uploading data and the level signal for allowing uploading data are logically opposite, that is, the level signal for prohibiting uploading data is high level 1, and the level signal for allowing uploading data is low level 0.
The control method of the slave side comprises the following steps: when the slave 485 module is not in a state of uploading data to the master 485 module, the slave 485 module does not need to read a level signal of the slave uploading control module; when the slave is in a state of uploading data to the host, the slave 485 module needs to judge whether the level signal sent to the slave 485 module by the slave uploading control module is a level signal for allowing the data to be uploaded or a level signal for forbidding the data to be uploaded when the slave sends a data uploading instruction; if the signal is a level signal allowing data to be uploaded, executing an instruction of uploading data from the slave 485 module to the host 485 module; and if the signal is a level signal for prohibiting uploading data, the instruction for uploading data from the slave 485 module to the host 485 module is terminated.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.
Claims (6)
1. A contention prevention industrial 485 networking system, comprising: the system comprises a host 485 module, a slave uploading control module and a plurality of slave 485 modules;
the signal receiving and transmitting end of the host 485 module is connected to the bus; a plurality of slave 485 modules are connected in parallel on a bus; the host 485 module sends an uploading state control signal to the slave 485 module through the slave uploading control module, and the slave 485 module controls whether to send data to the host 485 module according to the uploading state control signal.
2. The contention prevention industrial 485 networking system of claim 1, wherein the host 485 module comprises: a host data receiving and sending unit and a state sending unit; the host data receiving and transmitting unit is connected with the bus; the state sending unit is connected with the input end of the slave uploading control module and is used for sending a state signal of information sent by the host;
the slave 485 module comprises: a slave data receiving and transmitting unit and a state receiving unit; the slave data receiving and transmitting unit is connected with the bus; and the state receiving unit is connected with the output end of the slave uploading control module and is used for receiving a state signal of information sent by the host.
3. The competition protected industrial 485 networking system of claim 1, wherein the slave upload control module comprises: the circuit comprises a first optical coupler, a second optical coupler and a current-limiting resistor; the current limiting resistor is connected between the output end of the first optical coupler and the input end of the second optical coupler in series.
4. The competition protected industrial 485 networking system of claim 1, wherein an input voltage of the first optocoupler is set at 5, an output voltage of the first optocoupler is set at 15V; and the output voltage of the second optical coupler is set to be 5V.
5. A control method of an industrial 485 networking system for preventing competition is characterized by comprising the following steps:
when the master 485 module sends data to the slave 485 module, a continuous level signal is sent by the state sending unit until the sending of the data to be sent by the master 485 module is completed;
when the master 485 module does not need to send data to the slave 485 module, a continuous level signal with opposite state is sent through the state sending unit or the level signal is not sent to the state sending unit;
and the slave 485 module stops or continues to send data to the host 485 module according to the state of the level signal received by the state receiving unit.
6. The method as claimed in claim 5, wherein when the slave 485 module transmits data, the number of each transmission pin determines whether to transmit the next frame data according to the state of the level signal received by the state receiving unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111388868.XA CN114124613B (en) | 2021-11-22 | 2021-11-22 | Industrial 485 networking system capable of preventing competition and control method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111388868.XA CN114124613B (en) | 2021-11-22 | 2021-11-22 | Industrial 485 networking system capable of preventing competition and control method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114124613A true CN114124613A (en) | 2022-03-01 |
CN114124613B CN114124613B (en) | 2023-11-21 |
Family
ID=80439748
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111388868.XA Active CN114124613B (en) | 2021-11-22 | 2021-11-22 | Industrial 485 networking system capable of preventing competition and control method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114124613B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116488309A (en) * | 2023-06-21 | 2023-07-25 | 深圳市华芯控股有限公司 | Switching signal series transmission and failure compensation circuit and device |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0563649A (en) * | 1991-08-28 | 1993-03-12 | Furukawa Electric Co Ltd:The | Full duplex 2-way optical communication method |
CN1787473A (en) * | 2004-12-08 | 2006-06-14 | 中兴通讯股份有限公司 | Method for realizing racing controlling type bus communication adopting 485 interface |
CN101572642A (en) * | 2009-06-17 | 2009-11-04 | 北京易艾斯德科技有限公司 | RS485 communication circuit |
CN103746889A (en) * | 2013-06-09 | 2014-04-23 | 国家电网公司 | Half-competition model RS-485 bus multimaster communication system and working method thereof |
CN103823776A (en) * | 2014-02-28 | 2014-05-28 | 上海晟矽微电子股份有限公司 | Unibus in communication with master equipment and slave equipment and communication method |
CN106095708A (en) * | 2016-06-06 | 2016-11-09 | 新开普电子股份有限公司 | The electric current loop means of communication of two-wire system half-duplex one master and multiple slaves multi computer communication and system |
CN106453556A (en) * | 2016-10-13 | 2017-02-22 | 严智勇 | Distributed networking control switch |
CN206788282U (en) * | 2017-06-22 | 2017-12-22 | 蔚莱通达(厦门)电力技术有限公司 | A kind of multifunctional electric meter for meeting RS485 communications and LoRaWAN wireless communication technologys |
CN207691837U (en) * | 2017-12-21 | 2018-08-03 | 珠海横琴派诺技术有限公司 | Ad hoc network formula current loop bus system and the slave device that can support automatic network-building |
CN109188991A (en) * | 2018-11-20 | 2019-01-11 | 上海新纪元机器人有限公司 | Control the transmission method and device of signal |
CN109902053A (en) * | 2017-12-07 | 2019-06-18 | 厦门雅迅网络股份有限公司 | A kind of SPI communication method, terminal device and storage medium based on dual controller |
CN110601943A (en) * | 2019-09-09 | 2019-12-20 | 上海新时达电气股份有限公司 | Communication system based on RS485 bus and communication method thereof |
CN110876217A (en) * | 2019-09-10 | 2020-03-10 | 四川创宏电气有限公司 | Lamp control circuit based on BUCK circuit and lamp |
CN112698605A (en) * | 2020-12-28 | 2021-04-23 | 珠海格力电器股份有限公司 | Multi-node communication circuit |
-
2021
- 2021-11-22 CN CN202111388868.XA patent/CN114124613B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0563649A (en) * | 1991-08-28 | 1993-03-12 | Furukawa Electric Co Ltd:The | Full duplex 2-way optical communication method |
CN1787473A (en) * | 2004-12-08 | 2006-06-14 | 中兴通讯股份有限公司 | Method for realizing racing controlling type bus communication adopting 485 interface |
CN101572642A (en) * | 2009-06-17 | 2009-11-04 | 北京易艾斯德科技有限公司 | RS485 communication circuit |
CN103746889A (en) * | 2013-06-09 | 2014-04-23 | 国家电网公司 | Half-competition model RS-485 bus multimaster communication system and working method thereof |
CN103823776A (en) * | 2014-02-28 | 2014-05-28 | 上海晟矽微电子股份有限公司 | Unibus in communication with master equipment and slave equipment and communication method |
CN106095708A (en) * | 2016-06-06 | 2016-11-09 | 新开普电子股份有限公司 | The electric current loop means of communication of two-wire system half-duplex one master and multiple slaves multi computer communication and system |
CN106453556A (en) * | 2016-10-13 | 2017-02-22 | 严智勇 | Distributed networking control switch |
CN206788282U (en) * | 2017-06-22 | 2017-12-22 | 蔚莱通达(厦门)电力技术有限公司 | A kind of multifunctional electric meter for meeting RS485 communications and LoRaWAN wireless communication technologys |
CN109902053A (en) * | 2017-12-07 | 2019-06-18 | 厦门雅迅网络股份有限公司 | A kind of SPI communication method, terminal device and storage medium based on dual controller |
CN207691837U (en) * | 2017-12-21 | 2018-08-03 | 珠海横琴派诺技术有限公司 | Ad hoc network formula current loop bus system and the slave device that can support automatic network-building |
CN109188991A (en) * | 2018-11-20 | 2019-01-11 | 上海新纪元机器人有限公司 | Control the transmission method and device of signal |
CN110601943A (en) * | 2019-09-09 | 2019-12-20 | 上海新时达电气股份有限公司 | Communication system based on RS485 bus and communication method thereof |
CN110876217A (en) * | 2019-09-10 | 2020-03-10 | 四川创宏电气有限公司 | Lamp control circuit based on BUCK circuit and lamp |
CN112698605A (en) * | 2020-12-28 | 2021-04-23 | 珠海格力电器股份有限公司 | Multi-node communication circuit |
Non-Patent Citations (1)
Title |
---|
袁波, 《电子世界》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116488309A (en) * | 2023-06-21 | 2023-07-25 | 深圳市华芯控股有限公司 | Switching signal series transmission and failure compensation circuit and device |
CN116488309B (en) * | 2023-06-21 | 2024-02-27 | 深圳市华芯控股有限公司 | Switching signal series transmission and failure compensation circuit and device |
Also Published As
Publication number | Publication date |
---|---|
CN114124613B (en) | 2023-11-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20120011286A1 (en) | Optical communication module, universal serial bus cable with the same and processing method of data transfer thereof | |
JPH0638601B2 (en) | Optical composite transceiver | |
US9294290B2 (en) | Optical cable assemblies with low-speed data pass-through architecture and sleep mode operation | |
CN109714235B (en) | Non-polar RS485 communication interface and method for realizing non-polar RS485 communication | |
US4654844A (en) | Bi-directional coupler | |
EP2911322B1 (en) | Active optical cable including a power management function | |
CN110113070A (en) | A kind of signal sending and receiving method suitable for USB | |
CN1333560C (en) | High-performance optical fibre CAN communication system for strong electromagnetism interference environment | |
CN114124613B (en) | Industrial 485 networking system capable of preventing competition and control method thereof | |
CN105515927A (en) | Remote serial port communication system and method based on Ethernet Cat.5 wiring framework | |
CN109600288B (en) | Isolation circuit and electronic control unit of controller area network CAN signal | |
CN202904571U (en) | Controller area network (CAN) bus interface circuit with electric isolation function | |
CN214380868U (en) | CAN bus isolator for transparent data transmission | |
CN209358569U (en) | Differential signaling bus circuit | |
US4996683A (en) | Optical transmission device | |
CN213957869U (en) | Internet gateway circuit | |
CN101662405B (en) | Communication circuit of CAN bus | |
CN104753598A (en) | Communication method for passive beam splitting RS-485 optical fiber bus | |
EP3694119B1 (en) | Optical module | |
CN104700606B (en) | Ammeter information reporting system based on plastic optical fiber | |
CN203800921U (en) | I2C signal reinforcement apparatus for photoelectric composite cable | |
US20020018466A1 (en) | Communication parts comprising operating system and waiting system therein | |
CN107147437A (en) | Optical fibre communication method and equipment | |
CN210780766U (en) | RS485 full-duplex communication circuit with reset function | |
CN111147146B (en) | Optical fiber network-based photoelectric transceiving system of industrial field bus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240219 Address after: 230000 B-2704, wo Yuan Garden, 81 Ganquan Road, Shushan District, Hefei, Anhui. Patentee after: HEFEI LONGZHI ELECTROMECHANICAL TECHNOLOGY Co.,Ltd. Country or region after: China Address before: 212100 NO.666, Changhui Road, Dantu District, Zhenjiang City, Jiangsu Province Patentee before: JIANGSU University OF SCIENCE AND TECHNOLOGY Country or region before: China |