Cigarette factory equipment material tracking control method
By using the stack length in the cigarette factory equipment to determine the timing of the material signal, and combining the cycle and reset conditions, the automatic tracking and transmission of the equipment's material signal is realized, solving the problem of material signal tracking difficulties caused by the equipment's lack of sensors, and improving production Efficiency and automatic control capabilities.
Patent Information
- Application Number
- CN202411333680.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2024-12-31
AI Technical Summary
The existing cigarette factory equipment material signal tracking and control system cannot automatically track material signals due to the complex production process lines and the equipment lacks material detection sensors, resulting in slow production pace, wasting human resources and energy, and reducing production efficiency.
By judging the length of the equipment material signal stack, combined with For loop and reset conditions, the automatic tracking and processing of the material signals of each level of equipment is realized, ensuring the accurate transmission and update of the material signals, and realizing material tracking of the entire production line.
Save human resources, improve production efficiency, realize automatic control of cigarette factory equipment, and improve production efficiency and accuracy.
Smart Images

Figure CN119225267A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of automatic control methods for cigarette factory equipment, in particular to a material tracking control method for cigarette factory equipment. Background Art
[0002] In the existing control system of the cigarette factory's process production, materials run through each production equipment from the beginning to the end of the entire process. The material signal of the equipment plays an extremely important role in controlling the entire production rhythm. In the existing production control, the equipment material signal is generally only tracked by the host device or the device with a material detection sensor. However, since the entire production process line is very complicated and the line is long, many conveying or storage devices are not equipped with material detection sensors, so it is impossible to track the material signals on these devices. The traditional method of judging whether there are still materials on these devices is manual on-site inspection or checking through nearby cameras, but the camera range cannot cover the entire production path. Manual inspection requires a lot of time, which leads to a slow production rhythm, a waste of human resources and energy, and a significant reduction in production efficiency. Advanced automatic control technology cannot be implemented. Summary of the invention
[0003] The technical problem to be solved by the present invention is to propose a material tracking control method for cigarette factory equipment in view of the shortcomings of the prior art. Through each level of equipment processing the material appearance signal of the equipment at this level and the material signal after the equipment at this level outputs the stack, material tracking of the entire production line is finally realized.
[0004] In order to solve the above technical problems, the present invention proposes a cigarette factory equipment material tracking control method, which determines the timing of the appearance of the current level equipment material signal by judging the stack length. The specific method is as follows:
[0005] Step 1, material signal processing: reset the equipment material signal, that is, before the entire program is executed, set the equipment material signal to False. For variables with Bool data type in the PLC program, True: the actual value of the variable is 1, False: the actual value of the variable is 0.
[0006] Step 2, stack length determination:
[0007] When the stack length is ≤0, the stack back material signal is equal to the material signal input, and the equipment material appearance signal is equal to the material signal input, where the material signal input is the stack back material signal output by the upper-level equipment through this control method, that is, if the upstream stack back material signal is True, the current-level equipment material signal appears, and there is material on the current-level equipment; if the upstream stack back material signal is False, no equipment material signal appears on the current-level equipment, and there is no material on the current-level equipment;
[0008] When the stack length is greater than 0,
[0009] (1) One For loop: When the device is running and the pulse / 1 second condition is met, a For loop is executed to assign the value of the previous storage bit (BinaryFIFODB.Data[i-1]) of the pointer bit data area to the current storage bit (BinaryFIFODB.Data[i]), where the current value of the pointer value storage area (BinaryFIFODB.Pointer) is the value of the pointer value storage area (BinaryFIFODB.Pointer) after the control method updates it. If the value of the current storage bit (BinaryFIFODB.Data[i]) of the pointer bit data area is True, that is, the actual value of the variable PLC is monitored to be 1. If it is 1, the output device material presence signal, that is, TobaccoPresence:=True, is output, that is, the material signal of the device at this level appears, and there is material on the device at this level, and the loop is exited; at the same time, the value of the pointer bit data area (BinaryFIFODB.Data[EndPointer]) of the device stack outlet is assigned to the material signal (ValueDelayed) after the device output stack, and this signal is used for the material signal input (InputValue) of the downstream device;
[0010] (2) Second For loop: If there is no equipment material presence signal (TobaccoPresence) at the end of the first For loop, a second loop is performed to determine whether the current storage bit (BinaryFIFODB.Data[i]) is True, that is, to monitor whether the actual value of the variable in the PLC is 1. If it is True, the equipment material presence signal is output, that is, TobaccoPresence: = True, which means that the equipment material signal appears and there is material on the equipment, and the loop is exited. After the second For loop ends, regardless of whether the equipment material signal is generated, the subsequent program will continue to execute, and when the PLC enters the next scan cycle, it will restart from step 1.
[0011] (3) Three For loops: When the reset condition of the device is True, this reset condition is externally triggered, which can be a manual button or generated when certain conditions of the program are met. Three For loops are executed to reset the value of the current storage bit to False, that is, to force the actual value of the PLC bit to be written as 0, and exit the loop. At the same time, the material signal after the stack is reset to False, that is, to force the actual value of the PLC bit to be written as 0; the value of the pointer value storage area (BinaryFIFODB.Pointer) plus the stack length (PulseDelayedNumbe) is assigned to the pointer value storage area (BinaryFIFODB.Pointer) itself to update the current value of the pointer storage area.
[0012] The loop scope of the loop variable in a For loop in step 2 is from the end value of the pointer (EndPointer) to the start value of the pointer (StartPointer) plus 1, and the increment is - 1. The increment is the loop variable of the For loop, the data type is integer, and it belongs to the standard format of the high-level language.
[0013] The starting value of the pointer is the current value of the pointer value storage area (BinaryFIFODB.Pointer), and the ending value of the pointer (EndPointer) is equal to the starting value of the pointer (StartPointer) plus the stack length (PulseDelayedNumbe) minus 1. The stack length is determined by the time required for the material to move from the head of the current level device to the end of the current level device. Since the starting value of the pointer needs to be counted in the stack queue, it is necessary to subtract 1 to get the ending value of the pointer.
[0014] The loop scope of the loop variable in the secondary For loop of step 2 is from the starting value of the pointer (StartPointer) to the ending value of the pointer (EndPointer), and the increment is 1. The increment is the loop variable of the For loop, the data type is integer, and it belongs to the standard format of the high-level language.
[0015] The loop scope of the loop variable in the three For loops of step 2 is from the starting value of the pointer (StartPointer) to the ending value of the pointer (EndPointer), and the increment is 1. The increment is the loop variable of the For loop, the data type is integer, and it belongs to the standard format of the high-level language.
[0016] According to the characteristics of workshop production process equipment, the present invention processes material signals for each device on the production line; by judging the stack length (PulseDelayedNumbe) of the device material signal, the timing of the appearance of the device material signal of this level is judged. When the stack length (PulseDelayedNumbe) is less than or equal to 0, the device material appearance signal (TobaccoPresence) of this level and the stacked material signal (ValueDelayed) output by the device of this level are equal to the material signal input (InputValue), that is, the stacked material signal (ValueDelayed) output by the upper device. If the stack length (PulseDelayedNumbe) is greater than 0, a Fo The loop r assigns the value of the previous storage bit in the pointer bit data area (BinaryFIFODB.Data[i-1]) to the current storage bit (BinaryFIFODB.Data[i]). If the value of the current storage bit in the pointer bit data area (BinaryFIFODB.Data[i]) is True, the device material presence signal is output, that is, TobaccoPresence:=True, and the loop is exited. At the same time, the value of the pointer bit data area at the exit of this device stack (BinaryFIFODB.Data[EndPointer]) is assigned to the material signal after this device output stack (ValueDelayed). This signal is used for the material signal input (InputValue) of the downstream device. If there is no device material presence signal (TobaccoPresence), a secondary loop is performed to determine whether the current storage bit (BinaryFIFODB.Data[i]) is True. If it is True, the device material presence signal is output, that is, TobaccoPresence:=True. By processing the material presence signal (TobaccoPresence) of each level of equipment and the material signal (ValueDelayed) after the output stack of the equipment at this level, material tracking of the entire production line can be finally achieved.
[0017] The method saves human resources and time, greatly improves production efficiency, and realizes automatic control. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a schematic diagram of the process of the present invention;
[0019] Figure 2 This is a schematic diagram of the Input area program interface of the present invention;
[0020] Figure 3 This is a schematic diagram of the Output area program interface of the present invention;
[0021] Figure 4This is a schematic diagram of the Temp area program interface of the present invention;
[0022] Figure 5 This is a schematic diagram of the DB storage area program interface of the present invention. DETAILED DESCRIPTION
[0023] The specific embodiments of the present invention are further described in detail below. The technologies or products not specified in the examples are all existing technologies or conventional products that can be purchased.
[0024] Example 1: Figure 1-5 As shown, the cigarette factory equipment material tracking control method, this method determines the timing of the current level equipment material signal by judging the length of the equipment material signal stack, the specific method is as follows:
[0025] Step 1, material signal processing: reset the equipment material signal, that is, before the entire program is executed, set the equipment material signal to False. For variables with Bool data type in the PLC program, True: the actual value of the variable is 1, False: the actual value of the variable is 0.
[0026] Step 2, stack length judgment: When the stack length is greater than 0, the device is running and the pulse / 1 second condition is met, a For loop is executed to assign the value of the previous storage bit (BinaryFIFODB.Data[i-1]) of the pointer bit data area to the current storage bit (BinaryFIFODB.Data[i]), where the current value of the pointer value storage area (BinaryFIFODB.Pointer) is the value of the pointer value storage area (BinaryFIFODB.Pointer) after the update of this control method. If the value of the current storage bit (BinaryFIFODB.Data[i]) of the pointer bit data area is True, the output device material presence signal is output, that is, TobaccoPresence:=True, that is, the material signal of the device at this level appears, and there is material on the device at this level, and the loop is exited; at the same time, the value of the pointer bit data area (BinaryFIFODB.Data[EndPointer]) of the stack exit of this device is assigned to the material signal (ValueDelayed) after the output stack of this device, and this signal is used for the material signal input (InputValue) of the downstream device.
[0027] The loop scope of the loop variable in a For loop is from the end pointer value (EndPointer) to the start pointer value (StartPointer) plus 1, and the increment is -1.
[0028] The starting value of the pointer is the current value of the pointer value storage area (BinaryFIFODB.Pointer), and the ending value of the pointer (EndPointer) is equal to the starting value of the pointer (StartPointer) plus the stack length (PulseDelayedNumbe) minus 1. The stack length is determined by the time required for the material to move from the head of the current level device to the end of the current level device. Since the starting value of the pointer needs to be counted in the stack queue, it is necessary to subtract 1 to get the ending value of the pointer.
[0029] Example 2: Figure 1-5 As shown, the material tracking control method of the cigarette factory equipment determines the timing of the appearance of the material signal of the equipment at this level by judging the stack length. The specific method is as follows:
[0030] Step 1, material signal processing: reset the equipment material signal, that is, before the entire program is executed, set the equipment material signal to False. For variables with Bool data type in the PLC program, True: the actual value of the variable is 1, False: the actual value of the variable is 0.
[0031] Step 2, stack length judgment: When the stack length is greater than 0, the device is running and the pulse / 1 second condition is met, a For loop is executed to assign the value of the previous storage bit in the pointer bit data area (BinaryFIFODB.Data[i-1]) to the current storage bit (BinaryFIFODB.Data[i]), where the current value of the pointer value storage area (BinaryFIFODB.Pointer) is the value of the pointer value storage area (BinaryFIFODB.Pointer) after the control method updates it. If there is no device material presence signal (TobaccoPresence) at the end of a For loop, a second loop is performed to determine whether the current storage bit (BinaryFIFODB.Data[i]) is True. If it is True, the device material presence signal is output, that is, TobaccoPresence:=True, that is, the device material signal appears, there is material on the device, and the loop is exited.
[0032] The loop scope of the loop variable in a For loop is from the end pointer value (EndPointer) to the start pointer value (StartPointer) plus 1, and the increment is -1.
[0033] The starting value of the pointer is the current value of the pointer value storage area (BinaryFIFODB.Pointer), and the ending value of the pointer (EndPointer) is equal to the starting value of the pointer (StartPointer) plus the stack length (PulseDelayedNumbe) minus 1.
[0034] The loop scope of the loop variable in the second For loop is from the starting pointer value (StartPointer) to the ending pointer value (EndPointer), with an increment of 1.
[0035] Example 3: Figure 1-5 As shown, the material tracking control method of the cigarette factory equipment determines the timing of the appearance of the material signal of the equipment at this level by judging the stack length. The specific method is as follows:
[0036] Step 1, material signal processing: reset the equipment material signal, that is, before the entire program is executed, set the equipment material signal to False. For variables with Bool data type in the PLC program, True: the actual value of the variable is 1, False: the actual value of the variable is 0.
[0037] Step 2, stack length judgment: when the stack length is ≤0, the material signal after the stack is equal to the material signal input, and the equipment material appearance signal is equal to the material signal input, wherein the material signal input is the material signal after the stack output by the upper-level equipment through this control method, that is, if the upstream material signal after the stack is True, then the equipment material signal of this level appears, and there is material on the equipment of this level; if the upstream material signal after the stack is False, then no equipment material signal appears on the equipment of this level, and there is no material on the equipment of this level.
[0038] Example 4: Figure 1-5 As shown, the material tracking control method of the cigarette factory equipment determines the timing of the appearance of the material signal of the equipment at this level by judging the stack length. The specific method is as follows:
[0039] Step 1, material signal processing: reset the equipment material signal, that is, before the entire program is executed, set the equipment material signal to False. For variables with Bool data type in the PLC program, True: the actual value of the variable is 1, False: the actual value of the variable is 0.
[0040] Step 2: When the reset condition of the device is True, this reset condition is externally triggered, which can be a manual button or generated when certain conditions of the program are met. Execute three For loops to reset the value of the current storage bit to False, that is, force the actual value of the PLC bit to be written as 0, and exit the loop. At the same time, reset the material signal after the stack to False, that is, force the actual value of the PLC bit to be written as 0; assign the pointer value storage area (BinaryFIFODB.Pointer) value plus the stack length (PulseDelayedNumbe) to the pointer value storage area (BinaryFIFODB.Pointer) itself to update the current value of the pointer storage area.
[0041] The loop scope of the loop variable in the three For loops is from the starting pointer value (StartPointer) to the ending pointer value (EndPointer), with an increment of 1.
[0042] The technical contents of the present invention are explained above, but the protection scope of the present invention is not limited to the said contents. Within the knowledge scope of ordinary technicians in this field, various changes can be made to the technical contents of the present invention without departing from the purpose of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A cigarette factory equipment material tracking control method, characterized in that: The method determines the timing of the occurrence of the equipment material signal of the current level by determining the stack length of the equipment material signal. The specific method is as follows: Step 1, material signal processing: reset the equipment material occurrence signal. Before the entire program is executed, set the equipment material occurrence signal to False. For variables with Bool data type in the PLC program, True: the actual value of the variable is 1, False: the actual value of the variable is 0; Step 2, stack length determination: When the stack length is ≤0, the material signal after the stack is equal to the material signal input, and the equipment material appearance signal is equal to the material signal input, that is, if the material signal after the upstream stack is True, the equipment material signal of this level will appear, and there is material on the equipment of this level; if the material signal after the upstream stack is False, there is no equipment material signal appearing on the equipment of this level, and there is no material on the equipment of this level; When the stack length is greater than 0, (1) One For loop: When the device is running and the pulse / 1 second condition is met, a For loop is executed to assign the value of the previous storage bit in the pointer bit data area to the current storage bit. If the value of the current storage bit in the pointer bit data area is True, the output device material appears signal, that is, the material signal of the current level device appears, there is material on the current level device, and the loop is exited; at the same time, the value of the pointer bit data area at the exit of the current level device stack is assigned to the material signal after the output stack of the current level device, and this signal is used as the material signal input of the downstream device; (2) Second For loop: If there is no equipment material signal at the end of the first For loop, a second loop is performed to determine whether the current storage bit is True. If it is True, the equipment material signal is output, that is, the equipment material signal appears, there is material on the equipment, and the loop is exited. After the second For loop ends, regardless of whether the equipment material signal is generated, the subsequent program continues to execute, and when the PLC enters the next scan cycle, it starts again from step 1; (3) Three For loops: When the reset condition is True, the device executes three For loops to reset the value of the current storage bit to False, that is, to force the PLC actual value of the bit to be written as 0, and exit the loop. At the same time, the material signal after the stack is reset to False, that is, to force the PLC actual value of the bit to be written as 0; the pointer value storage area value plus the stack length is assigned to the pointer value storage area itself to update the current value of the pointer storage area.
2. The cigarette factory equipment material tracking control method according to claim 1, characterized in that: The loop scope of the loop variable in a For loop of step 2 is from the pointer end value to the pointer start value plus 1, and the increment is -1.
3. The cigarette factory equipment material tracking control method according to claim 2, characterized in that: The pointer start value is the current value of the pointer value storage area, and the pointer end value is equal to the pointer start value plus the stack length minus 1.
4. The cigarette factory equipment material tracking control method according to claim 1, characterized in that: The loop scope of the loop variable in the secondary For loop of step 2 is from the pointer start value to the pointer end value, and the increment is 1.
5. The cigarette factory equipment material tracking control method according to claim 1, characterized in that: The loop scope of the loop variable in the three For loops of step 2 is from the pointer start value to the pointer end value, and the increment is 1.
