Interface connection method for execution device and programmable logic controller, control system and storage medium

By setting a signal input identifier for the pins of the programmable logic controller and determining the pin address and association with the execution action based on the identified signal input, the problem of cumbersome and time-consuming connection is solved, and a faster and more convenient interface connection is achieved.

CN119247869AActive Publication Date: 2025-01-03HANS LASER TECH IND GRP CO LTD +1

Patent Information

Application Number
CN202411360695.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-01-03
Estimated Expiration
2044-09-27

AI Technical Summary

Technical Problem

When the programmable logic controller is connected to the execution device, it is necessary to strictly follow the pins. If the connection errors need to be re-checked and changed, resulting in cumbersome and time-consuming.

Method used

By setting a signal input identifier for each programmable logic controller, the execution device is connected to the signal input when identifying the signal input, and determining the pin address is associated with the execution action based on the identified signal input identifier, and the fast connection is achieved.

Benefits of technology

The interface connection process between the executor and the programmable logic controller is simplified, the convenience and speed of connection are improved, and the time for error checking and changes is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119247869A_ABST
    Figure CN119247869A_ABST
Patent Text Reader

Abstract

The invention provides a method for connecting an execution device with an interface of a programmable logic controller, a control system and a storage medium. The method comprises the following steps: setting a signal input identifier for each pin of the programmable logic controller; respectively connecting an execution device with the pins; causing the execution device to execute an action; and determining a pin corresponding to an input signal generated by the execution action according to the signal input identifier, and associating the pin with the execution action corresponding to the execution device. In other words, by means of the method for connecting the execution device with the interface of the programmable logic controller, connection between the execution device and the interface of the programmable logic controller is more convenient and faster.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of programmable logic controller control technology, and more specifically, to a method for interfacing an execution device with a programmable logic controller, a control system, and a storage medium. Background Art

[0002] Programmable Logic Controller (PLC), hereinafter referred to as PLC, is a digital logic controller used for automated real-time control. It is widely used in the current industrial control field. When the programmable logic controller exchanges information with the actuator, it often uses the signal point of 0 or 1 to indicate the specific physical meaning. For example, when the signal of a certain signal point is 1, it indicates that the actuator is in the closed state, that is, there is a signal input. When the signal of the signal point is 0, it indicates that the actuator is not in the closed state, that is, there is no signal input. A pin on the programmable logic controller generally corresponds to a signal point. The programmable logic controller is generally provided with multiple pins to connect with the actuator to receive the feedback signal of the actuator.

[0003] At present, when a programmable logic control is connected to one or more actuators, it is generally defined first which actuator input signal each pin corresponds to. Therefore, when the programmable logic control and the actuator are wired, the actuator needs to be wired strictly according to each corresponding pin. If the wiring is wrong, it is necessary to re-check and change the line, which is cumbersome and time-consuming. Summary of the invention

[0004] The present application provides a method for interface connection between an execution device and a programmable logic controller, which can facilitate the interface connection between the execution device and the programmable logic controller.

[0005] The technical solution adopted in this application is a method for connecting an execution device to an interface of a programmable logic controller, including the following methods:

[0006] A signal input identifier is set for each pin of the programmable logic controller, and when the pin receives a signal, the signal input identifier can be identified;

[0007] Connecting the execution devices to the pins respectively;

[0008] The execution device executes the action, and the corresponding pin generates an input signal;

[0009] The pin address corresponding to the input signal generated by the execution action is determined according to the identified signal input identifier, and the pin address is associated with the execution action corresponding to the execution device.

[0010] That is to say, in the method of interface connection between the execution device and the programmable logic controller of the present application, a signal input identifier is first set for each pin of the programmable logic controller, and when the pin receives a signal input, the signal input identifier can be identified, and then the execution device is connected to the pin of the programmable logic controller, and then the execution device is controlled to perform an action so that the corresponding pin generates an input signal, and the pin address corresponding to the input signal generated by the execution device when performing the action is determined according to the identified signal input identifier, and finally the pin address is associated with the execution action corresponding to the execution device. When all the execution actions of the execution device are associated with the corresponding pin addresses in the above manner, the interface connection between the execution device and the programmable logic controller can be completed. This method makes the interface connection between the execution device and the programmable logic controller more convenient and quick.

