An elevator control method, an elevator control device, and a storage medium
By optimizing the query sequence of the elevator control system, call commands from the floors ahead can be quickly obtained, solving the problem of excessively long communication time at higher floors and improving elevator response speed and passenger service efficiency.
Patent Information
- Application Number
- CN202310940019.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-27
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2043-07-27
AI Technical Summary
The existing elevator control system has a long communication time in high-rise buildings, resulting in a slow response to elevator call commands, which may cause passengers to miss the elevator.
By obtaining the current and total number of floors during the elevator's movement, a preset polling order is generated based on the total number of floors. Multiple query call commands are then inserted into this order to optimize the query order, shorten query time, and improve response speed.
The system can quickly obtain call commands from the floors ahead while the elevator is moving, shortening the query time, improving the call response speed, and reducing passenger waiting time.
Smart Images

Figure CN116715110B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of elevator control, and in particular to an elevator control method, an elevator control device, and a storage medium. BACKGROUND
[0002] Generally, Modbus communication is used between the main board of the elevator control system and the display board of the external call, and the Modbus communication adopts master-slave mode communication; the host is the main board of the elevator control system, and the slave is the display board of the external call of each floor; the display board of the external call is arranged at the elevator door of each floor, and is provided with an independent address, generally from address 1 to the maximum floor; if the elevator has two doors, the display board of the external call of the rear door also needs to be provided with an address. The main control board adopts fixed polling query mode, if it is a single door, the communication is performed from the node with address 1 to the node with the highest floor address. If it is a double door, the communication of the front door is performed from the node with address 1 to the node with the highest floor address, and the address of the rear door is from a fixed value + rear door 1 to the highest floor.
[0003] When the total floor of the elevator is low, the communication time of one round of polling between the main board of the elevator control system and the display board of the external call is short, and does not affect the response speed of the elevator control system to the external call display board; however, once the total floor of the elevator is high, the communication time of one round of polling will be longer, for example, when the total floor of the elevator is dozens of floors, the communication time of one round of polling will be hundreds of milliseconds. That is, when the elevator runs forward, if a passenger presses the call instruction in the forward direction, the above detection method may have a delay of hundreds of milliseconds, and the call instruction may not be responded in time by the elevator control system, which will cause the instruction not to be registered in time, and further cause the passenger to miss this elevator and need to wait for the next elevator.
[0004] It can be seen that the higher the total floor of the elevator, the longer the communication time, and the longer the communication time will affect the response speed of the elevator control system. SUMMARY
[0005] Embodiments of the present application provide an elevator control method, an elevator control device, and a storage medium, which can quickly acquire the call instruction of the front floor and improve the response speed of the call of the front floor.
[0006] Embodiments of the present application provide an elevator control method, comprising:
[0007] acquiring the current floor arrived by the elevator and the number of total floors to be run by the elevator in the process of advancing of the elevator;
[0008] obtaining a preset polling sequence of the query call instruction of the total floors based on the number of the total floors;
[0009] inserting a plurality of query call instructions of a front floor in the preset polling sequence based on the number of the total floors to obtain a target polling sequence; wherein the front floor is a next floor of the current floor in the advancing direction of the elevator;
[0010] executing the query call instruction of the front floor based on the target polling sequence before the elevator arrives at the front floor to determine whether there is a call instruction in the front floor.
[0011] Further, the obtaining of the preset polling sequence of the query call instruction of the total floors based on the number of the total floors comprises:
[0012] determining the query call instruction corresponding to the number of the total floors; wherein the elevator door of each floor of the total floors is provided with a query address of the corresponding query call instruction;
[0013] arranging the query addresses corresponding to the elevator doors in the order from the low floor to the high floor to obtain the preset polling sequence.
[0014] Further, the elevator is provided with one elevator door at each floor; and the inserting of the plurality of query call instructions of the front floor in the preset polling sequence based on the number of the total floors comprises:
[0015] if the number of the total floors is less than or equal to a first preset threshold, the query call instructions corresponding to the front floor are inserted in the preset polling sequence based on a first instruction interval in turn;
[0016] if the number of the total floors is greater than the first preset threshold and less than or equal to a second preset threshold, the query call instructions corresponding to the front floor are inserted in the preset polling sequence based on a second instruction interval in turn;
[0017] if the number of the total floors is greater than the second preset threshold and less than or equal to a third preset threshold, the query call instructions corresponding to the front floor are inserted in the preset polling sequence based on a third instruction interval in turn;
[0018] if the number of the total floors is greater than the third preset threshold, the query call instructions corresponding to the front floor are inserted in the preset polling sequence based on a fourth instruction interval in turn;
[0019] wherein the first instruction interval is less than the second instruction interval, the second instruction interval is less than the third instruction interval, and the third instruction interval is less than the fourth instruction interval.
[0020] Further, the method further comprises:
[0021] determining a first continuous call time length before reaching the front floor based on the baud rate of the transmitted call instruction and the data length corresponding to the transmitted call instruction;
[0022] When the query call instruction of the front floor is executed based on the target polling sequence until the running time of the elevator to the front floor meets the first continuous call time length, and it is confirmed that there is no call instruction in the front floor, the query call instruction corresponding to the front floor is executed multiple times in the first continuous call time length.
[0023] Further, the elevator is provided with one elevator front door and one elevator rear door at each floor;
[0024] The inserting of the plurality of query call instructions of the front floor in the preset polling sequence based on the number of total floors comprises:
[0025] If the number of total floors is less than or equal to a fourth preset threshold, the query call instruction of the elevator front door in the front floor and the query call instruction of the elevator rear door in the front floor are cyclically inserted in the preset polling sequence based on a fifth instruction interval;
[0026] If the number of total floors is greater than the fourth preset threshold and less than a fifth preset threshold, the query call instruction of the elevator front door in the front floor and the query call instruction of the elevator rear door in the front floor are cyclically inserted in the preset polling sequence based on a sixth instruction interval; wherein the fifth instruction interval is less than the sixth instruction interval.
[0027] Further, the method further comprises:
[0028] determining a second continuous call time length before reaching the front floor based on the baud rate of the transmitted call instruction and the data length corresponding to the transmitted call instruction;
[0029] When the query call instruction of the front floor is executed based on the target polling sequence until the running time of the elevator to the front floor meets the second continuous call time length, and it is confirmed that there is no call instruction in the front floor, the query call instruction of the elevator front door in the front floor and the query call instruction of the elevator rear door in the front floor are cyclically executed in the second continuous call time length.
[0030] Further, the executing of the query call instruction of the front floor based on the target polling sequence to determine whether there is a call instruction in the front floor comprises:
[0031] If the front floor satisfies the elevator stopping condition, the query call instruction is executed in the target polling sequence one by one until the query call instruction corresponding to the front floor is executed, and it is determined whether there is a call instruction in the front floor;
[0032] If the front floor does not satisfy the elevator stopping condition, the query address of the query call instruction corresponding to the front floor in the target polling sequence is set as a preset skipping address.
[0033] The embodiment of the present application further provides an elevator control device, comprising:
[0034] The first obtaining unit is configured to obtain a current floor arrived by the elevator and a total number of floors to be run by the elevator during the forward movement of the elevator;
[0035] The second obtaining unit is configured to obtain a preset polling sequence of query call instructions for the total number of floors based on the total number of floors;
[0036] The inserting unit is configured to insert a plurality of query call instructions for a front floor in the preset polling sequence based on the total number of floors, to obtain a target polling sequence, wherein the front floor is a next floor of the current floor in a forward movement direction of the elevator;
[0037] The executing unit is configured to execute the query call instruction for the front floor based on the target polling sequence before the elevator arrives at the front floor, to determine whether there is a call instruction in the front floor.
[0038] The embodiment of the present application further provides an elevator control device, comprising:
[0039] A central processing unit, a memory, an input and output interface, a wired or wireless network interface, and a power supply;
[0040] The memory is a transitory storage memory or a persistent storage memory;
[0041] The central processing unit is configured to communicate with the memory, execute instruction operation in the memory on a control plane function entity, and execute the above method.
[0042] The embodiment of the present application further provides a computer readable storage medium, which comprises instructions, when the instructions are run on a computer, the computer executes the above method.
[0043] From the above technical solutions, the embodiment of the present application has the following advantages:
[0044] In this embodiment, during the elevator's movement, the current floor the elevator has reached and the total number of floors the elevator needs to travel to are obtained. A preset polling order for querying elevator call commands for the total number of floors is obtained based on the total number of floors. Based on the total number of floors, multiple query call commands for the preceding floors are inserted into the preset polling order to obtain a target polling order. The preceding floor is the floor below the current floor in the elevator's direction of travel. The query call commands for the preceding floors are executed based on the target polling order to determine if a call command exists for the preceding floor. Therefore, executing query call commands for the preceding floors within the target polling order to determine if a call command exists for the preceding floor allows for multiple executions of the query call commands for the preceding floors in a single poll, shortening the query time for the preceding floors, quickly obtaining call commands for the preceding floors, and improving the response speed of call commands for the preceding floors. Attached Figure Description
[0045] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings.
[0046] Figure 1 This is a flowchart of an elevator control system disclosed in an embodiment of this application;
[0047] Figure 2 This is a flowchart illustrating the elevator control process for a single elevator door as disclosed in an embodiment of this application.
[0048] Figure 3 This is a flowchart of an elevator control system with two elevator doors disclosed in an embodiment of this application;
[0049] Figure 4 This is a schematic diagram illustrating the response time of a forward floor as disclosed in an embodiment of this application;
[0050] Figure 5 This is a schematic diagram of an elevator control device disclosed in an embodiment of this application;
[0051] Figure 6 This is a schematic diagram of another elevator control device disclosed in an embodiment of this application. Detailed Implementation
[0052] In the following, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application, so that those skilled in the art can better understand the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.
[0053] In the description of the embodiments of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer" and the like indicate the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the embodiments of the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the embodiments of the present application.
[0054] In the description of the embodiments of the present application, it should be noted that unless otherwise explicitly specified and limited, the terms "mounting", "connecting", "connecting" should be understood broadly, for example, it can be fixedly connected, or it can be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium; it can be the communication inside two elements. For those skilled in the art, the specific meaning of the above terms in the embodiments of the present application can be understood according to the specific circumstances.
[0055] The existing elevator control system mainboard and the external call display board generally use Modbus communication. Modbus communication uses master-slave mode communication. The host is the elevator control system mainboard, and the slave is the external call display board of each floor. When the total floor of the elevator is low, the communication time of one round of polling between the elevator control system mainboard and the external call display board is short, and does not affect the response speed of the elevator control system to the external call display board. However, once the total floor of the elevator is high, the communication time of one round of polling will be longer. For example, when the total floor of the elevator is dozens of floors, the communication time of one round of polling will be hundreds of milliseconds. That is, when the elevator runs forward, if a passenger presses the call instruction in the forward direction, the above detection method may have a delay of hundreds of milliseconds, and the call instruction may not be responded in time by the elevator control system, which will cause the instruction not to be registered in time, and thus the passenger will miss this elevator and need to wait for the next elevator. It can be seen that the higher the total floor of the elevator, the longer the communication time of polling, and the longer the communication time of polling will affect the response speed of the elevator control system. Therefore, the present application provides an elevator control method, which can quickly obtain the call instruction of the front floor and improve the response speed of the call of the front floor, such as Figure 1 As shown in the figure, the specific steps are as follows:
[0056] 101、acquiring the current floor arrived by the elevator and the total number of floors to be run by the elevator during the running of the elevator.
[0057] In the embodiment of the present application, the elevator control device can acquire the current floor arrived by the elevator and the total number of floors to be run by the elevator during the running of the elevator. The current floor arrived by the elevator can be acquired by the photoelectric sensor. It can be understood that the current floor arrived by the elevator is one floor, which can be the current floor stopped by the elevator or the floor passed by the elevator when running between two floors. For example, if the elevator stops at the 3rd floor or runs from the 3rd floor to the 4th floor, the current floor is the 3rd floor, and the current floor will change continuously with the running of the elevator. The total number of floors to be run by the elevator is the number of floors passed by the elevator when running from the lowest floor to the highest floor (or from the highest floor to the lowest floor).
[0058] 102、based on the total number of floors, acquiring a preset polling sequence of the query call instruction for the total number of floors.
[0059] After obtaining the total number of floors, the preset polling sequence of the query call instruction for the total number of floors can be acquired based on the total number of floors. It can be understood that the query call instruction is used to query whether the call display panel of the elevator in each floor is calling. The preset polling sequence is the execution sequence of the plurality of query call instructions, and the plurality of query call instructions are executed again after being executed. That is, each floor can be queried one by one by the preset polling sequence to determine whether there is a call instruction.
[0060] Specifically, the query call instruction corresponding to the total number of floors can be determined, that is, each floor is provided with a corresponding query call instruction, and the query address of the query call instruction corresponding to the elevator door of each floor in the total number of floors is arranged in order from the low floor to the high floor to obtain the preset polling sequence. It can be understood that when one elevator door is set at each floor, the corresponding preset polling sequence is one polling from the low floor to the high floor, and then another polling from the low floor to the high floor. For example, when one elevator door is set at each floor, the polling sequence corresponding to the 24th floor is that the query address is 1-24. When two elevator doors (the front door of the elevator and the rear door of the elevator) are set at each floor, the corresponding preset polling sequence is that the front door of the elevator of each floor is sorted from the low floor to the high floor, and then the rear door of the elevator of each floor is sorted from the low floor to the high floor. For example, when the 24th floor, the query address of the front door of the elevator in the floor is 1-24, and the query address of the rear door of the elevator in the floor is 25-48.
[0061] 103、based on the total number of floors, inserting a plurality of query call instructions for the front floor in the preset polling sequence to obtain a target polling sequence.
[0062] After the preset polling sequence is obtained, a plurality of query call instructions for the front floor can be inserted in the preset polling sequence based on the number of total floors before the elevator reaches the front floor, to obtain a target polling sequence; wherein the front floor is the next floor in the advancing direction of the elevator from the current floor. It can be understood that during the operation of the elevator, the current floor reached by the elevator will change constantly, and the front floor is the next floor in the advancing direction of the elevator, that is, the front floor will change as the elevator operates, that is, the front floor (the front floor that can be stopped) is dynamically adjusted according to the operating state of the elevator. For example, the elevator operates from the first floor to the 48th floor, and as the elevator ascends, the front floor increases from 2 to 3, 4,..., 48. Similarly, when the elevator descends, the front floor is 47, 46, 45,..., 1.
[0063] When the elevator is running, it can be determined whether the front floor needs to be stopped according to the advancing direction. If it needs to be determined whether the front floor needs to be stopped, as long as the call instruction (i.e. the outside registration signal) of the front floor can be detected within the preset determination duration from the current time point (i.e. the time point when the elevator advances from the current floor to the front floor) to the determination of whether the front floor needs to be stopped, the call instruction of the front floor can be normally responded; if the call instruction communication time is relatively long, and the communication time has exceeded the preset determination duration, the elevator running this time will not be able to respond to the call instruction of the front floor. If the call instruction communication time is very short, and the communication time is less than the preset determination duration, the elevator running this time can respond to the call instruction of the front floor. As shown in the figure, Figure 4 K-1 is the current floor, k is the corresponding front floor, T1 is the running duration of the elevator from the current floor to the front floor, T0 is the preset determination duration of whether the front floor needs to be stopped, and Tend is the duration required for stable stopping at the front floor, that is, it is necessary to determine whether there is a call instruction of the front floor before Tend.
[0064] If the elevator is going up and the current floor is the 3rd floor, it is necessary to determine whether the front floor (4th floor) needs to stop. If the 4th floor up call instruction is detected, the elevator control system will slow down and stop, and the 4th floor up call instruction can be normally responded to at this time. If the 4th floor call instruction is not detected, the elevator control system normally operates and does not stop at the 4th floor. Therefore, the response of the 4th floor up call instruction affects whether the elevator control system stops. If the 4th floor up call instruction is registered at a relatively early time, the elevator control system can respond to the 4th floor up call instruction. However, the elevator is running at the 3rd floor, and the T0 time for determining whether the 4th floor needs to stop is reached. During this period, there is an up call instruction. If the 4th floor up call instruction detected by the elevator control system is relatively slow and exceeds the T0 time, the elevator control system will not respond to the 4th floor up call instruction, and the elevator will normally go up until the next time the elevator can respond. At this time, the plurality of query call instructions for the front floor are inserted in the preset polling sequence, the call instruction of the front floor can be quickly obtained, and the response efficiency of the elevator is greatly improved.
[0065] Based on the number of total floors, the plurality of query call instructions for the front floor are inserted in the preset polling sequence to obtain the target polling sequence. If the number of total floors is greater, the query call instructions for the front floor are inserted in the preset polling sequence at a greater interval (i.e., at a greater interval of query addresses). If the number of total floors is smaller, the query call instructions for the front floor are inserted in the preset polling sequence at a smaller interval.
[0066] 104. The query call instruction for the front floor is executed based on the target polling sequence to determine whether the front floor has a call instruction.
[0067] After the target polling sequence is obtained, the query call instruction for the front floor can be executed based on the target polling sequence to determine whether the front floor has a call instruction. That is, the query call instruction is executed one by one based on the target polling sequence. It can be understood that, because the target polling sequence is obtained by inserting the plurality of query call instructions for the front floor in the preset polling sequence, the query call instruction for the front floor can be executed multiple times in one polling sequence when the query call instruction is executed one by one, and the front floor is queried multiple times to determine whether the front floor has a call instruction (i.e., the call signal of the external call display panel).
[0068] Wherein, when the elevator is advancing, the front floor can be a non-service floor, that is, the elevator does not stop at the front floor, and the elevator stop condition is not met; at this time, the polling sequence will skip the polling address corresponding to the polling call instruction of the front floor to the next polling address. Specifically, if the front floor meets the elevator stop condition, the polling call instruction is executed in turn according to the target polling sequence until the polling call instruction corresponding to the front floor is executed, and it is determined whether there is a call instruction in the front floor; if the front floor does not meet the elevator stop condition, the polling address of the polling call instruction corresponding to the front floor in the target polling sequence is set as a preset skipping address. That is, if the front floor is a non-service floor, the corresponding polling address is not served, and the corresponding polling address becomes 0; if the front floor is a service floor, the corresponding polling address can be queried, and when the polling address becomes 0, the next polling address will be automatically entered.
[0069] It can be seen that in the embodiment of the present application, the current floor reached by the elevator and the number of total floors to be run by the elevator are obtained during the advancing of the elevator; a preset polling sequence of the polling call instruction of the total floor is obtained based on the number of total floors; a plurality of polling call instructions of the front floor are inserted in the preset polling sequence based on the number of total floors to obtain a target polling sequence; wherein the front floor is the next floor of the current floor in the advancing direction of the elevator; the polling call instruction of the front floor is executed based on the target polling sequence to determine whether there is a call instruction in the front floor. It can be seen that the polling call instruction of the front floor is executed in the target polling sequence to determine whether there is a call instruction in the front floor, which can execute the polling call instruction of the front floor multiple times in one polling, can shorten the polling time of the front floor, can quickly obtain the call instruction of the front floor, and can improve the response speed of the call of the front floor.
[0070] Further, when the elevator is provided with an elevator door in the floor, the corresponding elevator control flow is as shown in Figure 2 , and specifically includes the following steps:
[0071] 201. In the advancing process of the elevator, the current floor reached by the elevator and the number of total floors to be run by the elevator are obtained.
[0072] 202. A preset polling sequence of the polling call instruction of the total floor is obtained based on the number of total floors.
[0073] It can be understood that steps 201 and 202 are similar to steps 101 and 102 described above, and will not be described here.
[0074] 203. Based on the relationship between the number of total floors and the preset threshold, the polling call instruction of the front floor is inserted in the preset polling sequence through the preset instruction interval to obtain a target polling sequence.
[0075] When the elevator is provided with one elevator door in each floor, i.e. there is only one query call instruction, i.e. only one query address in each polling in the preset polling sequence. The target polling sequence can be obtained by inserting the query call instruction of the front floor in the preset polling sequence based on the relationship between the total number of floors and the preset threshold value through the preset instruction interval.
[0076] Specifically, if the total number of floors is less than or equal to the first preset threshold value, the query call instruction corresponding to the front floor is inserted in the preset polling sequence based on the first instruction interval in turn; if the total number of floors is greater than the first preset threshold value and less than or equal to the second preset threshold value, the query call instruction corresponding to the front floor is inserted in the preset polling sequence based on the second instruction interval in turn; if the total number of floors is greater than the second preset threshold value and less than or equal to the third preset threshold value, the query call instruction corresponding to the front floor is inserted in the preset polling sequence based on the third instruction interval in turn; if the total number of floors is greater than the third preset threshold value, the query call instruction corresponding to the front floor is inserted in the preset polling sequence based on the fourth instruction interval in turn; wherein the first instruction interval is less than the second instruction interval, the second instruction interval is less than the third instruction interval, and the third instruction interval is less than the fourth instruction interval.
[0077] It can be understood that the elevator control system generally only supports 48 query call instructions at each polling, i.e. when the elevator is provided with one elevator door in each floor, 48 floors are supported. Therefore, the first preset threshold value can be set to 6 floors, and the first instruction interval can be set to 1 instruction interval; the second preset threshold value can be set to 12 floors, and the second instruction interval can be set to 2 instruction intervals; the third preset threshold value can be set to 18 floors, and the third instruction interval can be set to 3 instruction intervals, and the fourth instruction interval can be set to 4 instruction intervals. K represents the query call instruction of the front floor, then we can get:
[0078] When the number of total floors is less than or equal to 6 floors, the target polling sequence is 1, K, 2, K, 3, K, 4, K, 5, K, 6, K, and the polling is performed in a loop; at this time, the response delay time of the front floor (the floor that needs to be stopped in front) is only 1 / 3 of the time of the normal polling mode. When the number of total floors is greater than 6 floors and less than or equal to 12 floors, the target polling sequence is 1, 2, K, 3, 4, K, 5, 6, K, 7, 8, K, 9, 10, K, 11, 12, K; the response delay time of the front floor is only 1 / 6 of the time of the normal polling mode. When the number of total floors is greater than 12 floors and less than or equal to 18 floors, the target polling sequence is 1, 2, 3, K, 4, 5, 6, K, 7, 8, 9, K, 10, 11, 12, K, 13, 14, 15, K, 16, 17, 18, K; the response delay time of the front floor is only 1 / 6 of the time of the normal polling mode. When the number of total floors is greater than 18 floors, the target polling sequence is 1, 2, 3, 4, K, 5, 6, 7, 8, K, 9, 10, 11, 12, K, 13, 14, 15, 16, K, 17, 18, 19, 20, K, 21, 22, 23, 24, K, 25, 26, 27, 28, K, 29, 30, 31, 32, K, 33, 34, 35, 36, K, 37, 38, 39, 40, K, 41, 42, 43, 44, K, 45, 46, 47, 48, K. When the number of total floors is 48 floors, the response delay time of the front floor is only 1 / 12 of the time of the normal polling mode. It can be seen that the target polling sequence reduces the response delay time of the front floor, effectively improving the response speed of the front floor.
[0079] 204, based on the target polling sequence, performing the query call instruction to the front floor, and determining whether the front floor has the call instruction.
[0080] It can be understood that step 204 is similar to step 104 described above, and will not be described here.
[0081] 205, if it is confirmed based on the target polling sequence that the front floor does not have the call instruction, then the query call instruction corresponding to the front floor is performed multiple times in the first continuous call time.
[0082] Further, if it is confirmed based on the target polling sequence that the front floor does not have the call instruction, then the query call instruction corresponding to the front floor is performed multiple times in the first continuous call time. It can be understood that when the front floor position is reached, the elevator control system will no longer respond to the (call instruction) external call signal of the front floor, so the call instruction of the front floor is always queried in a fixed time before reaching the front floor. The selection principle of this fixed time is that it cannot be too short, otherwise the accurate external call time cannot be obtained, and it cannot be too long, otherwise it will affect the query response time of other floors.
[0083] Specifically, the first continuous call time before reaching the front floor can be determined based on the baud rate of transmitting the call instruction and the data length corresponding to the call instruction; when the query call instruction of the front floor is executed based on the target polling sequence, until the running time of the elevator to the front floor meets the first continuous call time, and it is confirmed that there is no call instruction in the front floor, the query call instruction corresponding to the front floor is executed multiple times in the first continuous call time. It can be understood that the first continuous call time is the call time before Tend, that is, the query call instruction can be executed one by one based on the target polling sequence, when the running time of the elevator to the front floor is equal to the first continuous call time, the query call instruction is no longer executed by the target polling sequence, but the query call instruction of the front floor is executed multiple times, that is, it focuses on querying whether there is a call instruction in the front floor to avoid missing the call instruction of the front floor. The first continuous call time needs to ensure that the call instruction of the front floor can be queried twice; for example, the baud rate is 9600, the data length is 32 bits, and considering frame breaking, the first continuous call time T=40 ms is adopted; within this first continuous call time, the elevator control system only communicates with the outgoing call of the front floor. The query state is: K, K; if the front floor K is a non-service floor, the query is no longer performed.
[0084] Further, when the elevator is provided with two elevator doors, i.e., the front door and the rear door of the elevator, there are call instructions of the front door and the rear door of the elevator, and the elevator control flow is as shown in Figure 3 The specific steps include the following steps:
[0085] 301. Obtain the current floor reached by the elevator and the total number of floors to be run by the elevator during the forward movement of the elevator.
[0086] 302. Obtain the preset polling sequence of the query call instruction of the total floor based on the total number of floors.
[0087] It can be understood that steps 301 and 302 are similar to steps 101 and 102 described above, and will not be described here.
[0088] 303. Based on the relationship between the total number of floors and the preset threshold, the query call instructions of the front door and the rear door of the elevator in the front floor are inserted in the preset polling sequence by the preset instruction interval to obtain the target polling sequence.
[0089] According to the relationship between the total number of floors and the preset threshold, the query call instruction of the front door of the elevator and the rear door of the elevator in the front floor is inserted in the preset polling sequence through the preset instruction interval to obtain a target polling sequence. At the same time, the service floors of the elevator also need to be optimized. If the front door K1 of the elevator in the front floor is a service floor, the K1 address can be queried. If the front door K1 of the elevator in the front floor is a non-service floor, the K1 address is not served, and the K1 address becomes 0. Similarly, if the rear door K2 of the elevator in the front floor is a service floor, the K2 address can be queried. If the rear door K2 of the elevator in the front floor is a non-service floor, the K2 address is not served, and the K2 address becomes 0.
[0090] Specifically, if the total number of floors is less than or equal to a fourth preset threshold, the query call instruction of the front door of the elevator in the front floor and the query call instruction of the rear door of the elevator in the front floor are cyclically inserted in the preset polling sequence based on a fifth instruction interval; if the total number of floors is greater than the fourth preset threshold and less than a fifth preset threshold, the query call instruction of the front door of the elevator in the front floor and the query call instruction of the rear door of the elevator in the front floor are cyclically inserted in the preset polling sequence based on a sixth instruction interval; wherein the fifth instruction interval is less than the sixth instruction interval. It can be understood that the elevator control system generally supports only 48 query call instructions at each polling, that is, when the elevator has two elevator doors in the floor, 24 floors are supported. Therefore, the fourth preset threshold can be 12 floors, and the fifth instruction interval is 2 instruction intervals; the fifth preset threshold is 24 floors, and the sixth instruction interval is 3 instruction intervals.
[0091] That is, the corresponding target polling sequence is: when the total number of floors is less than or equal to 12 floors; the target polling sequence is: front door 1, front door 2, front door K1, front door 3, front door 4, rear door K2, front door 5, front door 6, front door K1, front door 7, front door 8, rear door K2, front door 9, front door 10, front door K1, front door 11, front door 12, rear door K2, rear door 1, rear door 2, front door K1, rear door 3, rear door 4, rear door K2, rear door 5, rear door 6, front door K1, rear door 7, rear door 8, rear door K2, rear door 9, rear door 10, front door K1, rear door 11, rear door 12, rear door K2; at this time, the response delay time of the front floor is only 1 / 6 of the normal polling mode. When the total number of floors is greater than 12 floors and less than or equal to 24 floors; the target polling sequence is: front door 1, front door 2, front door 3, front door K1, front door 4, front door 5, front door 6, rear door K2, front door 7, front door 8, front door 9, front door K1, front door 10, front door 11, front door 12, rear door K2, front door 13, front door 14, front door 15, front door K1, front door 16, front door 17, front door 18, rear door K2, front door 19, front door 20, front door 21, front door K1, front door 22, front door 23, front door 24, rear door K2, rear door 1, rear door 2, rear door 3, front door K1, rear door 4, rear door 5, rear door 6, rear door K2, rear door 7, rear door 8, rear door 9, front door K1, rear door 10, rear door 11, rear door 12, rear door K2, rear door 13, rear door 14, rear door 15, front door K1, rear door 16, rear door 17, rear door 18, rear door K2, rear door 19, rear door 20, rear door 21, front door K1, rear door 22, rear door 23, rear door 24, rear door K2; at this time, the response delay time of the front floor is only 1 / 6 of the normal polling mode.
[0092] 304, execute the query call instruction of the front floor based on the target polling sequence, and determine whether the front floor has a call instruction.
[0093] It can be understood that step 304 is similar to step 104 described above, and details are not repeated here.
[0094] 305, if it is confirmed based on the target polling sequence that the front floor does not have a call instruction, then the query call instructions of the front door and the rear door of the elevator in the front floor are executed in a second continuous call time.
[0095] Further, if it is confirmed that there is no call instruction in the front floor based on the target polling sequence, the query call instruction of the front door of the elevator in the front floor and the query call instruction of the back door of the elevator in the front floor are cyclically executed in the second continuous call time length. Specifically, the second continuous call time length before reaching the front floor can be determined based on the baud rate of the transmission call instruction and the data length corresponding to the transmission call instruction; when the query call instruction of the front floor is executed based on the target polling sequence, until the running time length of the elevator running to the front floor meets the first continuous call time length, and it is confirmed that there is no call instruction in the front floor, the query call instruction of the front door of the elevator in the front floor and the query call instruction of the back door of the elevator in the front floor are cyclically executed in the second continuous call time length. The second continuous call time length is the call time length before Tend, and the second continuous call time length can ensure that the call instructions of the front door and the back door of the elevator in the front floor can be queried twice. For example, the baud rate is 9600, the data length is 32 bits, and considering frame breaking, the second continuous call time length T=80 ms can be used; in this time period, the elevator control system and the front door K1 and the back door K2 of the elevator in the front floor communicate. If the front door K1 and the back door K2 of the elevator in the front floor are non-service floors, the next judgment is automatically entered. The query state is: K1, K2, K1, K2; if the front door K1 of the elevator is in a non-service state and the back door K2 of the elevator is in a service state, the query state becomes K2, K2. If the front door K1 of the elevator is in a service state and the back door K2 of the elevator is in a non-service state, the query state becomes K1, K1.
[0096] The embodiment of the present application provides an elevator control device, as shown in the accompanying drawings, comprising: Figure 5
[0097] The first acquisition unit 501 is configured to acquire the current floor arrived by the elevator and the number of total floors to be run by the elevator during the forward movement of the elevator.
[0098] The second acquisition unit 502 is configured to acquire a preset polling sequence of query call instructions of the total floors based on the number of the total floors.
[0099] The insertion unit 503 is configured to insert a plurality of query call instructions of a front floor in the preset polling sequence based on the number of the total floors, to obtain a target polling sequence; the front floor is the next floor of the current floor in the forward movement direction of the elevator.
[0100] The execution unit 504 is configured to execute the query call instruction of the front floor based on the target polling sequence before the elevator arrives at the front floor, to determine whether there is a call instruction in the front floor.
[0101] The embodiment of the present application further provides an elevator control device 600, as shown in the accompanying drawings, comprising:Figure 6 As shown, the elevator control device 600 of the embodiments of the present application can include one or more central processing units (CPUs) 601 and a memory 602 in which one or more applications or data are stored.
[0102] The memory 602 can be volatile memory or persistent memory. The programs stored in the memory 602 can include one or more modules, each of which can include a series of instruction operations in an electronic device. Further, the central processing unit 601 can be configured to communicate with the memory 602 and execute the series of instruction operations in the memory 602 on the elevator control device 600.
[0103] The elevator control device 600 can also include one or more power supplies 605, one or more wired or wireless network interfaces 604, one or more input / output interfaces 603, and / or one or more operating systems, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0104] The central processing unit 601 can perform the operations performed by the first aspect or any of the specific method embodiments of the first aspect described above, and the specific details are not repeated.
[0105] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the system, device and unit described above can refer to the corresponding processes in the foregoing method embodiments, which are not repeated here.
[0106] In the several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented by other means. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.
[0107] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, i.e. they can be located in one place or distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0108] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0109] When the integrated unit is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, essentially or in part, or all or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The foregoing storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), magnetic disk or optical disk, and various media that can store program codes.
Claims
1. An elevator control method, characterized by, The method comprises: acquiring a current floor that the elevator has arrived at and a total number of floors that the elevator needs to run during the progress of the elevator; acquiring a preset polling sequence of query call instructions for the total number of floors based on the total number of floors; inserting a plurality of query call instructions for a front floor in the preset polling sequence based on the total number of floors before the elevator arrives at the front floor, to obtain a target polling sequence; wherein the front floor is a next floor of the current floor in the progress direction of the elevator; executing the query call instructions for the front floor based on the target polling sequence to determine whether there is a call instruction for the front floor; wherein the elevator is provided with one elevator door at each floor; and the inserting of the plurality of query call instructions for the front floor in the preset polling sequence based on the total number of floors to obtain the target polling sequence comprises: if the total number of floors is less than or equal to a first preset threshold, inserting the query call instructions for the front floor in the preset polling sequence based on a first instruction interval in turn; if the total number of floors is greater than the first preset threshold and less than or equal to a second preset threshold, inserting the query call instructions for the front floor in the preset polling sequence based on a second instruction interval in turn; if the total number of floors is greater than the second preset threshold and less than or equal to a third preset threshold, inserting the query call instructions for the front floor in the preset polling sequence based on a third instruction interval in turn; if the total number of floors is greater than the third preset threshold, inserting the query call instructions for the front floor in the preset polling sequence based on a fourth instruction interval in turn; wherein the first instruction interval is less than the second instruction interval, the second instruction interval is less than the third instruction interval, and the third instruction interval is less than the fourth instruction interval.
2. The elevator control method according to claim 1, characterized by The acquiring of the preset polling sequence of query call instructions for the total number of floors based on the total number of floors comprises: determining the query call instructions corresponding to the total number of floors; wherein the elevator door of each floor in the total number of floors is provided with a query address of the corresponding query call instruction; arranging the query addresses corresponding to the elevator doors in the order of low floors to high floors to obtain the preset polling sequence.
3. The elevator control method according to claim 1, characterized by, The method further comprises: determining a first continuous call time period before the arrival at the front floor based on the baud rate of the transmission of call instructions and the data length corresponding to the transmission of call instructions; when the query call instructions for the front floor are executed based on the target polling sequence until the running time period of the elevator running to the front floor meets the first continuous call time period and it is confirmed that there is no call instruction for the front floor, the query call instructions corresponding to the front floor are executed multiple times in the first continuous call time period.
4. The elevator control method according to claim 1, characterized by, The elevator is provided with one elevator front door and one elevator rear door at each floor; The inserting of the plurality of query call instructions for the front floor in the preset polling sequence based on the total number of floors to obtain the target polling sequence comprises: If the total number of floors is less than or equal to a fourth preset threshold, the polling sequence is set as follows: the query call instruction for the front door of the elevator in the front floor and the query call instruction for the back door of the elevator in the front floor are cyclically inserted based on a fifth instruction interval. If the total number of floors is greater than the fourth preset threshold and less than a fifth preset threshold, the polling sequence is set as follows: the query call instruction for the front door of the elevator in the front floor and the query call instruction for the back door of the elevator in the front floor are cyclically inserted based on a sixth instruction interval; wherein the fifth instruction interval is less than the sixth instruction interval.
5. The elevator control method according to claim 4, characterized by The method further comprises: determining a second continuous call time based on the baud rate of the transmission call instruction and the data length corresponding to the transmission call instruction; when the query call instruction for the front floor is executed based on the target polling sequence, if the running time of the elevator to the front floor meets the second continuous call time and it is confirmed that there is no call instruction in the front floor, the query call instruction for the front door of the elevator in the front floor and the query call instruction for the back door of the elevator in the front floor are cyclically executed in the second continuous call time.
6. The elevator control method according to claim 1, characterized by, The execution of the query call instruction for the front floor based on the target polling sequence to determine whether there is a call instruction in the front floor comprises: if the front floor meets the elevator stopping condition, the query call instructions are executed in sequence according to the target polling sequence until the query call instruction corresponding to the front floor is executed to determine whether there is a call instruction in the front floor; if the front floor does not meet the elevator stopping condition, the query address of the query call instruction corresponding to the front floor in the target polling sequence is set as a preset skip address.
7. An elevator control device, characterized by It comprises: a first acquisition unit configured to acquire the current floor reached by the elevator and the total number of floors to be run by the elevator during the forward movement of the elevator; a second acquisition unit configured to acquire a preset polling sequence of the query call instruction for the total number of floors based on the total number of floors; an insertion unit configured to insert a plurality of query call instructions for the front floor in the preset polling sequence based on the total number of floors to obtain a target polling sequence; wherein the front floor is the next floor of the current floor in the forward movement direction of the elevator; an execution unit configured to execute the query call instruction for the front floor based on the target polling sequence before the elevator reaches the front floor to determine whether there is a call instruction in the front floor. The elevator is provided with an elevator door at each floor; the insertion unit is specifically used for sequentially inserting the query call instruction corresponding to the front floor in the preset polling sequence based on a first instruction interval if the total number of floors is less than or equal to a first preset threshold; sequentially inserting the query call instruction corresponding to the front floor in the preset polling sequence based on a second instruction interval if the total number of floors is greater than the first preset threshold and less than or equal to a second preset threshold; sequentially inserting the query call instruction corresponding to the front floor in the preset polling sequence based on a third instruction interval if the total number of floors is greater than the second preset threshold and less than or equal to a third preset threshold; and sequentially inserting the query call instruction corresponding to the front floor in the preset polling sequence based on a fourth instruction interval if the total number of floors is greater than the third preset threshold; wherein the first instruction interval is less than the second instruction interval, the second instruction interval is less than the third instruction interval, and the third instruction interval is less than the fourth instruction interval.
8. An elevator control device, characterized by Comprise: A central processing unit, a memory, an input and output interface, a wired or wireless network interface, and a power supply; The memory is a transitory storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory, execute instruction operations in the memory on a control plane function entity, and perform the method of any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium includes instructions that, when executed on a computer, cause the computer to perform the method of any one of claims 1-6.
Citation Information
Patent Citations
Elevator communication method based on RS485
CN115924658A