Nothing Special   »   [go: up one dir, main page]

CN114124613B - Industrial 485 networking system capable of preventing competition and control method thereof - Google Patents

Industrial 485 networking system capable of preventing competition and control method thereof Download PDF

Info

Publication number
CN114124613B
CN114124613B CN202111388868.XA CN202111388868A CN114124613B CN 114124613 B CN114124613 B CN 114124613B CN 202111388868 A CN202111388868 A CN 202111388868A CN 114124613 B CN114124613 B CN 114124613B
Authority
CN
China
Prior art keywords
slave
module
host
uploading
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.)
Active
Application number
CN202111388868.XA
Other languages
Chinese (zh)
Other versions
CN114124613A (en
Inventor
卜云
张懿
魏海峰
王浩陈
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.)
Hefei Longzhi Electromechanical Technology Co ltd
Original Assignee
Jiangsu University of Science and Technology
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 Jiangsu University of Science and Technology filed Critical Jiangsu University of Science and Technology
Priority to CN202111388868.XA priority Critical patent/CN114124613B/en
Publication of CN114124613A publication Critical patent/CN114124613A/en
Application granted granted Critical
Publication of CN114124613B publication Critical patent/CN114124613B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total 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 capable of 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; the 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, the secondary machine uploading control module is designed, and the link of once judging the output level signal of the secondary machine uploading control module is added by the host machine when the secondary machine transmits one-pin data to the host machine, so that the competition problem caused by RS485 communication is effectively avoided.

Description