[0011] Optionally, associating the pin address with the execution action corresponding to the execution device further includes:

[0012] Define an IO address for each pin of the programmable logic controller;

[0013] The IO address corresponding to the pin is associated with the execution action corresponding to the execution device.

[0014] Optionally, the input signal of each of the pins includes 0 and 1, and the associating the pin address with the execution action corresponding to the execution device further includes:

[0015] Determine whether the input signal of the pin is 0 or 1;

[0016] After the determination, the input signal of the pin is associated with the execution action corresponding to the execution device.

[0017] Optionally, the determining that the input signal of the pin is 0 or 1 further includes:

[0018] Perform an AND operation on the input signal of the pin and the binary number 1 to determine whether the input signal of the pin is 0 or 1.

[0019] Optionally, the step of performing an AND operation on the input signal of the pin and the binary number 1 further includes:

[0020] Arranging the pins of the programmable logic controller in order;

[0021] Acquire the input signal of each of the pins, and arrange the pin signal of each pin according to the arrangement order of the pins;

[0022] Determine the position of the input signal generated by the execution of the action in the execution device in the input signals of all the pins according to the signal input identifier, and shift the input signal generated by the execution of the action in the execution device to the first position of the input signals of all the pins according to the position;

[0023] The first bit of the input signals of all the pins is ANDed with the binary number 1, and the input signals of the other pins are ANDed with the binary number 0.

[0024] Optionally, the determining, according to the identified signal input identifier, a pin address corresponding to the input signal generated by the execution action, and associating the pin address with the execution action corresponding to the execution device, further includes:

[0025] defining a variable address for each execution action of the execution device;

[0026] Determining the pin address corresponding to the input signal generated by the execution action according to the identified signal input identifier;

[0027] The corresponding pin address is associated with the variable address corresponding to the execution action by indirect addressing.

[0028] Optionally, the associating the corresponding pin address with the variable address corresponding to the execution action by indirect addressing further includes:

[0029] Convert the IO address of the corresponding pin into a decimal indirect address through address conversion;

[0030] The variable address corresponding to the execution action is made to access the indirect address.

[0031] Optionally, the signal input identifier is an indicator light on a display interface for indicating whether each of the pins has a signal input.

[0032] A control system comprises an execution device and a programmable logic controller, wherein the execution device and the programmable logic controller are connected by using the method for interface connection between the execution device and the programmable logic controller as described above.

[0033] A computer-readable storage medium stores instructions, and a data storage device executes the instructions so that the data storage device implements the method of connecting the execution device with the interface of a programmable logic controller. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0035] Figure 1 One of the flowcharts of the method for connecting the execution device and the interface of the programmable logic controller according to the embodiment of the present application;

[0036] Figure 2 The second flowchart of the method for connecting the execution device and the programmable logic controller interface according to the embodiment of the present application;

[0037] Figure 3 The third flowchart of the method for connecting the execution device and the programmable logic controller interface according to the embodiment of the present application;

[0038] Figure 4 The fourth flowchart of the method for connecting the execution device and the programmable logic controller to the interface of the embodiment of the present application;

[0039] Figure 5 This is a fifth flowchart of a method for interfacing an execution device with a programmable logic controller according to an embodiment of the present application. Specific embodiments

[0040] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0041] It should be noted that when a metastructure is referred to as being "fixed to" or "set on" another metastructure, it can be directly on the other metastructure or indirectly on the other metastructure. When a metastructure is referred to as being "connected to" another metastructure, it can be directly connected to the other metastructure or indirectly connected to the other metastructure.

[0042] It should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element structure referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0043] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of some applications, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0044] See also Figure 1 The method for connecting the execution device to the interface of the programmable logic controller provided in the present application comprises the following steps:

[0045] Step S100: setting a signal input identifier for each pin of the programmable logic controller, so that when the pin receives an input signal, the signal input identifier can be identified.

[0046] Specifically, after each pin of the programmable logic control is provided with a signal input identifier, when any pin has a signal input, the signal input identifier can be identified, and the pin of the signal input can be known through the signal input identifier. The identification of the signal input identifier can be through manual judgment or system judgment.

