Method, system and terminal capable of editing communication information of injection molding machine equipment
By reading and initializing the configuration information of the EtherCAT device on the injection molding machine, the problem of inability to edit communication information on the user side in the prior art is solved, and flexible addition and efficient configuration of the injection molding machine equipment is realized.
Patent Information
- Application Number
- CN202510249059.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-04
- Publication Date
- 2025-07-01
AI Technical Summary
When the existing injection molding machine is connected to the EtherCAT device, it cannot edit communication information on the user side. It needs to wait for the developer to update the host program, which is poor timeliness.
By obtaining the trigger information of the interface, reading the configuration information, and initializing the EtherCAT device based on the configuration information, automatically performing functional configuration, allowing users to increase or decrease the EtherCAT device at will.
You can add and reduce EtherCAT equipment at will without waiting for the developer program to improve the convenience and timeliness of the injection molding machine.
Smart Images

Figure CN120238436A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of injection molding machines, and in particular to a method, a system and a terminal for editing communication information of injection molding machine equipment. Background Art
[0002] EtherCAT (Ethernet Control Automation Technology) is a real-time industrial communication protocol based on Ethernet, which is widely used in industrial automation, robot control, motion control and other fields.
[0003] In the prior art, an injection molding machine is generally connected to other devices through EtherCAT. When the current injection molding machine needs to connect to an EtherCAT device, the PDO information can be directly uploaded by reading an XML file. However, the uploaded XML information cannot be changed. If some PDO data needs to be changed, the data needs to be modified on the PC side and then re-uploaded to the injection molding machine, and the communication data cannot be operated on the user side.
[0004] When a customer needs to add a new EtherCAT device, it is necessary to wait for the developer to update the host program. When it is necessary to frequently replace EtherCAT devices, the program needs to be updated multiple times, and the timeliness is poor. Summary of the Invention
[0005] In order to improve the convenience of using an injection molding machine and be able to freely add or subtract EtherCAT devices, the present invention provides a method, a system and a terminal for editing communication information of injection molding machine equipment.
[0006] In a first aspect, the present invention provides a method for editing communication information of injection molding machine equipment, adopting the following technical solutions:
[0007] A method for editing communication information of injection molding machine equipment includes:
[0008] Obtaining trigger information of an interface;
[0009] When receiving the trigger information, obtaining configuration information;
[0010] Determining initialization information according to the configuration information;
[0011] Controlling a preset slave device to be initialized and establish a connection with a master station according to the initialization information, and determining function information according to the configuration information;
[0012] Completing function configuration of a preset slave device according to the function information.
[0013] By adopting the above technical solution, as long as an EtherCAT device is physically connected to the injection molding machine, the configuration information can be read through an image, and the EtherCAT device can be initialized according to the configuration information to connect to a new EtherCAT device and automatically perform function configuration without waiting for the developer program to be updated, so that the EtherCAT device can be added or removed at will, improving the convenience of using the injection molding machine.
[0014] Optionally, it further includes a method for obtaining configuration information, and the method for obtaining configuration information includes:
[0015] When a trigger message is received, determine the trigger position according to the trigger message;
[0016] Determine the rotation angle according to the trigger position;
[0017] Control a preset camera device to rotate according to the rotation angle and obtain the device image of the slave device;
[0018] Determine the identification position of the identification preset on the slave device according to the device image;
[0019] Identify the identification based on the identification position to determine the configuration information.
[0020] By adopting the above technical solution, when a new EtherCAT device is connected to the injection molding machine, the angle of the camera is adjusted to obtain the image of the new EtherCAT device, so as to automatically read the configuration information from the appearance of the EtherCAT device, improving the convenience of using the injection molding machine.
[0021] Optionally, the method for obtaining configuration information further includes:
[0022] Determine the corner angle of the identification based on the identification position;
[0023] When the corner angle is lower than a preset distortion threshold, calculate the quotient of the corner angle and the preset distortion threshold and define it as the distortion coefficient;
[0024] Determine the tilt angle of the identification according to the distortion coefficient;
[0025] Determine the capture angle of the camera device according to the tilt angle;
[0026] Control the preset camera device to rotate according to the capture angle and update the device image.
[0027] By adopting the above technical solution, when the orientation of the camera is not perpendicular to the surface of the identification, it is easy to cause the identification in the image captured by the camera to be distorted, and then lead to an error in the configuration information read from the identification. By judging the distortion situation of the identification through the angle value of the corners of the identification, the orientation of the camera is corrected, thereby improving the accuracy of image recognition.
[0028] Optionally, the method for obtaining the configuration information further includes:
[0029] Determine the identification area of the identification based on the identification position;
[0030] When the identification area is lower than a preset recognition threshold, determine the capture stroke according to the identification position and the capture angle;
[0031] Control a preset camera device to move according to the capture stroke to capture the identification to the center of the image, and determine the magnification according to the identification area and the preset recognition threshold;
[0032] Control the preset camera device to zoom in and update the device image according to the magnification.
[0033] By adopting the above technical solution, when the distance between the camera and the identification is far, it is easy to cause the identification area to be too small, resulting in difficulty in reading the configuration information from the identification. By adjusting the position of the camera so that the camera is directly facing the identification, the situation of losing the identification during the image magnification process is reduced, and then the image is magnified to magnify the identification, thereby improving the accuracy of image recognition.
[0034] Optionally, it further includes a bending processing method, and the bending processing method includes:
[0035] Judge whether the identification has a bending situation based on the identification position;
[0036] When the identification has a bending situation, judge whether the identification is separated from the surface of the slave device based on the identification position;
[0037] When the identification is not separated from the surface of the slave device, determine the bending angle based on the identification position;
[0038] When the bending angle is lower than a preset bending threshold, determine the bending point based on the identification position;
[0039] Determine the capture position based on the bending point;
[0040] Control a preset camera device to move according to the capture position, and determine the initial angle according to the device image;
[0041] Control the preset camera device to rotate according to the initial angle, and control the preset camera device to obtain a set of bending images according to the bending angle;
[0042] Determine the capture time and the capture area according to the capture position and the bending angle;
[0043] Extract and splice the capture areas in the set of bending images according to the capture time to form a spliced image, and update the device image according to the spliced image.
[0044] By adopting the above technical solution, when the mark is concave, it is likely to cause a change in the angle of the mark surface, which in turn leads to partial distortion of the mark in the image. The camera is controlled to rotate and the mark images at various angles are obtained, and the undistorted parts are extracted from each image in turn to splice the undistorted mark, thereby improving the accuracy of image recognition.
[0045] Optionally, the bending processing method further includes:
[0046] When the bending angle is not lower than a preset bending threshold, the feature points of the mark and their feature point numbers are determined according to the device image;
[0047] Based on the feature point numbers, the capture points corresponding to the feature points are determined;
[0048] According to the feature point numbers, the capture distances between the capture points corresponding to adjacent feature points are determined;
[0049] According to the capture distances, the minimum distance is determined;
[0050] The quotient of the capture distance and the minimum distance is calculated and defined as the distance ratio;
[0051] According to the distance ratio, the moving speeds between the capture points corresponding to adjacent feature points are determined;
[0052] According to the feature point numbers, the preset camera device is controlled to sequentially pass through the capture points at the moving speeds and obtain a set of bending images at the capture points.
[0053] By adopting the above technical solution, when the mark protrudes, it is necessary to change the position of the camera to capture the mark at different angles, and the moving speed of the camera is controlled so that the time intervals for capturing the images of the mark are equal, thereby improving the convenience of image splicing.
[0054] Optionally, the bending processing method further includes:
[0055] When the mark detaches from the surface of the slave device, the convex position is determined based on the mark position;
[0056] According to the mark position and the convex position, the bending direction is determined;
[0057] According to the bending direction, the blowing flat direction is determined;
[0058] According to the blowing flat direction, the preset blowing device is controlled to turn, and the convex height is determined based on the convex position;
[0059] According to the convex height, the blowing flat wind speed is determined;
[0060] According to the blowing flat wind speed, the preset blowing device is controlled to blow air at the bent mark.
[0061] By adopting the above technical solution, when the identification part detaches from the device surface, it is likely to cause the detached part of the identification to curl, thereby making it difficult to read the configuration information from the identification. The blowing device blows air towards the detached part of the identification to unfold the curled identification, thereby improving the accuracy of image recognition.
[0062] Optionally, the calculation method of the flattening wind speed includes:
[0063] V = [(Eθ + ρ 标 hg) / ρ 气 ^(0.5);
[0064] where V is the required flattening wind speed;
[0065] E is the elastic modulus of the identification;
[0066] θ is the curling angle of the identification;
[0067] ρ 标 is the material density of the identification;
[0068] h is the height difference between the blowing device and the identification;
[0069] g is the acceleration due to gravity;
[0070] ρ 气 is the air density.
[0071] In a second aspect, the present application provides a system for editing communication information of an injection molding machine device, adopting the following technical solution:
[0072] A system for editing communication information of an injection molding machine device includes:
[0073] An acquisition module, configured to acquire trigger information, configuration information, device images, and a set of bending images;
[0074] A memory, configured to store the program of any of the above methods for editing communication information of an injection molding machine device;
[0075] A processor, and the program in the memory can be loaded and executed by the processor.
[0076] In a third aspect, the present application provides an intelligent terminal, adopting the following technical solution:
[0077] An intelligent terminal includes a memory and a processor, and a computer program capable of being loaded and executed by the processor is stored on the memory, which is any of the above methods for editing communication information of an injection molding machine device.
[0078] By adopting the above technical solution, as long as an EtherCAT device is physically connected to the injection molding machine, the configuration information can be read through the image, and the EtherCAT device can be initialized according to the configuration information to connect to a new EtherCAT device and automatically perform function configuration without waiting for the developer program to be updated, so that the EtherCAT devices can be added or removed at will, improving the convenience of using the injection molding machine.
[0079] In summary, the present application includes at least one of the following beneficial technical effects:
[0080] 1. As long as an EtherCAT device is physically connected to the injection molding machine, the configuration information can be read through the image, and the EtherCAT device can be initialized according to the configuration information to connect to a new EtherCAT device and automatically perform function configuration without waiting for the developer program to be updated, so that the EtherCAT devices can be added or removed at will, improving the convenience of using the injection molding machine;
[0081] 2. When a new EtherCAT device is connected to the injection molding machine, by adjusting the angle of the camera to obtain an image of the new EtherCAT device, the configuration information can be automatically read from the appearance of the EtherCAT device, improving the convenience of using the injection molding machine;
[0082] 3. When the orientation of the camera is not perpendicular to the surface of the identifier, it is easy to cause distortion of the identifier in the image captured by the camera, and then cause errors in the configuration information read from the identifier. By judging the distortion situation of the identifier through the angle value of the corner of the identifier, the orientation of the camera can be corrected, thereby improving the accuracy of image recognition. Brief Description of the Drawings
[0083] Figure 1 is a flowchart of a method for editing communication information of an injection molding machine device;
[0084] Figure 2 is the flowchart of the method for obtaining configuration information Figure 1 ;
[0085] Figure 3 is the flowchart of the method for obtaining configuration information Figure 2 ;
[0086] Figure 4 is the flowchart of the method for obtaining configuration information Figure 3 ;
[0087] Figure 5 is the flowchart of the bending processing method Figure 1 ;
[0088] Figure 6 is the flowchart of the bending processing method Figure 2 ;
[0089] Figure 7 is the process of the bending treatment method Figure 3 。 Specific implementation manner
[0090] In order to make the objectives, technical solutions and advantages of the present invention more clear and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0091] An embodiment of the present invention discloses a method for editing communication information of an injection molding machine device. This method is used to detect the connection status of EtherCAT devices on the injection molding machine, and when a new EtherCAT device is physically connected to the injection molding machine, read configuration information through image, initialize the EtherCAT device according to the configuration information to connect to the new EtherCAT device, and automatically perform function configuration without waiting for the developer program to be updated, so as to arbitrarily increase or decrease EtherCAT devices and improve the convenience of using the injection molding machine.
[0092] Refer to Figure 1 , a method for editing communication information of an injection molding machine device, including:
[0093] Step 100: Obtain the trigger information of the interface.
[0094] The slave device refers to the newly added EtherCAT device, and the trigger information refers to the signal sent when the slave device is connected to the interface of the injection molding machine. The method for obtaining the trigger information is selected by the staff according to the actual situation and will not be elaborated here.
[0095] Step 101: When receiving the trigger information, obtain the configuration information.
[0096] Receiving the trigger information means that a slave device is physically connected to the injection molding machine. At this time, it is necessary to configure the slave device so that the slave device can be connected to the injection molding machine for data connection and normal operation. The configuration information refers to the information used to configure the slave device so that the slave device can be connected to the injection molding machine. The configuration information includes PDO information and SDO information. The configuration information can generally be directly read from a pre-edited XML file. The method for obtaining the configuration information is selected by the staff according to the actual situation and will not be elaborated here.
[0097] Step 102: Determine the initialization information according to the configuration information.
[0098] The initialization information is the PDO information in the configuration information. The PDO information includes the defaultsize, StartAddress, ControlByte, Enable, etc. of MBoxOut, MBoxIn, Outputs, and Inputs, and also includes the number of PDOs received and fed back by the slave device, as well as the mapping data (INDEX mapping data, SUBINDEX sub-index, BITLEN data length) and data type DataType, etc. The determination method of the initialization information is selected by the staff according to the actual situation and will not be elaborated here.
[0099] Step 103: Control the preset slave device to be initialized and establish a connection with the master station according to the initialization information, and determine the function information according to the configuration information.
[0100] Input the defaultsize, StartAddress, ControlByte, Enable of MBoxOut, MBoxIn, Outputs, and Inputs, and the number of PDOs received and fed back by the newly added EtherCAT device into the internal program of the injection molding machine to complete the initialization of the slave device, which can enable the injection molding machine and the slave device to establish communication, and input the mapping data and data type. These PDOs are internally called by the program to complete the functions of the slave device.
[0101] The function information is the SDO information in the configuration information. The function information includes the communication ID identification (CommuID) of the SDO of the slave device, the data address to be associated, the precision (Precision), the data distribution / reading node, etc. The determination method of the function information is selected by the staff according to the actual situation and will not be elaborated here.
[0102] Step 104: Complete the function configuration of the preset slave device according to the function information.
[0103] As long as a slave device is physically connected to the injection molding machine, then the configuration information can be read through the image, and the slave device can be initialized according to the configuration information to connect to the slave device, and the function configuration can be automatically performed without waiting for the developer program to be updated, so that the slave device can be increased or decreased at will, improving the convenience of using the injection molding machine.
[0104] Refer to Figure 2 , the acquisition method of the configuration information includes:
[0105] Step 200: When receiving the trigger information, determine the trigger position according to the trigger information.
[0106] The trigger position refers to the coordinate information of the interface where the trigger information is received. The determination method of the trigger position is common knowledge in the art and will not be elaborated here.
[0107] Step 201: Determine the rotation angle according to the trigger position.
[0108] The imaging device refers to the device used to obtain pictures of the slave device. The imaging device is selected by the staff according to the actual situation and will not be elaborated here. The rotation angle refers to the angle value that the imaging device needs to rotate towards the trigger position. The method for determining the rotation angle is common knowledge for those skilled in the art and will not be elaborated here.
[0109] Step 202: Control the preset imaging device to rotate according to the rotation angle and obtain the device image of the slave device.
[0110] The device image refers to the picture captured after the imaging device faces the trigger position. The method for obtaining the device image is common knowledge for those skilled in the art and will not be elaborated here.
[0111] Step 203: Determine the identification position of the identifier preset on the slave device according to the device image.
[0112] The identifier refers to the graphic used to record configuration information on the slave device. Generally, a two-dimensional code is used as the identifier. The configuration information corresponding to the slave device is obtained by identifying the two-dimensional code. The identifier is generally pasted on the surface of the slave device with adhesive. The setting method of the identifier is selected by the staff according to the actual situation and will not be elaborated here.
[0113] The identification position refers to the coordinate information of the identifier on the slave device. The identification position can be identified from the device image through image recognition technology. The identification method of the identification position is common knowledge for those skilled in the art and will not be elaborated here.
[0114] Step 204: Identify the identifier based on the identification position to determine the configuration information.
[0115] When a slave device is connected to the injection molding machine, the angle of the camera is adjusted to obtain an image of the slave device, so as to read the identifier on the slave device to obtain the configuration information, and then automatically configure the slave device, improving the convenience of using the injection molding machine.
[0116] Refer to Figure 3 , the method for obtaining the configuration information further includes:
[0117] Step 205: Determine the corner angle of the identifier based on the identification position.
[0118] The corner angle refers to the smallest angle value among the corners of the identifier in the device image. The corner angle can be obtained by image recognition technology. The method for determining the corner angle is common knowledge for those skilled in the art and will not be elaborated here.
[0119] Step 206: When the corner angle is lower than the preset distortion threshold, calculate the quotient of the corner angle and the preset distortion threshold, and define it as the distortion coefficient.
[0120] The distortion threshold refers to the minimum corner angle that can be accepted set artificially, which is used to determine whether the logo is distorted due to excessive angle deviation. The distortion threshold is selected by the staff according to the actual situation and will not be elaborated here. When the corner angle is lower than the distortion threshold, it means that the distortion degree of the logo is too large at this time, which is likely to lead to incorrect identification of the logo.
[0121] The distortion coefficient refers to the quotient of the corner angle and the distortion threshold, and the distortion degree of the logo is shown through the distortion coefficient.
[0122] Step 207: Determine the tilt angle of the logo according to the distortion coefficient.
[0123] The tilt angle refers to the actual angle difference between the surface angle of the logo and the orientation of the camera device. The tilt angle can be obtained by querying the tilt angle corresponding table, which is a data table recording the tilt angles corresponding to each distortion coefficient obtained through experiments in advance.
[0124] Step 208: Determine the capture angle of the camera device according to the tilt angle.
[0125] The capture angle refers to the angle value when the orientation of the camera device is perpendicular to the surface of the logo. The method for determining the capture angle is common knowledge in the art and will not be elaborated here.
[0126] Step 209: Control the preset camera device to rotate according to the capture angle and update the device image.
[0127] The logo is generally square, and its four corner angles are equal and 90 degrees. When the orientation of the camera device is not perpendicular to the surface of the logo, it is easy to cause the logo to be distorted. Therefore, by adjusting the angle of the camera device to make it perpendicular to the surface of the logo, the distortion can be effectively reduced and the accuracy of image recognition can be improved.
[0128] Refer to Figure 4 , the method for obtaining the configuration information further includes:
[0129] Step 210: Determine the logo area of the logo based on the logo position.
[0130] The logo area refers to the area value of the logo in the device image. The logo area can be recognized by using image recognition technology. The recognition method of the logo area is common knowledge in the art and will not be elaborated here.
[0131] Step 211: When the logo area is lower than the preset recognition threshold, determine the capture stroke according to the logo position and the capture angle.
[0132] The recognition threshold refers to the minimum area value of the label that can clearly identify the label content through image recognition technology. The recognition threshold is selected by the staff according to the actual situation and will not be elaborated here. When the label area is lower than the recognition threshold, it means that the label is too small at this time and it is difficult to recognize the content of the label. The capture path refers to the route of moving the position of the mobile camera device so that the camera device captures the label to the center of the screen. Generally, a two-dimensional linear guide for adjusting the position is set on the camera device. The determination method of the capture path is common knowledge for those skilled in the art and will not be elaborated here.
[0133] Step 212: Control the preset camera device to move according to the capture path to capture the label to the center of the image, and determine the magnification ratio according to the label area and the preset recognition threshold.
[0134] The magnification ratio refers to the ratio required to magnify the area of the label in the device image to the recognition threshold. The calculation method of the magnification ratio is generally the ratio of the label area to the recognition threshold. The determination method of the magnification ratio is common knowledge for those skilled in the art and will not be elaborated here.
[0135] Step 213: Control the preset camera device to magnify and update the device image according to the magnification ratio.
[0136] When the distance between the camera and the label is far, it is easy to cause the label area to be too small, resulting in difficulty in reading the configuration information from the label. By adjusting the position of the camera so that the camera faces the label directly, the situation of losing the label during the image magnification process can be reduced, and then the image is magnified to magnify the label, thereby improving the accuracy of image recognition.
[0137] Refer to Figure 5 , the bending treatment method includes:
[0138] Step 300: Judge whether the label is bent based on the label position.
[0139] Bending refers to the situation where the angle value of the surface of the label changes. It can be judged whether the label on the slave device is bent through image recognition technology. The judgment method of bending is common knowledge for those skilled in the art and will not be elaborated here.
[0140] Step 301: When the label is bent, judge whether the label is detached from the surface of the slave device based on the label position.
[0141] The situation that the label is bent means that there is a distorted situation in some areas of the label in the device image. Detaching from the surface of the slave device means that the adhesion ability of the label's adhesive decreases, resulting in the surface of the label detaching from the surface of the slave device. It can be judged whether the label is detached from the surface of the slave device through image recognition technology. The judgment method of detachment is common knowledge for those skilled in the art and will not be elaborated here.
[0142] Step 302: When the identifier does not detach from the surface of the slave device, determine the bending angle based on the identifier position.
[0143] The identifier not detaching from the surface of the slave device means that the reason for the identifier to bend is that the surface of the slave device bends. The bending angle refers to the angular value of the bending of the identifier surface. The bending angle can be obtained by image recognition technology. The recognition method of the bending angle is common knowledge for those skilled in the art and will not be elaborated here.
[0144] Step 303: When the bending angle is lower than the preset bending threshold, determine the bending point based on the identifier position.
[0145] The bending threshold is the angular value used to judge the bending direction of the identifier. Generally, 180 degrees is used as the bending threshold. When the bending angle is lower than the bending threshold, it means the identifier is concave. When the bending angle is higher than the bending threshold, it means the identifier is convex. When the bending angle is equal to the bending threshold, it means there is no bending of the identifier.
[0146] The bending point is the position information where the identifier bends. When the identifier bends along a crease, the midpoint of the crease is used as the bending point. The bending point can be obtained by image recognition technology. The recognition method of the bending point is common knowledge for those skilled in the art and will not be elaborated here.
[0147] Step 304: Determine the capture position based on the bending point.
[0148] The capture position is the position point where the angular bisector of the identifier passing through the bending point intersects with the two-dimensional linear guide rail matching the camera device. The determination method of the capture position is common knowledge for those skilled in the art and will not be elaborated here.
[0149] Step 305: Control the preset camera device to move according to the capture position, and determine the initial angle based on the device image.
[0150] When the identifier bends, there are two sides with different angles bounded by the bending point. The initial angle is the angular value of any one side of the identifier. The initial angle can be obtained by image recognition technology. The recognition method of the initial angle is common knowledge for those skilled in the art and will not be elaborated here.
[0151] Step 306: Control the preset camera device to rotate according to the initial angle, and control the preset camera device to obtain a set of bending images according to the bending angle.
[0152] Control the camera device to first face one side of the identifier, then rotate at a uniform speed according to the bending angle and obtain images at a fixed period to form a set of bending images. The appearance of the identifier at different angles is shown through the set of bending images. The acquisition method of the set of bending images is selected by the staff according to the actual situation and will not be elaborated here.
[0153] Step 307: Determine the capture time and capture area according to the capture position and bending angle.
[0154] There are undistorted parts in the markings at different angles. The capture time refers to the time point when the image is captured in the set of bent images, and the capture area refers to the range where the marking is not distorted in the image captured at the capture time in the set of bent images. The methods for determining the capture time and capture area are common knowledge to those skilled in the art and will not be elaborated here.
[0155] Step 308: Extract and splice the capture areas in the set of bent images according to the capture time to form a spliced image, and update the device image according to the spliced image.
[0156] Extract the undistorted part markings at different angles, and then splice multiple parts of the markings to obtain a complete undistorted marking, thereby reducing the situation where the marking is distorted due to bending and improving the accuracy of marking recognition.
[0157] Refer to Figure 6 , the bending processing method further includes:
[0158] Step 309: When the bending angle is not lower than the preset bending threshold, determine the feature points of the marking and their feature point numbers according to the device image.
[0159] The feature point refers to the position information used to show the bending situation of the marking. Generally, the bending point and the midpoint of the two sides bounded by the bending point are used as feature points. When the angle change speed at the bending part is inconsistent, feature points can be added as needed to improve the display degree of the marking bending situation. Image recognition technology can be used to identify the feature points. The method for identifying the feature points is common knowledge to those skilled in the art and will not be elaborated here.
[0160] The feature point number refers to the number artificially set to distinguish feature points. Each feature point number corresponds to a feature point one by one. The method for setting the feature point numbers is selected by the staff according to the actual situation and will not be elaborated here.
[0161] Step 310: Determine the capture points corresponding to the feature points based on the feature point numbers.
[0162] The capture point refers to the position point where the perpendicular line of the marking passing through the feature point intersects with the two-dimensional linear guide rail supporting the camera device. The method for determining the capture points is common knowledge to those skilled in the art and will not be elaborated here.
[0163] Step 311: Determine the capture distance between the capture points corresponding to adjacent feature points according to the feature point numbers.
[0164] The capture distance refers to the distance between the capture points corresponding to adjacent feature points. The method for determining the capture distance is common knowledge to those skilled in the art and will not be elaborated here.
[0165] Step 312: Determine the minimum distance according to the capture distance.
[0166] The minimum distance refers to the minimum capture distance value among all capture distances. The method for determining the minimum distance is selected by the staff according to the actual situation and will not be elaborated here.
[0167] Step 313: Calculate the quotient of the capture distance and the minimum distance, and define it as the distance ratio.
[0168] The distance ratio is a value used to show the comparison relationship between the capture distance and the minimum distance.
[0169] Step 314: Determine the moving speed between the capture points corresponding to adjacent feature points according to the distance ratio.
[0170] The moving speed refers to the speed at which the imaging device moves between capture points. By adjusting the moving speed, the time length for the imaging device to move from one capture point to another capture point is made the same. The moving speed can be obtained by querying the moving speed correspondence table, which is a data table recording the distance ratios obtained through experiments in advance and their corresponding moving speeds. The method for determining the moving speed is common knowledge in the art and will not be elaborated here.
[0171] Step 315: Control the preset imaging device to sequentially pass through the capture points according to the moving speed according to the feature point numbers, and obtain a set of bending images at the capture points.
[0172] When the mark protrudes, it is necessary to change the position of the camera to capture the mark at different angles. When the angle change speed of the mark is relatively fast, the feature points are denser and the capture distance corresponding to the feature points is smaller. When the angle change speed of the mark is relatively slow, the opposite is true. By controlling the moving speed of the camera, the time intervals for capturing the images of the mark are made equal, so that the angle change speeds of the marks in the captured set of bending images are similar, thereby improving the convenience of image stitching.
[0173] Refer to Figure 7 , the bending processing method further includes:
[0174] Step 316: When the mark detaches from the surface of the slave device, determine the protrusion position based on the mark position.
[0175] The protrusion position is the position information where the mark detaches from the surface of the slave device. The protrusion position can be obtained by using image recognition technology. The method for determining the protrusion position is common knowledge in the art and will not be elaborated here.
[0176] Step 317: Determine the bending direction according to the mark position and the protrusion position.
[0177] The bending direction refers to the direction of the tendency of the bent part of the identifier to break away from the surface of the slave device. The bending direction is the direction of the identifier position relative to the raised position. The method for determining the bending direction is common knowledge for those skilled in the art and will not be elaborated here.
[0178] Step 318: Determine the flattening direction according to the bending direction.
[0179] The blowing device refers to a device used to blow air on the bent part of the representation to unfold the bent identifier. The blowing device is selected by the staff according to the actual situation and will not be elaborated here. The flattening direction is the direction in which the blowing device blows air on the bent part of the identifier. Generally, the opposite direction of the bending direction is used as the flattening direction. The method for determining the flattening direction is common knowledge for those skilled in the art and will not be elaborated here.
[0180] Step 319: Control the preset blowing device to turn according to the flattening direction and determine the raised height based on the raised position.
[0181] The raised height refers to the height of the bent part of the identifier. When the identifier breaks away from the surface of the slave device, it is prone to curling, resulting in the bent part of the identifier protruding from the surface of the slave device. The raised height can be obtained by image recognition technology. The method for determining the raised height is common knowledge for those skilled in the art and will not be elaborated here.
[0182] Step 320: Determine the flattening wind speed according to the raised height.
[0183] The flattening wind speed refers to the wind speed value required for the blowing device to unfold the identifier. The greater the raised height, the greater the range of the identifier breaking away from the surface of the slave device, and the greater the flattening wind speed required. The calculation method of the flattening wind speed includes: V = [(Eθ + ρ 标 hg) / ρ 气 ^(0.5); where V is the required flattening wind speed; θ is the curling angle of the identifier, θ is positively correlated with the raised height, θ can be calculated from the raised height, and the method for determining θ is common knowledge for those skilled in the art and will not be elaborated here; E is the elastic modulus of the identifier, ρ 标 is the material density of the identifier, h is the height difference between the blowing device and the identifier, g is the acceleration due to gravity, ρ 气 is the air density, E, ρ standard, h, g, and ρ 气 are all obtained by the staff through prior experimental measurements and will not be elaborated here.
[0184] Step 321: Control the preset blowing device to blow air on the bent identifier according to the flattening wind speed.
[0185] When the identification part detaches from the device surface, it is easy to cause the detached part of the identification to curl, which in turn makes it difficult to read the configuration information from the identification. By blowing air on the detached part of the identification through a blowing device, the curled identification can be unfolded, thereby improving the accuracy of image recognition.
[0186] Based on the same inventive concept, an embodiment of the present invention provides a system for editing communication information of an injection molding machine device, including:
[0187] An acquisition module, configured to acquire trigger information, configuration information, device images, and a set of bending images;
[0188] A memory, configured to store a program of any of the above methods for editing communication information of an injection molding machine device;
[0189] A processor, and the program in the memory can be loaded and executed by the processor.
[0190] Based on the same inventive concept, an embodiment of the present invention provides an intelligent terminal, including a memory and a processor, and a computer program capable of being loaded and executed by the processor is stored on the memory, where the computer program is for any of the above methods for editing communication information of an injection molding machine device.
[0191] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working processes of the above-described system, device, and unit can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0192] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions falling within the inventive concept of the present invention belong to the protection scope of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and refinements should also be regarded as within the protection scope of the present invention.
Claims
1. A method for editing communication information of an injection molding machine, characterized in that: include: Get the trigger information of the interface; When trigger information is received, configuration information is obtained; Determine initialization information according to the configuration information; Control the preset slave station device to initialize and establish a connection with the master station according to the initialization information, and determine the function information according to the configuration information; Complete the function configuration of the preset slave device according to the function information.
2. A method for editing communication information of an injection molding machine according to claim 1, characterized in that: It also includes a method for obtaining configuration information, and the method for obtaining configuration information includes: When trigger information is received, a trigger position is determined according to the trigger information; Determine the rotation angle according to the trigger position; Control the preset camera device to rotate according to the rotation angle, and obtain the device image of the slave device; Determine the mark position of the mark preset on the slave device according to the device image; The identifier is identified based on the identifier position to determine configuration information.
3. A method for editing communication information of an injection molding machine according to claim 2, characterized in that: The method for obtaining the configuration information further includes: Determine the corner angle of the mark based on the mark position; When the corner angle is lower than a preset distortion threshold, the quotient of the corner angle and the preset distortion threshold is calculated and defined as a distortion coefficient; Determine the tilt angle of the logo according to the distortion coefficient; determining a capture angle of a camera device according to the tilt angle; Control the preset camera device to rotate and update the device image according to the capture angle.
4. A method for editing communication information of an injection molding machine according to claim 1, characterized in that: The method for obtaining the configuration information further includes: Determining a marking area of the marking based on the marking position; When the marked area is lower than the preset recognition threshold, the capture stroke is determined according to the marked position and the capture angle; Controlling the preset camera device to move according to the capture stroke to capture the logo to the center of the image, and determining the magnification according to the logo area and the preset recognition threshold; The preset camera device is controlled to zoom in and update the device image according to the magnification.
5. A method for editing communication information of an injection molding machine according to claim 4, characterized in that: Also included is a bending processing method, the bending processing method comprising: Determine whether the mark is bent based on the mark position; When the mark is bent, it is determined whether the mark is detached from the surface of the slave device based on the mark position; When the mark does not leave the surface of the slave device, the bending angle is determined based on the mark position; When the bending angle is lower than a preset bending threshold, a bending point is determined based on the marked position; determining a capture position based on the bending point; Control the movement of the preset camera device according to the capture position and determine the initial angle according to the device image; Controlling the preset camera device to rotate according to the initial angle, and controlling the preset camera device to obtain a bending image set according to the bending angle; Determine the capture time and capture area according to the capture position and the bending angle; A capture area in the bent image set is extracted and stitched according to the capture time to form a stitched image, and the device image is updated according to the stitched image.
6. A method for editing communication information of an injection molding machine according to claim 5, characterized in that: The bending processing method also includes: When the bending angle is not less than a preset bending threshold, the marked feature points and their feature point numbers are determined according to the device image; Determine the capture point corresponding to the feature point based on the feature point number; Determine the capture distance between capture points corresponding to adjacent feature points according to the feature point numbers; Determine the minimum distance based on the capture distance; The quotient of the capture distance and the minimum distance is calculated and defined as the distance ratio; Determine the moving speed between capture points corresponding to adjacent feature points according to the distance ratio; According to the characteristic point number, a preset camera device is controlled to pass through the capture points in sequence at a moving speed, and a bending image set is obtained at the capture points.
7. A method for editing communication information of an injection molding machine according to claim 6, characterized in that: The bending processing method also includes: When the mark is off the surface of the slave device, determining the position of the protrusion based on the position of the mark; Determine the bending direction according to the marked position and the raised position; Determine the blowing direction according to the bending direction; Control the preset blowing device to turn according to the blowing direction, and determine the protrusion height based on the protrusion position; Determine the leveling wind speed based on the height of the bulge; According to the blowing wind speed, the preset blowing device is controlled to blow air toward the bent mark.
8. A method for editing communication information of an injection molding machine according to claim 7, characterized in that: The calculation method of the flat wind speed includes: V=[(Eθ+ρ 标 hg) / p 气 ]^(0.5); Where V is the required flat wind speed; E is the elastic modulus of the mark; θ is the curling angle of the logo; ρ 标 This is the density of the material marked; h is the height difference between the blowing device and the mark; g is the acceleration due to gravity; ρ 气 Is the air density.
9. A system capable of editing communication information of injection molding machine equipment, characterized in that: include: An acquisition module, used to acquire trigger information, configuration information, device images and bending image sets; A memory for storing a program of a method for editing communication information of an injection molding machine according to any one of claims 1 to 8; The program in the memory can be loaded and executed by the processor.
10. An intelligent terminal, characterized in that: The invention comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and executes a method for editing communication information of an injection molding machine as claimed in any one of claims 1 to 8.