CN108007486A - Sensor number method based on toggle switch - Google Patents

Sensor number method based on toggle switch Download PDF

Info

Publication number
CN108007486A
CN108007486A CN201711107620.5A CN201711107620A CN108007486A CN 108007486 A CN108007486 A CN 108007486A CN 201711107620 A CN201711107620 A CN 201711107620A CN 108007486 A CN108007486 A CN 108007486A
Authority
CN
China
Prior art keywords
sensor
switch
toggle switch
binary coding
number method
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
CN201711107620.5A
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.)
Anhui Hui Yuan Cheng Electric Polytron Technologies Inc
Original Assignee
Anhui Hui Yuan Cheng Electric 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 Anhui Hui Yuan Cheng Electric Polytron Technologies Inc filed Critical Anhui Hui Yuan Cheng Electric Polytron Technologies Inc
Priority to CN201711107620.5A priority Critical patent/CN108007486A/en
Publication of CN108007486A publication Critical patent/CN108007486A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D11/00Component parts of measuring arrangements not specially adapted for a specific variable
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K1/00Details of thermometers not specially adapted for particular types of thermometer

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Or Calibration Of Command Recording Devices (AREA)

Abstract

The invention discloses a kind of sensor number method based on toggle switch, it is related to sensor number method and technology field.Comprise the following steps:Step 1:The numbering of the sensor a needed replacing is obtained, and calculates corresponding binary coding;Step 2:Binary coding in step 1, stirs the on & off switch of the toggle switch on sensor b, and MCU records and label the situation that switches on and off of each on & off switch on toggle switch, and generates binary coding;Step 3:Binary coding in step 2 is denoted as to the numbering of sensor b.Sensor is a radio temperature sensor.Toggle switch switchs for a DIP switch or a SMD.In step 2, the connection situation of on & off switch is denoted as " 1 " or " 0 " by MCU, then generates binary coding according to the on & off switch label on toggle switch.By the present invention in that sensor is numbered with toggle switch, the numbering during replacement to sensor is facilitated.

Description