[0047] Step S300: Connect the execution devices to the pins respectively.

[0048] Specifically, the pins on the execution device are respectively connected to the pins of the programmable logic controller. It can be understood that each pin on the execution device is respectively connected to a pin of the programmable logic controller.

[0049] Step S500: the execution device executes an action, and the corresponding pin generates an input signal.

[0050] Specifically, the execution device can be controlled to execute an action. It can be understood that when the execution device executes an action, the execution device will send a signal to the pin connected to the pin through a certain pin, so the corresponding pin on the programmable logic controller can generate an input signal. For example, when the execution device is a fixture, the fixture can be controlled to execute a clamping action and a loosening action respectively. When the fixture executes a clamping action, the fixture can send a signal to the pin connected to the pin through a certain pin. When the fixture executes a loosening action, the fixture can also send a signal to the pin connected to the pin through a certain pin, and each pin connected to the pin can generate a corresponding input signal. When the execution device has multiple execution actions, the execution device can be controlled to execute each action in turn, so that each pin connected to the execution device can generate an input signal respectively.

[0051] Step S700: Determine the pin address corresponding to the input signal generated by the execution action according to the identified signal input identifier, and associate the pin address with the execution action corresponding to the execution device.

[0052] It can be understood that when the execution device performs a certain action, one of the multiple pins of the programmable logic controller can receive the signal generated when the execution device performs the action. Since each pin is respectively provided with a signal input identifier, the signal input identifier corresponding to the pin with signal input can be identified, and then it can be determined through which pin address the signal is transmitted to the programmable logic controller when the execution device performs the action, and the pin address is associated with the execution action corresponding to the execution device.

[0053] In addition, when the execution device includes multiple execution actions, the execution device can execute each action in turn. During the execution of each action, the execution device determines the pin address for each action through a signal input identifier, and associates the pin address with the corresponding execution action, thereby completing the association between each execution action of the execution device and the corresponding pin address in the programmable logic controller.

[0054] That is to say, in the method of connecting the execution device to the interface of the programmable logic controller of the present application, a signal input identifier is first set for each pin of the programmable logic controller. When the pin receives a signal input, the signal input identifier can be identified, and then the execution device is connected to the pin of the programmable logic controller. Then, by controlling the execution method of the execution device to perform an action, the corresponding pin generates an input signal, and the pin address corresponding to the input signal generated by the execution device when performing the action is determined based on the identified signal input identifier. Finally, the pin address is associated with the execution action corresponding to the execution device. When all the execution actions of the execution device are associated with the corresponding pin addresses in the above manner, the interface connection between the execution device and the programmable logic controller can be completed. This method makes the interface connection between the execution device and the programmable logic controller more convenient and quick.

[0055] Further, in some implementations, in order to facilitate the association of the pin with the execution action corresponding to the execution device, refer to Figure 2 In step S700, the pin address is associated with the execution action corresponding to the execution device, and the following steps are also included:

[0056] Step S710a: define an IO address for each pin of the programmable logic controller.

[0057] For example, when the programmable logic controller has 8 pins, the addresses defined by the pins of the programmable logic controller may be I10.0 to I10.7.

[0058] Step S720a: associate the IO address corresponding to the pin with the execution action corresponding to the execution device.

[0059] For example, when the execution action of the executing device is clamping, the IO address of the corresponding pin is I10.0, and the address I10.0 can be associated with the clamping action executed by the executing device, that is, when the executing device executes the clamping action, the clamping signal is input through the address I10.0.

[0060] In some embodiments, the signal inputted by the execution device through the pin includes 0 and 1. For example, when the signal inputted by the execution device through the pin is 1 when the execution device executes an action such as a clamping action, when the signal inputted by the execution device through the pin is 0, it means that the execution device does not execute the clamping action. Therefore, in step S700, associating the pin address with the execution action corresponding to the execution device may further include the following steps:

[0061] Step S730a: determine whether the input signal of the pin is 0 or 1.

[0062] It should be noted that the “pin” in the input signal of the determination pin refers to whether the input signal generated by the corresponding pin when the execution device executes an action is 0 or 1.

[0063] Step S740a, associating the input signal of the pin after determination with the execution action corresponding to the execution device.

[0064] For example, when the input signal of the execution device is judged to be 1, the input signal of the corresponding pin is confirmed to be 1 and associated with the execution action corresponding to the execution device. That is, when the corresponding pin input signal is 1, it can be judged that the execution device has executed the execution action.

[0065] Specifically, see Figure 3 Step S730a, determining whether the input signal of the pin is 0 or 1, may further include the following steps:

[0066] Step S731a, perform an AND operation on the input signal of the pin and the binary number 1 to determine whether the input signal of the pin is 0 or 1.

[0067] Further, in order to determine whether the binary number 1 can accurately perform an AND operation with the input signal of the pin corresponding to the action executed by the execution device, step S731, performing an AND operation with the input signal of the pin and the binary number 1, may also include:

[0068] Step S7311a, arrange the pins of the programmable logic controller in sequence.

[0069] For example, when a programmable logic controller has 8 pins, the 8 pins are arranged in sequence.

[0070] Step S7312a, obtain the input signal of each pin, and arrange the pin signal of each pin according to the arrangement order of the pins.

[0071] Step S7313a, determine the position of the input signal generated by the execution of the action in the execution device in the input signals of all pins according to the signal input identifier, and shift the input signal generated by the execution of the action in the execution device to the first position of the input signals of all pins according to the position offset.

[0072] For example, when the input signal generated by executing an action in the execution device is located in the fourth position among the input signals of all pins, the input signals of all pins can be shifted four positions to the right, so that the input signal generated by executing the action in the execution device is located in the first position among the input signals of all pins. It can be understood that in the program, the input signal is generally the first one on the right, counting from right to left.

[0073] Step S7314a, perform an AND operation on the first bit of the input signals of all pins with the binary number 1, and perform an AND operation on the input signals of other pins with the binary number 0.

[0074] The above method can ensure that the input signal of the pin corresponding to the execution action of the execution device can be ANDed with the binary number 1, and thus can accurately determine whether the input signal of the pin corresponding to the execution action is 0 or 1.

[0075] In addition, in some embodiments, see Figure 4 Step S700: determine the pin address corresponding to the input signal generated by the execution action according to the identified signal input identifier, and associate the pin address with the execution action corresponding to the execution device. Specifically, other methods may be used. The method may include the following steps:

[0076] Step S710b: define a variable address for each execution action of the execution device.

[0077] For example, when the execution device includes two execution actions such as clamping and releasing, a variable address can be defined in the programmable logic controller for the clamping action and the releasing action of the execution device respectively, such as MD210 represents the variable address of the clamping action, and MD310 represents the variable address of the releasing action.

[0078] Step S720b: determine the pin address corresponding to the input signal generated by the execution action according to the identified signal input identifier.

[0079] Step S730b: associate the corresponding pin address with the variable address corresponding to the execution action through indirect addressing.

[0080] Further, see Figure 5 , step S730b, the step of associating the corresponding pin address with the variable address corresponding to the execution action by indirect addressing, further comprising:

[0081] Step S731b, converting the IO address of the corresponding pin into a decimal indirect address through address conversion.

[0082] For example, when the IO address of the corresponding pin is I10.0, I10.0 is converted to 10×8=80 through address conversion.

[0083] Step S732b, enables the variable address corresponding to the execution action to access the indirect address.

[0084] For example, when the IO address of the pin corresponding to the execution action is I10.0 and the variable address corresponding to the execution action is MD264, MD264=10×8=80, that is, I[MD264] and I10.0 access the same IO point, thereby completing the association between the pin corresponding to the execution action and the variable address corresponding to the execution action.

[0085] In addition, in some embodiments, in order to facilitate the user to determine through the signal input identifier which pin the signal is input through when the execution device performs an action after connecting the execution device to the programmable logic controller, the signal input identifier can be set to an indicator light on the display interface to indicate whether each pin has a signal input. For example, when an indicator light is on, it means that the pin corresponding to the indicator light has a signal input, that is, the signal is input through the pin when the execution device performs a certain action.

[0086] The present application also provides a control system, including an execution device and a programmable logic controller, wherein the execution device and the programmable logic controller are connected using the method for interface connection between the execution device and the programmable logic controller of the present application, so as to improve the convenience and speed of the interface connection between the execution device and the programmable logic controller.