Industrial 485 networking system capable of preventing competition and control method thereof
Technical Field
The invention relates to the technical field of RS485 communication, in particular to an industrial 485 networking system capable of preventing competition and a control method thereof.
Background
RS485 is a standard defining the electrical characteristics of the drivers and receivers in balanced digital multi-drop systems. Digital communication networks using this standard are capable of transmitting signals efficiently under remote conditions and in environments where electronic noise is large, and are therefore suitable for use in industrial environments.
The RS485 adopts a half duplex communication mode, and a communication port can only send data or only receive data at the same time, and cannot send and receive data at the same time. However, there is one such condition in industrial control: when the master sends a control instruction to the slave, the slave is uploading data to the master. Under the working condition, the host transmits data to the slave, and the slave transmits data to the host, so that the data can compete mutually, the host can not effectively transmit the host to the slave, and the reliability of the system is affected. In a common practice, the timing of the data is strictly controlled, and when the host determines that a frame of complete slave reply data is received, the next control instruction is sent. This also affects the timeliness of the control command download.
Disclosure of Invention
The invention provides an industrial 485 networking system capable of preventing competition and a control method thereof, which are used for solving the problem of low timeliness of issuing instructions by a host in the prior art.
The invention provides an industrial 485 networking system capable of 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; the 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 transmitting unit and a state transmitting unit; the host data receiving and transmitting unit is connected with the bus; the state transmitting unit is connected with the input end of the slave uploading control module and is used for transmitting a state signal of information transmitted by the host;
the slave 485 module includes: the slave data receiving and transmitting unit and the state receiving unit; the slave data receiving and transmitting unit is connected with the bus; 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 upload control module includes: the first optical coupler, the second optical coupler and the current limiting resistor; the current limiting resistor is connected in series between the output end of the first optocoupler and the input end of the second optocoupler.
Further, the input voltage of the first optocoupler is set at 5, and the output voltage of the first optocoupler is set at 15V; the output voltage of the second optocoupler is set at 5V.
The invention also provides a control method of the industrial 485 networking system for preventing competition, which comprises the following steps:
when the host 485 module is to send data to the slave 485 module, a continuous level signal is sent by the state sending unit until the data to be sent by the host 485 module is sent;
when the host 485 module does not need to send data to the slave 485 module, a continuous level signal with opposite states is sent by the state sending unit or the level signal is not sent to the state sending unit;
the slave 485 module stops or continues to transmit data to the host 485 module according to the level signal state received by the state receiving unit.
Further, when the slave 485 module transmits data, each pin number judges whether to transmit the next frame of data according to the level signal state received by the state receiving unit.
The invention has the beneficial effects that:
1. by designing the slave uploading control module, when the slave transmits one pin of data to the host, the host executes a step of judging the output level signal of the slave uploading control module once, if the output level signal is judged to be the level signal allowing uploading of the data, the slave continues one pin of data to reply to the host, and if the output level signal is judged to be the level signal prohibiting uploading of the data, the uploading of the data of the slave is immediately stopped, so that the competition problem caused by RS485 communication is effectively avoided.
2. The slave unit part optical coupler circuit of the slave unit uploading control module converts a 5V output signal of the master unit 485 module into 15V to be transmitted outwards, and then the slave unit part optical coupler circuit of the slave unit uploading control module converts a 15V signal into a 3.3V input signal to be input to the slave unit 485 module, so that the 15V transmission signal has strong anti-interference capability, the transmittable distance is enhanced, 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 should not be construed as limiting the invention in any way, in which:
FIG. 1 shows a schematic diagram of a system according to an embodiment of the invention;
fig. 2 is a schematic circuit diagram of a slave upload control module in an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
An embodiment of the present invention provides an industrial 485 networking system for preventing competition, as shown in fig. 1, including: host 485 module, slave upload control module, slave 485 module No. 1, slave 485 module No. 2, … …, N number slave 485 module, wherein: the signal output lines A, B of the host 485 module are respectively 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; … …; the N number slave 485 module is connected to the bus in parallel; the output signal line X of the host 485 module is connected to the input IN of the slave uploading control module; no. 1 slave 485 module input signal line Y 1 An output OUT coupled to the slave upload control module; no. 2 slave 485 module input signal line Y 2 An output OUT coupled to the slave upload control module; … …; n number slave 485 module input signal line Y N And an output OUT connected to the slave upload control module.
As shown in fig. 2, the slave upload control module is composed of two parts: an optocoupler circuit 1 of a master part and an optocoupler circuit 2 of a slave part, wherein: the light emitting diode VD1 and the photosensitive semiconductor VT1 are packaged into an optocoupler circuit 1 of a host part; the light emitting diode VD2 and the photosensitive semiconductor VT2 are packaged into an optocoupler circuit 2 of the slave machine part; the host 485 module outputs a 5V level signal, converts the level signal into a 15V level signal through the optocoupler circuit 1 of the host part, inputs the level signal into the optocoupler circuit 2 of the slave part through the current limiting resistor R1, converts the level signal into a 5V level signal through the optocoupler circuit 2 of the slave part, and inputs the level signal into the slave 485 module.
IN the embodiment, when the IN terminal of the slave upload control module inputs a low level, the slave upload control module works, the OUT terminal of the slave upload control module outputs a high level, and when the high level is valid, the slave upload data is forbidden, and the slave 485 module stops uploading data and enters a receiving state. When the IN end of the slave uploading control module inputs a high level, the slave uploading control module does not work, the OUT end of the slave uploading control module outputs a low level, and when the low level is effective, the slave uploading control module allows the slave to upload data, and the slave 485 module starts uploading data.
The embodiment of the invention also provides an industrial 485 networking method for preventing competition,
the control method of the host side comprises the following steps: when the host 485 module is in a state of sending a control instruction to the slave 485 module, the host 485 module sends a level signal for prohibiting uploading of data to the slave 485 module through the slave uploading control module; when the host 485 module is in a state of receiving the data uploaded by the slave, the host 485 module transmits a level signal allowing the data to be uploaded to the slave 485 module through the slave upload control module. The level signal for prohibiting uploading data and the level signal for permitting uploading data are logically opposite, namely the level signal for prohibiting uploading data is high level 1, and the level signal for permitting 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 host 485 module, the slave 485 module does not need to read a level signal of a slave uploading control module; when the slave computer is in a state of uploading data to the host computer, the slave computer 485 module needs to judge whether a level signal sent by the slave computer uploading control module to the slave computer 485 module is a level signal allowing uploading data or a level signal prohibiting uploading data when each command of uploading data is sent by the slave computer 485 module; if the signal is a level signal allowing uploading of data, executing an instruction of uploading the data from the slave 485 module to the host 485 module; if the signal is a level signal for prohibiting uploading of data, the command of uploading the data from the slave 485 module to the host 485 module is terminated.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations are within the scope of the invention as defined by the appended claims.

Claims (3)

