CN117945099A - Method and device for controlling device access line state, computer device and storage medium - Google Patents

Method and device for controlling device access line state, computer device and storage medium Download PDF

Info

Publication number
CN117945099A
CN117945099A CN202410104092.1A CN202410104092A CN117945099A CN 117945099 A CN117945099 A CN 117945099A CN 202410104092 A CN202410104092 A CN 202410104092A CN 117945099 A CN117945099 A CN 117945099A
Authority
CN
China
Prior art keywords
incoming
outgoing line
equipment
updated
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410104092.1A
Other languages
Chinese (zh)
Inventor
孙琍
王唯
胡新明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Topband Co Ltd
Original Assignee
Shenzhen Topband Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Topband Co Ltd filed Critical Shenzhen Topband Co Ltd
Priority to CN202410104092.1A priority Critical patent/CN117945099A/en
Publication of CN117945099A publication Critical patent/CN117945099A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Electric Motors In General (AREA)

Abstract

The present application relates to a device entry and exit line state control method, apparatus, computer device, storage medium, and computer program product. The method comprises the following steps: in the process of equipment wire inlet and outlet, the counting times of the motor operation of the equipment are updated, and updated counting times are obtained; and when the updated count times reach the target jump times corresponding to the target incoming and outgoing line length in the incoming and outgoing line process, controlling the incoming and outgoing line state of the updating equipment. By adopting the method, the in-out line state control efficiency of the equipment can be improved.

Description

