Bus communication address configuration method based on mine belt conveyor control system
By constructing a tree-type bus line in the coal mine belt conveyor control system and using single-bus point-to-point communication to automatically configure device addresses, the problems of bus communication address conflicts and device change adaptability are solved, and real-time monitoring of device status and safe and reliable transportation control are achieved.
Patent Information
- Application Number
- CN202310714403.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-15
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2043-06-15
AI Technical Summary
The bus communication address configuration of existing coal mine belt conveyors needs to be manually set, which is prone to address conflicts and communication failures. It cannot adapt to equipment changes, poses a safety hazard, and increases hardware costs.
By constructing a tree-type bus line based on the mining belt conveyor control system and adopting a single-bus point-to-point communication method, the master station initiates an initialization command to automatically assign bus device addresses, realize device status upload and automatic RS485 address allocation, ensuring communication reliability and real-time monitoring of device status.
It improves the stability and reliability of the system, ensures the safety and efficiency of the main coal flow transportation in the coal mine, reduces the tedious process of manual configuration, collects the status of protection sensors in a timely manner and realizes full-line broadcast warning and voice call communication.
Smart Images

Figure CN116633718B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of coal mine automation, and relates to a bus communication address configuration method based on a mine belt conveyor control system. BACKGROUND
[0002] The mine belt conveyor is a main transportation tool in a mine, and its safe and efficient operation directly affects the economic benefits of a coal mine enterprise. An existing coal mine belt transportation monitoring system adopts a field bus communication mode such as RS485 and CAN, a bus cable is laid along a long-distance belt conveyor, devices along the line are connected to each other, and finally centralized control is performed through a centralized controller. However, the field bus communication needs a communication address, which needs to be manually set. It is time-consuming and labor-consuming to manually set all the devices along the long-distance belt conveyor, and once the address is wrong, bus address conflicts and communication failures are caused, the wrong address position cannot be accurately checked, and the normal operation of the main coal flow transportation system of the coal mine is seriously affected. Although there is a method for realizing power-on step-by-step address allocation through a hardware circuit at present, this method increases the cost and power consumption of additional hardware, cannot automatically obtain the type and quantity of bus devices, and needs manual modification of the field software when the length of the crossheading belt conveyor changes, and cannot adapt to changes. According to the requirements of the related standards of the coal mine belt conveyor protection control, an emergency stop locking switch must be installed at intervals (such as 50 meters), the whole line needs to realize early warning, alarm and voice communication, the number of devices along the long-distance belt conveyor is large, the polling time of the field bus communication such as RS485 is long, and there are safety hazards such as the inability to obtain the state of the protection sensor and emergency stop in time; the number of devices along the long-distance belt conveyor is large, and the intrinsic safety power supply of a bus line often cannot meet the power supply requirements of all the devices along the line, and needs to be powered in sections. Multiple belt conveyors exist in a variety of joint relationships, and a tree structure bus line needs to be realized. Therefore, a mine belt conveyor protection control system and a bus communication address automatic configuration method are urgently needed, which can automatically allocate the addresses of bus devices, adapt to changes in field devices, collect the states of eight protection sensors in time and reliably protect and control, and broadcast early warning, alarm and voice communication throughout the line. SUMMARY
[0003] In view of this, the present invention aims to provide a bus communication address configuration method for a mine belt conveyor control system. The system consists of a master station, a substation, a combined loudspeaker telephone, an emergency stop lock switch, a repeater, a cable connector, a communication terminal, and other bus devices, along with an 8-core bus cable. Bus devices along the belt conveyor are connected in series via the 8-core bus cable interface to form a bus line. Multiple tree-like bus lines can be constructed through the master station or repeaters. The bus line provides intrinsically safe DC power supply, communication, voice communication, and hardware lockout functions for the bus devices. Single buses between the master station and bus devices, as well as between bus devices, utilize point-to-point communication to avoid bus address conflicts. Initialization commands are issued by the single bus master station and transmitted step-by-step to the communication terminal, enabling automatic allocation of bus device addresses, device status upload, command issuance, and RS485 address automatic allocation. This invention addresses the challenges of long-distance belt conveyor protection control systems in coal mines, such as long communication delays, cumbersome manual RS485 address configuration, and the inability to adapt to changes in bus devices. It improves system stability and reliability, ensuring the safety of main coal flow transportation.
[0004] In order to achieve the above object, the present invention provides the following technical solutions:
[0005] A bus communication address configuration method based on a mining belt conveyor control system includes the following steps:
[0006] S1: The control system includes a master station, a substation, a combined loudspeaker telephone, an emergency stop locking switch, a repeater, a cable connector, a communication terminal, an 8-core bus cable and ancillary equipment. It has the functions of intrinsically safe DC power supply, communication, voice call and hardware locking of bus equipment. A tree-type bus line is constructed through the master station or repeater; the equipment is connected through its interface unit and the 8-core bus cable. The interface unit consists of a power supply, a single bus, a locking line, an audio line and an RS485 bus. The 8-core bus cable consists of an 8-core aviation plug and an 8-core mining cable. The 8-core mining cable includes a 2-core power cable, a 1-core single bus cable, a 1-core locking cable, a 2-core shielded twisted pair audio cable, and a 2-core shielded twisted pair RS485 cable. The interface unit is connected to the 8-core aviation socket and fixed to the equipment housing. The 8-core aviation socket is directly plugged into the aviation plug of the 8-core bus cable and locked with a U-shaped latch. The communication terminal is directly plugged into the 8-core aviation socket of the front-stage equipment; the 8-core cable line sequence is: 1 power line positive, 2 power line negative, 3 audio cable, 4 audio cable, 5 locking cable, 6 single bus, 7 RS485 negative, 8 RS485 positive;
[0007] S2: The bus equipment is powered by the master station or is independently powered by the repeater in sections to extend the power supply distance;
[0008] The single bus connects all devices on the bus in series, realizing automatic configuration of device communication addresses and transmission of emergency stop, deviation and tearing status and issuance of control commands;
[0009] The RS485 bus connects input and output devices in parallel to realize input status acquisition and control output;
[0010] The locking line is connected in series with a substation, a combined loudspeaker telephone, an emergency stop locking switch, a repeater and a communication terminal to achieve hardware locking emergency stop and status detection;
[0011] The audio line is connected in parallel with the loudspeaker telephone and the communication terminal to realize voice intercom, broadcasting and status detection along the belt conveyor;
[0012] The master station or repeater forms a tree-type bus line through its multiple 8-core bus interfaces, meeting the protection and control requirements of multiple belt conveyors in coal mines;
[0013] S3: The single bus adopts a point-to-point communication mode, and its communication protocol frame format includes: a 1-byte frame header, a 1- or 2-byte frame length, a 1- or 3-byte address, 0-6 bytes of DATA, and a 2-byte CRC16;
[0014] There is no DATA field when sending the initialization command. The DATA field of the command to obtain the device status and the status query command includes the command status, device type and function code. The configuration parameter DATA field is 1 byte.
[0015] The DATA field of the response message is:
[0016] The device type is an emergency stop locking switch. The high byte includes the emergency stop status, device type, and abnormal status, and the low byte is empty.
[0017] The device type is a slave station, the high byte includes the device type and abnormal status, and the low byte is empty;
[0018] The device type is a combined loudspeaker telephone. The high byte includes the emergency stop, device type, and abnormal status, and the low byte includes the values of channel 4, channel 3, channel 2, and channel 1.
[0019] The device type is a repeater. The high byte includes the lock line status, device type, and abnormal status. The low byte includes the bus voltage at the front end.
[0020] The device type is a communication terminal. The high byte includes the device type and abnormal status, and the low byte includes the terminal voltage.
[0021] The single bus adopts a point-to-point communication mode and includes the following steps:
[0022] S3.1: The master station initiates an initialization command and automatically assigns bus device addresses. After receiving the communication terminal information, the initialization is successful and the information table of all bus devices is saved.
[0023] S3.2: After successful initialization, the master station initiates a command to obtain the device status, obtain the bus device status such as emergency stop, deviation, tearing, terminal voltage / front end voltage, communication disconnection, etc., and updates the device information table. The device status acquisition is completed after receiving the communication terminal information.
[0024] S3.3: After the Get Device Status command is completed, the master station initiates a status query command to obtain the bus device information of the changed status and updates the device information table;
[0025] S3.4: If the master station configures the parameters of a device or devices of the same type, it initiates a configuration command containing the single bus address, parameter length, and parameters. After receiving the command, the bus device determines whether the address or device type at the current level is the same as the command. If they are the same, the parameters are updated. Otherwise, the command is forwarded to the subsequent device. The parameter configuration is completed after the master station receives the response information of the address or the last device of the same type.
[0026] S3.5: If the bus device has a communication disconnection or the number or type of bus devices changes, the master station re-executes steps S3.1 to S3.3;
[0027] S4: The communication process of the single bus is as follows:
[0028] S4.1: The master station sends a command to all devices on the 8-core bus line. The command contains a 1-byte frame header, a 2-byte frame length, a 3-byte address, 0 to 6 bytes of data, and a 2-byte CRC16 checksum. The highest 4 bits of the command frame header indicate the frame type, starting from 16 and corresponding to different types of frames. The highest bit of the data indicates the command type, and the next 3 bits indicate the device type, including slave stations, combined loudspeaker phones, emergency stop lock switches, repeaters, cable connectors, and communication terminals. The lowest 4 bits indicate the function code, starting from 1.
[0029] S4.2: A bus device on an 8-core bus line has two single bus interfaces. The interface on which the bus device receives the command first is automatically set to slave mode, and the other interface is automatically set to master mode.
[0030] S4.3: The device executes the received command, modifies the command address, encapsulates the cached information and its own information, and sends a response message to the master or preceding device through the slave mode interface. The high-order 4 bits of the response message frame header start at 32 and correspond to frames with different functions. The highest bit of the address is the disconnection flag. The data content and length vary depending on the device type.
[0031] S4.4: The device forwards commands to subsequent devices via the master mode interface;
[0032] S4.5: After the master mode interface of the device receives the response message from the downstream device, it parses the data, repackages it according to the device address, and caches it in the device.
[0033] S4.6: All bus devices repeat S4.2 to S4.5;
[0034] S5: In S3.1, the automatic configuration of the single bus address specifically includes the following steps:
[0035] S5.1: The bus device stores the master address. The master sends a single bus initialization command containing the master address to the device on the 8-core bus line.
[0036] S5.2: The device address number on the tree bus line consists of 3 bytes, including 1 byte of ADDR, 1 byte of SUBCOM, and 1 byte of SUBADDR. The device that receives the command calculates the current level address based on the address in the command and sends a response message containing the cached subsequent device address, type, communication status, and the current level device address and device type to the master. The current level address K is calculated as follows: if the address in the command is equal to the master address, the current level address is 1; otherwise, the current level address is equal to the address + 1.
[0037] S5.3: If the current level address does not have a branch bus, the address in the initialization command is updated to the current level address, and the initialization command is forwarded to the subsequent device; if the current level address has a branch bus, the address is updated to the master station address, and the initialization command is forwarded to all branch buses in sequence;
[0038] S5.4: The device receives a response message from the downstream device, parses the downstream device address, device type, and communication status, and repackages and caches it. If no response message is received from the downstream device, S5.3 is repeated three times. If no response message is received from the downstream device, it is determined to be disconnected, and the communication status disconnection flag is set. S5.3 is repeated until normal communication is restored, and the communication status disconnection flag is reset.
[0039] S5.5: Other devices repeat steps S5.3 and S5.4 until the master station receives information from the communication terminal indicating that initialization is successful. The master station saves the information table of all bus devices, including device address, device type and number of bus devices. If the master station receives information that a bus device is disconnected, it repeats steps S5.1 to S5.5.
[0040] S6: In S3.2, automatically obtaining the bus device status includes the following steps:
[0041] S6.1: The master station sends a command to obtain the device status to the device on the successfully initialized 8-core bus line;
[0042] S6.2: After receiving the command, the bus device on the line sends the cached subsequent device information and current level information as a response message to the master station;
[0043] S6.3: The device forwards the Get Device Status command to the downstream device, with the address updated to the current address.
[0044] S6.4: The device receives a response message from the downstream device, parses the downstream device information, including the device address, device type, and device status, and repackages and caches it. If the device does not receive a response message from the downstream device after executing S6.3 three times in a row and still does not receive a response message from the downstream device, it is determined to be disconnected and the communication status disconnection flag is set.
[0045] S6.5: Other devices repeat steps S6.3 and S6.4 until the master station receives information from the communication terminal indicating that the command to obtain the device status is successful. The master station updates the information table of all bus devices, including the device address, type, and status. The status includes disconnection, emergency stop, deviation, tearing, and coal accumulation. If the master station receives information that the bus device is disconnected, it stops the current command and executes S5.
[0046] S7: In S3.3, the status query command includes the following steps:
[0047] S7.1: The master station sends a status query command to the device on the 8-core bus line that has successfully obtained the bus device status;
[0048] S7.2: After receiving the command, the bus device on the line determines whether the status of the current level has changed, and sends the cached information of the subsequent level device and the current level information as a response message to the master station. Otherwise, only the cached information of the subsequent level device is sent.
[0049] S7.3: The device forwards the query status command to the downstream device, updating the address to the current address;
[0050] S7.4: The device receives a response message from the downstream device, parses the downstream device information, including the address, device type, and device status, and repackages and caches it. If the device does not receive a response message from the downstream device after executing S7.3 three times in a row and still does not receive a response message from the downstream device, it is determined to be disconnected and the communication status disconnection flag is set.
[0051] S7.5: Repeat steps S7.3 and S7.4 for other devices. After receiving the status change information of the device, the master station updates the device information table with the status of the device, including disconnection, emergency stop, deviation, tearing, and coal accumulation. If the master station receives the bus device disconnection information, it stops the current command and executes S5.
[0052] S8: In S3.4, the parameter configuration command includes the following steps:
[0053] S8.1: The master station sends parameter configuration commands to a device or devices of the same type on all designated 8-core bus lines, including: single bus address, device type, RS485 address, RS485 baud rate, deviation time, etc.
[0054] S8.2: After receiving the command, the bus device on the line determines the device address or device type. If the single bus address is 0xFF, all devices of the same type as in the command are configured with parameters. If the single bus address is 0xFF, only the parameters of the device at the specified address are configured. The bus device sends the cached subsequent device information, current level information, or only current level information as a response message to the master station.
[0055] S8.3: The device forwards the parameter configuration command to the downstream device to update the address to the current address;
[0056] S8.4: The device receives a response message from the downstream device, parses the downstream device information, including the address and device type, and repackages and caches it. If no response message is received from the downstream device after executing S8.3 three times in a row, it is determined to be disconnected and the communication status disconnection flag is set.
[0057] S8.5: Other devices repeat steps S8.3 and S8.4. After the master station receives a message from the device of the specified address or the type at the end of the bus, the parameter configuration command ends; if the master station receives a message that the bus device is disconnected, it stops the current command and executes S5.
[0058] Optionally, the substation uses the single bus address configured by S5 as the RS485 address for fast communication. When the single bus address of the substation changes, the system automatically determines and synchronously updates the RS485 address to ensure normal RS485 communication.
[0059] The master station and repeater have multiple 8-core bus interfaces to construct a tree-type bus line. The bus device address structure consists of a level address, a bus number, and a subsequent level address, each occupying 1 byte, for a total of 3 bytes.
[0060] Optionally, the repeater has an internal power isolation circuit to achieve independent power supply for the front and rear segments of the bus line; the internal locking line automatic triggering circuit can achieve automatic interlocking of the locking lines on the front and rear end bus lines, that is, when the front segment locking line is disconnected, the rear segment locking line is also disconnected, and vice versa; the substation has a locking emergency shutdown function, and the internal relay output circuit is connected in series to the locking line. When the locking line is disconnected, the output relay is powered off, and the output contacts are automatically reset to cut off the motor control circuit, thereby achieving reliable shutdown.
[0061] The beneficial effects of the present application are that: the main station, the substation, the combined loudspeaker telephone, the emergency stop locking switch, the repeater, the cable connector, the communication terminal and other bus devices of the coal mine belt conveyor along the line are connected in series through the 8-core bus cable, a single or multiple tree type bus line can be constructed, the complex belt conveyor transportation line of the coal mine is adapted, the initialization command is sent by the single bus main station and is transmitted to the communication terminal step by step, the bus device address automatic allocation, the device state uploading, the command issuing and the RS485 address automatic allocation are realized, the problems such as large communication time delay of the coal mine long distance belt conveyor protection control system, tedious manual configuration of the RS485 address and incapability of self-adapting to the bus device change are solved, the system stability and reliability are improved, and the main coal flow transportation safety is ensured. Timely and reliable control output, full-line voice communication contact, early warning and alarm ensure the safe and efficient production of the main coal flow transportation system of the coal mine.
[0062] Other advantages, objects, and features of the present application will be better understood from the following specification taken in conjunction with the accompanying drawings. The objects and other advantages of the present application can be achieved and obtained by means of the features and combinations thereof more fully described below. BRIEF DESCRIPTION OF DRAWINGS
[0063] In order to make the objects, technical solutions and advantages of the present application clearer, the preferred embodiments of the present application will be described in detail below with reference to the drawings, in which:
[0064] Figure 1 It is a 8-core bus interface and connection schematic diagram of a mine belt conveyor protection control system of the present application.
[0065] Figure 2 It is a system composition schematic diagram of the present application.
[0066] Figure 3 It is a bus communication address automatic configuration method flow chart of the present application. DETAILED DESCRIPTION
[0067] The embodiments of the present application will be described below through specific concrete examples, and those skilled in the art can easily understand other advantages and effects of the present application from the disclosure of the present specification. The present application can also be implemented or applied through other different specific embodiments, and the details in the present specification can be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the diagrams provided in the following embodiments only illustrate the basic concept of the present application in a schematic manner, and the following embodiments and features in the embodiments can be combined with each other without conflict.
[0068] Among them, the accompanying drawings are only for illustrative purposes and represent only schematic diagrams rather than actual pictures, and should not be understood as limiting the present invention. In order to better illustrate the embodiments of the present invention, some parts of the accompanying drawings may be omitted, enlarged or reduced, and do not represent the dimensions of actual products. For those skilled in the art, it is understandable that some well-known structures and their descriptions may be omitted in the accompanying drawings.
[0069] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if there are terms such as "upper", "lower", "left", "right", "front", "back", etc. indicating directions or positional relationships, they are based on the directions or positional relationships shown in the drawings. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operate in a specific direction. Therefore, the terms describing the positional relationship in the drawings are only used for illustrative purposes and cannot be understood as limiting the present invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0070] See also Figures 1 to 3 , a bus communication address configuration method based on a mining belt conveyor control system, the method comprises the following steps:
[0071] S1: The system includes a master station, a substation, a combined loudspeaker telephone, an emergency stop and locking switch, a repeater, a cable connector, a communication terminal, an 8-core bus cable, and supporting equipment. It provides intrinsically safe DC power supply, communication, voice communication, and hardware locking for bus equipment. A tree-like bus line can be constructed through the master station or repeater. Equipment is connected via its interface unit and the 8-core bus cable. The interface unit primarily consists of interfaces for power, a single bus, a locking line, an audio cable, and all or part of the RS485 bus. The 8-core bus cable consists of an 8-core aviation plug and an 8-core mining cable (2-core power cable, 1-core single bus, 1-core locking line, 2-core shielded twisted pair audio cable, and 2-core shielded twisted pair RS485 cable). The interface unit is connected to the 8-core aviation socket and fixed to the equipment housing. The 8-core aviation socket is directly plugged into the aviation plug of the 8-core bus cable and locked with a U-shaped latch. The communication terminal is directly plugged into the 8-core aviation socket of the preceding equipment. 8-core cable wiring sequence: 1 power line positive, 2 power line negative, 3 audio line, 4 audio line, 5 locking line, 6 single bus, 7 RS485 negative, 8 RS485 positive.
[0072] S2: the system bus device is powered by the master station or by the repeater section independent power supply to extend the power distance. The system single bus serial bus on all devices, to achieve device communication address automatic configuration and emergency stop, run off, tear and other state transmission and control command issued. The system RS485 bus parallel input and output devices such as substation, to achieve input state acquisition and control output. The system interlock line serial substation, combined public address telephone, emergency stop interlock switch, repeater, communication terminal, to achieve hardware interlock emergency shutdown and state detection. The system audio line parallel combined public address telephone, communication terminal to achieve along the line of belt conveyor voice intercom, broadcast and state detection. The system master station or repeater through its multiple 8 core bus interface to form a tree type bus line, meet the coal mine multiple belt conveyor protection and control requirements.
[0073] S3: the system single bus adopts point-to-point communication mode, its communication protocol frame format is shown in table 1.
[0074] Table 1 single bus communication protocol frame format using point-to-point communication mode
[0075]
[0076] Send initialization command without DATA field, get device state, state query command DATA field definition as shown in table 2, configuration parameter DATA field is 1 byte.
[0077] Table 2 get device state, state query command DATA field definition
[0078]
[0079] The response message DATA field is shown in table 3.
[0080] Table 3 response message DATA field
[0081]
[0082] Single bus communication command includes the following steps:
[0083] S3.1: the master station initiates initialization command, automatically assigns bus device address, until the communication terminal information is received, initialization is successful, save all bus device information table;
[0084] S3.2: after initialization success, the master station initiates the get device state command, gets the bus device emergency stop, run off, tear, terminal voltage / terminal voltage, communication line break and other states, and updates the device information table, until the communication terminal information is received, the get device state ends;
[0085] S3.3: After the Get Device Status command is completed, the master station initiates a status query command to obtain the bus device information of the changed status and updates the device information table.
[0086] S3.4: If the master station configures the parameters of a device or a device of the same type, it initiates a configuration command, which includes a single bus address, parameter length, and parameters. After receiving the command, the bus device determines whether the current address or device type is the same as the command. If they are the same, the parameters are updated. Otherwise, the command is forwarded to the subsequent device. The parameter configuration is completed after the master station receives the response information of the address or the last device of the same type.
[0087] S3.5: If the bus device has a communication disconnection or the number or type of bus devices changes, the master station re-executes steps S3.1 to S3.3.
[0088] S4: The single bus communication process steps of the system are as follows:
[0089] S4.1: The master station sends a command to all devices on the 8-core bus line. The command contains a 1-byte frame header, a 2-byte frame length, a 3-byte address, 0 to 6 bytes of data, and a 2-byte CRC16 checksum. The highest 4 bits of the command frame header indicate the frame type, starting from 16 and corresponding to different types of frames. The highest bit of the data indicates the command type, and the next 3 bits indicate the device type, such as: slave station, combined loudspeaker telephone, emergency stop lock switch, repeater, cable connector, communication terminal, etc. The lowest 4 bits indicate the function code, starting from 1.
[0090] S4.2: A bus device on an 8-core bus line has two single bus interfaces. The interface on which the bus device receives the command first is automatically set to slave mode, and the other interface is automatically set to master mode.
[0091] S4.3: The device executes the received command, modifies the command address, encapsulates the cached information and its own information, and sends a response message to the master or preceding device through the slave mode interface. The high-order 4 bits of the response message frame header start at 32, corresponding to frames with different functions. The highest bit of the address is the disconnection flag. The data content and length vary depending on the device type.
[0092] S4.4: The device forwards commands to subsequent devices via the master mode interface;
[0093] S4.5: After the master mode interface of the device receives the response message from the downstream device, it parses the data, repackages it according to the device address, and caches it in the device.
[0094] S4.6: All bus devices repeat S4.2 to S4.5.
[0095] S5: The above-mentioned S3.1 automatic configuration of the single bus address includes the following steps:
[0096] S5.1: The bus device stores the master address, and the master sends a single bus initialization command containing the master address to the device on the 8-core bus line;
[0097] S5.2: The device address on the tree bus line is composed of 3 bytes, i.e., ADDR+SUBCOM+SUBADDR, and the detailed addressing rules are shown in Table 4. The device receiving the command calculates the current level address according to the address in the command and sends a response message containing the cached next level device address, type, communication state and the current device address, device type to the master. The current level address K is calculated according to the following rule: if the address in the command is equal to the master address, the current level address is 1, otherwise, the current level address is equal to the address+1.
[0098] Table 4 Addressing rules
[0099]
[0100]
[0101] Note: K is a positive integer, i.e., (1-255); M, N are positive integers, i.e., (1-255).
[0102] For example, the current level address is 5, the branch bus SUBCOM number is 1, i.e., SUBCOM0, the first device on the branch bus is automatically assigned an address of 1, and the address of the device in the system is expressed in hexadecimal as 0x50101. The master stores all device addresses and locates the device position according to the address. SUBCOM, SUBADDR are 0, indicating no branch tree bus, at this time, the bus address is only the ADDR field effective, for example, the address of the current level address 5 is 0x50000.
[0103] S5.3: If the current level address has no branch bus, update the address in the initialization command to the current level address and forward the initialization command to the next level device; if the current level address has a branch bus, update the address to the master address and forward the initialization command to all branch buses in turn;
[0104] S5.4: The device receives the response message of the next level device, parses the next level device address, device type, communication state and re-encapsulates and caches; if the response message of the next level device is not received, S5.3 is repeatedly executed three times, and if the response message of the next level device is still not received, it is determined as a broken line, the communication state broken line flag is set, and S5.3 is repeatedly executed until the communication state broken line flag is reset after the normal communication is restored.
[0105] S5.5: Repeat steps S5.3 and S5.4 for other devices until the master station receives information from the communication terminal indicating successful initialization. The master station saves the information table of all bus devices, including device address, device type, and number of bus devices. If the master station receives information that a bus device is disconnected, it repeats steps S5.1 to S5.5.
[0106] S6: The above S3.2 automatically obtains the bus device status including the following steps:
[0107] S6.1: The master station sends a command to obtain the device status to the device on the successfully initialized 8-core bus line;
[0108] S6.2: After receiving the command, the bus device on the line sends the cached subsequent device information and current level information as a response message to the master station;
[0109] S6.3: The device forwards the Get Device Status command to the downstream device, with the address updated to the current address.
[0110] S6.4: The device receives a response message from the downstream device, parses the downstream device information, including: device address, device type, device status, and repackages and caches it; if the device does not receive a response message from the downstream device, and still does not receive a response message from the downstream device after executing S6.3 three times in a row, it is determined to be disconnected and the communication status disconnection flag is set.
[0111] S6.5: Other devices repeat steps S6.3 and S6.4 until the master station receives information from the communication terminal indicating that the command to obtain the device status is successful. The master station updates the information table of all bus devices, including the device address, type, and status (disconnection, emergency stop, deviation, tearing, coal pile, etc.); if the master station receives information that the bus device is disconnected, it stops the current command and executes S5.
[0112] S7: The above S3.3 status query command includes the following steps:
[0113] S7.1: The master station sends a status query command to the device on the 8-core bus line that has successfully obtained the bus device status;
[0114] S7.2: After receiving the command, the bus device on the line determines whether the status of the current level has changed, and sends the cached information of the subsequent level device and the current level information as a response message to the master station. Otherwise, only the cached information of the subsequent level device is sent.
[0115] S7.3: The device forwards the query status command to the downstream device, updating the address to the current address;
[0116] S7.4: The device receives a response message from the downstream device, parses the downstream device information, including the address, device type, and device status, and repackages and caches it. If the device does not receive a response message from the downstream device, and still does not receive a response message from the downstream device after executing S7.3 three times in a row, it is determined to be disconnected and the communication status disconnection flag is set.
[0117] S7.5: Repeat steps S7.3 and S7.4 for other devices. After the master station receives the status change device information, it updates the device information status in the device information table (disconnection, emergency stop, deviation, tearing, coal pile, etc.). If the master station receives the bus device disconnection, it stops the current command and executes S5.
[0118] S8: The above S3.4 parameter configuration command includes the following steps:
[0119] S8.1: The master station sends parameter configuration commands to a device or devices of the same type on all designated 8-core bus lines, including: single bus address, device type, RS485 address, RS485 baud rate, deviation time, etc.
[0120] S8.2: After receiving the command, the bus device on the line determines the device address or device type. If the single bus address is 0xFF, all devices of the same type as in the command are configured with parameters. If the single bus address is 0xFF, only the parameters of the device at the specified address are configured. The bus device sends the cached subsequent device information, current level information, or only current level information as a response message to the master station.
[0121] S8.3: The device forwards the parameter configuration command to the downstream device to update the address to the current address;
[0122] S8.4: The device receives a response message from the downstream device, parses the downstream device information, including the address and device type, and repackages and caches it. If no response message is received from the downstream device after executing S8.3 three times in a row, it is determined to be disconnected and the communication status disconnection flag is set.
[0123] S8.5: Repeat steps S8.3 and S8.4 for other devices. When the master receives a message from the device of the specified address or the type at the end of the bus, the parameter configuration command ends. If the master receives a message that the bus device is disconnected, it stops the current command and executes S5.
[0124] The substation uses the single bus address configured by S5 as the RS485 address for rapid communication. When the single bus address of the substation changes, the system automatically determines and synchronously updates the RS485 address to ensure normal RS485 communication.
[0125] The system master station and repeater have multiple 8-core bus interfaces, which can build a tree-type bus line. The bus device address structure consists of the level address, bus number and subsequent level address, each occupying 1 byte, for a total of 3 bytes.
[0126] The repeater incorporates an internal power isolation circuit, enabling independent power supply for the front and rear bus segments. An internal automatic blocking line trigger circuit automatically interlocks the blocking lines on the front and rear bus segments, effectively disconnecting the front segment's blocking line, and vice versa. The system substation also features a blocking emergency shutdown function. An internal relay output circuit is connected in series to the blocking line. When the blocking line disconnects, the output relay loses power, automatically resetting the output contacts and severing the motor control circuit, achieving a reliable shutdown.
[0127] In addition to the above-mentioned equipment, the system also has belt conveyor monitoring software, which can realize eight protections for single and multiple belt conveyors (slipping, coal piling, coal stacking, deviation, over-temperature water sprinkling, smoke, tearing, emergency stop), single-machine control, remote centralized control and starting with or against the coal flow, and has three working modes: maintenance, on-site and remote.
[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not limiting. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solutions, which should all be included in the scope of the claims of the present invention.
Claims
1. A bus communication address configuration method based on a mining belt conveyor control system, characterized in that: The method comprises the following steps: S1: The control system includes a master station, a substation, a combined loudspeaker telephone, an emergency stop lock switch, a repeater, a cable connector, a communication terminal, an 8-core bus cable, and ancillary equipment. It has the functions of intrinsically safe DC power supply, communication, voice communication, and hardware lock for bus equipment, and constructs a tree-type bus line through the master station or repeater; The equipment is connected through its interface unit and 8-core bus cable. The interface unit consists of power supply, single bus, locking line, audio line and RS485 bus. The 8-core bus cable consists of 8-core aviation plug and mining 8-core cable. The mining 8-core cable includes 2-core power cable, 1-core single bus, 1-core locking line, 2-core shielded twisted pair of audio cable, and 2-core shielded twisted pair of RS485 cable. The interface unit is connected to the 8-core aviation socket and fixed on the equipment casing. The 8-core aviation socket is directly plugged into the aviation plug of the 8-core bus cable and locked with a U-shaped pin. The communication terminal is directly plugged into the 8-core aviation socket of the preceding equipment; the 8-core cable sequence is: 1 power line positive, 2 power line negative, 3 audio line, 4 audio line, 5 locking line, 6 single bus, 7 RS485 negative, 8 RS485 positive; S2: The bus equipment is powered by the master station or is independently powered by the repeater in sections to extend the power supply distance; The single bus connects all devices on the bus in series, realizing automatic configuration of device communication addresses and transmission of emergency stop, deviation and tearing status and issuance of control commands; The RS485 bus connects input and output devices in parallel to realize input status acquisition and control output; The locking line is connected in series with a substation, a combined loudspeaker telephone, an emergency stop locking switch, a repeater and a communication terminal to achieve hardware locking emergency stop and status detection; The audio line is connected in parallel with the loudspeaker telephone and the communication terminal to realize voice intercom, broadcasting and status detection along the belt conveyor; The master station or repeater forms a tree-type bus line through its multiple 8-core bus interfaces, meeting the protection and control requirements of multiple belt conveyors in coal mines; S3: The single bus adopts a point-to-point communication mode, and its communication protocol frame format includes: a 1-byte frame header, a 1- or 2-byte frame length, a 1- or 3-byte address, 0-6 bytes of DATA, and a 2-byte CRC16; There is no DATA field when sending the initialization command. The DATA field of the command to obtain the device status and the status query command includes the command status, device type and function code. The configuration parameter DATA field is 1 byte. The DATA field of the response message is: The device type is an emergency stop locking switch. The high byte includes emergency stop, device type, and abnormal status, and the low byte is empty. The device type is a slave station, the high byte includes the device type and abnormal status, and the low byte is empty; The device type is a combined loudspeaker telephone. The high byte includes the emergency stop status, device type, and abnormal status. The low byte includes the values of channel 4, channel 3, channel 2, and channel 1. The device type is a repeater. The high byte includes the lock line status, device type, and abnormal status. The low byte includes the bus voltage at the front end. The device type is a communication terminal. The high byte includes the device type and abnormal status, and the low byte includes the terminal voltage. The single bus adopts a point-to-point communication mode and includes the following steps: S3.1: The master station initiates an initialization command and automatically assigns bus device addresses. After receiving the communication terminal information, the initialization is successful and the information table of all bus devices is saved. S3.2: After successful initialization, the master station initiates a command to obtain the device status, obtain the bus device's emergency stop, deviation, tear, terminal voltage / front-end voltage, and communication disconnection status, and update the device information table. The device status acquisition process ends after receiving the communication terminal information. S3.3: After the Get Device Status command is completed, the master station initiates a status query command to obtain the bus device information of the changed status and updates the device information table; S3.4: If the master station configures the parameters of a device or devices of the same type, it initiates a configuration command containing the single bus address, parameter length, and parameters. After receiving the command, the bus device determines whether the address or device type at the current level is the same as the command. If they are the same, the parameters are updated. Otherwise, the command is forwarded to the subsequent device. The parameter configuration is completed after the master station receives the response information of the address or the last device of the same type. S3.5: If the bus device has a communication disconnection or the number or type of bus devices changes, the master station re-executes steps S3.1 to S3.3; S4: The communication process of the single bus is as follows: S4.1: The master station sends a command to all devices on the 8-core bus line. The command contains a 1-byte frame header, a 2-byte frame length, a 3-byte address, 0 to 6 bytes of data, and a 2-byte CRC16 checksum. The highest 4 bits of the command frame header indicate the frame type, starting from 16 and corresponding to different types of frames. The highest bit of the data indicates the command type, and the next 3 bits indicate the device type, including slave stations, combined loudspeaker phones, emergency stop lock switches, repeaters, cable connectors, and communication terminals. The lowest 4 bits indicate the function code, starting from 1. S4.2: A bus device on an 8-core bus line has two single bus interfaces. The interface on which the bus device receives the command first is automatically set to slave mode, and the other interface is automatically set to master mode. S4.3: The device executes the received command, modifies the command address, encapsulates the cached information and its own information, and sends a response message to the master or preceding device through the slave mode interface. The high-order 4 bits of the response message frame header start at 32 and correspond to frames with different functions. The highest bit of the address is the disconnection flag. The data content and length vary depending on the device type. S4.4: The device forwards commands to subsequent devices via the master mode interface; S4.5: After the master mode interface of the device receives the response message from the downstream device, it parses the data, repackages it according to the device address, and caches it in the device. S4.6: All bus devices repeat S4.2 to S4.5; S5: In S3.1, the automatic configuration of the single bus address specifically includes the following steps: S5.1: The bus device stores the master address. The master sends a single bus initialization command containing the master address to the device on the 8-core bus line. S5.2: The device address number on the tree bus line consists of 3 bytes, including 1 byte of ADDR, 1 byte of SUBCOM, and 1 byte of SUBADDR. The device that receives the command calculates the current level address based on the address in the command and sends a response message containing the cached subsequent device address, type, communication status, and the current level device address and device type to the master. The current level address K is calculated as follows: if the address in the command is equal to the master address, the current level address is 1; otherwise, the current level address is equal to the address + 1. S5.3: If the current level address does not have a branch bus, the address in the initialization command is updated to the current level address, and the initialization command is forwarded to the subsequent device; if the current level address has a branch bus, the address is updated to the master station address, and the initialization command is forwarded to all branch buses in sequence; S5.4: The device receives a response message from the downstream device, parses the downstream device address, device type, and communication status, and repackages and caches it. If no response message is received from the downstream device, S5.3 is repeated three times. If no response message is received from the downstream device, it is determined to be disconnected, and the communication status disconnection flag is set. S5.3 is repeated until normal communication is restored, and the communication status disconnection flag is reset. S5.5: Other devices repeat steps S5.3 and S5.4 until the master station receives information from the communication terminal indicating that initialization is successful. The master station saves the information table of all bus devices, including device address, device type and number of bus devices. If the master station receives information that a bus device is disconnected, it repeats steps S5.1 to S5.
5. S6: In S3.2, automatically obtaining the bus device status includes the following steps: S6.1: The master station sends a command to obtain the device status to the device on the successfully initialized 8-core bus line; S6.2: After receiving the command, the bus device on the line sends the cached subsequent device information and current level information as a response message to the master station; S6.3: The device forwards the Get Device Status command to the downstream device, with the address updated to the current address. S6.4: The device receives a response message from the downstream device, parses the downstream device information, including the device address, device type, and device status, and repackages and caches it. If the device does not receive a response message from the downstream device after executing S6.3 three times in a row and still does not receive a response message from the downstream device, it is determined to be disconnected and the communication status disconnection flag is set. S6.5: Other devices repeat steps S6.3 and S6.4 until the master station receives information from the communication terminal indicating that the command to obtain the device status is successful. The master station updates the information table of all bus devices, including the device address, type, and status. The status includes disconnection, emergency stop, deviation, tearing, and coal accumulation. If the master station receives information that the bus device is disconnected, it stops the current command and executes S5. S7: In S3.3, the status query command includes the following steps: S7.1: The master station sends a status query command to the device on the 8-core bus line that has successfully obtained the bus device status; S7.2: After receiving the command, the bus device on the line determines whether the status of the current level has changed, and sends the cached information of the subsequent level device and the current level information as a response message to the master station. Otherwise, only the cached information of the subsequent level device is sent. S7.3: The device forwards the query status command to the downstream device, updating the address to the current address; S7.4: The device receives a response message from the downstream device, parses the downstream device information, including the address, device type, and device status, and repackages and caches it. If the device does not receive a response message from the downstream device after executing S7.3 three times in a row and still does not receive a response message from the downstream device, it is determined to be disconnected and the communication status disconnection flag is set. S7.5: Repeat steps S7.3 and S7.4 for other devices. After receiving the status change information of the device, the master station updates the device information table with the status of the device, including disconnection, emergency stop, deviation, tearing, and coal accumulation. If the master station receives the bus device disconnection information, it stops the current command and executes S5. S8: In S3.4, the parameter configuration command includes the following steps: S8.1: The master station sends parameter configuration commands to a device or devices of the same type on all designated 8-core bus lines, including: single bus address, device type, RS485 address, RS485 baud rate, and deviation time; S8.2: After receiving the command, the bus device on the line determines the device address or device type. If the single bus address is 0xFF, all devices of the same type as in the command are configured with parameters. If the single bus address is not 0xFF, only the parameters of the device at the specified address are configured. The bus device sends the cached subsequent device information, current level information, or only current level information as a response message to the master station. S8.3: The device forwards the parameter configuration command to the downstream device to update the address to the current address; S8.4: The device receives a response message from the downstream device, parses the downstream device information, including the address and device type, and repackages and caches it. If no response message is received from the downstream device after executing S8.3 three times in a row, it is determined to be disconnected and the communication status disconnection flag is set. S8.5: Repeat steps S8.3 and S8.4 for other devices. When the master receives a message from the device with the specified address or the device of the type at the end of the bus, the parameter configuration command ends. If the master receives a message indicating that the bus device is disconnected, it stops the current command and executes S5. The substation uses the single bus address configured by S5 as the RS485 address for fast communication. When the single bus address of the substation changes, the system automatically determines and synchronously updates the RS485 address to ensure normal RS485 communication. The master station and repeater have multiple 8-core bus interfaces to construct a tree-type bus line. The bus device address structure consists of a level address, a bus number, and a subsequent level address, each occupying 1 byte, for a total of 3 bytes. The repeater has a power isolation circuit inside to achieve independent power supply for the front and rear sections of the bus line; the internal locking line automatic triggering circuit realizes automatic interlocking of the locking lines on the front and rear end bus lines, that is, when the front section locking line is disconnected, the rear section locking line is also disconnected, and vice versa; the substation has a locking emergency shutdown function, and the internal relay output circuit is connected in series to the locking line. When the locking line is disconnected, the output relay is powered off, and the output contacts are automatically reset to cut off the motor control circuit, achieving reliable shutdown.
Citation Information
Patent Citations
Automatic allocation method for serial communication system address
CN111131533A
Serial communication method, electronic equipment and storage medium
CN112165423A
Serial tandem connection bus up flow control method and node equipment
CN1921455A