1. A competition-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; the 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;
wherein, host 485 module includes: a host data receiving and transmitting unit and a state transmitting unit; the host data receiving and transmitting unit is connected with the bus; the state transmitting unit is connected with the input end of the slave uploading control module and is used for transmitting a state signal of information transmitted by the host;
the slave 485 module includes: the slave data receiving and transmitting unit and the state receiving unit; the slave data receiving and transmitting unit is connected with the bus; 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;
the slave uploading control module comprises: the first optical coupler, the second optical coupler and the current limiting resistor; the current limiting resistor is connected in series between the output end of the first optical coupler and the input end of the second optical coupler; the input end of the first optical coupler is used as the input end of the slave uploading control module, the output end of the second optical coupler is used as the output end of the slave uploading control module,
wherein, the light emitting diode VD1 and the photosensitive semiconductor tube VT1 are packaged into a first optocoupler of the host part; the light emitting diode VD2 and the photosensitive semiconductor VT2 are packaged into a second optocoupler of the slave machine part; the host 485 module outputs a 5V level signal, converts the level signal into a 15V level signal through a first optocoupler of the host part, inputs the level signal into a second optocoupler of the slave part through a current limiting resistor, converts the level signal into a 5V level signal through the second optocoupler of the slave part, and inputs the level signal into the slave 485 module;
when the input end of the slave uploading control module is at a low level, the slave uploading control module works, the output end of the slave uploading control module is at a high level, and when the high level is effective, the slave uploading of data is forbidden, and the slave 485 module stops uploading the data and enters a receiving state; when the input end of the slave uploading control module is at a high level, the slave uploading control module does not work, the output end of the slave uploading control module outputs a low level, and when the low level is effective, the slave uploading control module allows the slave to upload data, and the slave 485 module starts uploading data.
2. A control method of a contention-preventing industrial 485 networking system, which is applicable to the contention-preventing industrial 485 networking system as set forth in claim 1, characterized in that the control method of the contention-preventing industrial 485 networking system comprises the following steps:
when the host 485 module is to send data to the slave 485 module, a continuous level signal is sent by the state sending unit until the data to be sent by the host 485 module is sent;
when the host 485 module does not need to send data to the slave 485 module, a continuous level signal with opposite states is sent by the state sending unit or the level signal is not sent to the state sending unit;
the slave 485 module stops or continues to transmit data to the host 485 module according to the level signal state received by the state receiving unit.
3. The control method of the industrial 485 networking system for preventing competition according to claim 2, wherein the slave 485 module judges whether to transmit the next frame of data according to the level signal state received by the state receiving unit every time the slave 485 module transmits data.
CN202111388868.XA 2021-11-22 2021-11-22 Industrial 485 networking system capable of preventing competition and control method thereof Active CN114124613B (en)

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 CN114124613A (en) 2022-03-01
CN114124613B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116488309B (en) * 2023-06-21 2024-02-27 深圳市华芯控股有限公司 Switching signal series transmission and failure compensation circuit and device

Citations (14)

* Cited by examiner, † Cited by third party
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

Patent Citations (14)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
袁波.《电子世界》.2005, *

Also Published As

Publication number Publication date
CN114124613A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
CN201434881Y (en) RS485 interface circuit and electric energy meter employing same
EP2875612B1 (en) Systems and methods for subsea optical can buses
CN105141491B (en) RS485 communication circuit and method for realizing spontaneous self-receiving
CN101977082B (en) Optical receiving and transmitting module, optical transmitting device and optical transmitting method
CN114124613B (en) Industrial 485 networking system capable of preventing competition and control method thereof
US20150207568A1 (en) Optical transmission device and optical transceiver module
CN110113070A (en) A kind of signal sending and receiving method suitable for USB
CN109600288B (en) Isolation circuit and electronic control unit of controller area network CAN signal
CN108768530B (en) Data transmission control system and method of optical fiber transceiver
WO2022058286A1 (en) A bidirectional communication circuit and a method for operating a bidirectional communication circuit
CN1333560C (en) High-performance optical fibre CAN communication system for strong electromagnetism interference environment
CN216873219U (en) Communication circuit and multi-master communication system
CN115314070B (en) Cascaded high-speed long-line transmission device
US8248182B2 (en) Communication system with function of preventing signal reflection and node included in the same
CN214380868U (en) CAN bus isolator for transparent data transmission
CN101662405B (en) Communication circuit of CAN bus
CN214311733U (en) RS485 circuit capable of automatically controlling receiving and transmitting
CN213957869U (en) Internet gateway circuit
CN209358569U (en) Differential signaling bus circuit
CN205196014U (en) LED drive arrangement with circuit joins conversely corrects function
CN104753598A (en) Communication method for passive beam splitting RS-485 optical fiber bus
US20040268011A1 (en) Optical communication method, optical linking device and optical communication system
CN210804414U (en) Circuit with reusable communication interface
CN111049638B (en) Method and device for reducing Ethernet power consumption of vehicle
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

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

TR01 Transfer of patent right