CN111585820B - Numbering method for multiple slave machines and weighing shelf - Google Patents

Numbering method for multiple slave machines and weighing shelf Download PDF

Info

Publication number
CN111585820B
CN111585820B CN202010401303.XA CN202010401303A CN111585820B CN 111585820 B CN111585820 B CN 111585820B CN 202010401303 A CN202010401303 A CN 202010401303A CN 111585820 B CN111585820 B CN 111585820B
Authority
CN
China
Prior art keywords
slave
master
setting
instruction
host
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
CN202010401303.XA
Other languages
Chinese (zh)
Other versions
CN111585820A (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.)
Beirong Iot Changzhou Co ltd
Original Assignee
Beirong Iot Changzhou Co ltd
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 Beirong Iot Changzhou Co ltd filed Critical Beirong Iot Changzhou Co ltd
Priority to CN202010401303.XA priority Critical patent/CN111585820B/en
Publication of CN111585820A publication Critical patent/CN111585820A/en
Application granted granted Critical
Publication of CN111585820B publication Critical patent/CN111585820B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47BTABLES; DESKS; OFFICE FURNITURE; CABINETS; DRAWERS; GENERAL DETAILS OF FURNITURE
    • A47B81/00Cabinets or racks specially adapted for other particular purposes, e.g. for storing guns or skis
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G19/00Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups
    • G01G19/52Weighing apparatus combined with other objects, e.g. furniture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration

Abstract

The invention discloses a numbering method and a weighing shelf for multiple slave machines, wherein the method comprises the following steps: s1: after the slave accesses the master network, the master sends an instruction comprising an initial number and a setting command with a setting number to the slave; s2: the slave machine with the initial number responds, sets the number as the setting number and feeds back a response instruction to the master machine; s3: after the host receives the response instruction, executing the step S1 and the step S2 to the next slave; s4: repeating the steps S1 to S3 until all the slave machines are accessed to the host network and the corresponding setting numbers are distributed; and the setting number sent by the host each time is sequentially increased or decreased. The invention can automatically number the slave machines which are accessed and set as the initial numbers, and the numbering is not repeated, the error is avoided, the use is very convenient, and the extra workload is not required to be increased.

Description

Numbering method for multiple slave machines and weighing shelf
Technical Field
The invention relates to a numbering method for multiple slave machines and a weighing shelf.
Background
At present, in the weighing shelf in the prior art, the number of each material box is almost set in an intelligent terminal through manual input, so that the weighing shelf is very inconvenient and wrong in accommodating setting.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a multi-slave numbering method which can automatically number the slave which is accessed and set as an initial number, has no repeated numbering and no error, is very convenient to use and does not need to increase extra workload.
In order to solve the technical problem, the technical scheme of the invention is as follows: a multi-slave numbering method comprises the following steps:
s1: after the slave accesses the master network, the master sends an instruction comprising an initial number and a setting command with a setting number to the slave;
s2: the slave machine with the initial number responds, sets the number as the setting number and feeds back a response instruction to the master machine;
s3: after the host receives the response instruction, executing the step S1 and the step S2 to the next slave;
s4: repeating the steps S1 to S3 until all the slave machines are accessed to the host network and the corresponding setting numbers are distributed;
and the setting number sent by the host each time is sequentially increased or decreased.
Further, the setting number sent by the host each time is sequentially increased or decreased by a natural number.
Further, when the master transmits an instruction including a slave number and a number clear content to the slave, the slave of the corresponding slave number clears and sets its own slave number as an initial number.
Further, the master is also suitable for sending an instruction comprising a slave number and slave execution content to the slave;
the slave of the corresponding slave number is suitable for responding to the execution content and feeding back an instruction comprising the slave number and the slave response content to the master.
Further, the master is also adapted to send an instruction including a broadcast number and slave execution content to the slave;
the slave is adapted to respond to the execution content and not respond to the master.
Further, when the master sends an instruction including a broadcast number and a number clear content to the slave, the slave clears and sets its own slave number as an initial number.
Further, the set number after the slave is set is not the initial number and is not the broadcast number.
Further, the initial number is set to 0;
the allowable range of the setting number is increased from 1 to n ≦ 2 x -2; wherein x is a multiple of 8;
the broadcast number is set to 2 x -1。
The invention also provides a weighing shelf, which comprises:
a magazine;
the weighing module is arranged corresponding to the material box;
the intelligent terminal is connected with the weighing module;
it applies to the multiple slave numbering method; wherein the content of the first and second substances,
the slave machine is a weighing module;
the host is an intelligent terminal.
After the technical scheme is adopted, after the slave machine is connected to the host machine network, the slave machine with the initial number can automatically distribute the number through the host machine without manually inputting the number setting on the host machine, so that the number process is greatly simplified; specifically to weighing on the goods shelves, after weighing module inserts the host computer network, intelligent terminal can automatic allocation serial number for the weighing module who has initial serial number, has simplified the serial number flow.
Detailed Description
In order that the present invention may be more clearly understood, the following detailed description of the present invention is given with reference to specific examples.
Example one
This embodiment introduces a method for numbering multiple slaves during setting slave numbers, the method comprising the steps of:
s1: after the slave accesses the master network, the master sends an instruction comprising an initial number and a setting command with a setting number to the slave;
s2: the slave machine with the initial number responds, sets the number as the setting number and feeds back a response instruction to the master machine;
s3: after the host receives the response instruction, executing the step S1 and the step S2 to the next slave;
s4: repeating the steps S1 to S3 until all the slave machines are accessed to the host network and the corresponding setting numbers are distributed;
wherein, the setting number sent by the host computer each time is sequentially increased or decreased.
Specifically, the setting number sent by the host each time is sequentially incremented or decremented by a natural number.
Specifically, when the master sends an instruction including a slave number and number clear content to the slave, the slave of the corresponding slave number clears and sets its own slave number as an initial number.
Specifically, the master is further adapted to send an instruction including a slave number and slave execution content to the slave;
the slave of the corresponding slave number is adapted to respond to the execution content and to feed back to the master an instruction including the slave number and the slave reply content.
In particular, the master is further adapted to send to the slave an instruction comprising a broadcast number and slave execution content;
the slave is adapted to respond to the execution content and not respond to the master.
In the process of clearing the slave number, the slave execution content may be number clearing content, and the slave clears and sets the slave number of the slave to the initial number. At this point, all slaves can be removed from the master network.
In this embodiment, the factory setting of the slave number is the initial number. If it is the first installation, it may not be necessary to clear the slave's number.
Specifically, the set number after the slave is set is not the initial number and is not the broadcast number.
Further, the initial number is set to 0;
the setting number allows the range to be increased from 1 to n ≦ 2 x -2; wherein x is a multiple of 8;
the broadcast number is set to 2 x -1。
Example two
A weighing rack comprising:
a magazine;
the weighing module is arranged corresponding to the material box;
the intelligent terminal is connected with the weighing module;
it applies to the multiple slave numbering method in embodiment one; wherein the content of the first and second substances,
the slave machine is a weighing module;
the host is an intelligent terminal.
In this embodiment, the magazine is provided with a plurality ofly, and every magazine corresponds a weighing module, places article in the magazine.
Specifically, a plurality of weighing modules and the intelligent terminal are connected to form a whole host network.
Specifically, in this embodiment, the installer only needs to access the weighing module to the host network, and after seeing that the access display on the intelligent terminal is completed, the installer accesses the next weighing module, and after all accesses are completed. After the access completion is confirmed on the intelligent terminal, the intelligent terminal can exit the numbering mode, and the numbering process is greatly simplified.
The above embodiments are described in further detail to solve the technical problems, technical solutions and advantages of the present invention, and it should be understood that the above embodiments are only examples of the present invention and are not intended to limit the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (4)

