CN111756609B - Station number automatic allocation method, master station equipment, slave station equipment and single-spindle detection system - Google Patents

Station number automatic allocation method, master station equipment, slave station equipment and single-spindle detection system Download PDF

Info

Publication number
CN111756609B
CN111756609B CN202010543292.9A CN202010543292A CN111756609B CN 111756609 B CN111756609 B CN 111756609B CN 202010543292 A CN202010543292 A CN 202010543292A CN 111756609 B CN111756609 B CN 111756609B
Authority
CN
China
Prior art keywords
station
station number
slave
slave station
equipment
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
CN202010543292.9A
Other languages
Chinese (zh)
Other versions
CN111756609A (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.)
Suzhou Huichuan Control Technology Co Ltd
Original Assignee
Suzhou Huichuan Control Technology 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 Suzhou Huichuan Control Technology Co Ltd filed Critical Suzhou Huichuan Control Technology Co Ltd
Priority to CN202010543292.9A priority Critical patent/CN111756609B/en
Publication of CN111756609A publication Critical patent/CN111756609A/en
Application granted granted Critical
Publication of CN111756609B publication Critical patent/CN111756609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04L12/40169Flexible bus arrangements
    • H04L12/40176Flexible bus arrangements involving redundancy
    • DTEXTILES; PAPER
    • D01NATURAL OR MAN-MADE THREADS OR FIBRES; SPINNING
    • D01HSPINNING OR TWISTING
    • D01H13/00Other common constructional features, details or accessories
    • D01H13/14Warning or safety devices, e.g. automatic fault detectors, stop motions ; Monitoring the entanglement of slivers in drafting arrangements
    • D01H13/16Warning or safety devices, e.g. automatic fault detectors, stop motions ; Monitoring the entanglement of slivers in drafting arrangements responsive to reduction in material tension, failure of supply, or breakage, of material
    • D01H13/1616Warning or safety devices, e.g. automatic fault detectors, stop motions ; Monitoring the entanglement of slivers in drafting arrangements responsive to reduction in material tension, failure of supply, or breakage, of material characterised by the detector
    • D01H13/1633Electronic actuators
    • 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/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/4185Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by the network communication
    • 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
    • H04L12/40169Flexible bus arrangements
    • H04L12/40176Flexible bus arrangements involving redundancy
    • H04L12/40195Flexible bus arrangements involving redundancy by using a plurality of nodes
    • 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
    • H04L12/40169Flexible bus arrangements
    • H04L12/40176Flexible bus arrangements involving redundancy
    • H04L12/40202Flexible bus arrangements involving redundancy by using a plurality of master stations
    • 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
    • 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)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Manufacturing & Machinery (AREA)
  • General Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Textile Engineering (AREA)
  • Selective Calling Equipment (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses an automatic station number allocation method, master station equipment, slave station equipment and a single-spindle detection system. The single-spindle detection system comprises a master station device and at least two slave station devices, wherein the master station device is connected with the slave station devices through a communication bus, and the station number automatic allocation method is applied to the master station device and comprises the following steps: after receiving a signal of automatic station number allocation, informing all slave station equipment to enter a station number configuration mode in a broadcasting mode; station numbers are automatically configured for each slave station device in sequence; and after the station numbers of all the slave station equipment are configured, informing all the slave station equipment to exit the station number configuration mode in a broadcasting mode. Compared with the prior art, the station number automatic allocation method of the single-spindle detection system does not need to manually set the station number manually, reduces the negative influence caused by the same station number due to human factors, and does not need a dial switch any more, thereby reducing the cost of products.

Description

Station number automatic allocation method, master station equipment, slave station equipment and single-spindle detection system
Technical Field
The invention relates to the technical field of spinning frames, in particular to a station number automatic allocation method, master station equipment, slave station equipment and a single spindle detection system.
Background
China is a large world textile country, the textile industry plays an important role in national economy, most spinning frames in the cotton spinning industry at present do not have a broken yarn detection function and a roving feeding stopping function, after yarn breakage occurs, a driver usually needs to see a plurality of machines by one person and cannot find the broken yarns of the plurality of machines in time, and yarn waste is caused. To this current situation, single spindle detection device has appeared, and the device detects out whether broken yarn through bus technology, reminds the stop man to work a telephone switchboard through outside LED lamp after the broken yarn appears, need not the naked eye and watches, has promoted the time of patrolling and examining of stop man, has made things convenient for stop man greatly, has improved production efficiency.
The spinning frame generally has more than 400 spindles, and most detection equipment on the market takes 8 spindles as one station, and forms multi-spindle detection in a serial bus mode through a plurality of pieces of equipment. In multi-spindle detection, a bus mode is adopted for communication, and station numbers of each piece of equipment are required to be set differently.
The station number of the existing equipment is mostly set manually in a hardware dial switch mode or manually written into the station number in advance by an upper computer. By manually setting the station numbers, if the station numbers are set to be the same by people carelessly, the bus is paralyzed, detection of one station at a time is needed, and time and labor are consumed.
Disclosure of Invention
The invention aims at an automatic station number allocation method, master station equipment, slave station equipment and a single-spindle detection system.
In order to achieve one of the above objects, an embodiment of the present invention provides a method for automatically allocating station numbers to a single-ingot detection system, where the single-ingot detection system includes a master station device and at least two slave station devices, the master station device and the slave station devices are connected by a communication bus, and the method for automatically allocating station numbers is applied to the master station device, and includes:
after receiving the signal of automatic station number allocation, informing all slave station equipment to enter a station number configuration mode in a broadcasting mode, enabling all the slave station equipment to enter the configuration mode, enabling all the slave station equipment to set the station number of the slave station equipment as an invalid station number, and simultaneously setting the output signal of the slave station equipment as a low level;
sending the broadcast signal carrying the effective station number to all the slave station equipment, and enabling all the slave station equipment to configure the station number according to the station number configuration strategy according to the broadcast signal; wherein the station number configuration policy is as follows: when the slave station equipment judges that the input signal of the slave station equipment is in a high level and the station number of the slave station equipment is an invalid station number, the valid station number carried by the broadcast signal is configured as the station number of the slave station equipment;
inquiring whether the station number of the slave station equipment corresponding to the effective station number carried by the broadcast signal is successfully configured or not, and enabling the slave station equipment with the successfully configured station number to set the output signal of the slave station equipment to be at a high level after the slave station equipment sends a response signal with the successfully configured station number;
if a response signal that the station number configuration is successful is received, generating a next effective station number according to a preset rule on the basis of the effective station number, sending a broadcast signal carrying the next effective station number to all slave station equipment again, and repeatedly executing the process until a response signal that the station number configuration of the last slave station equipment is successful is received;
and informing all slave station equipment to exit the station number configuration mode in a broadcasting mode.
As a further improvement of an embodiment of the present invention, the method further comprises:
and after receiving a response signal that the station number of the last slave station equipment is successfully configured, prompting the user that the station number is automatically allocated.
As a further improvement of an embodiment of the present invention, the method further comprises:
inquiring the equipment corresponding to the effective station number carried by the broadcast signal, judging whether the station number configuration is successful, if a response signal of successful station number configuration is not received in a preset time period, informing all the slave station equipment to exit the station number configuration mode in a broadcast mode, and prompting a user that the station number automatic allocation fails.
As a further improvement of an embodiment of the present invention, the communication bus is a CAN bus.
As a further improvement of an embodiment of the present invention, the method further comprises:
and calculating the number of the slave station devices of the single-spindle detection system according to the number of textile spindles of the spinning frame and the number of spindles detected by each slave station.
As a further improvement of the embodiment of the present invention, the effective station number carried by the broadcast signal carrying the effective station number which is sent for the first time is 1, and the preset rule is to successively add 1.
In order to achieve one of the above objects, an embodiment of the present invention provides a method for automatically allocating station numbers to a single-ingot detection system, where the single-ingot detection system includes a master station device and at least two slave station devices, the master station device and the slave station devices are connected by a communication bus, and the method for automatically allocating station numbers is applied to the slave station devices, and includes:
after receiving signals of all slave station equipment entering a station number configuration mode, entering the station number configuration mode, setting the station number of the slave station equipment as an invalid station number, and setting output signals of the slave station equipment as low level;
after receiving a broadcast signal carrying a valid station number, when judging that an input signal of the broadcast signal is in a high level and a station number of the broadcast signal is an invalid station number, configuring the valid station number carried by the broadcast signal as the station number of the broadcast signal;
after receiving an inquiry signal whether the station number sent by the master station is successfully set, sending a response signal that the station number is successfully configured to the master station, and setting the output signal of the master station to be high level so that the input signal of the next slave station device connected in series with the master station is high level;
and after receiving signals of all the slave station equipment exiting the station number configuration mode, exiting the station number configuration mode.
In order to achieve one of the above objects, an embodiment of the present invention provides a master station device, including a first memory and a first processor, where the first memory stores a first computer-readable program executable on the first processor, and the first processor implements, when executing the first computer-readable program, the steps in any one of the station number automatic allocation methods applied to the master station device.
In order to achieve one of the above objects, an embodiment of the present invention provides a slave station device, including a second memory and a second processor, wherein the second memory stores a computer program executable on the second processor, and the second processor implements the steps of the station number automatic assignment method applied to the slave station device when executing the second computer readable program.
In order to achieve one of the above objects, an embodiment of the present invention provides a single-ingot detection system, which includes a master station device and at least two slave station devices, wherein the master station device and the slave station devices are connected by a communication bus, and the slave station devices are connected in series, wherein:
the master station device comprises a first memory and a first processor, wherein the first memory stores a first computer readable program capable of running on the first processor, and the first processor executes the first computer readable program to realize the steps of any one of the station number automatic allocation methods applied to the master station device;
the slave station device includes a second memory and a second processor, the second memory stores a computer program operable on the second processor, and the second processor executes the second computer readable program to implement the steps of the station number automatic allocation method applied to the slave station device.
Compared with the prior art, the station number automatic allocation method of the single-spindle detection system does not need to manually set the station number manually, reduces the negative influence caused by the same station number due to human factors, and does not need a dial switch any more, thereby reducing the cost of products.
Drawings
Fig. 1 is a schematic flow chart of a station number automatic allocation method of a single-spindle detection system according to the present invention.
Fig. 2 is a schematic view of a connection structure of the slave stations of the single-spindle detecting system of the present invention.
Detailed Description
The present invention will be described in detail below with reference to specific embodiments shown in the drawings. These embodiments are not intended to limit the present invention, and structural, methodological, or functional changes made by those skilled in the art according to these embodiments are included in the scope of the present invention.
As shown in fig. 1, the present invention provides a method for automatically allocating station numbers to a single spindle detection system, where the single spindle detection system is configured to detect whether a yarn breaking occurs in a spinning frame, and includes a master station device and at least two slave station devices, where the master station device is connected to the slave station devices through a communication bus, and all the slave station devices are connected together in a serial manner, as shown in fig. 2, where the serial manner is: the output signal of the last slave station device is connected with the input signal of the next slave station device, and the input signal of the first slave station device in series is always high level. When the station number automatic allocation method is applied to the master station equipment, the method comprises the following steps:
step S110: after receiving the signal of automatic station number allocation, all the slave station devices are informed to enter a station number configuration mode in a broadcasting mode, all the slave station devices enter the configuration mode, all the slave station devices set the station numbers of the slave station devices as invalid station numbers, and output signals of the slave station devices are set as low levels.
The master station device periodically communicates with all the slave station devices, and when a response signal of a certain slave station device is not received within a preset time, the slave station device is judged to be abnormal, and a user is prompted to check the abnormality of the slave station device.
After a new slave station device is replaced, a station number does not need to be manually configured for the slave station device, and a user can send a signal for automatically allocating the station number to the master station device through a key. And after the master station equipment receives the signal, broadcasting that all the slave station equipment enters a station number configuration mode. And all slave station equipment receives the broadcast and then enters a station number configuration mode, sets the station number of the slave station equipment as an invalid station number, sets the output signal of the slave station equipment as low level, enters a waiting state, and does not process other signals irrelevant to the station number configuration.
It should be noted that, each single spindle detection system can calculate the number of the slave station devices of the single spindle detection system through the number of textile spindles of the spinning frame and the number of spindles detected by each slave station, that is, the number of the slave stations of each single spindle detection system is fixed, and the station number change rule of each slave station is also fixed, so that it can calculate which station numbers are valid and which station numbers are invalid. For example, for a 480-spindle spinning frame, two single-spindle detection systems are provided (the two single-spindle detection systems are distributed on two sides of the spinning frame), one slave station of each single-spindle detection system detects 12 spindles, and therefore each single-spindle detection system comprises 20 slave station devices. Assuming that the station numbers of 20 slave station devices of a single-ingot detection system are set by sequentially adding 1 to 1 with 1 as an initial station number, 20 station numbers of 1-20 are valid station numbers, and other station numbers are invalid station numbers.
Step S120: sending the broadcast signal carrying the effective station number to all the slave station equipment, and enabling all the slave station equipment to configure the station number according to the station number configuration strategy according to the broadcast signal; wherein the station number configuration policy is as follows: and when the slave station equipment judges that the input signal of the slave station equipment is in a high level and the station number of the slave station equipment is an invalid station number, configuring the valid station number carried by the broadcast signal as the station number of the slave station equipment.
The broadcast signal carrying the effective station number is a station number configuration signal, the master station device sends the effective station number to all the slave station devices through broadcasting, and all the slave station devices set the received effective station number as the station number of the slave station device only under the condition that the following two conditions are met simultaneously: (1) the self station number is an invalid station number; (2) the signal at the input end of the self-body is high level.
Step S130: inquiring whether the station number of the slave station equipment corresponding to the effective station number carried by the broadcast signal is successfully configured, and enabling the slave station equipment with the successfully configured station number to set the output signal of the slave station equipment to be at a high level after the slave station equipment sends a response signal with the successfully configured station number.
After the master station device sends the broadcast signal carrying the valid station number, the master station device sends a one-to-one inquiry signal by using the valid station number as a communication address, namely, inquires whether the station number of the slave station device configured with the valid station number is successfully configured. If the slave station device can receive the inquiry signal, namely the station number is successfully set, the slave station device directly returns a response signal of successful station number configuration, and then the slave station device also sets the output signal of the slave station device to be high level, so that the input signal of the next slave station device connected with the slave station device in series also becomes high level, and after the next time the valid station number sent by the master station is received, the slave station device of the next slave station can continue to configure the station number.
Note that the input signal of the first slave station device connected in series is always high.
Step S140: and if a response signal that the station number configuration is successful is received, generating a next effective station number according to a preset rule on the basis of the effective station number, sending the broadcast signal carrying the next effective station number to all the slave station equipment again, and repeatedly executing the process until a response signal that the station number configuration of the last slave station equipment is successful is received.
After receiving a response signal that the station number of the slave station equipment is successfully configured, continuing to configure the station number of the next slave station equipment until the station numbers of all the slave station equipment are configured, namely receiving a response signal that the station number of the last slave station equipment is successfully configured. And after receiving a response signal that the station number of the last slave station equipment is successfully configured, prompting the user that the station number is automatically allocated.
It should be noted that, after each slave device responds to the inquiry signal indicating whether the station number of the master device is successfully configured, the output signal of each slave device is set to be at a high level, that is, the input signal of the next slave device connected in series with the slave device is also changed to be at a high level, so that it is ensured that after the next master device sends the station number configuration signal, only one slave device can configure the station number.
Preferably, the effective station number carried by the broadcast signal carrying the effective station number sent for the first time is 1, and the preset rule is to successively add 1.
Step S150: and informing all slave station equipment to exit the station number configuration mode in a broadcasting mode.
After the station number configuration of all the devices is completed, the master device needs to notify all the slave devices to exit the station number configuration mode in a broadcast manner.
In a preferred embodiment, the method further comprises:
after inquiring whether the station number configuration of the slave station equipment corresponding to the effective station number carried by the broadcast signal is successful, if a response signal of successful station number configuration is not received in a preset time period, informing all the slave station equipment to exit a station number configuration mode in a broadcast mode, and prompting a user that the automatic station number allocation fails. The station number for which the assignment failed is the communication station number of the inquiry signal. For example, after transmitting the station number configuration signal with the station number 2 to all the devices, the inquiry signal is directly transmitted to the slave station device with the station number 2, and if the response signal is not received, the slave station device with the station number 2 is judged to fail to configure the station number, that is, the station number which is failed to be allocated is the station number 2.
In a preferred embodiment, the communication buses of the master device and the slave device are CAN buses. The CAN bus CAN realize rapid communication, and the station number of a slave station is configured only by 200-500 ms.
In a specific implementation of an automatic station number allocation method, after receiving an automatic station number allocation signal sent by a user, a master station device notifies all slave station devices to enter a station number configuration mode in a broadcast manner, and in order to reduce omission, the notification generally needs to be broadcast 3 times. And after receiving the notice, the slave station equipment enters a station number configuration mode. After the slave station enters the station number configuration mode, the station number of the slave station is cleared firstly, namely the station number is set to be invalid, then the output signal of the slave station is set to be 0, the slave station waits for the signal related to the station number configuration sent by the master station equipment, and in addition, the signal unrelated to the station number configuration is not processed.
Then the master station device configures station numbers for all the slave station devices in sequence, wherein the configuration mode is as follows: and sending the broadcast signal carrying the station number 1 to all the slave station equipment, and configuring the effective station number carried by the broadcast signal as the station number of the slave station equipment when all the slave station equipment judges that the input signal of the slave station equipment is 1 and the station number of the slave station equipment is an ineffective station number. After the first configuration broadcast signal transmitted by the master device, only the first slave device in the series meets the above condition (the input signal of the first slave device is always 1), and therefore the first slave device in the series configures its own station number as 1.
The master station equipment inquires whether the station number of the slave station equipment with the station number of 1 is successfully configured in a point-to-point mode, the output signal of the slave station equipment 1 is set to be 1 after the slave station equipment 1 directly responds to a signal that the station number is successfully configured, so that the input signal of the second slave station equipment connected in series with the slave station equipment is also changed to be 1, and after the master station transmits the broadcast signal configured by the station number for the second time, only the second slave station equipment connected in series meets the condition. And by analogy, the master station configures unique station numbers for all the slave station devices in sequence according to the mode, and then informs all the slave station devices to exit the station number configuration mode in a broadcasting mode.
It should be noted that, after the master device queries whether the station number of the corresponding slave device is successfully configured in a point-to-point manner, if a response signal indicating that the station number is successfully configured is not received within a predetermined time period, the master device prompts the user that the corresponding station number is unsuccessfully configured, and simultaneously notifies all the slave devices to exit the station number configuration mode.
The station number automatic distribution method of the single-spindle detection system does not need to manually set the station number, reduces the negative influence caused by the same station number due to human factors, and does not need a dial switch any more, thereby reducing the cost of products.
The invention also provides a station number automatic allocation method of the single spindle detection system, the single spindle detection system is used for detecting whether the spinning frame has yarn breakage, the single spindle detection system comprises a master station device and at least two slave station devices, the master station device is connected with the slave station devices through a communication bus, and all the slave station devices are connected together in a serial connection mode, as shown in fig. 2, the serial connection mode is as follows: the output signal of the last slave station device is connected with the input signal of the next slave station device, and the input signal of the first slave station device in series is always high level. The station number automatic allocation method is applied to the slave station equipment and comprises the following steps:
step S210: after receiving signals of all slave station devices entering a station number configuration mode, the slave station devices enter the station number configuration mode, set the station numbers of the slave station devices as invalid station numbers, and set output signals of the slave station devices as low levels.
Step S220: after receiving a broadcast signal carrying a valid station number, when judging that an input signal of the station is in a high level and the station number of the station is an invalid station number, configuring the valid station number carried by the broadcast signal as the station number of the station. If the above condition is not satisfied, the process is not performed.
Step S230: after receiving an inquiry signal whether the station number sent by the master station is successfully set, sending a response signal that the station number is successfully configured to the master station, and setting the output signal of the master station to be high level so that the input signal of the next slave station device connected in series with the master station is high level.
Step S240: and after receiving signals of all the slave station equipment exiting the station number configuration mode, exiting the station number configuration mode.
The invention also provides a master station device, which comprises a first memory and a first processor, wherein the first memory stores a first computer readable program capable of running on the first processor, and the first processor executes the first computer readable program to realize the steps of any one of the station number automatic allocation methods applied to the master station device.
The present invention also provides a slave station device, including a second memory and a second processor, the second memory storing a computer program operable on the second processor, the second processor implementing the steps of the station number automatic allocation method applied to the slave station device when executing the second computer readable program.
The invention also provides a single spindle detection system, which is used for detecting whether a spinning frame has yarn breakage or not, and comprises a master station device and at least two slave station devices, wherein the master station device is connected with the slave station devices through a communication bus, and all the slave station devices are connected together in a serial connection manner, as shown in fig. 2, the serial connection manner is as follows: the output signal of the last slave station device is connected with the input signal of the next slave station device, and the input signal of the first slave station device in series is always high level. Wherein:
the master station device comprises a first memory and a first processor, wherein the first memory stores a first computer readable program capable of running on the first processor, and the first processor executes the first computer readable program to realize the steps of any one of the station number automatic allocation methods applied to the master station device;
the slave station device includes a second memory and a second processor, the second memory stores a computer program operable on the second processor, and the second processor executes the second computer readable program to implement the steps of the station number automatic allocation method applied to the slave station device.
It should be understood that although the present description refers to embodiments, not every embodiment contains only a single technical solution, and such description is for clarity only, and those skilled in the art should make the description as a whole, and the technical solutions in the embodiments can also be combined appropriately to form other embodiments understood by those skilled in the art.
The above-listed detailed description is only a specific description of a possible embodiment of the present invention, and they are not intended to limit the scope of the present invention, and equivalent embodiments or modifications made without departing from the technical spirit of the present invention should be included in the scope of the present invention.

Claims (9)

1. A station number automatic allocation method of a single-spindle detection system is characterized in that the single-spindle detection system comprises a master station device and at least two slave station devices, the master station device is connected with the slave station devices through a communication bus, and the station number automatic allocation method is applied to the master station device and comprises the following steps:
after receiving the signal of automatic station number allocation, informing all slave station equipment to enter a station number configuration mode in a broadcasting mode, enabling all the slave station equipment to enter the configuration mode, enabling all the slave station equipment to set the station number of the slave station equipment as an invalid station number, and simultaneously setting the output signal of the slave station equipment as a low level;
sending the broadcast signal carrying the effective station number to all the slave station equipment, and enabling all the slave station equipment to configure the station number according to the station number configuration strategy according to the broadcast signal; wherein the station number configuration policy is as follows: when the slave station equipment judges that the input signal of the slave station equipment is in a high level and the station number of the slave station equipment is an invalid station number, the valid station number carried by the broadcast signal is configured as the station number of the slave station equipment;
inquiring whether the station number of the slave station equipment corresponding to the effective station number carried by the broadcast signal is successfully configured or not, and enabling the slave station equipment with the successfully configured station number to set the output signal of the slave station equipment to be at a high level after the slave station equipment sends a response signal with the successfully configured station number;
if a response signal that the station number configuration is successful is received, generating a next effective station number according to a preset rule on the basis of the effective station number, sending a broadcast signal carrying the next effective station number to all slave station equipment again, and repeatedly executing the process until a response signal that the station number configuration of the last slave station equipment is successful is received;
informing all slave station equipment to exit the station number configuration mode in a broadcasting mode;
the method further comprises the following steps:
and calculating the number of the slave station devices of the single-spindle detection system according to the number of textile spindles of the spinning frame and the number of spindles detected by each slave station.
2. The method for automatically assigning station numbers to single-ingot detection systems according to claim 1, further comprising:
and after receiving a response signal that the station number of the last slave station equipment is successfully configured, prompting the user that the station number is automatically allocated.
3. The method for automatically assigning station numbers to single-ingot detection systems according to claim 1, further comprising:
inquiring the equipment corresponding to the effective station number carried by the broadcast signal, judging whether the station number configuration is successful, if a response signal of successful station number configuration is not received in a preset time period, informing all the slave station equipment to exit the station number configuration mode in a broadcast mode, and prompting a user that the station number automatic allocation fails.
4. The method for automatically assigning station numbers to single-ingot detection systems according to claim 1, wherein:
the communication bus is a CAN bus.
5. The method for automatically assigning station numbers to single-ingot detection systems according to claim 1, wherein:
the effective station number carried by the broadcast signal carrying the effective station number sent for the first time is 1, and the preset rule is that 1 is gradually added.
6. A station number automatic allocation method of a single-ingot detection system is characterized in that the single-ingot detection system comprises a master station device and at least two slave station devices, the master station device is connected with the slave station devices through a communication bus, and the station number automatic allocation method is applied to the slave station devices and comprises the following steps:
after receiving signals of all slave station equipment entering a station number configuration mode, entering the station number configuration mode, setting the station number of the slave station equipment as an invalid station number, and setting output signals of the slave station equipment as low level;
after receiving a broadcast signal carrying a valid station number, when judging that an input signal of the broadcast signal is in a high level and a station number of the broadcast signal is an invalid station number, configuring the valid station number carried by the broadcast signal as the station number of the broadcast signal;
after receiving an inquiry signal whether the station number sent by the master station is successfully set, sending a response signal that the station number is successfully configured to the master station, and setting the output signal of the master station to be high level so that the input signal of the next slave station device connected in series with the master station is high level;
after receiving signals of all slave station equipment exiting the station number configuration mode, exiting the station number configuration mode;
the method further comprises the following steps:
and calculating the number of the slave station devices of the single-spindle detection system according to the number of textile spindles of the spinning frame and the number of spindles detected by each slave station.
7. A master station device comprising a first memory and a first processor, the first memory storing a first computer-readable program executable on the first processor, the first processor implementing the steps in the automatic station number assignment method according to any one of claims 1 to 5 when executing the first computer-readable program.
8. A slave station apparatus comprising a second memory and a second processor, the second memory storing a second computer program operable on the second processor, the second processor implementing the steps in the station number automatic allocation method of claim 6 when executing the second computer readable program.
9. The single-spindle detection system is characterized by comprising a master station device and at least two slave station devices, wherein the master station device is connected with the slave station devices through a communication bus, and the slave station devices are connected in series, wherein:
the master station device includes a first memory and a first processor, the first memory storing a first computer-readable program executable on the first processor, the first processor implementing the steps of the automatic station number assignment method of any one of claims 1 to 5 when executing the first computer-readable program;
the slave station apparatus includes a second memory storing a computer program executable on the second processor, and a second processor implementing the steps in the station number automatic allocation method of claim 6 when the second processor executes the second computer readable program.
CN202010543292.9A 2020-06-15 2020-06-15 Station number automatic allocation method, master station equipment, slave station equipment and single-spindle detection system Active CN111756609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010543292.9A CN111756609B (en) 2020-06-15 2020-06-15 Station number automatic allocation method, master station equipment, slave station equipment and single-spindle detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010543292.9A CN111756609B (en) 2020-06-15 2020-06-15 Station number automatic allocation method, master station equipment, slave station equipment and single-spindle detection system

Publications (2)

Publication Number Publication Date
CN111756609A CN111756609A (en) 2020-10-09
CN111756609B true CN111756609B (en) 2022-03-04

Family

ID=72675217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010543292.9A Active CN111756609B (en) 2020-06-15 2020-06-15 Station number automatic allocation method, master station equipment, slave station equipment and single-spindle detection system

Country Status (1)

Country Link
CN (1) CN111756609B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1266574A (en) * 1997-08-05 2000-09-13 西门子公司 Method and bus system for automatic address allocation and communication station adaptable to the same
CN1674593A (en) * 2005-04-01 2005-09-28 南京邮电学院 Automatic distributing and setting up address method based on master-slave communication mode
CN101477506A (en) * 2008-01-04 2009-07-08 鸿富锦精密工业(深圳)有限公司 Addressing system and method of master equipment to slave equipment
CN103106142A (en) * 2011-11-10 2013-05-15 澜起科技(上海)有限公司 Devices in need of address distribution, device system and address distribution method
CN103391210A (en) * 2012-05-09 2013-11-13 北汽福田汽车股份有限公司 ID distribution system and method of CAN bus network
CN106547718A (en) * 2016-12-08 2017-03-29 东莞钜威动力技术有限公司 A kind of distribution method and battery management system of bus address
CN108737590A (en) * 2018-05-15 2018-11-02 浙江正泰电器股份有限公司 A kind of method that address is distributed automatically, system, Modbus main websites, Modbus slave stations
CN110753138A (en) * 2019-11-01 2020-02-04 深圳市铭特科技有限公司 Equipment ID configuration method and system in CAN bus network
CN111030906A (en) * 2019-12-12 2020-04-17 山东鼎维数字技术有限公司 Method for automatically addressing slave station address based on RS485 bus cascade
CN111245635A (en) * 2018-11-29 2020-06-05 山东新北洋信息技术股份有限公司 System with master and slave devices and ID number setting method of slave device thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103310612B (en) * 2013-06-09 2016-12-28 广东电网公司江门供电局 Main station system and the station remote control thereof of end system and system
CN106878488B (en) * 2017-04-29 2020-03-20 成都工鼎科技有限公司 Automatic Modbus RTU bus address allocation method
EP3629525B1 (en) * 2018-09-27 2022-08-17 Melexis Technologies SA Method and system for communicating over a bus
CN111245697B (en) * 2020-01-07 2022-04-01 深圳市蓝海华腾技术股份有限公司 Communication method and system of parallel bus, master station and slave station

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1266574A (en) * 1997-08-05 2000-09-13 西门子公司 Method and bus system for automatic address allocation and communication station adaptable to the same
CN1674593A (en) * 2005-04-01 2005-09-28 南京邮电学院 Automatic distributing and setting up address method based on master-slave communication mode
CN101477506A (en) * 2008-01-04 2009-07-08 鸿富锦精密工业(深圳)有限公司 Addressing system and method of master equipment to slave equipment
CN103106142A (en) * 2011-11-10 2013-05-15 澜起科技(上海)有限公司 Devices in need of address distribution, device system and address distribution method
CN103391210A (en) * 2012-05-09 2013-11-13 北汽福田汽车股份有限公司 ID distribution system and method of CAN bus network
CN106547718A (en) * 2016-12-08 2017-03-29 东莞钜威动力技术有限公司 A kind of distribution method and battery management system of bus address
CN108737590A (en) * 2018-05-15 2018-11-02 浙江正泰电器股份有限公司 A kind of method that address is distributed automatically, system, Modbus main websites, Modbus slave stations
CN111245635A (en) * 2018-11-29 2020-06-05 山东新北洋信息技术股份有限公司 System with master and slave devices and ID number setting method of slave device thereof
CN110753138A (en) * 2019-11-01 2020-02-04 深圳市铭特科技有限公司 Equipment ID configuration method and system in CAN bus network
CN111030906A (en) * 2019-12-12 2020-04-17 山东鼎维数字技术有限公司 Method for automatically addressing slave station address based on RS485 bus cascade

Also Published As

Publication number Publication date
CN111756609A (en) 2020-10-09

Similar Documents

Publication Publication Date Title
CN109150680B (en) Self-adaptive address-determining networking circuit and method suitable for RS485 bus
EP0248508B1 (en) Computer network system
CN108989169B (en) CAN bus-based intelligent module ad hoc network method
CN106411655A (en) Communication processing method based on state diagnosis of serial communication equipment
CN106773862A (en) A kind of rectifier combining system and its control method
CN111756609B (en) Station number automatic allocation method, master station equipment, slave station equipment and single-spindle detection system
CN102110860B (en) Distributed battery management system and identifier assignment method thereof
CN106549967A (en) A kind of IEC104 stipulations analysis system and methods based on event-driven mechanism
CN104104542B (en) A kind of real-time intelligent troubleshooting method based on RS485
CN106535341A (en) Big data transmission method of wireless sensor network
CN114650612A (en) LoRa networking method based on carrier sensing technology
JP5595783B2 (en) A method for preparing for takeover of access control of a type B protected passive optical network (PON) by a protection optical subscriber line terminal equipment (OLT), protecting a type B passive optical network (PON) And a protected type B passive optical network (PON)
CN107026919B (en) Method for determining network address of node equipment, node equipment and control system
EP3923618A1 (en) Resource allocation method, device and system
CN117319185A (en) Multi-equipment master-slave communication system based on CAN communication and addressing and monitoring method
CN113784444A (en) TDMA time slot allocation method with priority on efficiency
CN110868448A (en) Vehicle-mounted data updating system and method
CN106412341A (en) Notification information pushing method, device and terminal
CN107612801B (en) CAN bus dynamic networking method
CN116016445A (en) Address allocation method for master-slave bus communication system
CN113904762B (en) Full duplex 485 bus communication system with annular buffer zone and method
JPH11262068A (en) Access network system
CN109783423B (en) Ring bus and quota allocation method
CN109428787B (en) Method for identifying abnormity of optical line terminal and optical network unit
JPS62291224A (en) Data collection system

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
TA01 Transfer of patent application right

Effective date of registration: 20211105

Address after: 215000 52 tianedang Road, Yuexi, Wuzhong District, Suzhou City, Jiangsu Province

Applicant after: Suzhou Huichuan Control Technology Co.,Ltd.

Address before: No.16, Youxiang Road, Yuexi, Wuzhong District, Suzhou City, Jiangsu Province

Applicant before: SUZHOU INOVANCE TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant