CN115801859B - Connection method, industrial control device and system between configuration equipment - Google Patents

Connection method, industrial control device and system between configuration equipment Download PDF

Info

Publication number
CN115801859B
CN115801859B CN202211403120.7A CN202211403120A CN115801859B CN 115801859 B CN115801859 B CN 115801859B CN 202211403120 A CN202211403120 A CN 202211403120A CN 115801859 B CN115801859 B CN 115801859B
Authority
CN
China
Prior art keywords
description file
parameters
configuration
equipment
master
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211403120.7A
Other languages
Chinese (zh)
Other versions
CN115801859A (en
Inventor
叶锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Midea Welling Motor Technology Shanghai Co Ltd
Guangdong Midea Intelligent Technologies Co Ltd
Original Assignee
Midea Welling Motor Technology Shanghai Co Ltd
Guangdong Midea Intelligent Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Midea Welling Motor Technology Shanghai Co Ltd, Guangdong Midea Intelligent Technologies Co Ltd filed Critical Midea Welling Motor Technology Shanghai Co Ltd
Priority to CN202211403120.7A priority Critical patent/CN115801859B/en
Publication of CN115801859A publication Critical patent/CN115801859A/en
Application granted granted Critical
Publication of CN115801859B publication Critical patent/CN115801859B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Programmable Controllers (AREA)

Abstract

The application provides a connection method between configuration equipment, an industrial control device and an industrial control system. The configuration equipment comprises a master equipment and a slave equipment, and the connection method between the configuration equipment comprises the following steps: determining description files according to the attribute information and the interface information of the configuration equipment, wherein the description files comprise a first description file of the master equipment and a second description file of the slave equipment; determining target slave equipment which can be in communication connection with the master equipment in the slave equipment according to the first description file and the second description file; the target slave device is communicatively coupled to the master device.

Description

Connection method, industrial control device and system between configuration equipment
Technical Field
The application relates to the technical field of configuration equipment, in particular to a connection method between configuration equipment, an industrial control device and an industrial control system.
Background
In the related art, configuration devices are generally divided into a master device and a slave device, where the master device can support multiple bus protocols or communication connection requirements of multiple slave devices, but because the communication standards of multiple slave devices are different, it may be necessary to adapt to a new slave device by continuously modifying programming software source code, which results in complicated process operation for communication connection between the slave device and the master device.
Disclosure of Invention
The present application is directed to solving at least one of the technical problems existing in the related art.
To this end, a first aspect of the present application is to provide a method for connecting configuration devices.
A second aspect of the present application is directed to an industrial control device.
A third aspect of the application is directed to another industrial control device.
A fourth aspect of the application is directed to a readable storage medium.
A fifth aspect of the present application is directed to an industrial control system.
In view of this, according to an aspect of the present application, there is provided a connection method between configuration devices, the configuration devices including a master device and a slave device, the connection method including: determining description files according to the attribute information and the interface information of the configuration equipment, wherein the description files comprise a first description file of the master equipment and a second description file of the slave equipment; determining target slave equipment which can be in communication connection with the master equipment in the slave equipment according to the first description file and the second description file; the target slave device is communicatively coupled to the master device.
It should be noted that, the execution body of the connection method between configuration devices according to the present application may be a connection device between configuration devices, and for more clearly describing the connection method between configuration devices according to the present application, the following technical solutions will be described by taking the execution body of the connection method between configuration devices as the connection device between configuration devices.
In this technical solution, the configuration in the configuration device means configuration, setting, etc., where the configuration device means that the user can complete the software functions required by the user in a simple manner like building blocks, without the need of devices for writing computer programs, such as PLC (Programmable Logic Controller, programmable logic control), configuration touch screen, etc.; the attribute information indicates basic information of the configuration device, such as a model of the PLC, the number of input/output ports of the PLC, etc., and the interface information indicates an interface of the configuration device set by the user, such as i1 for the PLC, i2 for the configuration touch screen, etc.
Specifically, the connection device firstly constructs a description file of the configuration device according to the attribute information of the configuration device and the interface information of the configuration device. Specifically, the type, model, identity attribute and other basic parameters of the configuration equipment and the configurable parameters of the configuration equipment can be defined according to the attribute information, the interface parameters of the configuration equipment can be defined according to the interface information, and the description file of the configuration equipment can be constructed according to the basic information, the configurable parameters and the interface parameters of the equipment.
Specifically, the description file is a description file constructed through a preset language, and specifically, the preset language is preset by a user, but it is required to ensure that the information of the configuration equipment and the complex relationship between the configuration equipment can be simply and uniformly described through the target format.
Specifically, the configuration device is divided into a master device and a slave device, for example, a master device PLC and a slave device configuration touch screen.
In particular, it is determined whether the configuration device is a master or a slave with respect to the device to which it is connected, i.e. the configuration device may be a master or a slave, for example, the motor controller is a master with respect to the motor to be controlled connected thereto, but it is a slave with respect to the PLC connected thereto.
Specifically, the description file includes a first description file of the master device and a second description file of the slave device. Specifically, the master device represents a master device selected by a user at a software programming interface, and the slave device represents a device to be connected.
Further, the connection device screens out target slave devices from the slave devices according to the first description file and the second description file, wherein the target slave devices represent determined slave devices capable of being in communication connection with the master device.
Specifically, parameters such as device basic parameters and interface parameters of the master device and the slave device can be clarified according to the first description file and the second description file, and a slave device which meets the connection condition with the master device can be judged according to the parameters. Therefore, the connection device can determine the target slave device according to the first description file and the second description file.
Further, the connection device is used for carrying out communication connection on the determined target slave device and the master device. Specifically, according to the second description file of the target slave device, parameters such as a connection interface, a connection path and the like for connecting the target slave device with the master device can be determined, so that the connection device can be used for connecting the determined target slave device with the master device in a communication manner.
In the technical scheme of the invention, the connecting device constructs the description file of the configuration equipment in advance according to the attribute information and the interface information of the configuration equipment, so that when the communication connection between the configuration equipment is carried out, the connecting device can determine the relation between the configuration equipment according to the description file, namely, the target slave equipment which can be connected with the master equipment can be determined according to the description file, and the target slave equipment can be in communication connection with the master equipment. Therefore, a user can carry out communication connection between the configuration devices through the description file, the problem that the master device and the slave devices are required to be continuously modified to carry out communication connection due to different communication standards of various slave devices in the communication connection process of the master device and the slave devices is avoided, the communication connection flow between the configuration devices is simplified, and the communication connection efficiency and accuracy between the configuration devices are improved.
In addition, the connection method between configuration devices according to the above technical solution of the present invention may further have the following additional technical features:
in the above technical solution, the step of determining the description file according to the attribute information and the interface information of the configuration device specifically includes: determining equipment basic parameters and configurable parameters of configuration equipment according to the attribute information; determining interface parameters of configuration equipment according to the interface information; and constructing a description file according to the basic parameters, the configurable parameters and the interface parameters of the equipment.
In this technical solution, the above-mentioned basic device parameter expression describes parameters of the most basic information of the configuration device, such as a device name, a device profile, a device version, a device manufacturer, a device type, a device picture, a device association file, and the like. The configurable parameter indicates a parameter that can be set by a user, for example, when the configuration device is a slave device, an input/output address of the configuration device on the master device can be set.
Specifically, the process of determining the description file by the connection device is as follows: the connection device firstly determines the basic parameters of the equipment and the configurable parameters according to the attribute information of the configuration equipment, namely, fills the parameters such as the equipment name, the equipment profile and the like into the description file according to the requirement of a target format, and sets the parameters which can be configured by the configuration equipment, namely, the configurable parameters.
Further, the connection device determines the interface parameters of the configuration device according to the interface information, that is, determines the interface parameters of the configuration device according to the interface set by the user. Specifically, the interface parameters are represented in preset alphanumerics, for example: i1 and i2, etc.
Further, the connection device determines the description file of the configuration device according to the interface parameter, the device basic parameter and the configurable parameter.
In the technical scheme, the connecting device respectively determines the basic parameters, the configurable parameters and the interface parameters of the equipment according to the attribute information and the interface information, and then constructs the description file according to the basic parameters, the configurable parameters and the interface parameters of the equipment. In this way, the accuracy of the determined description file can be ensured.
In the above technical solution, the step of constructing the description file according to the basic parameters, the configurable parameters and the interface parameters of the device specifically includes: and constructing the description file by adopting an extensible markup language according to the basic parameters, the configurable parameters and the interface parameters of the equipment.
In this technical solution, the extensible markup language represents XML (Extensible Markup Language) which can be used to mark data and define data types, is a source language allowing users to define their own markup language, can provide a unified method to describe and exchange structured data independent of application programs or suppliers, is a cross-platform and content-dependent technology in the Internet (network) environment, and is an effective tool for processing distributed structure information nowadays.
Specifically, the process of constructing the description file is: the connection device constructs the description file by adopting the extensible markup language according to the basic parameters of the equipment, the configurable parameters and the interface parameters. Specifically, since the extensible markup language can be simply applied to reading or writing of any application program, the extensible markup language is used for constructing the description file in the application. In the above technical solution, the device basic parameters include identity attributes of configuration devices, where the identity attributes in the first description file are master device attributes, and the identity attributes in the second description file are slave device attributes.
In this technical solution, the above-mentioned device basic parameters include an identity attribute indicating whether the configuration device is a master device or a slave device.
Specifically, since the first description file is a description file of the master device, the identity attribute in the basic parameter of the device is the master device attribute; since the second description file is a description file of the slave device, the identity attribute in the basic parameter of the slave device is the slave device attribute.
In the above technical solution, the types of the configurable parameters include any one of an integer type, a string type, a structure type, an array type, a range type, and an enumeration type.
In this technical solution, the configurable parameters in the description file may include multiple types, so before constructing the description file, the user needs to determine the type of the configurable parameters.
Specifically, the types of the configurable parameters include, but are not limited to, any one of the integer type, the string type, the structure type, the array type, the range type, and the enumeration type.
Specifically, since the configurable parameters are presented in the display interface of the programming software, if different configuration parameters are displayed in the same way, the user is not convenient to edit the configurable parameters, so that the type of the configurable parameters needs to be set in the application, and the display mode of each type of the configurable parameters in the programming interface is different.
In the technical scheme, the types of the configurable parameters in the description file are defined, and each type of the configurable parameters can be presented in different modes in the programming software interface, so that a user can conveniently edit the different types of the configurable parameters.
In the above technical solution, after the target slave device is communicatively connected to the master device, the connection method further includes: receiving a modification parameter input by a user; and updating the configurable parameters in the first description file and/or the second description file according to the modification parameters.
In this technical scheme, after the communication connection is established between the target slave device and the master device, the connection device is further used for receiving the modification parameters input by the user. In particular, the modification parameter represents a configurable parameter in the user-modified description file.
Further, the connection device updates the configurable parameters in the first description file or the second description file according to the modification parameters, so that certain parameters of the connected master device and the target slave device can be modified, and the target slave device can be controlled better through the master device.
In the technical scheme, the connecting device can also receive the modification parameters input by the user, and can update the first description file or the second description file of the target slave device according to the modification parameters, so that the target slave device can be better controlled by the master device.
In the above technical solution, the step of determining, according to the first description file and the second description file, a target slave device capable of being communicatively connected with the master device from among the slave devices specifically includes: comparing the interface parameters of the master device with the interface parameters of the slave device; and determining the slave devices with the same interface parameters as the master device as target slave devices.
In this technical solution, the first description file includes an interface parameter describing the master device interface, and the second description file includes an interface parameter describing the slave device interface.
Specifically, the process of determining the target slave device by the connection device is as follows: the connection means first compares the interface parameters of the slave device with the interface parameters of the master device to determine whether the interface parameters of the slave device and the master device are identical.
Further, the connection means sets a slave device having the same interface parameters as the master device as the target slave device. In particular, if the interface parameters of the slave device and the master device are the same, it is indicated that the slave device can be communicatively connected to the master device, and therefore the connection means can set the slave device as the target slave device.
Specifically, since the number of slave devices whose interface parameters are the same as those of the master device may be plural, the number of target slave devices to be determined may be plural.
In the technical scheme, the connecting device can screen out the target slave device from the slave device by judging whether the interface parameters of the slave device are the same as those of the master device, so that the interface parameters of the slave device which is in communication connection with the master device in the subsequent step are all the same as those of the master device, and the accuracy of communication connection between the configuration devices is ensured.
In the above technical solution, the step of communicatively connecting the target slave device with the master device specifically includes: determining a host path of the master device according to the first description file; determining the input/output address of the target slave device in the master device according to the second description file; the target slave device is communicatively coupled to the master device according to the host path and the input-output address.
In this technical solution, the process of establishing communication connection between the target slave device and the master device by the connection device includes: the connection device first determines a host path of the host device according to the first description file. Specifically, the host path represents the path of the host-to-outer extension.
Further, the connection means determines the input/output address of the target slave device on the master device according to the second description file. Specifically, the input/output address indicates an input address of a control instruction and an output address of a control instruction for controlling a target slave device by a master device.
Further, the connection device establishes communication connection between the target slave device and the master device according to the determined host path and the input/output address. Specifically, the present invention relates to a method for manufacturing a semiconductor device. According to the host path, it can be determined how to mount or map the target slave device on the host device, and according to the input/output address, the input address and the output address of the control instruction for controlling the target slave device by the host device can be set. Therefore, the connection means can establish a communication connection between the target slave device and the master device based on the host path and the input/output address.
In the technical scheme, the connecting device is used for connecting the master equipment with the target slave equipment in a communication manner according to the host path and the input/output address, so that the target slave equipment can be accurately mounted on the master equipment, and the accuracy of communication connection between configuration settings is ensured.
According to a second aspect of the present application, an industrial control apparatus is presented, the industrial control apparatus comprising a plurality of configuration devices, the configuration devices comprising a master device and a slave device, the master device comprising a first description file, the slave device comprising a second description file; the description file comprises basic parameters of the configuration equipment, configurable parameters of the configuration equipment and interface parameters of the configuration equipment; the industrial control device can control the communication connection between the master device and the slave device by executing the steps of the connection method between the configuration devices according to the technical scheme of the application, so that the industrial control device has all the beneficial technical effects of the connection method between the configuration devices according to the technical scheme of the application, and the detailed description is omitted.
According to a third aspect of the present application, there is provided another industrial control device comprising: a memory in which a program or instructions are stored; the processor executes the program or the instruction stored in the memory to implement the steps of the connection method between the configuration devices according to the above technical scheme of the present application, so that the method has all the beneficial technical effects of the connection method between the configuration devices according to the above technical scheme of the present application, and will not be described in detail herein.
According to a fourth aspect of the present application, a readable storage medium is provided, on which a program or an instruction is stored, which when executed by a processor, implements the steps of the connection method between configuration devices according to the above-mentioned technical solution of the present application, so that all the beneficial technical effects of the connection method between configuration devices according to the above-mentioned technical solution of the present application are provided, and redundant description is omitted herein.
According to a fifth aspect of the present application, an industrial control system is provided, which includes an industrial control device according to the above-mentioned technical solution of the present application and/or a readable storage medium according to the above-mentioned technical solution of the present application, and therefore, the industrial control system has all the advantages of the industrial control device according to the above-mentioned technical solution of the present application and/or the readable storage medium according to the above-mentioned technical solution of the present application, which are not repeated herein.
Additional aspects and advantages of the application will be set forth in part in the description which follows, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the application will become apparent and may be better understood from the following description of embodiments taken in conjunction with the accompanying drawings in which:
FIG. 1 is a flow chart illustrating a connection method between configuration devices according to an embodiment of the application;
FIG. 2 shows a schematic diagram of a slave device and master device communication connection of an embodiment of the present application;
FIG. 3 is a second flow chart illustrating a connection method between configuration devices according to an embodiment of the application;
FIG. 4 is a schematic block diagram of a configuration device description file according to an embodiment of the present application;
FIG. 5 is a third flow chart illustrating a connection method between configuration devices according to an embodiment of the application;
FIG. 6 is a flow chart illustrating a method of connecting configuration devices according to an embodiment of the application;
FIG. 7 is a flow chart showing a method of connecting configuration devices according to an embodiment of the present application;
fig. 8 shows a schematic block diagram of a configuration industrial control device according to an embodiment of the present application.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will be more clearly understood, a more particular description of the application will be rendered by reference to the appended drawings and appended detailed description. It should be noted that, without conflict, the embodiments of the present application and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application, but the present application may be practiced in other ways than those described herein, and therefore the scope of the present application is not limited to the specific embodiments disclosed below.
The following describes in detail a connection method between configuration devices, an industrial control device, and a system provided by the embodiments of the present application through specific embodiments and application scenarios thereof with reference to fig. 1 to 8.
Fig. 1 is a flow chart illustrating a connection method between configuration devices according to an embodiment of the present application, where the connection method includes:
s102, determining description files according to attribute information and interface information of configuration equipment, wherein the description files comprise a first description file of master equipment and a second description file of slave equipment;
S104, determining target slave equipment which can be in communication connection with the master equipment in the slave equipment according to the first description file and the second description file;
S106, the target slave device is in communication connection with the master device.
It should be noted that, the execution body of the connection method between configuration devices according to the present application may be a connection device between configuration devices, and for more clarity, the execution body of the connection method between configuration devices is exemplified as the connection device between configuration devices in the following embodiments.
In this embodiment, the configuration in the configuration device means configuration, setting, etc., and the configuration device means that the user can complete the software function required by himself in a simple manner like "building blocks" without the need of devices for writing computer programs, such as PLC, configuration touch screen, etc.; the attribute information indicates basic information of the configuration device, such as a model of the PLC, the number of input/output ports of the PLC, etc., and the interface information indicates an interface of the configuration device set by the user, such as i1 for the PLC, i2 for the configuration touch screen, etc.
Specifically, the connection device firstly constructs a description file of the configuration device according to the attribute information of the configuration device and the interface information of the configuration device. Specifically, the type, model, identity attribute and other basic parameters of the configuration equipment and the configurable parameters of the configuration equipment can be defined according to the attribute information, the interface parameters of the configuration equipment can be defined according to the interface information, and the description file of the configuration equipment can be constructed according to the basic information, the configurable parameters and the interface parameters of the equipment.
Specifically, the description file is a description file constructed through a preset language, and specifically, the preset language is preset by a user, but it is required to ensure that the information of the configuration equipment and the complex relationship between the configuration equipment can be simply and uniformly described through the target format.
Specifically, the configuration device is divided into a master device and a slave device, for example, a master device PLC and a slave device configuration touch screen.
Specifically, as shown in fig. 2, whether the configuration device is a master device or a slave device is determined with respect to the device to which it is connected, i.e., the configuration device may be either a master device or a slave device, for example, in fig. 2, the device 2 is a slave device of the device 1 but is a parent device of the device 3.
Specifically, the description file includes a first description file of the master device and a second description file of the slave device. Specifically, the master device represents a master device selected by a user at a software programming interface, and the slave device represents a device to be connected.
Further, the connection device screens out target slave devices from the slave devices according to the first description file and the second description file, wherein the target slave devices represent determined slave devices capable of being in communication connection with the master device.
Specifically, parameters such as device basic parameters and interface parameters of the master device and the slave device can be clarified according to the first description file and the second description file, and a slave device which meets the connection condition with the master device can be judged according to the parameters. Therefore, the connection device can determine the target slave device according to the first description file and the second description file.
It should be noted that the number of the target slave devices may be one or more. For example, in fig. 2, the slave devices of device 1 include device 2 and device 2.1.
Further, the connection device is used for carrying out communication connection on the determined target slave device and the master device. Specifically, according to the second description file of the target slave device, parameters such as a connection interface, a connection path and the like for connecting the target slave device with the master device can be determined, so that the connection device can be used for connecting the determined target slave device with the master device in a communication manner.
In the embodiment of the invention, the connection device constructs the description file of the configuration equipment in advance according to the attribute information and the interface information of the configuration equipment, so that when the communication connection between the configuration equipment is carried out, the connection device can determine the relation between the configuration equipment according to the description file, namely, the target slave equipment which can be connected with the master equipment can be determined according to the description file, and the target slave equipment can be in communication connection with the master equipment. Therefore, a user can carry out communication connection between the configuration devices through the description file, the problem that the master device and the slave devices are required to be continuously modified to carry out communication connection due to different communication standards of various slave devices in the communication connection process of the master device and the slave devices is avoided, the communication connection flow between the configuration devices is simplified, and the communication connection efficiency and accuracy between the configuration devices are improved.
Fig. 3 is a flow chart illustrating a connection method between configuration devices according to an embodiment of the present application, where the connection method includes:
s302, determining equipment basic parameters and configurable parameters of configuration equipment according to attribute information;
s304, interface parameters of configuration equipment are determined according to the interface information;
S306, constructing a description file according to the basic parameters, the configurable parameters and the interface parameters of the equipment;
s308, determining a target slave device which can be in communication connection with the master device in the slave devices according to the first description file and the second description file;
s310, the target slave device is in communication connection with the master device.
In this embodiment, the above-mentioned device basic parameter expression describes parameters of the most basic information of the configuration device, such as a device name, a device profile, a device version, a device manufacturer, a device type, a device picture, a device association file, and the like. The configurable parameter indicates a parameter that can be set by a user, for example, when the configuration device is a slave device, an input/output address of the configuration device on the master device can be set.
Specifically, the process of determining the description file by the connection device is as follows: the connection device firstly determines the basic parameters of the equipment and the configurable parameters according to the attribute information of the configuration equipment, namely, fills the parameters such as the equipment name, the equipment profile and the like into the description file according to the requirement of a target format, and sets the parameters which can be configured by the configuration equipment, namely, the configurable parameters.
For example, taking a preset language as an xml language as an example, the above device basic parameters may be divided into a device identification node parameter, a basic information node parameter, and a device connection node parameter, where a description manner and a related interpretation of the device identification node parameter are shown in table 1, a description manner and a related interpretation of the basic information node parameter are shown in table 2, and a description manner and a related interpretation of the device connection node parameter are shown in table 3.
TABLE 1
Description of the preferred embodiment Interpretation of the drawings
DeviceInfo Equipment information node
+Type Device type
+Id Device id
+Version Device version
TABLE 2
TABLE 3 Table 3
Further, the connection device determines the interface parameters of the configuration device according to the interface information, that is, determines the interface parameters of the configuration device according to the interface set by the user. Specifically, the interface parameters are represented in preset alphanumerics, for example: i1 and i2, etc.
It should be noted that, when the configuration device is used as a master device and a slave device, the interface parameters are different, for example, the interface parameter when the configuration device is used as a slave device of the device 1 is i1, and the interface parameter when the configuration device is used as a master device of the device 3 is i2 in fig. 2.
Further, the connection device determines the description file of the configuration device according to the interface parameter, the device basic parameter and the configurable parameter.
For example, the interface parameters may be programmed into the device connection node parameters, so a schematic block diagram of the determined description file may be shown in fig. 4, that is, the description file may include four parts including a device identification node parameter, a basic information node parameter, a device connection node parameter, and a configurable parameter.
Illustratively, the first description file of the host device has a portion of "<ConnectorconnectorId="1000"interface="Common.SoftMotion.EtherCAT.Copley"moduleType="1279"role="parent"/>",, where the configuration device may be classified into different types by setting moduletype, such as 1279 representing an interface type of driving device, and connectorId is used as an identifier of a device connector and is referenced in the host path of the host device. In addition, according to "role=" parent "," the identity attribute of the configuration device may be determined as the master device.
Illustratively, the second description file of the slave device has a partial content "<ConnectorconnectorId="1"moduleType="1248"interface="Common.SoftMotion.Logical"role="parent"fixedInputAddress="%IB50"fixedOutputAddress="%QW100"/>;, and the input/output address of the slave device on the master device is from% IB50 to% QW100, as known from "fixedInputAddress ="% IB50"fixedOutputAddress ="% QW100 ". The content of the second description file of the slave device is :<Connectorrole="child"connectorId="0"interface="Common.SoftMotion.EtherCAT.Copley"moduleType="1027"/>",, and according to "Connectorrole =" child "", the identity attribute of the configuration device may be determined to be the slave device.
In this embodiment, the connection device determines the basic parameters, the configurable parameters and the interface parameters of the device according to the attribute information and the interface information, and then constructs the description file according to the basic parameters, the configurable parameters and the interface parameters of the device. In this way, the accuracy of the determined description file can be ensured.
In the above technical solution, the step of constructing the description file according to the basic parameters, the configurable parameters and the interface parameters of the device specifically includes: and constructing the description file by adopting an extensible markup language according to the basic parameters, the configurable parameters and the interface parameters of the equipment.
In this technical solution, the extensible markup language represents XML (Extensible Markup Language) which can be used to mark data and define data types, is a source language allowing users to define their own markup language, can provide a unified method to describe and exchange structured data independent of application programs or suppliers, is a cross-platform and content-dependent technology in the Internet (network) environment, and is an effective tool for processing distributed structure information nowadays.
Specifically, the process of constructing the description file is: the connection device constructs the description file by adopting the extensible markup language according to the basic parameters of the equipment, the configurable parameters and the interface parameters. Specifically, since the extensible markup language can be simply applied to reading or writing of any application program, the extensible markup language is used for constructing the description file in the application.
In the above embodiment, the device basic parameter includes an identity attribute of the configuration device, the identity attribute in the first description file is a master device attribute, and the identity attribute in the second description file is a slave device attribute.
In this embodiment, the device basic parameter includes an identity attribute indicating whether the configuration device is a master device or a slave device.
Specifically, since the first description file is a description file of the master device, the identity attribute in the basic parameter of the device is the master device attribute; since the second description file is a description file of the slave device, the identity attribute in the basic parameter of the slave device is the slave device attribute.
In the above embodiment, the types of the configurable parameters include any one of an integer type, a character string type, a structure type, an array type, a range type, and an enumeration type.
In this embodiment, the configurable parameters in the description file may include a plurality of types, and thus, the user needs to determine the type of the configurable parameters before constructing the description file.
Specifically, the types of the configurable parameters include, but are not limited to, any one of the integer type, the string type, the structure type, the array type, the range type, and the enumeration type.
Specifically, since the configurable parameters are presented in the display interface of the programming software, if different configuration parameters are displayed in the same way, the user is not convenient to edit the configurable parameters, so that the type of the configurable parameters needs to be set in the application, and the display mode of each type of the configurable parameters in the programming interface is different.
Illustratively, when the type of the configurable parameter is an integer type (i.e., standard type), the data type in IEC61131 needs to be supported, where IEC61131 represents an international standard that the software design of the industrial automation control system provides for standardized programming languages, including standard types mainly a BOOL type (boolean type), an INT type (long integer type), a WORD type (unsigned data type), etc., which are typically presented in plain text boxes in programming software; when the type of the configurable parameter is a structural body type, a user can customize writing, and the configurable parameter is generally presented in a configurable form in programming software; when the type of the configurable parameter is an enumeration type, the configurable parameter is presented in a form of a drop-down box in programming software; when the type of the configurable parameter is a range type, the configurable parameter is presented in a digital adjustment frame form in programming software; when the type of the configurable parameter is a bit variable type: in the programming software in the form of a configurable tree structure.
In this embodiment, the types of configurable parameters in the description file are defined, and each type of configurable parameter may be presented in a different manner in the programming software interface, thus facilitating user editing of different types of configurable parameters.
Fig. 5 is a flow chart illustrating a connection method between configuration devices according to an embodiment of the present application, where the connection method includes:
s502, determining equipment basic parameters and configurable parameters of configuration equipment according to attribute information;
s504, determining interface parameters of configuration equipment according to the interface information;
S506, constructing a description file according to the basic parameters, the configurable parameters and the interface parameters of the equipment;
S508, determining a target slave device which can be in communication connection with the master device in the slave devices according to the first description file and the second description file;
s510, the target slave device is in communication connection with the master device;
s512, receiving the modification parameters input by the user, and updating the configurable parameters in the first description file and/or the second description file according to the modification parameters.
In this embodiment, the connection means is further adapted to receive a user entered modification parameter after the target slave device and the master device have been established a communication connection. In particular, the modification parameter represents a configurable parameter in the user-modified description file.
The user may input the modification parameters via a programming software interface, and the connection device may receive the modification parameters via the programming software interface.
Further, the connection device updates the configurable parameters in the first description file or the second description file according to the modification parameters, so that certain parameters of the connected master device and the target slave device can be modified, and the target slave device can be controlled better through the master device.
For example, taking the modification parameter as the input/output address of the slave device on the master device as an example, the connection device may update the second description file according to the input/output address in the modification parameter, so that the input/output address of the target slave device on the master device may be changed.
In this embodiment, the connection device is further capable of receiving a modification parameter input by a user, and updating the first description file or the second description file of the target slave device according to the modification parameter, so that the target slave device can be better controlled by the master device.
Fig. 6 is a flow chart illustrating a connection method between configuration devices according to an embodiment of the present application, where a first description file includes interface parameters of a master device, a second description file includes interface parameters of a slave device, and the connection method includes:
S602, determining equipment basic parameters and configurable parameters of configuration equipment according to attribute information;
s604, determining interface parameters of configuration equipment according to the interface information;
S606, constructing a description file according to the basic parameters, the configurable parameters and the interface parameters of the equipment;
s608, comparing the interface parameters of the master device with the interface parameters of the slave device;
S610, determining the slave devices with the same interface parameters as the master device as target slave devices;
S612, the target slave device is in communication connection with the master device.
In this embodiment, the first description file includes an interface parameter describing the master device interface, and the second description file includes an interface parameter describing the slave device interface.
Specifically, the process of determining the target slave device by the connection device is as follows: the connection means first compares the interface parameters of the slave device with the interface parameters of the master device to determine whether the interface parameters of the slave device and the master device are identical.
Further, the connection means sets a slave device having the same interface parameters as the master device as the target slave device. Specifically, if the interface parameters of the slave device and the master device are the same, it is indicated that the slave device can be communicatively connected to the master device, and therefore the connection means can set the slave device as the target slave device.
Specifically, since the number of slave devices whose interface parameters are the same as those of the master device may be plural, the number of target slave devices to be determined may be plural.
In this embodiment, the connection device may screen the target slave device from the slave device by determining whether the interface parameter of the slave device is the same as that of the master device, so as to ensure that the interface parameter of the slave device in communication connection with the master device in the subsequent step is the same as that of the master device, and ensure the accuracy of communication connection between the configuration devices.
Fig. 7 is a flow chart illustrating a connection method between configuration devices according to an embodiment of the present application, where the connection method includes:
s702, determining description files according to attribute information and interface information of configuration equipment, wherein the description files comprise a first description file of master equipment and a second description file of slave equipment;
s704, determining a target slave device which can be in communication connection with the master device in the slave devices according to the first description file and the second description file;
S706, determining a host path of the main device according to the first description file;
S708, determining the input/output address of the target slave device in the master device according to the second description file;
S710, the target slave device is in communication connection with the master device according to the host path and the input/output address.
In this embodiment, the process of the connection means establishing a communication connection between the target slave device and the master device is: the connection device first determines a host path of the host device according to the first description file. Specifically, the host path represents the path of the host-to-outer extension.
Further, the connection means determines the input/output address of the target slave device on the master device according to the second description file. Specifically, the input/output address indicates an input address of a control instruction and an output address of a control instruction for controlling a target slave device by a master device.
Further, the connection device establishes communication connection between the target slave device and the master device according to the determined host path and the input/output address. Specifically, the present invention relates to a method for manufacturing a semiconductor device. According to the host path, it can be determined how to mount or map the target slave device on the host device, and according to the input/output address, the input address and the output address of the control instruction for controlling the target slave device by the host device can be set. Therefore, the connection means can establish a communication connection between the target slave device and the master device based on the host path and the input/output address.
In this embodiment, the connection device connects the master device and the target slave device in a communication manner according to the host path and the input/output address, so that the target slave device can be accurately mounted on the master device, and the accuracy of communication connection between configuration settings is ensured.
According to one embodiment of the present application, an industrial control apparatus is provided, the industrial control apparatus including a plurality of configuration devices, the configuration devices including a master device and a slave device, the master device including a first description file, the slave device including a second description file; the description file comprises basic parameters of the configuration equipment, configurable parameters of the configuration equipment and interface parameters of the configuration equipment; the industrial control device can control the communication connection between the master device and the slave device by executing the steps of the connection method between the configuration devices according to the above embodiment of the present application, so that the method has all the advantages of the connection method between the configuration devices according to the above embodiment of the present application, and will not be described in detail herein.
Fig. 8 shows a schematic block diagram of another industrial control device according to an embodiment of the present application, the industrial control device 800 comprising: a memory 802, the memory 802 storing a program or instructions; the processor 804 executes the program or instructions stored in the memory 802 to implement the steps of the connection method between configuration devices according to the above embodiment of the present application, so that the method has all the advantages of the connection method between configuration devices according to the above embodiment of the present application, and will not be described in detail herein.
According to an embodiment of the present application, a readable storage medium is provided, on which a program or an instruction is stored, which when executed by a processor, implements the steps of the connection method between configuration devices according to the above embodiment of the present application, so that all the beneficial technical effects of the connection method between configuration devices according to the above embodiment of the present application are provided, and will not be described in detail herein.
According to an embodiment of the present application, an industrial control system is provided, which includes an industrial control device according to the above embodiment of the present application and/or a readable storage medium according to the above embodiment of the present application, so that the electronic device has all the advantages of the industrial control device according to the above embodiment of the present application and/or the readable storage medium according to the above embodiment of the present application, which are not described herein.
In the description of the present specification, the terms "one embodiment," "some embodiments," "particular embodiments," and the like, mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In addition, embodiments of the application may be combined with each other, but it is necessary that the embodiments be realized based on the fact that a person of ordinary skill in the art should consider that such combination of embodiments does not exist or is not within the scope of the application as claimed when the combination of embodiments is contradictory or impossible to realize.
The above is only a preferred embodiment of the present application, and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for connecting configuration devices, wherein the configuration devices include a master device and a slave device, the method comprising:
Determining description files according to attribute information and interface information of configuration equipment, wherein the description files comprise a first description file of master equipment and a second description file of slave equipment;
determining target slave equipment which can be in communication connection with the master equipment in the slave equipment according to the first description file and the second description file;
Communicatively connecting the target slave device with the master device;
the determining the description file according to the attribute information and the interface information of the configuration equipment specifically includes:
Determining equipment basic parameters and configurable parameters of the configuration equipment according to the attribute information;
determining interface parameters of the configuration equipment according to the interface information;
Constructing the description file according to the basic parameters of the equipment, the configurable parameters and the interface parameters;
The determining, according to the first description file and the second description file, a target slave device capable of being communicatively connected with the master device in the slave device specifically includes:
Comparing the interface parameters of the master device with the interface parameters of the slave device;
And determining the slave device with the same interface parameters as the master device as the target slave device.
2. The method for connecting configuration devices according to claim 1, wherein the constructing the description file according to the device basic parameters, the configurable parameters and the interface parameters specifically includes:
and constructing the description file by adopting an extensible markup language according to the basic parameters of the equipment, the configurable parameters and the interface parameters.
3. The method according to claim 1, wherein the device base parameter includes an identity attribute of the configuration device, the identity attribute in the first description file is a master device attribute, and the identity attribute in the second description file is a slave device attribute.
4. The method of claim 1, wherein the type of configurable parameter comprises any one of an integer type, a string type, a structure type, an array type, a range type, and an enumeration type.
5. The connection method between configuration devices according to any one of claims 1 to 4, characterized in that after communicatively connecting the target slave device with the master device, the connection method further comprises:
Receiving a modification parameter input by a user;
updating the configurable parameters in the first description file and/or the second description file according to the modification parameters.
6. The method for connecting configuration devices according to any one of claims 1 to 4, wherein the step of communicatively connecting the target slave device with the master device specifically comprises:
determining a host path of the master device according to the first description file;
Determining the input/output address of the target slave device in the master device according to the second description file;
And the target slave device is in communication connection with the master device according to the host path and the input/output address.
7. An industrial control device, comprising a plurality of configuration devices, wherein the configuration devices comprise a master device and a slave device;
The master device comprises a first description file, and the slave device comprises a second description file;
The description file comprises basic parameters of the configuration equipment, configurable parameters of the configuration equipment and interface parameters of the configuration equipment;
The industrial control apparatus controls the master device and the slave device to be communicatively connected by performing the connection method between the configuration devices as claimed in any one of claims 1 to 6.
8. An industrial control device, comprising: a memory storing a program, and a processor implementing the steps of the connection method between configuration devices according to any one of claims 1 to 6 when the program is executed by the processor.
9. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the connection method between configuration devices according to any of claims 1 to 6.
10. An industrial control system, comprising:
The industrial control device of claim 7 or 8; and/or
The readable storage medium of claim 9.
CN202211403120.7A 2022-11-10 2022-11-10 Connection method, industrial control device and system between configuration equipment Active CN115801859B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211403120.7A CN115801859B (en) 2022-11-10 2022-11-10 Connection method, industrial control device and system between configuration equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211403120.7A CN115801859B (en) 2022-11-10 2022-11-10 Connection method, industrial control device and system between configuration equipment

Publications (2)

Publication Number Publication Date
CN115801859A CN115801859A (en) 2023-03-14
CN115801859B true CN115801859B (en) 2024-06-04

Family

ID=85436523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211403120.7A Active CN115801859B (en) 2022-11-10 2022-11-10 Connection method, industrial control device and system between configuration equipment

Country Status (1)

Country Link
CN (1) CN115801859B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138609A (en) * 2015-08-04 2015-12-09 广东瑞德智能科技股份有限公司 XML language based household appliance description method
WO2017012417A1 (en) * 2015-07-23 2017-01-26 深圳Tcl数字技术有限公司 Control method between multi-screen interactive devices, multi-screen interactive device, and system
CN106789258A (en) * 2016-12-24 2017-05-31 上海新时达电气股份有限公司 The collocation method of EPA
CN109565466A (en) * 2017-03-23 2019-04-02 华为技术有限公司 More equipment room labial synchronization method and apparatus
CN109669372A (en) * 2018-12-24 2019-04-23 苏州谷夫道自动化科技有限公司 A kind of configuration method and device
CN109725617A (en) * 2018-12-29 2019-05-07 杭州和利时自动化有限公司 A kind of construction method of industrial configuration platform, building system and relevant apparatus
CN110113196A (en) * 2019-04-26 2019-08-09 中车青岛四方机车车辆股份有限公司 A kind of protocol configuration method, device, equipment and medium
CN111176164A (en) * 2019-12-30 2020-05-19 深圳市英威腾电气股份有限公司 Method, device and medium for expanding multiple remote input and output modules
CN112367234A (en) * 2020-10-27 2021-02-12 深圳力维智联技术有限公司 Simulation data generation method, terminal device and computer-readable storage medium
CN112910766A (en) * 2019-12-03 2021-06-04 中国科学院沈阳自动化研究所 Edge computing intelligent gateway for field bus control system
CN113557694A (en) * 2019-03-27 2021-10-26 欧姆龙株式会社 Network management device, management method, management program, and recording medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140043401A (en) * 2011-05-20 2014-04-09 지멘스 악티엔게젤샤프트 Method and device for parameterizing an as-i slave
US20170344504A1 (en) * 2014-12-22 2017-11-30 Eaton Industries (Netherlands) B.V. Method for accessing a number of slave devices with registers by a master device over a network

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017012417A1 (en) * 2015-07-23 2017-01-26 深圳Tcl数字技术有限公司 Control method between multi-screen interactive devices, multi-screen interactive device, and system
CN105138609A (en) * 2015-08-04 2015-12-09 广东瑞德智能科技股份有限公司 XML language based household appliance description method
CN106789258A (en) * 2016-12-24 2017-05-31 上海新时达电气股份有限公司 The collocation method of EPA
CN109565466A (en) * 2017-03-23 2019-04-02 华为技术有限公司 More equipment room labial synchronization method and apparatus
CN109669372A (en) * 2018-12-24 2019-04-23 苏州谷夫道自动化科技有限公司 A kind of configuration method and device
CN109725617A (en) * 2018-12-29 2019-05-07 杭州和利时自动化有限公司 A kind of construction method of industrial configuration platform, building system and relevant apparatus
CN113557694A (en) * 2019-03-27 2021-10-26 欧姆龙株式会社 Network management device, management method, management program, and recording medium
CN110113196A (en) * 2019-04-26 2019-08-09 中车青岛四方机车车辆股份有限公司 A kind of protocol configuration method, device, equipment and medium
CN112910766A (en) * 2019-12-03 2021-06-04 中国科学院沈阳自动化研究所 Edge computing intelligent gateway for field bus control system
CN111176164A (en) * 2019-12-30 2020-05-19 深圳市英威腾电气股份有限公司 Method, device and medium for expanding multiple remote input and output modules
CN112367234A (en) * 2020-10-27 2021-02-12 深圳力维智联技术有限公司 Simulation data generation method, terminal device and computer-readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Automatic Configuration of OPC UA for Industrial Internet of Things Environments;Jose Miguel Gutierrez-Guerrero et al.;Electronics;20190529;第8卷(第6期);全文 *
Profibus现场总线控制***从站组态软件的研究与开发;赵坤姣;景效国;崔逸群;高龙军;;热力发电;20090115(第01期);全文 *

Also Published As

Publication number Publication date
CN115801859A (en) 2023-03-14

Similar Documents

Publication Publication Date Title
US6446202B1 (en) Process control configuration system for use with an AS-Interface device network
US7747416B2 (en) System and method for batch process control with diverse distributed control system protocols
US8229576B2 (en) Field device management apparatus and field device management system
US20070075916A1 (en) Generic utility supporting on-demand creation of customizable graphical user interfaces for viewing and specifying field device parameters
DE102011053951A1 (en) Method and device for managing process data
CN101763043B (en) For the method and system of automation collaborative framework
CN111782199B (en) Development method of PLC graphical editor based on XML technology
CN111552462A (en) Equipment model construction method and device of Internet of things equipment and storage medium
CN106708483B (en) Method and device for generating control interface of Internet of things equipment
CN113835799A (en) Field device configuration tool
US20220255987A1 (en) Method for linking objects of a control program of a control unit of an automation system, and development environment
US20120151321A1 (en) System for Generating Websites for Products with an Embedded Processor
CN115801859B (en) Connection method, industrial control device and system between configuration equipment
EP2649755B1 (en) Dynamic host profiles for option modules
US8713229B2 (en) Sensor interface engineering
JP5489535B2 (en) System configuration design apparatus, system configuration design program, and recording medium
US20220197238A1 (en) Development support device, method for controlling development support device, and recording medium
US20170168474A1 (en) Robot control device and communication system having communication function for communicating with programmable logic controller
US10936563B2 (en) System and method for merging a source data from a source application into a target data of a target application
CN101878468A (en) Methods and systems for converting automation software
CN117136342A (en) Development support device, control method for development support device, information processing program, and recording medium
JP2002189508A (en) Controller and recording medium with its program recorded
JP2004280299A (en) Controller, developing device and system
US7428218B2 (en) Flexible approach for representing different bus protocols
JP3326713B2 (en) Graphical programming method

Legal Events

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