1. A multi-slave numbering method is characterized in that the method is applied to a weighing shelf, and the weighing shelf comprises the following steps:
a magazine;
the weighing module is arranged corresponding to the material box;
the intelligent terminal is connected with the weighing module;
the slave machine is a weighing module;
the host is an intelligent terminal;
the method comprises the following steps:
s1: after the slave accesses the master network, the master sends an instruction comprising an initial number and a setting command with a setting number to the slave;
s2: the slave machine with the initial number responds, sets the number as the setting number and feeds back a response instruction to the master machine;
s3: after the host receives the response instruction, executing the step S1 and the step S2 to the next slave;
s4: repeating the steps S1 to S3 until all the slave machines are accessed to the host network and the corresponding setting numbers are distributed;
the setting number sent by the host computer each time is sequentially increased or decreased;
the master is further adapted to send instructions including a broadcast number and slave execution content to the slave, the slave being adapted to respond to the execution content and not respond to the master; when the master sends an instruction comprising a broadcast number and a number clearing content to the slave, the slave clears the number of the slave and sets the number as an initial number;
the set number after the slave is set is not an initial number and is not a broadcast number;
the initial number is set to 0;
the setting number allows the range to be increased from 1 to n ≦ 2 x -2; wherein x is a multiple of 8;
the broadcast number is set to 2 x -1。
2. The method of multiple slave numbering according to claim 1,
the setting number sent by the host each time is sequentially increased or decreased by a natural number.
3. The method of multiple slave numbering according to claim 1,
when the master sends an instruction including a slave number and number clear content to the slave, the slave of the corresponding slave number clears the slave number of itself and sets the slave number as an initial number.
4. The multi-slave numbering method according to claim 1,
the master is further adapted to send an instruction including a slave number and slave execution content to the slave;
the slave of the corresponding slave number is suitable for responding to the execution content and feeding back an instruction comprising the slave number and the slave response content to the master.
CN202010401303.XA 2020-05-13 2020-05-13 Numbering method for multiple slave machines and weighing shelf Active CN111585820B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010401303.XA CN111585820B (en) 2020-05-13 2020-05-13 Numbering method for multiple slave machines and weighing shelf

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010401303.XA CN111585820B (en) 2020-05-13 2020-05-13 Numbering method for multiple slave machines and weighing shelf

Publications (2)

Publication Number Publication Date
CN111585820A CN111585820A (en) 2020-08-25
CN111585820B true CN111585820B (en) 2023-02-03

Family

ID=72124952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010401303.XA Active CN111585820B (en) 2020-05-13 2020-05-13 Numbering method for multiple slave machines and weighing shelf

Country Status (1)

Country Link
CN (1) CN111585820B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822693A (en) * 2020-12-31 2021-05-18 陕西天基通信科技有限责任公司 Method for realizing self-adaptive numbering of micro indoor distribution system
CN113590526B (en) * 2021-09-30 2021-12-28 杭州捷配信息科技有限公司 Duplex communication information transmission method, system and application
CN114302488A (en) * 2021-12-31 2022-04-08 广州极飞科技股份有限公司 Equipment identification setting method, master machine, slave machine, master-slave machine system and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201854441U (en) * 2010-08-13 2011-06-01 江苏大学 Wireless electronic display label system based on ZigBee technology
CN104410557A (en) * 2014-12-25 2015-03-11 深圳中科讯联科技有限公司 Dynamic networking method and communication method based on RS-485
CN105847456A (en) * 2015-01-13 2016-08-10 浙江大华技术股份有限公司 RS485 automatic address distribution method, device and system
CN109361585A (en) * 2018-12-22 2019-02-19 沈阳阿尔特科技发展有限公司 A kind of method that child node baud rate and address is arranged in host node automatically
CN110535980A (en) * 2019-08-30 2019-12-03 福州福沃垦电子科技有限公司 A kind of distribution method and system of terminal address

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635637A (en) * 2008-07-21 2010-01-27 江森自控楼宇设备科技(无锡)有限公司 Method and system for distributing intelligent addresses based on serial bus
CN101852472B (en) * 2009-04-01 2012-09-05 欧威尔空调科技(中国)有限公司 Automatic addressing method for air conditioning system and air conditioning controller
CN105554180B (en) * 2016-01-19 2019-05-14 深圳市坤钤泰科技有限公司 The connection method of principal and subordinate's breaker and distribution box in a kind of distribution box
CN108616610A (en) * 2018-05-21 2018-10-02 深圳前海有电物联科技有限公司 Address distribution method, host, slave and bus system
CN108590254A (en) * 2018-06-13 2018-09-28 珠海伊能电子科技有限公司 Work tool intelligent management system and Work tool store storehouse
CN109686074A (en) * 2019-02-27 2019-04-26 深圳市斯迈耐特科技有限公司 Eight channel dynamometry collectors
CN111147619B (en) * 2019-12-20 2022-07-19 海丰通航科技有限公司 Method and system for realizing automatic address allocation of RS485 slave equipment locally

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201854441U (en) * 2010-08-13 2011-06-01 江苏大学 Wireless electronic display label system based on ZigBee technology
CN104410557A (en) * 2014-12-25 2015-03-11 深圳中科讯联科技有限公司 Dynamic networking method and communication method based on RS-485
CN105847456A (en) * 2015-01-13 2016-08-10 浙江大华技术股份有限公司 RS485 automatic address distribution method, device and system
CN109361585A (en) * 2018-12-22 2019-02-19 沈阳阿尔特科技发展有限公司 A kind of method that child node baud rate and address is arranged in host node automatically
CN110535980A (en) * 2019-08-30 2019-12-03 福州福沃垦电子科技有限公司 A kind of distribution method and system of terminal address

Also Published As

Publication number Publication date
CN111585820A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN111585820B (en) Numbering method for multiple slave machines and weighing shelf
CN101477506A (en) Addressing system and method of master equipment to slave equipment
CN101582824B (en) Node number automatic distribution method for controlling secondary node equipment of local area network bus
DE112007001566B4 (en) control device
US20030167360A1 (en) Address assignment method for at least one bus device that has recently been connected to a bus system
CA2711052C (en) Methods, systems, and devices for providing an interrupt scheme in automated pharmaceutical dispensing machines without centralized arbitration
EP0267011A2 (en) Apparatus for fault-tolerant computer system having expandable processor section
EP3451811B1 (en) Production plan generation device, production plan generation method, and production plan generation program
EP2897009A1 (en) Production-sequence-optimizing method and production-sequence-optimizing system
CN108989169B (en) CAN bus-based intelligent module ad hoc network method
CN103116508B (en) A kind of general-purpose interface of SAP system and its implementation
US5615106A (en) Control device
JPS5985567A (en) Stored program type controller
CN103279434A (en) Method and device for modifying address of slave unit
CN105162671B (en) The welding stage control system and its control method of any main frame
US7310567B2 (en) Method for the preparation, treatment and updating tool data
CN107168253A (en) Computer integrated manufacturing system and its manufacture method
CN103549656A (en) Cut tobacco conveying system and method
JP6709853B2 (en) Method and apparatus for assigning configuration groups to packaging lines
CN109081069B (en) Material conveying method
CN108880860B (en) Policy management method and device
CN107203392B (en) Multi-protocol implementation method of small system terminal product
CN115438952A (en) Production scheduling method and related equipment thereof
CN113935570A (en) Order processing method, device, equipment and storage medium
CN107968718A (en) A kind of method, apparatus and equipment for confirming standby usage state

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