Sensor number method based on toggle switch
Technical field
The invention belongs to sensor number method and technology field, is compiled more particularly to a kind of sensor based on toggle switch Number method.
Background technology
Toggle switch is the binary coding principle of a use 0/1, to operate the address switch of control;Toggle switch is made To need a kind of microswitch being manually operated, communicating, extensive use on many device products such as security protection.Most of dial-up is opened It is direct insertion to close use, is converted between binary states, further according to the different conditions of the Nth power of different position compositions 2, realizes different work( Energy.
Sensor is a kind of detection device, can experience measured information, and the information that will can be experienced, by a set pattern Rule is for conversion into electric signal or the information output of other required forms, to meet the transmission of information, processing, storage, display, record With control etc. require.The characteristics of sensor, includes:Micromation, digitlization, intelligence, multifunction, systematization, networking.It It is to realize the automatic primary link for detecting and automatically controlling.The presence and development of sensor, allow object to have tactile, the sense of taste and smell The sense organs such as feel, allow object slowly to become to have lived.Generally according to its basic perceptional function be divided into temperature-sensitive element, light-sensitive element, Gas sensor, force sensing element, magneto sensor, dew cell, acoustic sensor, radioactive ray sensing element, color sensor and the quick member of taste Ten major class such as part.
At present, when being replaced to sensor, it is necessary to which related technical personnel carry out coding using software to sensor writes Enter;When technical staff not when, those of ordinary skill is difficult to replace sensor.
The content of the invention
It is an object of the invention to provide a kind of sensor number method based on toggle switch, by using toggle switch Sensor is numbered, facilitates the numbering during replacement to sensor, solves asking for existing replacing sensor inconvenience Topic.
In order to solve the above technical problems, the present invention is achieved by the following technical solutions:
The present invention is a kind of sensor number method based on toggle switch, is comprised the following steps:
Step 1:The numbering of the sensor a needed replacing is obtained, and calculates corresponding binary coding;
Step 2:Binary coding in step 1, stirs the on & off switch of the toggle switch on sensor b, MCU The situation that switches on and off of each on & off switch on toggle switch is recorded and label, and generates binary coding;
Step 3:Binary coding in step 2 is denoted as to the numbering of sensor b.
Further, the sensor is a radio temperature sensor.
Further, the toggle switch switchs for a DIP switch or a SMD.
Further, in the step 2, the connection situation of on & off switch is denoted as " 1 " or " 0 " by MCU, then according to dial-up On & off switch label generation binary coding on switch.
The invention has the advantages that:
By the present invention in that sensor is numbered with toggle switch, the numbering during replacement to sensor is facilitated.
Certainly, implement any of the products of the present invention and do not necessarily require achieving all the advantages described above at the same time.
Embodiment
The present invention is a kind of sensor number method based on toggle switch, is comprised the following steps:
Step 1:The numbering of the sensor a needed replacing is obtained, and calculates corresponding binary coding;
Step 2:Binary coding in step 1, stirs the on & off switch of the toggle switch on sensor b, when By on & off switch to the ON sides on toggle switch stir when, two pins on toggle switch are connected, when by & off switch to dial-up When ON opposite sides on switch are stirred, two pins on toggle switch disconnect;MCU is to each on & off switch on toggle switch The situation of switching on and off is recorded and label, and generates binary coding;
Step 3:Binary coding in step 2 is denoted as to the numbering of sensor b, when needing replacing sensor, weight Multiple top step.
Wherein, sensor is a radio temperature sensor.
Wherein, toggle switch switchs for a DIP switch or a SMD.
Wherein, in step 2, the connection situation of on & off switch is denoted as " 1 " or " 0 " by MCU, then according on toggle switch On & off switch label generates binary coding.
Embodiment one:
Table 1:
On & off switch disconnects 0 0 0 0
On & off switch is connected 1 1 1 1
Coding 0 1 1 0 1 0 0 1
When on & off switch is disconnected, which is designated as " 0 " by MCU;When on & off switch is connected, which is designated as " 1 " by MCU; In table 1, the numbering of sensor is:01101001.
Embodiment two:
Table 2:
On & off switch disconnects 1 1 1 1
On & off switch is connected 0 0 0 0
Coding 1 0 0 1 0 1 1 0
When on & off switch is disconnected, which is designated as " 1 " by MCU;When on & off switch is connected, which is designated as " 0 " by MCU; In table 1, the numbering of sensor is:10010110.
In the description of this specification, the description of reference term " one embodiment ", " example ", " specific example " etc. means At least one implementation of the present invention is contained in reference to the embodiment or example particular features, structures, materials, or characteristics described In example or example.In the present specification, schematic expression of the above terms may not refer to the same embodiment or example. Moreover, particular features, structures, materials, or characteristics described can close in any one or more embodiments or example Suitable mode combines.
Present invention disclosed above preferred embodiment is only intended to help and illustrates the present invention.Preferred embodiment is not detailed All details are described, are not limited the invention to the specific embodiments described.Obviously, according to the content of this specification, It can make many modifications and variations.This specification is chosen and specifically describes these embodiments, is in order to preferably explain the present invention Principle and practical application so that skilled artisan can be best understood by and utilize the present invention.The present invention is only Limited by claims and its four corner and equivalent.

Claims (4)

1. the sensor number method based on toggle switch, it is characterised in that comprise the following steps:
Step 1:The numbering of the sensor a needed replacing is obtained, and calculates corresponding binary coding;
Step 2:Binary coding in step 1, stirs the on & off switch of the toggle switch on sensor b, MCU is to dialling The situation that switches on and off of each on & off switch on code switch is recorded and label, and generates binary coding;
Step 3:Binary coding in step 2 is denoted as to the numbering of sensor b.
2. the sensor number method according to claim 1 based on toggle switch, it is characterised in that the sensor is One radio temperature sensor.
3. the sensor number method according to claim 1 based on toggle switch, it is characterised in that the toggle switch Switched for a DIP switch or a SMD.
4. the sensor number method according to claim 1 based on toggle switch, it is characterised in that the step 2 In, the connection situation of on & off switch is denoted as " 1 " or " 0 " by MCU, then generates binary system according to the on & off switch label on toggle switch Coding.
CN201711107620.5A 2017-11-10 2017-11-10 Sensor number method based on toggle switch Pending CN108007486A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711107620.5A CN108007486A (en) 2017-11-10 2017-11-10 Sensor number method based on toggle switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711107620.5A CN108007486A (en) 2017-11-10 2017-11-10 Sensor number method based on toggle switch

Publications (1)

Publication Number Publication Date
CN108007486A true CN108007486A (en) 2018-05-08

Family

ID=62052290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711107620.5A Pending CN108007486A (en) 2017-11-10 2017-11-10 Sensor number method based on toggle switch

Country Status (1)

Country Link
CN (1) CN108007486A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201571232U (en) * 2009-10-27 2010-09-01 陕西惠通电器有限公司 Illumination control system
CN102514498A (en) * 2011-11-23 2012-06-27 湖南南车时代电动汽车股份有限公司 Identification method and device of battery management system sub-module
CN103810013A (en) * 2012-11-13 2014-05-21 中科英华湖州工程技术研究中心有限公司 Programming auxiliary processing device and method based on dial switch array
CN106547267A (en) * 2017-01-03 2017-03-29 中车株洲电力机车有限公司 A kind of address code system and method for suspension controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201571232U (en) * 2009-10-27 2010-09-01 陕西惠通电器有限公司 Illumination control system
CN102514498A (en) * 2011-11-23 2012-06-27 湖南南车时代电动汽车股份有限公司 Identification method and device of battery management system sub-module
CN103810013A (en) * 2012-11-13 2014-05-21 中科英华湖州工程技术研究中心有限公司 Programming auxiliary processing device and method based on dial switch array
CN106547267A (en) * 2017-01-03 2017-03-29 中车株洲电力机车有限公司 A kind of address code system and method for suspension controller

Similar Documents

Publication Publication Date Title
CN106802779B (en) Method for sending instruction to tandem display
CN105911451B (en) Chip testing method and device
JP2006148850A (en) Apparatus and method for interactive touch control remote control
CN104901848A (en) Automated testing system and method for startup and shutdown of router
EP1848155A1 (en) Method and device for controlling equipment switching
US11244656B2 (en) Use of a display of a converter, method for operating a converter, and converter
CN202650305U (en) Personnel remote training apparatus
CN104009548A (en) Intelligent controller of low-voltage circuit breaker capable of achieving communication
CN108007486A (en) Sensor number method based on toggle switch
CN104202637A (en) Key remote control and target dragging method
CN205374637U (en) Startup and shutdown testing device
US9240785B2 (en) Analog signal compatible CMOS switch as an integrated peripheral to a standard microcontroller
CN206451170U (en) A kind of multi-serial extension equipment
CN106162166B (en) A kind of factory's remote controller key event-handling method and device
CN209418160U (en) Nuclear power plant instrument control system by-pass collar and system
CN103035138B (en) Personnel remote training device
US8271225B2 (en) Test system for connectors with multi-input
CN102447591B (en) Test the system and method for multiple serial device
CN114239884A (en) Robot operation and maintenance method and system
CN106897057A (en) The method and device on plug-in unit call notification column
CN108958210B (en) Maintenance computer and computer-readable recording medium for plant supervisory control system
US20140289431A1 (en) Interface apparatus connected with electronic device
KR840001466A (en) Control and Method for Industrial Robot
CN108007485A (en) The numbered packets method of sensor
CN204758765U (en) Fault electric arc detecting device's address coding ware

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: 20180508

RJ01 Rejection of invention patent application after publication