Method and device for controlling device access line state, computer device and storage medium
Technical Field
The present application relates to the field of automatic control technology, and in particular, to a method, an apparatus, a computer device, a storage medium, and a computer program product for controlling a device in and out line.
Background
With the development of science and technology, the service life of equipment is longer and longer. However, if the protection of the device is not emphasized, the service life of the device will be short, for example, a device with a wire inlet and outlet function is taken as an example, and if the device is not added with a protection function for preventing the wire from being over-outlet and over-winding, the device will damage the wire coil when the device is in misoperation and over-outlet and over-winding.
At present, the protection function of preventing the wire from being passed out and the wire from being passed in is mainly realized by adding a structure for controlling the wire passing in and out of the device, and a threading machine is taken as an example, and a photoelectric switch or a Hall sensor and the like can be added to identify two ends of the wire head. Specifically, in the case of adding hall sensors, special positions are required to be designed on the structure to place the hall sensors, for example, a sensor is arranged between a base end and a driving wire coil, a signal source is arranged on the driving wire coil, and special treatment is required to be performed at two ends of a wire head, so that the in-out state of the equipment is controlled through the combined action of the hall sensors and the signal source. However, the existing in-out state control method of the device cannot efficiently control the in-out process of the device, and therefore, an efficient in-out state control method of the device is needed.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an efficient device ingress and egress line control method, apparatus, computer device, computer readable storage medium, and computer program product.
In a first aspect, the present application provides a method for controlling a device incoming and outgoing line state, including:
In the process of the equipment incoming and outgoing lines, the counting times of the motor operation of the equipment are updated, and updated counting times are obtained;
And when the updated count times reach the target jump times corresponding to the target incoming and outgoing line length in the incoming and outgoing line process, controlling and updating the incoming and outgoing line state of the equipment.
In some embodiments, the target hop count includes a first hop count corresponding to a target incoming line length of the device, and a second hop count corresponding to a target outgoing line length.
In some embodiments, the updating the counted number of times of the motor operation of the device during the incoming and outgoing line process of the device to obtain the updated counted number of times includes:
in the process of the equipment wire inlet, the counting times of the motor operation of the equipment are decremented to obtain updated counting times;
and in the outgoing line process of the equipment, the counting times of the motor operation of the equipment are increased, and updated counting times are obtained.
In some embodiments, when the updated count number reaches a target transition number corresponding to a target incoming and outgoing line length of the incoming and outgoing line process, controlling to update an incoming and outgoing line state of the device, further including:
In the device incoming line process, when the updated count number reaches the first jump number, controlling the device to stop incoming line;
and in the outgoing line process of the equipment, when the updated count number reaches the second jump number, controlling the equipment to stop outgoing line.
In some embodiments, when the updated count number reaches a target transition number corresponding to a target incoming and outgoing line length of the incoming and outgoing line process, controlling to update an incoming and outgoing line state of the device, further including:
And when the updated count times reach the target jump times corresponding to the target incoming and outgoing line length in the incoming and outgoing line process, controlling the motor to stop running.
In some embodiments, the method further comprises:
Storing the updated count times in a flash memory under the condition that the motor is powered off;
And under the condition that the motor resumes rotation, reading the updated count times stored in the flash memory, and updating the stored updated count times.
In a second aspect, the present application further provides a device incoming and outgoing line state control device, including:
the counting module is used for updating the counting times of the motor operation of the equipment in the process of the equipment wire inlet and outlet to obtain updated counting times;
And the control module is used for controlling and updating the incoming and outgoing line state of the equipment when the updated count times reach the target jump times corresponding to the target incoming and outgoing line length in the incoming and outgoing line process.
In a third aspect, the present application also provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
In the process of the equipment incoming and outgoing lines, the counting times of the motor operation of the equipment are updated, and updated counting times are obtained;
And when the updated count times reach the target jump times corresponding to the target incoming and outgoing line length in the incoming and outgoing line process, controlling and updating the incoming and outgoing line state of the equipment.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
In the process of the equipment incoming and outgoing lines, the counting times of the motor operation of the equipment are updated, and updated counting times are obtained;
And when the updated count times reach the target jump times corresponding to the target incoming and outgoing line length in the incoming and outgoing line process, controlling and updating the incoming and outgoing line state of the equipment.
In a fifth aspect, the application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
In the process of the equipment incoming and outgoing lines, the counting times of the motor operation of the equipment are updated, and updated counting times are obtained;
And when the updated count times reach the target jump times corresponding to the target incoming and outgoing line length in the incoming and outgoing line process, controlling and updating the incoming and outgoing line state of the equipment.
The method, the device, the computer equipment, the storage medium and the computer program product for controlling the incoming and outgoing line state of the equipment update the counting times of the motor operation of the equipment in the process of the incoming and outgoing line of the equipment to obtain updated counting times; and when the updated count times reach the target jump times corresponding to the target incoming and outgoing line length in the incoming and outgoing line process, controlling the incoming and outgoing line state of the updating equipment. In the whole process, no additional device is needed, the line in-out state of the equipment can be controlled by judging whether the counting times of the motor of the equipment reach the target jump times or not directly in the line in-out process of the equipment so as to determine whether the line in-out length of the equipment reaches the target line in-out length or not, no additional cost is needed, and the efficiency of controlling the line in-out state of the equipment is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is an application environment diagram of a device incoming and outgoing line state control method in one embodiment;
FIG. 2 is a flow chart of a method for controlling incoming and outgoing line states of a device according to an embodiment;
FIG. 3 is a flowchart of a method for controlling incoming and outgoing line states of a device according to another embodiment;
FIG. 4 is a flow chart of a method for controlling the status of incoming and outgoing lines of a device in a specific application example;
FIG. 5 is a block diagram of a device incoming and outgoing line state control device in one embodiment;
Fig. 6 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The method for controlling the in-out state of the equipment provided by the embodiment of the application can be applied to an application environment shown in figure 1. The device 102 with the wire inlet and outlet functions includes a motor 104. During the in-out process of the device 102, the motor 104 of the device is operated to perform the in-out process. In the embodiment of the present application, during the operation of the motor 104 of the device, the number of counts of the operation of the motor 104 is updated, and the updated number of counts is obtained. And when the updated count number reaches the target jump number corresponding to the target incoming and outgoing line length in the incoming and outgoing line process, controlling the incoming and outgoing line state of the updating device 102. Further, referring to fig. 1, a flash memory 106 may be further provided in the device 102, and the count number is recorded in the flash memory 106, when the count number is updated, the count number recorded in the flash memory 106 may be updated, and the count number recorded in the flash memory 106 may be read to determine whether the updated count number reaches the target hop number corresponding to the target incoming and outgoing line length in the incoming and outgoing line process, further, the count number recorded in the flash memory 106 may be read under the condition of restarting after the power failure, so as to ensure that the count number before the power failure is not lost.
In some embodiments, as shown in fig. 2, a method for controlling the incoming and outgoing line states of a device is provided, and the method is applied to the device 102 in fig. 1 for illustration. Wherein:
and S200, in the process of equipment wire inlet and outlet, updating the counting times of the running of the motor of the equipment to obtain updated counting times.
Wherein the device is a device with a wire feeding and discharging function, such as a threading machine; the motor of the device can be a direct current brushless motor or a permanent magnet synchronous motor.
Specifically, in the wire inlet and outlet process of the device with the wire inlet and outlet function, the number of times of running existing in the motor of the device can be updated, and the updated number of times of counting can be obtained. If the device is in the starting state immediately after power-on, the number of times of the existing operation of the motor of the device is the number of times of the operation of the motor before the last power-off, which is read after the motor is initialized.
Further, in the case where the motor itself has a sensor inside, the counted number of motor operations actually refers to the counted number of motor inside sensors. That is, when the device is in the process of entering and exiting the line, the count times of the sensor inside the motor are updated along with the entering and exiting of the line of the device, and the higher the accuracy of the sensor is, the higher the accuracy of the count times of the motor operation is obtained, and the higher the accuracy of the entering and exiting length of the device is controlled. In practical application, the sensor may be a hall sensor, an encoder or a rotation speed sensor. Furthermore, in other embodiments, no sensor is present within the motor, and a sensorless control algorithm is used to obtain a count of motor operation.
And S400, controlling the incoming and outgoing line state of the updating equipment when the updated count number reaches the target jump number corresponding to the target incoming and outgoing line length in the incoming and outgoing line process.
The target incoming and outgoing line length generally refers to a desired incoming or outgoing line length of the device, and may be preset by a user.
Specifically, the target hopping frequency of the motor operation is the hopping frequency corresponding to the target incoming and outgoing line length of the equipment, and when the counting frequency of the motor operation reaches the target hopping frequency, the equipment in the incoming and outgoing line process also reaches the target incoming and outgoing line length. When the updated count number reaches the target jump number corresponding to the target incoming and outgoing line length in the incoming and outgoing line process, the incoming and outgoing line length is indicated to reach the target incoming and outgoing line length, the equipment does not need to be incoming or outgoing lines any more, and the incoming and outgoing line state of the updating equipment needs to be controlled.
In the method for controlling the incoming and outgoing line state of the equipment, the counting times of the motor operation of the equipment are updated in the process of incoming and outgoing line of the equipment, and the updated counting times are obtained; and when the updated count times reach the target jump times corresponding to the target incoming and outgoing line length in the incoming and outgoing line process, controlling the incoming and outgoing line state of the updating equipment. In the whole process, no additional device is needed, the line in-out state of the equipment can be controlled by judging whether the counting times of the motor of the equipment reach the target jump times or not directly in the line in-out process of the equipment so as to determine whether the line in-out length of the equipment reaches the target line in-out length or not, no additional cost is needed, and the efficiency of controlling the line in-out state of the equipment is improved.
In some embodiments, the target number of hops includes a first number of hops corresponding to a target incoming line length of the device, and a second number of hops corresponding to the target outgoing line length.
Specifically, the target incoming and outgoing line length generally refers to the desired length of the incoming or outgoing line of the device. The required incoming line length can be used as a target incoming line length, and the counting times of motor operation corresponding to the target incoming line length are the first jump times; the required outgoing line length can be used as a target outgoing line length, and the counting times of the motor operation corresponding to the target outgoing line length are the second jump times. In practical application, the minimum value of the first hopping frequency needs to be greater than 0, and when the first hopping frequency and the second hopping frequency are updated, the updated difference value is the length of the practical incoming line or outgoing line of the equipment in the period of time.
In this embodiment, by determining that the target hop count corresponding to the target incoming line length is the first hop count and the target hop count corresponding to the target outgoing line length is the second hop count, the target hop count in the incoming and outgoing line process of the device can be distinguished, so that the situation that the incoming and outgoing line state of the device is updated when the first hop count is reached in the incoming line process of the device or the incoming and outgoing line state of the device is updated when the second hop count is reached in the outgoing line process of the device is avoided.
In some embodiments, as shown in fig. 3, S200 includes:
S220, in the device wire inlet process, the counting times of the motor operation of the device are decremented, and updated counting times are obtained.
Specifically, in the wire feeding process of the device, the paid-out wire is wound on the device, so that the number of times of counting the operation of the motor of the device can be reduced, specifically, when the wire coil on the device is fed one turn, the motor which synchronously operates with the wire coil of the device is rotated one turn towards the direction corresponding to the wire feeding, and at the moment, the number of times of counting the sensor in the motor is reduced by 1 to represent that the paid-out wire is recovered one turn. For example, assuming that the number of counts of the sensor in the motor is 3, when the wire coil on the device is wound in one turn, the number of counts of the motor operation of the device is reduced by 1, and the number of counts after the update of the sensor in the motor is 2. In addition, in some cases, the decrease of the count number by 1 does not necessarily indicate that the line which has been paid out has recovered one turn, but may also indicate that the line which has been paid out has recovered half a turn or other turns, and specifically may be customized according to the type of sensor used, and in the case of using a non-inductive algorithm, the meaning of the count number indication may also be determined by the type of non-inductive algorithm used.
S240, in the outgoing line process of the equipment, the counting times of the motor operation of the equipment are increased, and updated counting times are obtained.
Specifically, in the wire outlet process of the device, the length of the wire discharged from the device is increased, so that the number of times of counting the motor operation of the device is increased, specifically, when the wire coil on the device is wound with one coil, the motor which synchronously operates with the wire coil of the device is rotated for one coil in the direction corresponding to the wire coil, and at the moment, the number of times of counting the sensors in the motor is increased by 1 to represent that one coil of wire is additionally discharged. For example, assuming that the number of counts of the sensor in the motor is 3, when the wire coil on the device is wound by one coil, the number of counts of the motor operation of the device is increased by 1, and the number of counts after the update of the sensor in the motor is 4.
In this embodiment, the number of times of counting the motor operation of the device is decremented in the incoming line process of the device, and the number of times of counting the motor operation of the device is incremented in the outgoing line process of the device, so that whether the updated number of times of counting reaches the target jump number of times or not can be accurately determined, and the incoming line state and the outgoing line state of the updated device can be accurately controlled. Further, in the prior art, the motor drives the wire coil to rotate, a signal for rotating the wire coil is sent to the sensor through the signal source, and the sensor sends a received signal to the main board, so that the number of rotation stroke turns are obtained.
In other embodiments, the number of counts of motor operation of the device is incremented during the device incoming line to obtain updated number of counts; and in the outgoing line process of the equipment, the counting times of the motor operation of the equipment are decremented to obtain updated counting times. That is, the increase and decrease of the number of motor operations are opposite in the equipment wire inlet process and the equipment wire outlet process, and if the number of motor operations is increased in the equipment wire inlet process, the number of motor operations is decreased in the equipment wire outlet process; if the number of times of motor operation is decreased in the equipment wire-feeding process, the number of times of motor operation is increased in the equipment wire-feeding process. In some embodiments, when the updated count number reaches a target hop number corresponding to a target incoming and outgoing line length in the incoming and outgoing line process, controlling an incoming and outgoing line state of the updating device further includes:
in the device incoming line process, when the updated count number reaches the first jump number, controlling the device to stop incoming line; and in the outgoing line process of the equipment, when the updated count number reaches the second jump number, controlling the equipment to stop outgoing line.
Specifically, in the wire-feeding process of the device, when the counted number of times of the operation of the motor of the existing device is the first jump number of times, the fact that the target wire-feeding length is reached is indicated, wire feeding is not needed, the counted number of times is not needed to be decremented, and therefore when the counted number of times of the operation of the motor of the existing device is the first jump number of times, the counted number of times is considered to reach the target jump number of times, the wire-feeding state of the updated device is directly controlled, namely the device is controlled to stop wire feeding. And if the counting times of the motor operation of the existing equipment are not the first hopping times, the counting times are decremented, and when the counting times are decremented to the first hopping times, the incoming line state of the equipment is controlled to be updated. The incoming line state characterization device of the control updating device does not need to continue incoming line.
In the wire outlet process of the equipment, when the counting number of the running motor of the existing equipment is the second hopping number, the fact that the target wire outlet length is reached is indicated, wire outlet is not needed, the counting number of the running motor of the existing equipment is not needed to be increased any more, therefore, when the counting number of the running motor of the existing equipment is the second hopping number, the counting number of the running motor of the existing equipment is considered to reach the target hopping number, the wire outlet state of the updating equipment is directly controlled, and the equipment is controlled to stop wire outlet. If the counting times of the motor operation of the existing equipment are not the second hopping times, the counting times are increased, and when the counting times are increased to the second hopping times, the outgoing line state of the updating equipment is controlled. The outgoing line state characterization device of the control updating device does not need to continue outgoing line.
In this embodiment, whether the incoming line state of the device needs to be judged is accurately controlled by judging whether the updated count number reaches the first jump number or the second jump number. When the updated count number reaches the first jump number, the incoming line state of the updating equipment is controlled, and the phenomenon that the wire end enters the equipment to be damaged when the equipment is excessively fed is avoided. And when the updated count number reaches the second jump number, controlling the outgoing line state of the updating equipment, and avoiding that the wire ends are torn off when the equipment is excessively outgoing.
In some embodiments, when the updated count number reaches a target hop number corresponding to a target incoming and outgoing line length in the incoming and outgoing line process, controlling an incoming and outgoing line state of the updating device further includes:
and when the updated count times reach the target jump times corresponding to the target wire inlet and outlet length in the wire inlet and outlet process, controlling the motor to stop running.
Specifically, when the updated count number reaches the target jump number corresponding to the target incoming and outgoing line length in the incoming and outgoing line process, the incoming and outgoing line state of the equipment is controlled. The control of the in-out state of the device essentially means that the control device stops the in-out process so that the device is not in the in-out state. If the equipment is not in the incoming and outgoing line state, the motor can be controlled to stop running, and then the equipment is controlled to stop incoming and outgoing lines.
That is, when the updated count number reaches the first jump number corresponding to the target incoming line length in the incoming line process, the motor is controlled to stop running; under the condition that the motor stops rotating, the control equipment stops the wire inlet process. When the updated count times reach the second jump times corresponding to the target outlet length in the outlet process, controlling the motor to stop running; in the case where the motor stops rotating, the apparatus stops the wire outlet process.
In this embodiment, when the updated count number reaches the first jump number or the second jump number, the motor is controlled to stop running, so as to efficiently control the equipment to stop the wire feeding and discharging process.
In some embodiments, the device ingress and egress line control method further comprises:
under the condition that the motor is powered off, storing the updated count times in a flash memory; under the condition that the motor resumes rotation, the updated count times stored in the flash memory are read, and the stored updated count times are updated.
The FLASH memory is a FLASH memory, has the electronic erasable and editable performance, can not lose data after power failure, and can rapidly read data.
Specifically, in the case of power-off of the motor, the updated count number is stored in FLASH, the updated count number being the count number updated last before the power-off. After the motor is electrified again, the counting times stored in the FLASH before can be read, and the counting times of the motor operation of the equipment are updated in the process of entering and exiting the line of the equipment repeatedly, so that updated counting times are obtained; and controlling the line in and out of the updating equipment until the power is cut off again when the updated count number reaches the target jump number corresponding to the target line in and out length in the line in and out process.
In the embodiment of the application, the updated count times are stored in the flash memory when the motor is powered off, so that after power is recovered, the line entering and exiting process before the power off can be recovered by combining the count times stored in the flash memory, and the memory function is realized.
Further, when the updated count number is stored in the FLASH, the updated count number may be stored in hexadecimal form in the FLASH. In other embodiments, the storage of the count number may be implemented in other ways as well.
In this embodiment, the updated count number is stored in the flash memory under the condition that the motor is powered off, so that the updated count number stored in the flash memory can be read under the condition that the motor resumes rotation, so that the count number is consistent with the actual wire in-out length of the device, and the wire in-out state of the updating device is accurately controlled.
In some embodiments, for the inductive motor, a hall sensor of the motor is adopted to obtain the counting times of the motor work, so as to estimate the rotation number of the wire coil on the equipment. For the non-inductive motor, a non-inductive control algorithm in a motor control system, such as a method of detecting zero crossing points by using back electromotive force, a flux linkage observer method and the like, can be adopted to obtain the rotor position or the rotation speed so as to estimate the counting times of motor operation on the equipment. The method of detecting the back electromotive force zero crossing point or the flux linkage observer method in the non-inductive control belongs to a general control algorithm in motor control, and will not be described in detail here.
In some embodiments, as shown in fig. 4, taking a threading machine as an example, a wire coil of the threading machine and a motor of the threading machine rotate synchronously, a sensor is arranged in the motor, and at this time, the threading machine in-out state control method includes:
1. Initializing, namely reading DATA stored in the flash memory before the last power-off as DATA in the current control process, and converting the DATA into count times CNT; for example, when the stored DATA data=0 xFFFF, the count cnt=1, and then 2 or 3 turns; when the stored DATA is not 0xFFFF, the count CNT is made to be the count corresponding to DATA, and then 4 or 5 is turned.
2. When the count number cnt=1, in the wire coiling process, the motor is driven to synchronously rotate towards the wire coiling direction, the device is in a wire coiling state, the count number CNT of a sensor in the motor is increased along with the motor and synchronously updated into the flash memory, whether the count number CNT reaches the target jump number Nmax of the target wire coiling length or not is judged, if the count number CNT does not reach the target jump number Nmax, wire coiling can be continued, if the count number CNT does not reach the target jump number Nmax, the motor is controlled to stop running, and at the moment, the wire coiling is stopped.
3. When the count number CNT=1, if the wire coil is in the wire inlet process, the wire coil does not need to be fed at the moment, and the motor is controlled to stop running.
4. When the count number cnt=the count number corresponding to the DATA, in the wire feeding process of the wire disc, the motor is driven to synchronously rotate towards the wire feeding direction, the device is in a wire feeding state, the count number CNT of a sensor inside the motor is decreased along with the motor and synchronously updated into the flash memory, whether the count number CNT reaches the target jump number 1 of the target wire feeding length or not is judged, if the count number CNT does not reach the target jump number 1, the wire feeding can be continued, if the count number CNT reaches the target jump number 1, the motor is controlled to stop running, and at the moment, the wire disc also stops feeding.
5. When the count number cnt=the count number corresponding to the DATA, the motor is driven to synchronously rotate towards the outgoing line direction in the outgoing line process of the wire coil, the device is in an outgoing line state, the count number CNT of a sensor in the motor is increased along with the increment of the motor and synchronously updated into the flash memory, whether the count number CNT reaches the target jump number Nmax of the target outgoing line length is judged, if the count number CNT does not reach the target jump number Nmax, the wire coil can continue to be outgoing, if the count number CNT reaches the Nmax, the motor is controlled to stop running, and at the moment, the wire coil also stops outgoing line.
The above-mentioned synchronous updating is to the latest jump number in FLASH, do not erase when the motor is cut off, for the follow-up reading.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a device incoming and outgoing line state control device for realizing the above-mentioned device incoming and outgoing line state control method. The implementation scheme of the device for solving the problem is similar to that described in the method, so the specific limitation in the embodiment of the device ingress and egress state control device for one or more devices provided below may refer to the limitation in the device ingress and egress state control method described above, and will not be repeated here.
In some embodiments, as shown in fig. 5, there is provided a device incoming and outgoing line state control apparatus, including: a counting module 200 and a control module 400, wherein:
the counting module 200 is used for updating the counting times of the motor operation of the equipment in the process of the equipment wire inlet and outlet to obtain updated counting times;
And the control module 400 is used for controlling the incoming and outgoing line state of the updating equipment when the updated count number reaches the target jump number corresponding to the target incoming and outgoing line length in the incoming and outgoing line process.
In some embodiments, the target number of hops includes a first number of hops corresponding to a target incoming line length of the device, and a second number of hops corresponding to the target outgoing line length.
In some embodiments, the counting module 200 is further configured to decrement the number of counts of the motor operation of the device during the device incoming line process, to obtain an updated number of counts; and in the outgoing line process of the equipment, the counting times of the motor operation of the equipment are increased, and updated counting times are obtained.
In some embodiments, the control module 400 is further configured to control the device to stop incoming line when the updated counted number reaches the first hop number during incoming line of the device; and in the outgoing line process of the equipment, when the updated count number reaches the second jump number, controlling the equipment to stop outgoing line.
In some embodiments, the control module 400 is further configured to control the motor to stop operating when the updated counted number of times reaches a target number of hops corresponding to a target incoming and outgoing line length in the incoming and outgoing line process.
In some embodiments, the system further comprises a storage module, wherein the storage module is used for storing the updated count times in the flash memory under the condition that the motor is powered off; under the condition that the motor resumes rotation, the updated count times stored in the flash memory are read, and the stored updated count times are updated.
All or part of the modules in the device incoming and outgoing line state control device can be realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In some embodiments, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data such as updated count times. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method for controlling device ingress and egress threads.
It will be appreciated by those skilled in the art that the structure shown in FIG. 6 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In some embodiments, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
In the process of equipment wire inlet and outlet, the counting times of the motor operation of the equipment are updated, and updated counting times are obtained;
And when the updated count times reach the target jump times corresponding to the target incoming and outgoing line length in the incoming and outgoing line process, controlling the incoming and outgoing line state of the updating equipment.
In some embodiments, the processor when executing the computer program further performs the steps of: the target hop count comprises a first hop count corresponding to a target incoming line length of the device and a second hop count corresponding to a target outgoing line length.
In some embodiments, the processor when executing the computer program further performs the steps of: in the process of equipment wire inlet, the counting times of the running of a motor of the equipment are decremented to obtain updated counting times; and in the outgoing line process of the equipment, the counting times of the motor operation of the equipment are increased, and updated counting times are obtained.
In some embodiments, the processor when executing the computer program further performs the steps of: in the device incoming line process, when the updated count number reaches the first jump number, controlling the device to stop incoming line; and in the outgoing line process of the equipment, when the updated count number reaches the second jump number, controlling the equipment to stop outgoing line.
In some embodiments, the processor when executing the computer program further performs the steps of: and when the updated count times reach the target jump times corresponding to the target wire inlet and outlet length in the wire inlet and outlet process, controlling the motor to stop running.
In some embodiments, the processor when executing the computer program further performs the steps of: under the condition that the motor is powered off, storing the updated count times in a flash memory; under the condition that the motor resumes rotation, the updated count times stored in the flash memory are read, and the stored updated count times are updated.
In some embodiments, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
In the process of equipment wire inlet and outlet, the counting times of the motor operation of the equipment are updated, and updated counting times are obtained;
And when the updated count times reach the target jump times corresponding to the target incoming and outgoing line length in the incoming and outgoing line process, controlling the incoming and outgoing line state of the updating equipment.
In some embodiments, the computer program when executed by the processor further performs the steps of: the target hop count comprises a first hop count corresponding to a target incoming line length of the device and a second hop count corresponding to a target outgoing line length.
In some embodiments, the computer program when executed by the processor further performs the steps of: in the process of equipment wire inlet, the counting times of the running of a motor of the equipment are decremented to obtain updated counting times; and in the outgoing line process of the equipment, the counting times of the motor operation of the equipment are increased, and updated counting times are obtained.
In some embodiments, the computer program when executed by the processor further performs the steps of: in the device incoming line process, when the updated count number reaches the first jump number, controlling the device to stop incoming line; and in the outgoing line process of the equipment, when the updated count number reaches the second jump number, controlling the equipment to stop outgoing line.
In some embodiments, the computer program when executed by the processor further performs the steps of: and when the updated count times reach the target jump times corresponding to the target wire inlet and outlet length in the wire inlet and outlet process, controlling the motor to stop running.
In some embodiments, the computer program when executed by the processor further performs the steps of: under the condition that the motor is powered off, storing the updated count times in a flash memory; under the condition that the motor resumes rotation, the updated count times stored in the flash memory are read, and the stored updated count times are updated.
In some embodiments, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
In the process of equipment wire inlet and outlet, the counting times of the motor operation of the equipment are updated, and updated counting times are obtained;
And when the updated count times reach the target jump times corresponding to the target incoming and outgoing line length in the incoming and outgoing line process, controlling the incoming and outgoing line state of the updating equipment.
In some embodiments, the computer program when executed by the processor further performs the steps of: the target hop count comprises a first hop count corresponding to a target incoming line length of the device and a second hop count corresponding to a target outgoing line length.
In some embodiments, the computer program when executed by the processor further performs the steps of: in the process of equipment wire inlet, the counting times of the running of a motor of the equipment are decremented to obtain updated counting times; and in the outgoing line process of the equipment, the counting times of the motor operation of the equipment are increased, and updated counting times are obtained.
In some embodiments, the computer program when executed by the processor further performs the steps of: in the device incoming line process, when the updated count number reaches the first jump number, controlling the device to stop incoming line; and in the outgoing line process of the equipment, when the updated count number reaches the second jump number, controlling the equipment to stop outgoing line.
In some embodiments, the computer program when executed by the processor further performs the steps of: and when the updated count times reach the target jump times corresponding to the target wire inlet and outlet length in the wire inlet and outlet process, controlling the motor to stop running.
In some embodiments, the computer program when executed by the processor further performs the steps of: under the condition that the motor is powered off, storing the updated count times in a flash memory; under the condition that the motor resumes rotation, the updated count times stored in the flash memory are read, and the stored updated count times are updated.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A method for controlling in-out line status of a device, the method comprising:
In the process of the equipment incoming and outgoing lines, the counting times of the motor operation of the equipment are updated, and updated counting times are obtained;
And when the updated count times reach the target jump times corresponding to the target incoming and outgoing line length in the incoming and outgoing line process, controlling and updating the incoming and outgoing line state of the equipment.
2. The method of claim 1, wherein the target number of hops comprises a first number of hops corresponding to a target incoming line length of the device, and a second number of hops corresponding to a target outgoing line length.
3. The method according to claim 1, wherein updating the counted number of times the motor of the device is operated during the incoming and outgoing line of the device to obtain the updated counted number of times comprises:
in the process of the equipment wire inlet, the counting times of the motor operation of the equipment are decremented to obtain updated counting times;
and in the outgoing line process of the equipment, the counting times of the motor operation of the equipment are increased, and updated counting times are obtained.
4. A method according to claim 2 or 3, wherein when the updated count number reaches a target transition number corresponding to a target incoming and outgoing line length of the incoming and outgoing line process, controlling to update an incoming and outgoing line state of the device, further comprises:
In the device incoming line process, when the updated count number reaches the first jump number, controlling the device to stop incoming line;
and in the outgoing line process of the equipment, when the updated count number reaches the second jump number, controlling the equipment to stop outgoing line.
5. The method of claim 1, wherein when the updated count number reaches a target transition number corresponding to a target incoming and outgoing line length of the incoming and outgoing line process, controlling to update an incoming and outgoing line state of the device further comprises:
And when the updated count times reach the target jump times corresponding to the target incoming and outgoing line length in the incoming and outgoing line process, controlling the motor to stop running.
6. The method according to claim 1, wherein the method further comprises:
Storing the updated count times in a flash memory under the condition that the motor is powered off;
And under the condition that the motor resumes rotation, reading the updated count times stored in the flash memory, and updating the stored updated count times.
7. A device line entry and exit control apparatus, the apparatus comprising:
the counting module is used for updating the counting times of the motor operation of the equipment in the process of the equipment wire inlet and outlet to obtain updated counting times;
And the control module is used for controlling and updating the incoming and outgoing line state of the equipment when the updated count times reach the target jump times corresponding to the target incoming and outgoing line length in the incoming and outgoing line process.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202410104092.1A 2024-01-25 2024-01-25 Method and device for controlling device access line state, computer device and storage medium Pending CN117945099A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410104092.1A CN117945099A (en) 2024-01-25 2024-01-25 Method and device for controlling device access line state, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410104092.1A CN117945099A (en) 2024-01-25 2024-01-25 Method and device for controlling device access line state, computer device and storage medium