[0087] The present application also provides a computer-readable storage medium, in which instructions are stored. A data storage device executes the instructions so that the data storage device implements the method of interface connection between the execution device and the programmable logic controller in the present application.

[0088] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of some applications should be included in the protection scope of some applications.

Claims

1. A method for connecting an execution device to an interface of a programmable logic controller, characterized in that: The following methods are included: A signal input identifier is set for each pin of the programmable logic controller, and when the pin receives an input signal, the signal input identifier can be identified; Connecting the execution devices to the pins respectively; The execution device executes the action, and the corresponding pin generates an input signal; The pin address corresponding to the input signal generated by the execution action is determined according to the identified signal input identifier, and the pin address is associated with the execution action corresponding to the execution device.

2. The method for connecting an execution device to an interface of a programmable logic controller according to claim 1, characterized in that: The associating the pin address with the execution action corresponding to the execution device further includes: Define an IO address for each pin of the programmable logic controller; The IO address corresponding to the pin is associated with the execution action corresponding to the execution device.

3. The method for connecting an execution device to an interface of a programmable logic controller according to claim 1 or 2, characterized in that: The input signal of each of the pins includes 0 and 1, and the step of associating the pin address with the execution action corresponding to the execution device further includes: Determine whether the input signal of the pin is 0 or 1; After the determination, the input signal of the pin is associated with the execution action corresponding to the execution device.

4. The method for connecting an execution device to an interface of a programmable logic controller according to claim 3, characterized in that: The step of determining whether the input signal of the pin is 0 or 1 further includes: Perform an AND operation on the input signal of the pin and the binary number 1 to determine whether the input signal of the pin is 0 or 1.

5. The method for connecting an execution device to an interface of a programmable logic controller according to claim 4, characterized in that: The step of performing an AND operation on the input signal of the pin and the binary number 1 further comprises: Arranging the pins of the programmable logic controller in order; Acquire the input signal of each of the pins, and arrange the pin signal of each pin according to the arrangement order of the pins; Determine the position of the input signal generated by the execution of the action in the execution device in the input signals of all the pins according to the signal input identifier, and shift the input signal generated by the execution of the action in the execution device to the first position of the input signals of all the pins according to the position; The first bit of the input signals of all the pins is ANDed with the binary number 1, and the input signals of the other pins are ANDed with the binary number 0.

6. The method for connecting an execution device to an interface of a programmable logic controller according to claim 2, characterized in that: The step of determining the pin address corresponding to the input signal generated by the execution action according to the identified signal input identifier, and associating the pin address with the execution action corresponding to the execution device, further includes: defining a variable address for each execution action of the execution device; Determining a pin address corresponding to the input signal generated by the execution action according to the identified signal input identifier; The corresponding pin address is associated with the variable address corresponding to the execution action by indirect addressing.

7. The method for connecting an execution device to an interface of a programmable logic controller according to claim 6, characterized in that: The step of associating the corresponding pin address with the variable address corresponding to the execution action by indirect addressing further comprises: Convert the IO address of the corresponding pin into a decimal indirect address through address conversion; The variable address corresponding to the execution action is made to access the indirect address.

8. The method for connecting an execution device to an interface of a programmable logic controller according to claim 1, characterized in that: The signal input identifier is an indicator light on the display interface for indicating whether each of the pins has a signal input.

9. A control system, characterized in that: It comprises an execution device and a programmable logic controller, wherein the execution device and the programmable logic controller are connected by using the method for interface connection between the execution device and the programmable logic controller as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and the data storage device executes the instructions so that the data storage device implements the method of interface connection between the execution device and the programmable logic controller as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Wheeled mobile robot control system

    CN104216372A

  • Cost effective multiband RF front-end architecture for mobile applications

    CN104426576A

  • Parallel test device and method for multi-stack memory package

    CN115083499A

  • Configuration management method, system and device and computer readable storage medium

    CN115525350A

  • Hardware-based security authentication

    CN116635859A

Cited By

  • Fine-grained acquisition method, equipment and system for equipment action data

    CN120215453A

  • Method, device and system for fine-grained collection of equipment action data

    CN120215453B