CN109039808A - A kind of module self position recognition methods - Google Patents

A kind of module self position recognition methods Download PDF

Info

Publication number
CN109039808A
CN109039808A CN201810777069.3A CN201810777069A CN109039808A CN 109039808 A CN109039808 A CN 109039808A CN 201810777069 A CN201810777069 A CN 201810777069A CN 109039808 A CN109039808 A CN 109039808A
Authority
CN
China
Prior art keywords
module
controller
input port
port
recognition methods
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.)
Pending
Application number
CN201810777069.3A
Other languages
Chinese (zh)
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.)
Jiangsu Energy Saving Polytron Technologies Inc
Original Assignee
Jiangsu Energy Saving Polytron Technologies Inc
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 Energy Saving Polytron Technologies Inc filed Critical Jiangsu Energy Saving Polytron Technologies Inc
Priority to CN201810777069.3A priority Critical patent/CN109039808A/en
Publication of CN109039808A publication Critical patent/CN109039808A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/048Monitoring; Safety
    • 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
    • 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
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Abstract

The invention discloses a kind of module self position recognition methods, the following steps are included: manufacture module, at least there are a controller and at least two input ports and at least two output ports in each module, all modules hardware configuration having the same and connect;When the acquisition of the input port no data of module, then the input port of module is all low level, the single-chip microcontroller of inside modules at this time carries out being incremented by operation, this module is that can recognize that the position of itself is 1 and incremental operation values are transmitted to the input port of next module by single-chip microcontroller by output port, it is repeated in above-mentioned software operation, until all modules identify self-position.Using design method of the invention, can identical module different fuction outputs is realized in respective positions, enhance the versatility and practicability of product, it is convenient all to have come to technology, production, management etc., and cost also greatly reduces.

Description

A kind of module self position recognition methods
Technical field
The present invention relates to industrial digital circuit field, especially a kind of module self position recognition methods.
Background technique
With the development of industrial application, people are more and more to the type and quantity of functional requirement, this makes mould Block is many kinds of from hardware configuration and software version, and versatility problem is not all brought to technology, production, management and application Difficulty also greatly improves cost of labor and product cost.
Position-recognizing system and its recognition methods such as a kind of Universal automobile bus module of patent, multiple versabus modules It is connected by CAN bus, central processing unit passes through central processing independently of except multiple versabus modules and with uniqueness Device carries out information exchange with CAN bus to encode to the address of module, but such method, the signal of each module are both needed to pass Bus is transported to, signal will likely can generate crosstalk, meanwhile, the transmitting of intermodule signal is to need to follow communications protocol, coding staff Formula it is more complicated and be limited it is more, the transmitting of information also can exist decaying, for transmitting at a distance, and be not suitable for.
Summary of the invention
Goal of the invention: it is an object of the invention to solve the number of component in existing industrial digital circuit to be all made of manually Be numbered, even and component with the same function, the behavior of each component be required to individually be compiled causes it is artificial The promotion of cost, and the intensity of work increase;And the transmitting of existing intermodule signal is to need to follow communication association View, coding mode is more complicated and is limited more, and the transmitting of information can also have decaying, and the signal of each module exists in bus goes here and there The problem of disturbing.
Technical solution: purpose to realize the present invention provides following technical scheme:
A kind of module self position recognition methods, comprising the following steps:
1) at least two modules are manufactured: at least have in each module a controller and at least two input ports and At least two output ports, all module hardware configurations having the same;
2) all modules are connected in series;
3) input port of first module is closed, when the acquisition of the input port no data of first module, then the The input port of one module be low level, the controller of first inside modules at this time carry out be incremented by operation, this first Module can recognize that the position of itself is 1;
4) incremental operation values are transmitted to the input port of next module by controller by output port, are repeated in Above-mentioned software operation, until all modules identify self-position.
Further, the quantity of input port and the quantity of output port are identical.
Further, the input port and output port of each module are connected to controller, and pass through the two of controller System is cumulative, is reacted to output port, then exported by output port.
Further, the quantity of the input port and output port of each module, which will at least reach, reflects the last one mould The binary-coded bit value of accumulated value obtained by block controller.
Further, binary-coded initial value is 1 in controller.
According to the input port of required use and output port quantity, binary coding 1 such as uses 3 output ports, Then the initial value of output port is 001, and the output port output of next module is 010.
Further, it connects one to one between the input port output port of adjacent block, each input port and defeated It any one position that exit port both corresponds in the binary coding of accumulated value obtained by controller and does not overlap.
Further, it may also include another controller and connect external device.
Further, controller is single-chip microcontroller, and 89C51 single-chip microcontroller can be used.
The utility model has the advantages that the present invention is compared with prior art: design method through the invention does not need to follow any agreement, The signal transmitting of each intermodule only can be realized by way of electric signal, meanwhile, using such mode, identical mould can be used Block realizes different fuction outputs in different positions, enhances the versatility and practicability of product, gives technology, production, pipe It is convenient that reason etc. has all been come, and cost also greatly reduces.
Detailed description of the invention
Fig. 1 is system connection schematic diagram of the invention;
Fig. 2 is the schematic diagram of embodiment 1;
Fig. 3 is the schematic diagram of embodiment 2.
Specific embodiment
The present invention is described further with reference to the accompanying drawings and examples.
A kind of module self position recognition methods, comprising the following steps:
1) at least two modules are manufactured: at least have in each module a controller and at least two input ports and At least two output ports, all module hardware configurations having the same;
2) all modules are connected in series;
3) input port of first module is closed, when the acquisition of the input port no data of first module, then the The input port of one module be low level, the controller of first inside modules at this time carry out be incremented by operation, this first Module can recognize that the position of itself is 1;
4) incremental operation values are transmitted to the input port of next module by controller by output port, are repeated in Above-mentioned software operation, until all modules identify self-position.
The quantity of input port and the quantity of output port are identical.The input port and output port of each module are all connected with To controller, and it is cumulative by the binary system of controller, it is reacted to output port, then exported by output port.Output The quantity of port will at least reach the binary coding bit value for reflecting accumulated value obtained by the last one module controller.Binary system The initial value of coding is 1.According to the input port of required use and output port quantity, binary coding 1 such as uses 3 Output port, then the initial value of output port is 001, and the output port output of next module is 010.It may also include another A controller simultaneously connects external device.Controller is single-chip microcontroller, and 89C51 single-chip microcontroller can be used.The input port of adjacent block is defeated It connects one to one between exit port, each input port and output port both correspond to the binary system of accumulated value obtained by controller It any one position in coding and does not overlap.
Embodiment 1
Assuming that then the corresponding self position of module 1 is known when the input port 2 of module 1 and the quantity of output port 3 are n=2 Not maximum quantity is 3.
Hardware connection: the input port 2 of first module 1 is idle, and output port 3 is correspondingly connected with the by 2 data lines The output port 3 of the input port 2 of two modules 1, second module 1 is correspondingly connected with third module 1 by 3 data lines The output port 3 of input port 2, third module 1 is idle, is sequentially connected in series between adjacent module 1.
When the acquisition of 2 no data of input port of first module 1, then the input port 2 of module 1 is all low level, defeated Inbound port 2 corresponds to level 00, and the single-chip microcontroller inside module 1 at this time carries out being incremented by operation, operation result 01, this module 1 is The position that can recognize itself is 1 and incremental operation values is transmitted to the defeated of next module 1 by output port 3 by single-chip microcontroller 4 Inbound port 2, the level of second 1 input port 2 of module is 01 at this time, and the level of output port 3 is 10 by being incremented by state, this When, second module 1 identifies that the position of oneself is 2, is repeated in above-mentioned software operation, and 1 single-chip microcontroller 4 of third module adds up Value is 11, and the position that third module 1 recognizes oneself is 3.
Embodiment 2
Assuming that then the corresponding self position of module 1 is known when the input port 2 of module 1 and the quantity of output port 3 are n=3 Not maximum quantity is 7.
Hardware connection: the input port 2 of first module 1 is idle, and output port 3 is correspondingly connected with the by 3 data lines The output port 3 of the input port 2 of two modules 1, second module 1 is correspondingly connected with third module 1 by 3 data lines Input port 2, is sequentially connected in series, until the output port 3 of the 8th module 1 is idle.
When the acquisition of 2 no data of input port of first module 1, then the input port 2 of module 1 is all low level, defeated Inbound port 2 corresponds to level 000, and the single-chip microcontroller 4 inside module 1 at this time carries out being incremented by operation, operation result 001, this module 1 The position that can recognize itself is 1 and incremental operation values is transmitted to the defeated of next module by output port 3 by single-chip microcontroller 4 Inbound port 2, the level of second 1 input port 2 of module is 001 at this time, and the level of output port 3 is 010 by being incremented by state, The position that second module 1 recognizes oneself is 2, above-mentioned software operation is repeated in, until all modules 1 identify itself Position.

Claims (8)

1. a kind of module self position recognition methods, it is characterised in that: the following steps are included:
1) at least two modules are manufactured: at least there are a controller and at least two input ports and at least in each module Two output ports, all module hardware configurations having the same;
2) all modules are connected in series;
3) input port of first module is closed, when the acquisition of the input port no data of first module, then first The input port of module is low level, and the controller of first inside modules at this time carries out being incremented by operation, this first module The position that can recognize itself is 1;
4) incremental operation values are transmitted to the input port of next module by controller by output port, are repeated in above-mentioned Software operation, until all modules identify self-position.
2. module self position recognition methods according to claim 1, it is characterised in that: the quantity and output of input port The quantity of port is identical.
3. module self position recognition methods according to claim 1, it is characterised in that: the input port of each module and Output port is connected to controller, and cumulative by the binary system of controller, is reacted to the corresponding output end of current controller Mouthful, then exported by this output port.
4. module self position recognition methods according to claim 3, it is characterised in that: the input port of each module is defeated The quantity of exit port will at least reach the binary-coded bit value for reflecting accumulated value obtained by the last one module controller.
5. module self position recognition methods according to claim 3, it is characterised in that: the input port of adjacent block is defeated It connects one to one between exit port, each input port and output port both correspond to the binary system of accumulated value obtained by controller It any one position in coding and does not overlap.
6. module self position recognition methods according to claim 4, it is characterised in that: binary-coded in controller Initial value is 1.
7. module self position recognition methods according to claim 1, it is characterised in that: may also include another controller And connect external device.
8. according to claim 1 to module self position recognition methods described in 7 any one, it is characterised in that: controller is 89C51 single-chip microcontroller can be used in single-chip microcontroller.
CN201810777069.3A 2018-07-16 2018-07-16 A kind of module self position recognition methods Pending CN109039808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810777069.3A CN109039808A (en) 2018-07-16 2018-07-16 A kind of module self position recognition methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810777069.3A CN109039808A (en) 2018-07-16 2018-07-16 A kind of module self position recognition methods

Publications (1)

Publication Number Publication Date
CN109039808A true CN109039808A (en) 2018-12-18

Family

ID=64642633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810777069.3A Pending CN109039808A (en) 2018-07-16 2018-07-16 A kind of module self position recognition methods

Country Status (1)

Country Link
CN (1) CN109039808A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2427841Y (en) * 1999-11-22 2001-04-25 海湾安全技术股份有限公司 Electronic coding device
WO2008021128A2 (en) * 2006-08-08 2008-02-21 Siemens Energy & Automation, Inc. Devices, systems, and methods for communicating with a plc
CN101458320A (en) * 2007-12-11 2009-06-17 深圳市莱科电子技术有限公司 Automatic positioning navigation system based on time correction
CN104298158A (en) * 2014-10-21 2015-01-21 许继电气股份有限公司 Intelligent device address encoding method based on input-output structure
WO2015081729A1 (en) * 2013-12-06 2015-06-11 深圳市明微电子股份有限公司 Landscape decoration lamp system and address encoding and display control method for same
CN105260337A (en) * 2015-11-02 2016-01-20 深圳市共济科技有限公司 Automatic addressing method and system of single-chip microcomputers
CN106450518A (en) * 2016-10-11 2017-02-22 北京长城华冠汽车科技股份有限公司 Automatic addressing method and device of electric vehicle battery management system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2427841Y (en) * 1999-11-22 2001-04-25 海湾安全技术股份有限公司 Electronic coding device
WO2008021128A2 (en) * 2006-08-08 2008-02-21 Siemens Energy & Automation, Inc. Devices, systems, and methods for communicating with a plc
CN101458320A (en) * 2007-12-11 2009-06-17 深圳市莱科电子技术有限公司 Automatic positioning navigation system based on time correction
WO2015081729A1 (en) * 2013-12-06 2015-06-11 深圳市明微电子股份有限公司 Landscape decoration lamp system and address encoding and display control method for same
CN104298158A (en) * 2014-10-21 2015-01-21 许继电气股份有限公司 Intelligent device address encoding method based on input-output structure
CN105260337A (en) * 2015-11-02 2016-01-20 深圳市共济科技有限公司 Automatic addressing method and system of single-chip microcomputers
CN106450518A (en) * 2016-10-11 2017-02-22 北京长城华冠汽车科技股份有限公司 Automatic addressing method and device of electric vehicle battery management system

Similar Documents

Publication Publication Date Title
CN102891796B (en) Mining intelligent transmission gateway
CN100563117C (en) A kind of power cord chopped wave communication transmitting-receiving circuit
CN101594171B (en) Power cord chopper communication transceiving circuit
CN104506516A (en) Gateway for conversion between Modbus RTU/ASCII (remote terminal unit/American standard code for information interchange) communication protocol and Modbus TCP (transmission control protocol) communication protocol and implementation method for gateway
CN107770025A (en) A kind of network device of annular differential communication
CN103827760A (en) Method for transmitting a process map via a gateway device
CN103745590A (en) Infrared remote coding method
CN101163148B (en) Ethernet transmission method of supporting non-standard velocity and corresponding device and access equipment
CN108614789B (en) Communication system and method of serial port bus with handshake mechanism
CN104283587B (en) A kind of energy and information time-division composite transmission system with common mode current inhibition ability
CN104090511A (en) Circuit and method for achieving non-polar 485 communication
CN104678809A (en) Universal sensor control equipment and system
CN106647393A (en) CAN bus automatic coding circuit and method
CN105472782A (en) Wireless communication terminal
CN109039808A (en) A kind of module self position recognition methods
CN206270694U (en) A kind of CAN autocoding circuit
CN103368908A (en) Gateway protocol, gateway equipment and electrical equipment control system
CN202916008U (en) Multichannel optical power meter
CN105867881B (en) A kind of means of communication and data interaction device for robot
CN210327619U (en) Internet of things gateway and internet of things system
CN209118135U (en) A kind of automobile-used CAN bus telecommunication circuit of electrical salf-walking
CN202383821U (en) Non-polarized RS485 signal communication device
CN201515367U (en) Power line chopping communication transceiver circuit
CN107707558B (en) Data transmission system of multi-industry bus
CN104298158A (en) Intelligent device address encoding method based on input-output structure

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181218

RJ01 Rejection of invention patent application after publication