Publications (1)

Publication Number Publication Date
CN117945099A true CN117945099A (en) 2024-04-30

Family

ID=90803204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410104092.1A Pending CN117945099A (en) 2024-01-25 2024-01-25 Method and device for controlling device access line state, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN117945099A (en)

Similar Documents

Publication Publication Date Title
US10069451B2 (en) Methods and systems for recording operating information of an electric motor
US7633251B2 (en) Single-sensor based commutation of multi-phase motor
JPS58192484A (en) Speed controlling method for brushless dc motor
CN103595311A (en) Semiconductor device, electrical device and control signal generation method
CN117945099A (en) Method and device for controlling device access line state, computer device and storage medium
CN108768217B (en) Motor control method, motor control apparatus, and storage medium
US20210194331A1 (en) Encoder, motor and controlling method of encoder
CN115312101A (en) Memory chip error writing prevention control method and device and electric equipment
CN111491763B (en) Electric tool, control circuit of electric tool and control method
JP2021037203A (en) Motor system, reel type game machine, control method and program
JPWO2016046940A1 (en) Microcomputer with built-in flash memory, method for writing data to flash memory built into the microcomputer, and program for writing data to flash memory
US11614938B2 (en) Method performed by a microcontroller for managing a NOP instruction and corresponding microcontroller
KR101305562B1 (en) Method of data writing on an eeprom and memory system using thereof
CN116155164B (en) Current control method, device, electronic device and storage medium
CN111157890A (en) DC brushless motor capable of automatically recording abnormal operation and method thereof
CN113507244B (en) Motor control method and device and electronic equipment
US20220416695A1 (en) Method of adaptively controlling brushless dc motor
US20210148788A1 (en) Brushless dc motor with used time estimation and method of estimating used time thereof
KR20200055193A (en) Electronic device and operation method thereof
CN116736109A (en) Recording method and device for motor fault data
CN118112413A (en) Method, system and storage medium for detecting demagnetization rate of permanent magnet motor
CN114761923A (en) Flexible command pointer to microcode operations
CN116961475A (en) DC motor starting control method and device, electrical equipment and storage medium
CN117997212A (en) Control method and device for switch reluctance motor, electronic equipment and storage medium
CN112960501A (en) Elevator operation control method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination