WO2023044929A1 - Method and system for providing service associated with information system - Google Patents

Method and system for providing service associated with information system Download PDF

Info

Publication number
WO2023044929A1
WO2023044929A1 PCT/CN2021/121098 CN2021121098W WO2023044929A1 WO 2023044929 A1 WO2023044929 A1 WO 2023044929A1 CN 2021121098 W CN2021121098 W CN 2021121098W WO 2023044929 A1 WO2023044929 A1 WO 2023044929A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
message
control device
host device
feedback
Prior art date
Application number
PCT/CN2021/121098
Other languages
French (fr)
Chinese (zh)
Inventor
杨晓波
李冬
康尧磊
张传雨
熊磊
Original Assignee
西门子股份公司
西门子(中国)有限公司
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 西门子股份公司, 西门子(中国)有限公司 filed Critical 西门子股份公司
Priority to PCT/CN2021/121098 priority Critical patent/WO2023044929A1/en
Priority to CN202180102173.2A priority patent/CN117980835A/en
Publication of WO2023044929A1 publication Critical patent/WO2023044929A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form

Definitions

  • the present invention relates to the field of industrial control, and more particularly, to methods and systems for providing information systems, control devices, host devices, computing devices, computer readable storage media and computer program products.
  • IT Information Technology
  • OT Operation Technology
  • the control device In the existing technology, in order to obtain IT services, the control device needs an additional physical gateway or the control system and the host system need to be deployed on the same device hardware and support the shared memory method. However, this requires additional physical devices to increase the cost or is not applicable than traditional control equipment. In view of this, the present invention proposes a solution for providing services associated with information systems.
  • a first embodiment of the present disclosure proposes a method for providing a service associated with an information system, the method including:
  • control device sending a first message indicating the first request to a host device via a fieldbus, wherein both the control device and the host device are connected to the fieldbus;
  • the industrial process is executed based on the call feedback.
  • a second embodiment of the present disclosure proposes a method for providing a service associated with an information system, the method including:
  • a first message is received from a control device over a fieldbus indicating a first request for a service associated with an information system external to the control device, wherein the host device and The control devices are all connected to the field bus;
  • a second message indicating the call feedback is sent to the control device via the fieldbus.
  • a third embodiment of the present disclosure proposes a control device, which includes:
  • a requesting unit configured to initiate a first request for a service associated with an information system external to the control device during execution of an industrial process by the control device;
  • a sending unit configured to send a first message indicating the first request to a host device via a field bus, wherein both the control device and the host device are connected to the field bus;
  • a receiving unit configured to receive a second message indicating an invocation feedback for the service from the host device through the field bus to acquire the invocation feedback
  • An execution unit configured to execute the industrial process based on the call feedback.
  • a fourth embodiment of the present disclosure proposes a host device, which includes:
  • a receiving unit configured to receive a first message from a control device via a fieldbus indicating a first request for a service associated with an information system external to the control device, wherein the host device and said control device are both connected to said fieldbus;
  • an invoking unit configured to invoke the service in response to the first request, so as to obtain an invocation feedback for the service
  • a sending unit configured to send a second message indicating the call feedback to the control device through the field bus.
  • a fifth embodiment of the present disclosure proposes a system for providing services associated with an external information system, the system including:
  • PLC control equipment and host equipment are respectively connected to the field bus;
  • control device initiating a first request for a service associated with an information system external to said control device during execution of an industrial process
  • the industrial process is executed based on the call feedback.
  • a sixth embodiment of the present disclosure proposes a computing device, which includes:
  • the memory is used to store computer-executable instructions, which, when executed, cause the processor to execute the method according to the aforementioned first or second embodiment.
  • a seventh embodiment of the present disclosure proposes a computer-readable storage medium having stored thereon computer-executable instructions for performing the above-mentioned first or second The method described in the examples.
  • An eighth embodiment of the present disclosure proposes a computer program product that is tangibly stored on a computer-readable storage medium and includes computer-executable instructions that, when executed, cause at least A processor executes the method according to the aforementioned first or second embodiment.
  • the present invention connects the control device and the host device by using the field bus to obtain external IT services from the host device, the control device does not need to care whether it is directly connected to the service providing device, and can dynamically add or Remove services without changing the layout of the fieldbus network.
  • this solution eliminates the need to purchase additional physical equipment to connect to external information systems or upgrade legacy control equipment, and only needs to provide any required IT services to the control equipment through the host equipment, thereby reducing costs and improving Provide IT services flexibly.
  • FIG. 1 illustrates an exemplary system for providing services associated with an information system according to an embodiment of the present disclosure.
  • FIG. 2 shows a flowchart of an exemplary method for providing services associated with an information system, according to an embodiment of the present disclosure.
  • FIG. 3 shows a flowchart of another exemplary method for providing services associated with an information system according to an embodiment of the present disclosure.
  • Fig. 4 illustrates an exemplary control device according to an embodiment of the present disclosure.
  • Figure 5 illustrates an exemplary host device according to an embodiment of the present disclosure.
  • FIG. 6 illustrates an exemplary information flow for providing services associated with an information system, according to an embodiment of the present disclosure.
  • FIG. 7 shows a block diagram of an exemplary computing device according to an embodiment of the disclosure.
  • a service refers to a function provided by a software program or application running in an information system.
  • the present invention provides a solution for providing services associated with an information system through a fieldbus to solve the above-mentioned defects in the prior art.
  • FIG. 1 illustrates an exemplary system 100 for providing services associated with an information system, according to an embodiment of the present disclosure.
  • the system 100 includes a control device 110 and a host device 120 , which are respectively connected to a field bus 130 .
  • the control device 110 may be used to execute an industrial process and may need to access services associated with external information systems during the execution of the industrial process.
  • Control device 110 may send a request for service to host device 120 via fieldbus 130 .
  • the host device 120 can act as a proxy device for the service, and dispatch the corresponding service in response to the received request, and send the call feedback to the control device 110 through the field bus 130, so that the control device 110 can perform industrial operations according to the returned call feedback. process.
  • the invoked service may be provided directly by host device 120, and thus, host device 120 may invoke the service locally to obtain invocation feedback.
  • the invoked service cannot be directly provided by the host device 120, then the host device 120 can seek to provide services to other devices, such as shown in FIG. (e.g., via wired, wireless, and/or combined communication links) a plurality of server devices—a first server 140, a second server 150, a third server 160 (for illustration only, not limitation), and to These server devices request calling services to obtain calling feedback, and send the calling feedback to the control device 110 through the field bus 130, so that the control device 110 can execute the industrial process according to the returned calling feedback.
  • the communication link between the host device 120 and other service providing devices 140 , 150 and 160 is different from a field bus, and standard IT services can be provided through common TCP/IP or UDP on this communication link.
  • control devices, host devices, and servers in FIG. 1 is only for illustration, and there may be more control devices, more host devices, or more or fewer servers.
  • one or more control devices may obtain external services through one or more fieldbuses via one or more host devices, and the services may be provided by one or more host devices or other servers.
  • industrial fieldbus is usually not designed for IT service communication, and its communication protocol stack is incomplete or even modified, making fieldbus often unable to provide standard IT services through common TCP/IP or UDP methods, but through The field bus sends a service request to the host device, and the host device returns a call feedback about the service, so that the control device can easily obtain standard IT services.
  • control device 110 and the host device 120 in the system 100 will be further described in detail below with reference to FIGS. 2-6 .
  • FIG. 2 shows a flowchart of an exemplary method 200 for providing services associated with an information system, according to an embodiment of the present disclosure.
  • the method 200 can be implemented, for example, by the control device 110 of FIG. 1 .
  • step 201 at the control device 110 , a first request for a service associated with an information system external to the control device 110 is initiated during execution of an industrial process.
  • the control device 110 is limited by its own processing capability, and may need to call external services (for example, services of big data applications provided by a big data server, services of query applications provided by a database device, etc.) during the execution of an industrial process,
  • the control device 110 may initiate a first request for an external service.
  • step 202 at the control device 110 , a first message indicating a first request is sent to the host device 120 via the fieldbus 130 .
  • the control device 110 may have a communication interface that can directly transmit data on the fieldbus 130, or the control device 110 may be configured with a fieldbus driver or a bus adapter to transmit data on the fieldbus 130 through the communication interface.
  • step 203 at the control device 110, a second message indicating an invocation feedback for the service is received from the host device 120 through the fieldbus 130 to obtain the invocation feedback.
  • host device 120 can be equipped with a communication interface that can transmit data directly on fieldbus 130 in order to exchange data with control device 110 .
  • step 204 the industrial process is executed based on the call feedback.
  • the present invention obtains external IT services from the host device by using the field bus to connect the control device and the host device, so that the control device does not need to care whether it is directly connected to the service providing device, and can dynamically add or remove services Without changing the layout of the fieldbus network.
  • this solution eliminates the need to purchase additional physical equipment to connect to external information systems or upgrade legacy control equipment, and only needs to provide any required IT services to the control equipment through the host equipment, thereby reducing costs and improving Provide IT services flexibly.
  • the first request may include a service name and parameters for the service.
  • the service name is used to identify the requested service, and the parameters are, for example, entry parameters required by the service.
  • step 202 may include: encoding the first request in a first message, wherein the first message follows the data format of the communication protocol of the field bus 130; and sending the second request according to the communication protocol of the field bus 130 a message.
  • the control device 601 may serialize the service name and parameters to generate or encode a byte group, and encapsulate the coded byte group in the first message according to the data format of the fieldbus communication protocol.
  • the control device 601 and the host device 602 may also negotiate the rules of data transmission (for example, byte order, etc.) in advance, and use the rules for configuration.
  • the invocation feedback may include the service name of the service and the invocation result.
  • the service name is used to identify the requested service, and the result of the call is, for example, the data required for further execution of the industrial process.
  • step 203 may include: receiving the second message according to the communication protocol of the fieldbus 130, wherein the second message complies with the data format of the communication protocol of the fieldbus 130; and decoding the second message to obtain call feedback.
  • the control device 110 may receive the second message according to the communication protocol of the field bus, extract the byte group corresponding to the call feedback from the second message, and decode the byte group by, for example, deserializing the byte group. Service name and call result.
  • control device 110 may include a PLC control device, or other control devices with limited functions, such as various traditional programmable control devices. This enables easy access to external IT services even for control devices with limited functionality.
  • the fieldbus may include at least one of the following types: EtherCAT, PROFIBUS, PROFINET, Foundation Fieldbus, or Modbus. These types of fieldbuses can be various high-speed fieldbuses to meet the real-time requirements required by industrial processes.
  • FIG. 3 shows a flowchart of another exemplary method 300 for providing services associated with an information system according to an embodiment of the present disclosure.
  • Method 300 may be implemented, for example, by host device 120 of FIG. 1 .
  • step 301 at the host device 120 a first message is received from the control device 110 via the fieldbus 130 indicating a first request for a service associated with an information system external to the control device 110 .
  • step 302 the host device 120 invokes the service in response to the first request to obtain invocation feedback for the service.
  • step 303 at the host device 120, a second message indicating to invoke feedback is sent to the control device 110 through the field bus 130.
  • the present invention obtains external IT services from the host device by using the field bus to connect the control device and the host device, so that the control device does not need to care whether it is directly connected to the service providing device, and can dynamically add or remove services Without changing the layout of the fieldbus network.
  • this solution eliminates the need to purchase additional physical equipment to connect to external information systems or upgrade legacy control equipment, and only needs to provide any required IT services to the control equipment through the host equipment, thereby reducing costs and improving Provide IT services flexibly.
  • the first request includes a service name and parameters for the service.
  • the service name is used to identify the requested service, and the parameters are, for example, entry parameters required by the service.
  • step 301 may include: receiving the first message according to the communication protocol of the fieldbus 130, wherein the first message follows the data format of the communication protocol of the fieldbus 130; and decoding the first message to obtain the first request.
  • the host device 120 may receive the first message according to the communication protocol of the field bus, and extract the byte group corresponding to the first request from the first message, and decode the byte group by, for example, deserializing the byte group Make the first request.
  • step 302 may include: determining whether the host device 120 can directly provide the service; if the host device 120 can directly provide the service, calling the service locally at the host device 120 to obtain a call feedback, or if the host device 120 can directly provide the service If the device 120 fails to provide the service directly, the host device 120 requests the service providing device capable of providing the service to call the service, so as to obtain the call feedback. For example, host device 120 may determine whether it can directly provide the service based on, for example, the service name, and if the service cannot be provided directly, host device 120 may determine from the service name (and optionally, routing information) the service it is connected to.
  • the service providing device (for example, server 140-160) that can provide the service, and request invoking service to the service providing device, for example, can request invoking service through HTTP, TCP/IP, UDP, RPC or other various possible ways to get call feedback.
  • the invocation feedback may include the service name of the service and the invocation result.
  • the service name is used to identify the requested service, and the result of the call is, for example, the data required for further execution of the industrial process.
  • step 303 may include: encoding the call feedback into a second message, wherein the second message follows the data format of the communication protocol of the fieldbus 130; sending the second message according to the communication protocol of the fieldbus 130 .
  • the host device 120 may perform serialization on the service name and the call result to generate or encode a byte group, and encapsulate the coded byte group in the second message according to the data format of the fieldbus communication protocol.
  • the fieldbus may include at least one of the following types: EtherCAT, PROFIBUS, PROFINET, Foundation Fieldbus, or Modbus. These types of fieldbuses can be various high-speed fieldbuses to meet the real-time requirements required by industrial processes.
  • FIG. 4 illustrates an exemplary control device 300 according to an embodiment of the present disclosure.
  • the control device 300 includes a request unit 401 , a sending unit 402 , a receiving unit 403 and an execution unit 404 .
  • the request unit 401 is configured to initiate a first request for a service associated with an information system external to the control device during execution of the industrial process.
  • the sending unit 402 is configured to send the first message indicating the first request to the host device through the field bus, wherein both the control device and the host device are connected to the field bus.
  • the receiving unit 403 is configured to receive the second message indicating the call feedback for the service from the host device through the field bus to obtain the call feedback.
  • the execution unit 404 is configured to execute the industrial process based on the call feedback.
  • the first request includes a service name and parameters for the service.
  • the sending unit 402 may be configured to: encode the first request in the first message, wherein the first message follows the data format of the fieldbus communication protocol; and send the first request according to the fieldbus communication protocol. information.
  • the invocation feedback includes a service name of the service and an invocation result.
  • the receiving unit 403 may be configured to: receive the second message according to the communication protocol of the field bus, wherein the second message complies with the data format of the communication protocol of the field bus; and decode the second message to obtain the calling feedback.
  • control device 300 may include a PLC control device, or other control devices with limited functions, such as various traditional programmable control devices.
  • the fieldbus may include at least one of the following types: EtherCAT, PROFIBUS, PROFINET, Foundation Fieldbus, or Modbus.
  • FIG. 5 illustrates an exemplary host device 500 according to an embodiment of the disclosure.
  • the host device 500 includes a receiving unit 501 , a calling unit 502 and a sending unit 503 .
  • the receiving unit 501 is configured to receive a first message indicating a first request from the control device through the field bus, the first request is for a service associated with an information system outside the control device, wherein both the host device and the control device are connected to Fieldbus.
  • the calling unit 502 is configured to call a service in response to the first request, so as to obtain a call feedback for the service.
  • the sending unit 503 is configured to send the second message indicating invoking feedback to the control device through the field bus.
  • the first request includes a service name and parameters for the service.
  • the receiving unit 501 may be configured to: receive the first message according to the communication protocol of the field bus, wherein the first message follows the data format of the communication protocol of the field bus; and decode the first message to obtain the first request .
  • the calling unit 502 may be configured to: determine whether the host device can directly provide the service; if the host device can directly provide the service, call the service locally at the host device to obtain the call feedback, or if the host device If the service cannot be directly provided, the host device requests the service providing device capable of providing the service to call the service, so as to obtain the call feedback.
  • the invocation feedback may include service name and invocation result.
  • the sending unit 503 may be configured to: encode the call feedback into the second message, wherein the second message follows the data format of the fieldbus communication protocol; and send the second message according to the fieldbus communication protocol .
  • the fieldbus may include at least one of the following types: EtherCAT, PROFIBUS, PROFINET, Foundation Fieldbus, or Modbus.
  • FIG. 6 shows an exemplary information flow 600 for providing services associated with an information system according to an embodiment of the present disclosure.
  • the information flow 600 depicts an information exchange process.
  • the control device 601 may be the control device 110 of FIG. 1 or the control device 400 of FIG. 4
  • the host device 602 may be the host device 120 of FIG. 1 or the host device 500 of FIG. devices, such as host device 602, any one of server devices 140-160 in FIG. 1 .
  • control device 601 executes an industrial process in an industrial or process control system, it needs to request an external IT service, so it initiates (610) a first request about the external service, and the first request may include a service name and parameters.
  • control device 601 sends (620) a first message to the host device 602 via the fieldbus, wherein the first request is encoded in the first message.
  • the control device 601 may serialize the service name and parameters to generate or encode a byte group, and encapsulate the coded byte group in the first message according to the data format of the communication protocol of the field bus, and follow the The communication protocol of the field bus sends the first message.
  • the host device 602 receives (630) the first message over the Fieldbus.
  • the host device 602 may receive the first message according to the communication protocol of the field bus, and extract the byte group corresponding to the first request from the first message, and decode the byte group by, for example, deserializing the byte group Make the first request.
  • host device 602 in response to the first request, invokes (640) the service for which the first request is directed.
  • the host device 602 when the host device 602 can determine that it can directly provide the service according to the service name, for example, the service providing device 603 is the host device 602, which processes (650) the service request and returns (660) the call feedback, wherein , the call feedback can include the service name and call result.
  • the host device 602 can determine that it cannot directly provide the service according to the service name, for example, the service providing device 603 is different from the host device 602, and the host device 602 can use the service name (and optionally , routing information) to determine the service providing device 603 that it is connected to that can provide services, and request the service providing device 603 to call (640) the service, for example, through HTTP, TCP/IP, RPC or other possible way to request a service call.
  • the service providing device 603 processes (650) the service request, and returns (660) an invocation feedback to the host device 602, wherein the invocation feedback may include a service name and an invocation result.
  • the host device 602 sends (670) a second message to the control device 601 via the fieldbus, wherein the call feedback is encoded in the second message.
  • the host device 602 may serialize the service name and the call result to generate or encode a byte group, and encapsulate the coded byte group in the second message according to the data format of the fieldbus communication protocol, and The second message is sent according to the communication protocol of the field bus.
  • control device 601 receives (680) a second message via the fieldbus.
  • the control device 601 may receive the second message according to the communication protocol of the field bus, and extract the byte group corresponding to the call feedback from the second message, and decode the byte group by, for example, deserializing the byte group Call for feedback.
  • the control device 601 executes an industrial process having multiple stages, where each stage corresponds to a respective set of process parameters.
  • the control device 601 can obtain the process parameter set of each stage in multiple time periods, and send the process parameter set to the host device 602 through the field bus, and the host device 602 provides the process parameter set to the operation analysis application (for example, big data Analysis application) service providing device 603 or the host device 602 itself, the analysis application can build an analysis model based on the set of process parameters under normal conditions about each stage obtained in the past time period.
  • the operation analysis application for example, big data Analysis application
  • the control device 601 may send a first message to the host device 602 through the field bus, the first message indicating a first request about the analysis application.
  • the host device 602 may invoke the analysis application by the service providing device 603 or the host device 602 itself, and use the established analysis model to analyze the process parameter set of each stage acquired in the current time period, To determine whether the execution of this stage is abnormal, and the host device 602 codes the analysis result as a call feedback in the second message and sends it back to the control device 601 via the field bus, so that the control device 601 can execute according to the analysis result (for example, Stop the current stage, troubleshoot the current stage, or continue to the next stage) of the industrial process.
  • the analysis result for example, Stop the current stage, troubleshoot the current stage, or continue to the next stage
  • FIG. 7 shows a block diagram of an exemplary computing device 700 for providing services associated with an information system, according to an embodiment of the disclosure.
  • the computing device 700 includes a processor 701 and a memory 702 coupled with the processor 701 .
  • the memory 702 is used for storing computer-executable instructions, and when the computer-executable instructions are executed, the processor 701 executes the methods in the above embodiments (for example, any one or more steps in the foregoing method 200 or 300).
  • a computer-readable storage medium carries computer-readable program instructions for implementing various embodiments of the present disclosure.
  • a computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device.
  • a computer readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • Computer-readable storage media include: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory), static random access memory (SRAM), compact disc read only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanically encoded device, such as a printer with instructions stored thereon A hole card or a raised structure in a groove, and any suitable combination of the above.
  • RAM random access memory
  • ROM read-only memory
  • EPROM erasable programmable read-only memory
  • flash memory static random access memory
  • SRAM static random access memory
  • CD-ROM compact disc read only memory
  • DVD digital versatile disc
  • memory stick floppy disk
  • mechanically encoded device such as a printer with instructions stored thereon
  • a hole card or a raised structure in a groove and any suitable combination of the above.
  • computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., pulses of light through fiber optic cables), or transmitted electrical signals.
  • the present disclosure provides a computer-readable storage medium having computer-executable instructions stored thereon for performing various implementations of the present disclosure. method in the example.
  • the present disclosure provides a computer program product tangibly stored on a computer-readable storage medium and comprising computer-executable instructions that, when executed, cause At least one processor executes the methods in various embodiments of the present disclosure.
  • the various example embodiments of the present disclosure may be implemented in hardware or special purpose circuits, software, firmware, logic, or any combination thereof. Certain aspects may be implemented in hardware, while other aspects may be implemented in firmware or software, which may be executed by a controller, microprocessor or other computing device.
  • aspects of the embodiments of the present disclosure are illustrated or described as block diagrams, flowcharts, or using some other graphical representation, it is to be understood that the blocks, devices, systems, techniques, or methods described herein may serve as non-limiting Examples are implemented in hardware, software, firmware, special purpose circuits or logic, general purpose hardware or controllers or other computing devices, or some combination thereof.
  • the computer-readable program instructions or computer program products used to execute various embodiments of the present disclosure can also be stored in the cloud, and when called, the user can access the program stored on the cloud for execution through the mobile Internet, fixed network or other networks.
  • the computer-readable program instructions of an embodiment of the present disclosure implement the technical solutions disclosed in accordance with various embodiments of the present disclosure.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computer And Data Communications (AREA)

Abstract

Provided in the embodiments of the present disclosure are a method and system for providing a service associated with an external information system. An exemplary method comprises: at a control device, during the execution of an industrial process, initiating a first request for a service associated with an information system outside the control device; at the control device, sending, to a host device and by means of a field bus, a first message which indicates the first request; at the control device, receiving, from the host device and by means of the field bus, a second message which indicates call feedback for the service, so as to acquire the call feedback; and at the control device, executing the industrial process on the basis of the call feedback. By means of the method in the embodiments of the present disclosure, there is no need to purchase an additional physical device to be connected to an external information system or to upgrade a conventional control device, and any required service is provided to a control device by means of only a host device, thereby reducing the cost and more flexibly providing a service.

Description

用于提供与信息系统相关联的服务的方法和系统Method and system for providing services associated with an information system 技术领域technical field
本发明涉及工业控制领域,更具体地说,涉及用于提供与信息系统相关联的方法和系统、控制设备、主机设备、计算设备、计算机可读存储介质和计算机程序产品。The present invention relates to the field of industrial control, and more particularly, to methods and systems for providing information systems, control devices, host devices, computing devices, computer readable storage media and computer program products.
背景技术Background technique
在工业领域中,信息技术(Information Technology,IT)与操作技术(Operation Technology,OT)之间天然存在着种种差异。长期以来IT与OT之间都是相互隔离的状态,随着工业信息化与数字化的发展,IT与OT之间的这种鸿沟阻碍了制造业的前进。In the industrial field, there are naturally various differences between Information Technology (IT) and Operation Technology (OT). For a long time, IT and OT have been isolated from each other. With the development of industrial informatization and digitalization, this gap between IT and OT has hindered the progress of the manufacturing industry.
随着工业4.0的来临,越来越多的企业开始将IT技术引入到OT技术之中。将这些新的IT技术引入OT领域需要增强工业领域中的控制设备(诸如,PLC控制设备)的能力,使其能够调用IT服务。With the advent of Industry 4.0, more and more enterprises have begun to introduce IT technology into OT technology. Introducing these new IT technologies into the OT field requires enhancing the capabilities of control devices (such as PLC control devices) in the industrial field to enable them to invoke IT services.
在现有技术中,一种解决方案是如中国实用新型专利CN205490628U和CN207039641U所公开的,通过物理网关(例如,PLC(可编程控制器)网关)和接口协议转换(例如,串口到不同网络接口的转换)来实现PLC控制设备与外部互联网的连接。这种解决方案需要额外的设备将PLC控制设备连接到互联网,并增加了成本,而且还需要为这些设备添加电源并调整这些设备的网络布局。In the prior art, a solution is as disclosed in Chinese utility model patents CN205490628U and CN207039641U, through physical gateway (for example, PLC (programmable controller) gateway) and interface protocol conversion (for example, serial port to different network interface conversion) to realize the connection between the PLC control equipment and the external Internet. This solution requires additional equipment to connect the PLC control equipment to the Internet and increases the cost. It also requires adding power to these equipment and adjusting the network layout of these equipment.
在现有技术中,另一种解决方案是通过硬件支持的共享内存方式来实现在支持软件的控制系统上运行的控制应用程序与主机系统上安装的IT服务之间的通信。这种解决方案需要将控制系统和主机系统部署在同一设备硬件上,并且不适用于不支持该共享内存方式的传统控制设备,例如遵循IEC61131-3使用诸如ST语言等的编程语言来编程的传统PLC控制设备(例如,西门子的S7-1200PLC控制器设备)。In the prior art, another solution is to realize the communication between the control application running on the software-enabled control system and the IT service installed on the host system through a hardware-supported shared memory approach. This solution needs to deploy the control system and the host system on the same device hardware, and is not suitable for traditional control devices that do not support this shared memory method, such as following the tradition of IEC61131-3 using programming languages such as ST language to program PLC control device (for example, Siemens' S7-1200 PLC controller device).
因此,亟需一种改进的调用外部IT服务的解决方案。Therefore, an improved solution for invoking external IT services is urgently needed.
发明内容Contents of the invention
现有技术中,为了获取IT服务,控制设备需要额外的物理网关或者需要将控制系统和主机系统部署在同一设备硬件上并支持共享内存方式,然而这需要额外的物理设备增加了成本或者不适用于传统的控制设备。有鉴于此,本发明提出了用于提供与信息系统相关联的服务的解决方案。In the existing technology, in order to obtain IT services, the control device needs an additional physical gateway or the control system and the host system need to be deployed on the same device hardware and support the shared memory method. However, this requires additional physical devices to increase the cost or is not applicable than traditional control equipment. In view of this, the present invention proposes a solution for providing services associated with information systems.
本公开的第一实施例提出了一种用于提供与信息系统相关联的服务的方法,该方法包括:A first embodiment of the present disclosure proposes a method for providing a service associated with an information system, the method including:
在控制设备处,在执行工业过程期间发起对与在所述控制设备外部的信息系统相关联的服务的第一请求;Initiating, at a control device during execution of an industrial process, a first request for a service associated with an information system external to said control device;
在所述控制设备处,通过现场总线向主机设备发送指示所述第一请求的第一消息,其中,所述控制设备和所述主机设备均连接到所述现场总线;at the control device, sending a first message indicating the first request to a host device via a fieldbus, wherein both the control device and the host device are connected to the fieldbus;
在所述控制设备处,通过所述现场总线从所述主机设备接收指示针对所述服务的调用反馈的第二消息以获取所述调用反馈;以及receiving, at the control device, a second message indicating invocation feedback for the service from the host device over the fieldbus to obtain the invocation feedback; and
在所述控制设备处,基于所述调用反馈来执行所述工业过程。At the control device, the industrial process is executed based on the call feedback.
本公开的第二实施例提出了一种用于提供与信息系统相关联的服务的方法,该方法包括:A second embodiment of the present disclosure proposes a method for providing a service associated with an information system, the method including:
在主机设备处,通过现场总线从控制设备接收指示第一请求的第一消息,所述第一请求是针对与在所述控制设备外部的信息系统相关联的服务,其中,所述主机设备和所述控制设备均连接到所述现场总线;At a host device, a first message is received from a control device over a fieldbus indicating a first request for a service associated with an information system external to the control device, wherein the host device and The control devices are all connected to the field bus;
所述主机设备响应于所述第一请求而调用所述服务,以获得针对所述服务的调用反馈;以及invoking the service by the host device in response to the first request to obtain invocation feedback for the service; and
在所述主机设备处,通过所述现场总线向所述控制设备发送指示所述调用反馈的第二消息。At the host device, a second message indicating the call feedback is sent to the control device via the fieldbus.
本公开的第三实施例提出了一种控制设备,该控制设备包括:A third embodiment of the present disclosure proposes a control device, which includes:
请求单元,被配置为在所述控制设备执行工业过程期间发起对与在所述控制设备外部的信息系统相关联的服务的第一请求;a requesting unit configured to initiate a first request for a service associated with an information system external to the control device during execution of an industrial process by the control device;
发送单元,被配置为通过现场总线向主机设备发送指示所述第一请求的第一消息,其中,所述控制设备和所述主机设备均连接到所述现场总线;a sending unit configured to send a first message indicating the first request to a host device via a field bus, wherein both the control device and the host device are connected to the field bus;
接收单元,被配置为通过所述现场总线从所述主机设备接收指示针对所述服务的调用反馈的第二消息以获取所述调用反馈;a receiving unit configured to receive a second message indicating an invocation feedback for the service from the host device through the field bus to acquire the invocation feedback;
执行单元,被配置为基于所述调用反馈来执行所述工业过程。An execution unit configured to execute the industrial process based on the call feedback.
本公开的第四实施例提出了一种主机设备,该主机设备包括:A fourth embodiment of the present disclosure proposes a host device, which includes:
接收单元,被配置为通过现场总线从控制设备接收指示第一请求的第一消息,所述第一请求是针对与在所述控制设备外部的信息系统相关联的服务,其中,所述主机设备和所述控制设备均连接到所述现场总线;a receiving unit configured to receive a first message from a control device via a fieldbus indicating a first request for a service associated with an information system external to the control device, wherein the host device and said control device are both connected to said fieldbus;
调用单元,被配置为响应于所述第一请求而调用所述服务,以获得针对所述服务的调用反馈;以及an invoking unit configured to invoke the service in response to the first request, so as to obtain an invocation feedback for the service; and
发送单元,被配置为通过所述现场总线向所述控制设备发送指示所述调用反馈的第二消息。A sending unit configured to send a second message indicating the call feedback to the control device through the field bus.
本公开的第五实施例提出了一种用于提供与外部信息系统相关联的服务的系统,该系统包括:A fifth embodiment of the present disclosure proposes a system for providing services associated with an external information system, the system including:
PLC控制设备和主机设备,分别与现场总线连接;PLC control equipment and host equipment are respectively connected to the field bus;
其中,in,
在所述控制设备处,在执行工业过程期间发起对与在所述控制设备外部的信息系统相关联的服务的第一请求;at said control device, initiating a first request for a service associated with an information system external to said control device during execution of an industrial process;
在所述控制设备处,通过所述现场总线向主机设备发送指示所述第一请求的第一消息;at the control device, sending a first message indicating the first request to a host device via the fieldbus;
在所述主机设备处,通过所述现场总线从所述控制设备接收所述第一消息;at the host device, receiving the first message from the control device over the fieldbus;
所述主机设备响应于所述第一请求而调用所述服务,以获得针对所述服务的调用反馈;invoking the service by the host device in response to the first request to obtain invocation feedback for the service;
在所述主机设备处,通过所述现场总线向所述主机设备发送指示所述调用反馈的第二消息;at the host device, sending a second message indicating the call feedback to the host device via the field bus;
在所述控制设备处,通过所述现场总线从所述主机设备接收所述第二消息以获取所述调用反馈;以及at the control device, receiving the second message from the host device over the fieldbus to obtain the call feedback; and
在所述控制设备处,基于所述调用反馈来执行所述工业过程。At the control device, the industrial process is executed based on the call feedback.
本公开的第六实施例提出了一种计算设备,该计算设备包括:A sixth embodiment of the present disclosure proposes a computing device, which includes:
处理器;以及processor; and
存储器,其用于存储计算机可执行指令,当所述计算机可执行指令被执行时使得所述处理器执行根据前述第一或第二实施例所述的方法。The memory is used to store computer-executable instructions, which, when executed, cause the processor to execute the method according to the aforementioned first or second embodiment.
本公开的第七实施例提出了一种计算机可读存储介质,该计算机可读存 储介质具有存储在其上的计算机可执行指令,所述计算机可执行指令用于执行根据前述第一或第二实施例所述的方法。A seventh embodiment of the present disclosure proposes a computer-readable storage medium having stored thereon computer-executable instructions for performing the above-mentioned first or second The method described in the examples.
本公开的第八实施例提出了一种计算机程序产品,该计算机程序产品被有形地存储在计算机可读存储介质上,并且包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行根据前述第一或第二实施例所述的方法。An eighth embodiment of the present disclosure proposes a computer program product that is tangibly stored on a computer-readable storage medium and includes computer-executable instructions that, when executed, cause at least A processor executes the method according to the aforementioned first or second embodiment.
从上述方案中可以看出,由于本发明通过利用现场总线来连接控制设备和主机设备以从主机设备获取外部IT服务,使得控制设备无需关心是否直接连接到服务提供设备,并且可以动态地添加或移除服务而无需改变现场总线网络的布局。此外,该解决方案还使得无需购买额外的物理设备来连接到外部信息系统或对传统控制设备进行升级,并且仅需通过主机设备来向控制设备提供任何需要的IT服务,从而降低了成本并更灵活地提供IT服务。As can be seen from the above scheme, because the present invention connects the control device and the host device by using the field bus to obtain external IT services from the host device, the control device does not need to care whether it is directly connected to the service providing device, and can dynamically add or Remove services without changing the layout of the fieldbus network. In addition, this solution eliminates the need to purchase additional physical equipment to connect to external information systems or upgrade legacy control equipment, and only needs to provide any required IT services to the control equipment through the host equipment, thereby reducing costs and improving Provide IT services flexibly.
附图说明Description of drawings
结合附图并参考以下详细说明,本公开的各实施例的特征、优点及其他方面将变得更加明显,在此以示例性而非限制性的方式示出了本公开的若干实施例,在附图中:The features, advantages and other aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings, which show several embodiments of the present disclosure by way of illustration and not limitation. In the attached picture:
图1示出了根据本公开的实施例的、用于提供与信息系统相关联的服务的示例性系统。FIG. 1 illustrates an exemplary system for providing services associated with an information system according to an embodiment of the present disclosure.
图2示出根据本公开的实施例的、用于提供与信息系统相关联的服务的示例性方法的流程图。FIG. 2 shows a flowchart of an exemplary method for providing services associated with an information system, according to an embodiment of the present disclosure.
图3示出了根据本公开的实施例的、用于提供与信息系统相关联的服务的另一示例性方法的流程图。FIG. 3 shows a flowchart of another exemplary method for providing services associated with an information system according to an embodiment of the present disclosure.
图4示出了根据本公开的实施例的示例性控制设备。Fig. 4 illustrates an exemplary control device according to an embodiment of the present disclosure.
图5示出了根据本公开的实施例的示例性主机设备。Figure 5 illustrates an exemplary host device according to an embodiment of the present disclosure.
图6示出了根据本公开的实施例的、用于提供与信息系统相关联的服务的示例性信息流。FIG. 6 illustrates an exemplary information flow for providing services associated with an information system, according to an embodiment of the present disclosure.
图7示出了根据本公开的实施例的示例性计算设备的框图。FIG. 7 shows a block diagram of an exemplary computing device according to an embodiment of the disclosure.
其中,附图标记如下:Wherein, the reference signs are as follows:
100系统100 systems
110控制设备110 control equipment
120主机设备120 host equipment
130现场总线130 Fieldbus
140第一服务器140 first server
150第二服务器150 second server
160第三服务器160 third server
200方法200 methods
201步骤201 steps
202步骤202 steps
203步骤203 steps
204步骤204 steps
300方法300 method
301步骤301 steps
302步骤302 steps
303步骤303 steps
400主机设备400 host devices
401请求单元401 Request Unit
402发送单元402 sending unit
403接收单元403 receiving unit
404执行单元404 execution unit
500主机设备500 host devices
501接收单元501 receiving unit
502调用单元502 call unit
503发送单元503 sending unit
600信息流600 information flow
601控制设备601 control equipment
602主机设备602 host device
603服务提供设备603 Service Provider Equipment
610发起针对外部信息系统的服务的第一请求610 initiates a first request for a service of an external information system
620发送指示第一请求的第一消息620 sends a first message indicating the first request
630接收第一消息630 receiving the first message
640调用服务640 call service
650处理服务请求650 process service request
660返回调用反馈660 return call feedback
670发送指示调用反馈的第二消息670 sends a second message indicating the call feedback
680接收第二消息680 receives the second message
700计算设备700 computing devices
701处理器701 processor
702存储器702 memory
具体实施方式Detailed ways
以下参考附图详细描述本公开的各个示例性实施例。虽然以下所描述的示例性方法、装置包括在其它组件当中的硬件上执行的软件和/或固件,但是应当注意,这些示例仅仅是说明性的,而不应看作是限制性的。例如,考虑在硬件中独占地、在软件中独占地、或在硬件和软件的任何组合中可以实施任何或所有硬件、软件和固件组件。因此,虽然以下已经描述了示例性的方法和装置,但是本领域的技术人员应容易理解,所提供的示例并不用于限制用于实现这些方法和装置的方式。Various exemplary embodiments of the present disclosure are described in detail below with reference to the accompanying drawings. While the example methods, apparatus described below include software and/or firmware executing on hardware, among other components, it should be noted that these examples are illustrative only and should not be viewed as limiting. For example, it is contemplated that any or all hardware, software, and firmware components may be implemented exclusively in hardware, exclusively in software, or in any combination of hardware and software. Therefore, although exemplary methods and apparatuses have been described below, those skilled in the art will readily understand that the examples provided are not intended to limit the manner in which these methods and apparatuses are implemented.
此外,附图中的流程图和框图示出了根据本公开的各个实施例的方法和系统的可能实现的体系架构、功能和操作。应当注意,方框中所标注的功能也可以按照不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,或者它们有时也可以按照相反的顺序执行,这取决于所涉及的功能。同样应当注意的是,流程图和/或框图中的每个方框、以及流程图和/或框图中的方框的组合,可以使用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以使用专用硬件与计算机指令的组合来实现。Furthermore, the flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of methods and systems according to various embodiments of the present disclosure. It should be noted that the functions noted in the block may also occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block in the flowchart and/or block diagrams, and combinations of blocks in the flowchart and/or block diagrams, can be implemented using a dedicated hardware-based system that performs the specified functions or operations , or can be implemented using a combination of dedicated hardware and computer instructions.
本文所使用的术语“包括”、“包含”及类似术语是开放性的术语,即“包括/包含但不限于”,表示还可以包括其他内容。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”等等。The terms "including", "comprising" and similar terms used herein are open-ended terms, that is, "including/including but not limited to", which means that other contents may also be included. The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one further embodiment" and so on.
在本申请中,服务是指由信息系统中运行的软件程序或应用提供的功能。In this application, a service refers to a function provided by a software program or application running in an information system.
如前所述,现有技术中为了获取IT服务,需要额外的物理网关设备将控制设备连接到互联网,或者需要将控制系统和主机系统部署在同一设备硬 件上并通过共享内存方式来获取IT服务,然而这增加了额外的成本并需要调整网络布局,或者不适用于传统类型的控制设备。有鉴于此,本发明提供了一种用于通过现场总线提供与信息系统相关联的服务的解决方案以解决现有技术中的上述缺陷。As mentioned above, in order to obtain IT services in the prior art, an additional physical gateway device is required to connect the control device to the Internet, or the control system and the host system need to be deployed on the same device hardware and obtain IT services through shared memory , however this adds additional cost and requires adjustments to the network layout, or is not suitable for traditional types of control devices. In view of this, the present invention provides a solution for providing services associated with an information system through a fieldbus to solve the above-mentioned defects in the prior art.
图1示出了根据本公开的实施例的、用于提供与信息系统相关联的服务的示例性系统100。系统100包括控制设备110和主机设备120,分别与现场总线130连接。控制设备110可用于执行工业过程,并在执行工业过程期间可能需要访问与外部的信息系统相关联的服务。控制设备110可通过现场总线130将对服务的请求发送给主机设备120。主机设备120可充当该服务的代理设备,并响应于接收到的请求而调度相应的服务,并通过现场总线130将调用反馈发送给控制设备110,使得控制设备110可根据返回的调用反馈执行工业过程。在一些情况下,所调用的服务可由主机设备120直接提供,因此,主机设备120可本地调用服务以获得调用反馈。在一些情况下,所调用的服务不可由主机设备120直接提供,则主机设备120可寻求向能够提供服务的其他设备,诸如图1所示的与主机设备120通过不同于现场总线的信息网络连接(例如,通过有线、无线、和/或组合的通信链路)的多个服务器设备—第一服务器140、第二服务器150、第三服务器160(仅为举例说明,而非限制),并向这些服务器设备请求调用服务,以获取调用反馈,并通过现场总线130将调用反馈发送给控制设备110,使得控制设备110可根据返回的调用反馈执行工业过程。例如,主机设备120和其他服务提供设备140,150和160之间的通信链路不同于现场总线,并可以在该通信链路上通过常见的TCP/IP或UDP的方式提供标准的IT服务。FIG. 1 illustrates an exemplary system 100 for providing services associated with an information system, according to an embodiment of the present disclosure. The system 100 includes a control device 110 and a host device 120 , which are respectively connected to a field bus 130 . The control device 110 may be used to execute an industrial process and may need to access services associated with external information systems during the execution of the industrial process. Control device 110 may send a request for service to host device 120 via fieldbus 130 . The host device 120 can act as a proxy device for the service, and dispatch the corresponding service in response to the received request, and send the call feedback to the control device 110 through the field bus 130, so that the control device 110 can perform industrial operations according to the returned call feedback. process. In some cases, the invoked service may be provided directly by host device 120, and thus, host device 120 may invoke the service locally to obtain invocation feedback. In some cases, the invoked service cannot be directly provided by the host device 120, then the host device 120 can seek to provide services to other devices, such as shown in FIG. (e.g., via wired, wireless, and/or combined communication links) a plurality of server devices—a first server 140, a second server 150, a third server 160 (for illustration only, not limitation), and to These server devices request calling services to obtain calling feedback, and send the calling feedback to the control device 110 through the field bus 130, so that the control device 110 can execute the industrial process according to the returned calling feedback. For example, the communication link between the host device 120 and other service providing devices 140 , 150 and 160 is different from a field bus, and standard IT services can be provided through common TCP/IP or UDP on this communication link.
此外,应当理解,图1中的控制设备和主机设备、服务器的数量仅是举例说明,可以存在更多的控制设备、更多的主机设备、或更多或更少的服务器。例如,一个或多个控制设备可以通过一个或多个现场总线经由一个或多个主机设备来获取外部的服务,该服务可由一个或多个主机设备或其他服务器提供。In addition, it should be understood that the number of control devices, host devices, and servers in FIG. 1 is only for illustration, and there may be more control devices, more host devices, or more or fewer servers. For example, one or more control devices may obtain external services through one or more fieldbuses via one or more host devices, and the services may be provided by one or more host devices or other servers.
虽然工业现场总线通常不是为IT服务通信设计的,并且其通信协议栈是不完整或甚至有修改的,使得现场总线往往无法通过常见的TCP/IP或者UDP的方式提供标准的IT服务,但是通过现场总线向主机设备发送关于服务的请求,并由主机设备返回关于服务的调用反馈,使得控制设备能够容易 地获得标准的IT服务。Although industrial fieldbus is usually not designed for IT service communication, and its communication protocol stack is incomplete or even modified, making fieldbus often unable to provide standard IT services through common TCP/IP or UDP methods, but through The field bus sends a service request to the host device, and the host device returns a call feedback about the service, so that the control device can easily obtain standard IT services.
下面结合图2-图6来进一步详细描述系统100中的控制设备110与主机设备120之间的信息交互过程。The information interaction process between the control device 110 and the host device 120 in the system 100 will be further described in detail below with reference to FIGS. 2-6 .
图2示出了根据本公开的实施例的、用于提供与信息系统相关联的服务的示例性方法200的流程图。方法200可以由例如图1的控制设备110来实现。FIG. 2 shows a flowchart of an exemplary method 200 for providing services associated with an information system, according to an embodiment of the present disclosure. The method 200 can be implemented, for example, by the control device 110 of FIG. 1 .
参考图2,方法200从步骤201开始。在步骤201中,在控制设备110处,在执行工业过程期间发起对与在控制设备110外部的信息系统相关联的服务的第一请求。例如,控制设备110受限于自身的处理能力,在执行工业过程期间可能需要调用外部服务(例如,由大数据服务器提供的大数据应用的服务、由数据库装置提供的查询应用的服务等),此时控制设备110可以发起针对外部的服务的第一请求。Referring to FIG. 2 , method 200 starts at step 201 . In step 201 , at the control device 110 , a first request for a service associated with an information system external to the control device 110 is initiated during execution of an industrial process. For example, the control device 110 is limited by its own processing capability, and may need to call external services (for example, services of big data applications provided by a big data server, services of query applications provided by a database device, etc.) during the execution of an industrial process, At this time, the control device 110 may initiate a first request for an external service.
接着,方法200行进到步骤202。在步骤202中,在控制设备110处,通过现场总线130向主机设备120发送指示第一请求的第一消息。例如,控制设备110可以具有可直接在现场总线130上传输数据的通信接口,或者控制设备110可以被配置有现场总线驱动程序或总线适配器以便通过通信接口在现场总线130上传输数据。Next, the method 200 proceeds to step 202 . In step 202 , at the control device 110 , a first message indicating a first request is sent to the host device 120 via the fieldbus 130 . For example, the control device 110 may have a communication interface that can directly transmit data on the fieldbus 130, or the control device 110 may be configured with a fieldbus driver or a bus adapter to transmit data on the fieldbus 130 through the communication interface.
接着,方法200行进到步骤203。在步骤203中,在控制设备110处,通过现场总线130从主机设备120接收指示针对服务的调用反馈的第二消息以获取调用反馈。例如,主机设备120可以装配有可直接在现场总线130上传输数据的通信接口,以便与控制设备110交换数据。Next, the method 200 proceeds to step 203 . In step 203, at the control device 110, a second message indicating an invocation feedback for the service is received from the host device 120 through the fieldbus 130 to obtain the invocation feedback. For example, host device 120 can be equipped with a communication interface that can transmit data directly on fieldbus 130 in order to exchange data with control device 110 .
接着,方法200行进到步骤204。在步骤204中,基于调用反馈来执行工业过程。Next, the method 200 proceeds to step 204 . In step 204, the industrial process is executed based on the call feedback.
不同于现有技术,本发明通过利用现场总线来连接控制设备和主机设备以从主机设备获取外部IT服务,使得控制设备无需关心是否直接连接到服务提供设备,并且可以动态地添加或移除服务而无需改变现场总线网络的布局。此外,该解决方案还使得无需购买额外的物理设备来连接到外部信息系统或对传统控制设备进行升级,并且仅需通过主机设备来向控制设备提供任何需要的IT服务,从而降低了成本并更灵活地提供IT服务。Different from the prior art, the present invention obtains external IT services from the host device by using the field bus to connect the control device and the host device, so that the control device does not need to care whether it is directly connected to the service providing device, and can dynamically add or remove services Without changing the layout of the fieldbus network. In addition, this solution eliminates the need to purchase additional physical equipment to connect to external information systems or upgrade legacy control equipment, and only needs to provide any required IT services to the control equipment through the host equipment, thereby reducing costs and improving Provide IT services flexibly.
在一些实施例中,第一请求可以包括服务的服务名称和参数。服务名称用于标识所请求的服务,参数是例如服务所需的入口参数。In some embodiments, the first request may include a service name and parameters for the service. The service name is used to identify the requested service, and the parameters are, for example, entry parameters required by the service.
在一些实施例中,步骤202可以包括:将第一请求编码在第一消息中,其中,第一消息遵循所述现场总线130的通信协议的数据格式;以及按照现场总线130的通信协议发送第一消息。例如,控制设备601可以对服务名称和参数进行例如串行化以生成或编码成字节组,并按照现场总线的通信协议的数据格式将编码的字节组封装在第一消息中。此外,控制设备601和主机设备602还可以事先协商好传输数据的规则(例如,字节顺序等),并利用该规则进行配置。In some embodiments, step 202 may include: encoding the first request in a first message, wherein the first message follows the data format of the communication protocol of the field bus 130; and sending the second request according to the communication protocol of the field bus 130 a message. For example, the control device 601 may serialize the service name and parameters to generate or encode a byte group, and encapsulate the coded byte group in the first message according to the data format of the fieldbus communication protocol. In addition, the control device 601 and the host device 602 may also negotiate the rules of data transmission (for example, byte order, etc.) in advance, and use the rules for configuration.
在一些实施例中,调用反馈可以包括服务的服务名称和调用结果。服务名称用于标识所请求的服务,调用结果是例如进一步执行工业过程所需的数据。In some embodiments, the invocation feedback may include the service name of the service and the invocation result. The service name is used to identify the requested service, and the result of the call is, for example, the data required for further execution of the industrial process.
在一些实施例中,步骤203可以包括:按照现场总线130的通信协议接收第二消息,其中,第二消息遵循现场总线130的通信协议的数据格式;以及解码第二消息以获取调用反馈。例如,控制设备110可以按照现场总线的通信协议接收第二消息,并从第二消息中提取出与调用反馈相对应的字节组,并通过对字节组进行例如解串行化来解码出服务名称和调用结果。In some embodiments, step 203 may include: receiving the second message according to the communication protocol of the fieldbus 130, wherein the second message complies with the data format of the communication protocol of the fieldbus 130; and decoding the second message to obtain call feedback. For example, the control device 110 may receive the second message according to the communication protocol of the field bus, extract the byte group corresponding to the call feedback from the second message, and decode the byte group by, for example, deserializing the byte group. Service name and call result.
在一些实施例中,控制设备110可以包括PLC控制设备,或其他功能受限的控制设备,例如各种传统的可编程控制设备。这使得即使功能受限的控制设备也能够方便地获取外部IT服务。In some embodiments, the control device 110 may include a PLC control device, or other control devices with limited functions, such as various traditional programmable control devices. This enables easy access to external IT services even for control devices with limited functionality.
在一些实施例中,现场总线可以包括以下类型中的至少一个:EtherCAT、PROFIBUS、PROFINET、Foundation Fieldbus、或Modbus。这些类型的现场总线可以是各种高速现场总线,以满足工业过程所需的实时要求。In some embodiments, the fieldbus may include at least one of the following types: EtherCAT, PROFIBUS, PROFINET, Foundation Fieldbus, or Modbus. These types of fieldbuses can be various high-speed fieldbuses to meet the real-time requirements required by industrial processes.
图3示出了根据本公开实施例的、用于提供与信息系统相关联的服务的另一示例性方法300的流程图。方法300可以由例如图1的主机设备120来实现。FIG. 3 shows a flowchart of another exemplary method 300 for providing services associated with an information system according to an embodiment of the present disclosure. Method 300 may be implemented, for example, by host device 120 of FIG. 1 .
参考图2,方法300从步骤301开始。在步骤301中,在主机设备120处,通过现场总线130从控制设备110接收指示第一请求的第一消息,第一请求是针对与在控制设备110外部的信息系统相关联的服务。Referring to FIG. 2 , method 300 starts at step 301 . In step 301 , at the host device 120 a first message is received from the control device 110 via the fieldbus 130 indicating a first request for a service associated with an information system external to the control device 110 .
接着,方法300行进到步骤302。在步骤302中,主机设备120响应于第一请求而调用服务,以获得针对服务的调用反馈。Next, the method 300 proceeds to step 302 . In step 302, the host device 120 invokes the service in response to the first request to obtain invocation feedback for the service.
接着,方法300行进到步骤303。在步骤303中,在主机设备120处,通过现场总线130向控制设备110发送指示调用反馈的第二消息。Next, the method 300 proceeds to step 303 . In step 303, at the host device 120, a second message indicating to invoke feedback is sent to the control device 110 through the field bus 130.
不同于现有技术,本发明通过利用现场总线来连接控制设备和主机设备以从主机设备获取外部IT服务,使得控制设备无需关心是否直接连接到服务提供设备,并且可以动态地添加或移除服务而无需改变现场总线网络的布局。此外,该解决方案还使得无需购买额外的物理设备来连接到外部信息系统或对传统控制设备进行升级,并且仅需通过主机设备来向控制设备提供任何需要的IT服务,从而降低了成本并更灵活地提供IT服务。Different from the prior art, the present invention obtains external IT services from the host device by using the field bus to connect the control device and the host device, so that the control device does not need to care whether it is directly connected to the service providing device, and can dynamically add or remove services Without changing the layout of the fieldbus network. In addition, this solution eliminates the need to purchase additional physical equipment to connect to external information systems or upgrade legacy control equipment, and only needs to provide any required IT services to the control equipment through the host equipment, thereby reducing costs and improving Provide IT services flexibly.
在一些实施例中,第一请求包括服务的服务名称和参数。服务名称用于标识所请求的服务,参数是例如服务所需的入口参数。In some embodiments, the first request includes a service name and parameters for the service. The service name is used to identify the requested service, and the parameters are, for example, entry parameters required by the service.
在一些实施例中,步骤301可以包括:按照现场总线130的通信协议接收第一消息,其中,第一消息遵循现场总线130的通信协议的数据格式;以及解码第一消息以获取第一请求。例如,主机设备120可以按照现场总线的通信协议接收第一消息,并从第一消息中提取出与第一请求相对应的字节组,并通过对字节组进行例如解串行化来解码出第一请求。In some embodiments, step 301 may include: receiving the first message according to the communication protocol of the fieldbus 130, wherein the first message follows the data format of the communication protocol of the fieldbus 130; and decoding the first message to obtain the first request. For example, the host device 120 may receive the first message according to the communication protocol of the field bus, and extract the byte group corresponding to the first request from the first message, and decode the byte group by, for example, deserializing the byte group Make the first request.
在一些实施例中,步骤302可以包括:确定主机设备120是否能够直接提供该服务;如果主机设备120能够直接提供该服务,则在主机设备120处本地调用服务,以获得调用反馈,或者如果主机设备120未能直接提供服务,则由主机设备120向能够提供服务的服务提供设备请求调用服务,以获得调用反馈。例如,主机设备120可根据例如服务名称确定其是否能够直接提供该服务,如果未能直接提供该服务,则主机设备120可以根据服务名称(以及可选地,路由信息)来确定其所连接到的可提供服务的服务提供设备(例如,服务器140-160),并向服务提供设备请求调用服务,例如,可以通过HTTP、TCP/IP、UDP、RPC或其他各种可能的方式来请求调用服务,以获得调用反馈。In some embodiments, step 302 may include: determining whether the host device 120 can directly provide the service; if the host device 120 can directly provide the service, calling the service locally at the host device 120 to obtain a call feedback, or if the host device 120 can directly provide the service If the device 120 fails to provide the service directly, the host device 120 requests the service providing device capable of providing the service to call the service, so as to obtain the call feedback. For example, host device 120 may determine whether it can directly provide the service based on, for example, the service name, and if the service cannot be provided directly, host device 120 may determine from the service name (and optionally, routing information) the service it is connected to. The service providing device (for example, server 140-160) that can provide the service, and request invoking service to the service providing device, for example, can request invoking service through HTTP, TCP/IP, UDP, RPC or other various possible ways to get call feedback.
在一些实施例中,调用反馈可以包括服务的服务名称和调用结果。服务名称用于标识所请求的服务,调用结果是例如进一步执行工业过程所需的数据。In some embodiments, the invocation feedback may include the service name of the service and the invocation result. The service name is used to identify the requested service, and the result of the call is, for example, the data required for further execution of the industrial process.
在一些实施例中,步骤303可以包括:将所述调用反馈编码在第二消息中,其中,第二消息遵循现场总线130的通信协议的数据格式;按照现场总线130的通信协议发送第二消息。例如,主机设备120可以对服务名称和调用结果进行例如串行化以生成或编码成字节组,并按照现场总线的通信协议的数据格式将编码的字节组封装在第二消息中。In some embodiments, step 303 may include: encoding the call feedback into a second message, wherein the second message follows the data format of the communication protocol of the fieldbus 130; sending the second message according to the communication protocol of the fieldbus 130 . For example, the host device 120 may perform serialization on the service name and the call result to generate or encode a byte group, and encapsulate the coded byte group in the second message according to the data format of the fieldbus communication protocol.
在一些实施例中,现场总线可以包括以下类型中的至少一个:EtherCAT、PROFIBUS、PROFINET、Foundation Fieldbus、或Modbus。这些类型的现场总线可以是各种高速现场总线,以满足工业过程所需的实时要求。In some embodiments, the fieldbus may include at least one of the following types: EtherCAT, PROFIBUS, PROFINET, Foundation Fieldbus, or Modbus. These types of fieldbuses can be various high-speed fieldbuses to meet the real-time requirements required by industrial processes.
图4示出了根据本公开的实施例的示例性控制设备300。控制设备300包括请求单元401、发送单元402、接收单元403和执行单元404。FIG. 4 illustrates an exemplary control device 300 according to an embodiment of the present disclosure. The control device 300 includes a request unit 401 , a sending unit 402 , a receiving unit 403 and an execution unit 404 .
请求单元401被配置为在执行工业过程期间发起对与在控制设备外部的信息系统相关联的服务的第一请求。The request unit 401 is configured to initiate a first request for a service associated with an information system external to the control device during execution of the industrial process.
发送单元402被配置为通过现场总线向主机设备发送指示第一请求的第一消息,其中,控制设备和主机设备均连接到现场总线。The sending unit 402 is configured to send the first message indicating the first request to the host device through the field bus, wherein both the control device and the host device are connected to the field bus.
接收单元403被配置为通过现场总线从主机设备接收指示针对服务的调用反馈的第二消息以获取调用反馈。The receiving unit 403 is configured to receive the second message indicating the call feedback for the service from the host device through the field bus to obtain the call feedback.
执行单元404被配置为基于调用反馈来执行工业过程。The execution unit 404 is configured to execute the industrial process based on the call feedback.
在一些实施例中,第一请求包括服务的服务名称和参数。In some embodiments, the first request includes a service name and parameters for the service.
在一些实施例中,发送单元402可以被配置为:将第一请求编码在第一消息中,其中,第一消息遵循现场总线的通信协议的数据格式;以及按照现场总线的通信协议发送第一消息。In some embodiments, the sending unit 402 may be configured to: encode the first request in the first message, wherein the first message follows the data format of the fieldbus communication protocol; and send the first request according to the fieldbus communication protocol. information.
在一些实施例中,调用反馈包括服务的服务名称和调用结果。In some embodiments, the invocation feedback includes a service name of the service and an invocation result.
接收单元403可以被配置为:按照现场总线的通信协议接收第二消息,其中,第二消息遵循所述现场总线的通信协议的数据格式;以及解码第二消息以获取调用反馈。The receiving unit 403 may be configured to: receive the second message according to the communication protocol of the field bus, wherein the second message complies with the data format of the communication protocol of the field bus; and decode the second message to obtain the calling feedback.
在一些实施例中,控制设备300可以包括PLC控制设备,或其他功能受限的控制设备,例如各种传统的可编程控制设备。In some embodiments, the control device 300 may include a PLC control device, or other control devices with limited functions, such as various traditional programmable control devices.
在一些实施例中,现场总线可以包括以下类型中的至少一个:EtherCAT、PROFIBUS、PROFINET、Foundation Fieldbus、或Modbus。In some embodiments, the fieldbus may include at least one of the following types: EtherCAT, PROFIBUS, PROFINET, Foundation Fieldbus, or Modbus.
图5示出了根据本公开的实施例的示例性主机设备500。主机设备500包括接收单元501、调用单元502和发送单元503。FIG. 5 illustrates an exemplary host device 500 according to an embodiment of the disclosure. The host device 500 includes a receiving unit 501 , a calling unit 502 and a sending unit 503 .
接收单元501被配置为通过现场总线从控制设备接收指示第一请求的第一消息,第一请求是针对与在控制设备外部的信息系统相关联的服务,其中,主机设备和控制设备均连接到现场总线。The receiving unit 501 is configured to receive a first message indicating a first request from the control device through the field bus, the first request is for a service associated with an information system outside the control device, wherein both the host device and the control device are connected to Fieldbus.
调用单元502被配置为响应于第一请求而调用服务,以获得针对服务的调用反馈。The calling unit 502 is configured to call a service in response to the first request, so as to obtain a call feedback for the service.
发送单元503被配置为通过现场总线向控制设备发送指示调用反馈的第二消息。The sending unit 503 is configured to send the second message indicating invoking feedback to the control device through the field bus.
在一些实施例中,第一请求包括服务的服务名称和参数。In some embodiments, the first request includes a service name and parameters for the service.
在一些实施例中,接收单元501可以被配置为:按照现场总线的通信协议接收第一消息,其中,第一消息遵循现场总线的通信协议的数据格式;以及解码第一消息以获取第一请求。In some embodiments, the receiving unit 501 may be configured to: receive the first message according to the communication protocol of the field bus, wherein the first message follows the data format of the communication protocol of the field bus; and decode the first message to obtain the first request .
在一些实施例中,调用单元502可以被配置为:确定主机设备是否能够直接提供该服务;如果主机设备能够直接提供服务,则在主机设备处本地调用服务,以获得调用反馈,或者如果主机设备未能直接提供服务,则由主机设备向能够提供该服务的服务提供设备请求调用服务,以获得调用反馈。In some embodiments, the calling unit 502 may be configured to: determine whether the host device can directly provide the service; if the host device can directly provide the service, call the service locally at the host device to obtain the call feedback, or if the host device If the service cannot be directly provided, the host device requests the service providing device capable of providing the service to call the service, so as to obtain the call feedback.
在一些实施例中,调用反馈可以包括服务名称和调用结果。In some embodiments, the invocation feedback may include service name and invocation result.
在一些实施例中,发送单元503可以被配置为:将调用反馈编码在第二消息中,其中,第二消息遵循现场总线的通信协议的数据格式;以及按照现场总线的通信协议发送第二消息。In some embodiments, the sending unit 503 may be configured to: encode the call feedback into the second message, wherein the second message follows the data format of the fieldbus communication protocol; and send the second message according to the fieldbus communication protocol .
在一些实施例中,现场总线可以包括以下类型中的至少一个:EtherCAT、PROFIBUS、PROFINET、Foundation Fieldbus、或Modbus。In some embodiments, the fieldbus may include at least one of the following types: EtherCAT, PROFIBUS, PROFINET, Foundation Fieldbus, or Modbus.
图6示出了根据本公开的实施例的、用于提供与信息系统相关联的服务的示例性信息流600,该信息流600描绘了在控制设备601、主机设备602以及服务提供设备603之间的信息交互过程。例如,控制设备601可以是图1的控制设备110或图4的控制设备400,主机设备602可以是图1的主机设备120或图5的主机设备500,以及服务提供设备603可以是能够提供服务的设备,例如主机设备602、图1的服务器设备140-160中的任何一个。FIG. 6 shows an exemplary information flow 600 for providing services associated with an information system according to an embodiment of the present disclosure. The information flow 600 depicts an information exchange process. For example, the control device 601 may be the control device 110 of FIG. 1 or the control device 400 of FIG. 4, the host device 602 may be the host device 120 of FIG. 1 or the host device 500 of FIG. devices, such as host device 602, any one of server devices 140-160 in FIG. 1 .
当控制设备601在工业或过程控制系统中执行工业过程时,需要请求外部IT服务,于是发起(610)关于该外部服务的第一请求,第一请求可以包括服务名称和参数。When the control device 601 executes an industrial process in an industrial or process control system, it needs to request an external IT service, so it initiates (610) a first request about the external service, and the first request may include a service name and parameters.
接着,控制设备601通过现场总线向主机设备602发送(620)第一消息,其中,第一请求被编码在第一消息中。例如,控制设备601可以对服务名称和参数进行例如串行化以生成或编码成字节组,并按照现场总线的通信协议的数据格式将编码的字节组封装在第一消息中,并按照现场总线的通信协议发送第一消息。Next, the control device 601 sends (620) a first message to the host device 602 via the fieldbus, wherein the first request is encoded in the first message. For example, the control device 601 may serialize the service name and parameters to generate or encode a byte group, and encapsulate the coded byte group in the first message according to the data format of the communication protocol of the field bus, and follow the The communication protocol of the field bus sends the first message.
接着,主机设备602通过现场总线接收(630)第一消息。例如,主机 设备602可以按照现场总线的通信协议接收第一消息,并从第一消息中提取出与第一请求相对应的字节组,并通过对字节组进行例如解串行化来解码出第一请求。Next, the host device 602 receives (630) the first message over the Fieldbus. For example, the host device 602 may receive the first message according to the communication protocol of the field bus, and extract the byte group corresponding to the first request from the first message, and decode the byte group by, for example, deserializing the byte group Make the first request.
接着,主机设备602响应于第一请求来调用(640)第一请求所针对的服务。Next, host device 602, in response to the first request, invokes (640) the service for which the first request is directed.
在一些情况下,当主机设备602根据例如服务名称可确定其能够直接提供该服务时,则服务提供设备603为主机设备602,其处理(650)服务请求,并返回(660)调用反馈,其中,调用反馈可以包括服务名称和调用结果。In some cases, when the host device 602 can determine that it can directly provide the service according to the service name, for example, the service providing device 603 is the host device 602, which processes (650) the service request and returns (660) the call feedback, wherein , the call feedback can include the service name and call result.
在另一些情况下,当主机设备602根据例如服务名称可确定其未能直接提供该服务时,则服务提供设备603不同于主机设备602,此时主机设备602可以根据服务名称(以及可选地,路由信息)来确定其所连接到的可提供服务的服务提供设备603,并向服务提供设备603请求调用(640)服务,例如,可以通过HTTP、TCP/IP、RPC或其他各种可能的方式来请求调用服务。服务提供设备603处理(650)服务请求,并返回(660)调用反馈给主机设备602,其中,调用反馈可以包括服务名称和调用结果。In other cases, when the host device 602 can determine that it cannot directly provide the service according to the service name, for example, the service providing device 603 is different from the host device 602, and the host device 602 can use the service name (and optionally , routing information) to determine the service providing device 603 that it is connected to that can provide services, and request the service providing device 603 to call (640) the service, for example, through HTTP, TCP/IP, RPC or other possible way to request a service call. The service providing device 603 processes (650) the service request, and returns (660) an invocation feedback to the host device 602, wherein the invocation feedback may include a service name and an invocation result.
接着,主机设备602通过现场总线向控制设备601发送(670)第二消息,其中,调用反馈被编码在第二消息中。例如,主机设备602可以对服务名称和调用结果进行例如串行化以生成或编码成字节组,并按照现场总线的通信协议的数据格式将编码的字节组封装在第二消息中,并按照现场总线的通信协议发送第二消息。Next, the host device 602 sends (670) a second message to the control device 601 via the fieldbus, wherein the call feedback is encoded in the second message. For example, the host device 602 may serialize the service name and the call result to generate or encode a byte group, and encapsulate the coded byte group in the second message according to the data format of the fieldbus communication protocol, and The second message is sent according to the communication protocol of the field bus.
接着,控制设备601通过现场总线接收(680)第二消息。例如,控制设备601可以按照现场总线的通信协议接收第二消息,并从第二消息中提取出与调用反馈相对应的字节组,并通过对字节组进行例如解串行化来解码出调用反馈。Next, the control device 601 receives (680) a second message via the fieldbus. For example, the control device 601 may receive the second message according to the communication protocol of the field bus, and extract the byte group corresponding to the call feedback from the second message, and decode the byte group by, for example, deserializing the byte group Call for feedback.
下面给出一个关于图6的具体示例来提供对本发明的更好理解。例如,控制设备601执行具有多个阶段的工业过程,其中,每个阶段对应于相应的过程参数集合。控制设备601可在多个时间段上获取每个阶段的过程参数集合,并通过现场总线将过程参数集合发送给主机设备602,主机设备602将过程参数集合提供给运行分析应用(例如,大数据分析应用)的服务提供设备603或主机设备602本身,分析应用可以基于过去时间段获取的关于每个阶段的正常情况下的过程参数集合建立分析模型。为了能够调用分析应用来 确定当前阶段的执行是否正常,控制设备601可以通过现场总线向主机设备602发送第一消息,该第一消息指示关于分析应用的第一请求。主机设备602响应于接收到该第一请求,可以由服务提供设备603或主机设备602本身调用分析应用,并利用所建立的分析模型对当前时间段获取的每个阶段的过程参数集合进行分析,以确定该阶段的执行是否异常,并通过主机设备602将分析结果作为调用反馈编码在第二消息中并经由现场总线发送返回给控制设备601,使得控制设备601可以根据分析结果来执行(例如,停止当前阶段、对当前阶段进行故障排除、或继续进行下一个阶段)工业过程。A specific example about FIG. 6 is given below to provide a better understanding of the present invention. For example, the control device 601 executes an industrial process having multiple stages, where each stage corresponds to a respective set of process parameters. The control device 601 can obtain the process parameter set of each stage in multiple time periods, and send the process parameter set to the host device 602 through the field bus, and the host device 602 provides the process parameter set to the operation analysis application (for example, big data Analysis application) service providing device 603 or the host device 602 itself, the analysis application can build an analysis model based on the set of process parameters under normal conditions about each stage obtained in the past time period. In order to call the analysis application to determine whether the execution of the current stage is normal, the control device 601 may send a first message to the host device 602 through the field bus, the first message indicating a first request about the analysis application. In response to receiving the first request, the host device 602 may invoke the analysis application by the service providing device 603 or the host device 602 itself, and use the established analysis model to analyze the process parameter set of each stage acquired in the current time period, To determine whether the execution of this stage is abnormal, and the host device 602 codes the analysis result as a call feedback in the second message and sends it back to the control device 601 via the field bus, so that the control device 601 can execute according to the analysis result (for example, Stop the current stage, troubleshoot the current stage, or continue to the next stage) of the industrial process.
图7出了根据本公开的实施例的用于提供与信息系统相关联的服务的示例性计算设备700的框图。计算设备700包括处理器701和与处理器701耦合的存储器702。存储器702用于存储计算机可执行指令,当计算机可执行指令被执行时使得处理器701执行以上实施例中的方法(例如,前述的方法200或300中的任何一个或多个步骤)。FIG. 7 shows a block diagram of an exemplary computing device 700 for providing services associated with an information system, according to an embodiment of the disclosure. The computing device 700 includes a processor 701 and a memory 702 coupled with the processor 701 . The memory 702 is used for storing computer-executable instructions, and when the computer-executable instructions are executed, the processor 701 executes the methods in the above embodiments (for example, any one or more steps in the foregoing method 200 or 300).
此外,替代地,上述方法能够通过计算机可读存储介质来实现。计算机可读存储介质上载有用于执行本公开的各个实施例的计算机可读程序指令。计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是但不限于电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。In addition, alternatively, the above method can be implemented by a computer-readable storage medium. A computer-readable storage medium carries computer-readable program instructions for implementing various embodiments of the present disclosure. A computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory), static random access memory (SRAM), compact disc read only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanically encoded device, such as a printer with instructions stored thereon A hole card or a raised structure in a groove, and any suitable combination of the above. As used herein, computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., pulses of light through fiber optic cables), or transmitted electrical signals.
因此,在另一个实施例中,本公开提出了一种计算机可读存储介质,该计算机可读存储介质具有存储在其上的计算机可执行指令,计算机可执行指令用于执行本公开的各个实施例中的方法。Accordingly, in another embodiment, the present disclosure provides a computer-readable storage medium having computer-executable instructions stored thereon for performing various implementations of the present disclosure. method in the example.
在另一个实施例中,本公开提出了一种计算机程序产品,该计算机程序 产品被有形地存储在计算机可读存储介质上,并且包括计算机可执行指令,该计算机可执行指令在被执行时使至少一个处理器执行本公开的各个实施例中的方法。In another embodiment, the present disclosure provides a computer program product tangibly stored on a computer-readable storage medium and comprising computer-executable instructions that, when executed, cause At least one processor executes the methods in various embodiments of the present disclosure.
一般而言,本公开的各个示例实施例可以在硬件或专用电路、软件、固件、逻辑,或其任何组合中实施。某些方面可以在硬件中实施,而其他方面可以在可以由控制器、微处理器或其他计算设备执行的固件或软件中实施。当本公开的实施例的各方面被图示或描述为框图、流程图或使用某些其他图形表示时,将理解此处描述的方框、装置、系统、技术或方法可以作为非限制性的示例在硬件、软件、固件、专用电路或逻辑、通用硬件或控制器或其他计算设备,或其某些组合中实施。In general, the various example embodiments of the present disclosure may be implemented in hardware or special purpose circuits, software, firmware, logic, or any combination thereof. Certain aspects may be implemented in hardware, while other aspects may be implemented in firmware or software, which may be executed by a controller, microprocessor or other computing device. When aspects of the embodiments of the present disclosure are illustrated or described as block diagrams, flowcharts, or using some other graphical representation, it is to be understood that the blocks, devices, systems, techniques, or methods described herein may serve as non-limiting Examples are implemented in hardware, software, firmware, special purpose circuits or logic, general purpose hardware or controllers or other computing devices, or some combination thereof.
用于执行本公开的各个实施例的计算机可读程序指令或者计算机程序产品也能够存储在云端,在需要调用时,用户能够通过移动互联网、固网或者其他网络访问存储在云端上的用于执行本公开的一个实施例的计算机可读程序指令,从而实施依据本公开的各个实施例所公开的技术方案。The computer-readable program instructions or computer program products used to execute various embodiments of the present disclosure can also be stored in the cloud, and when called, the user can access the program stored on the cloud for execution through the mobile Internet, fixed network or other networks. The computer-readable program instructions of an embodiment of the present disclosure implement the technical solutions disclosed in accordance with various embodiments of the present disclosure.
虽然已经参考若干具体实施例描述了本公开的实施例,但是应当理解,本公开的实施例并不限于所公开的具体实施例。本公开的实施例旨在涵盖在所附权利要求的精神和范围内所包括的各种更新和等同布置。权利要求的范围符合最宽泛的解释,从而包含所有这样的更新及等同结构和功能。While embodiments of the present disclosure have been described with reference to several specific embodiments, it is to be understood that the embodiments of the present disclosure are not limited to the specific embodiments disclosed. Embodiments of the present disclosure are intended to cover various updates and equivalent arrangements included within the spirit and scope of the appended claims. The scope of the claims is accorded the broadest interpretation to encompass all such modifications and equivalent structures and functions.

Claims (26)

  1. 用于提供与信息系统相关联的服务的方法,包括:Methods for providing services associated with information systems, including:
    在控制设备处,在执行工业过程期间发起对与在所述控制设备外部的信息系统相关联的服务的第一请求;Initiating, at a control device during execution of an industrial process, a first request for a service associated with an information system external to said control device;
    在所述控制设备处,通过现场总线向主机设备发送指示所述第一请求的第一消息,其中,所述控制设备和所述主机设备均连接到所述现场总线;at the control device, sending a first message indicating the first request to a host device via a fieldbus, wherein both the control device and the host device are connected to the fieldbus;
    在所述控制设备处,通过所述现场总线从所述主机设备接收指示针对所述服务的调用反馈的第二消息以获取所述调用反馈;以及receiving, at the control device, a second message indicating invocation feedback for the service from the host device over the fieldbus to obtain the invocation feedback; and
    在所述控制设备处,基于所述调用反馈来执行所述工业过程。At the control device, the industrial process is executed based on the call feedback.
  2. 根据权利要求1所述的方法,其中,所述第一请求包括所述服务的服务名称和参数。The method of claim 1, wherein the first request includes a service name and parameters of the service.
  3. 根据权利要求1或2所述的方法,其中,向主机设备发送指示所述第一请求的第一消息包括:The method according to claim 1 or 2, wherein sending the first message indicating the first request to the host device comprises:
    将所述第一请求编码在所述第一消息中,其中,所述第一消息遵循所述现场总线的通信协议的数据格式;以及encoding the first request in the first message, wherein the first message complies with the data format of the communication protocol of the field bus; and
    按照所述现场总线的通信协议发送所述第一消息。The first message is sent according to the communication protocol of the field bus.
  4. 根据权利要求1所述的方法,其中,所述调用反馈包括所述服务的服务名称和调用结果。The method according to claim 1, wherein the invocation feedback includes a service name of the service and an invocation result.
  5. 根据权利要求1或4所述的方法,其中,从所述主机设备接收指示针对所述服务的调用反馈的第二消息以获取所述调用反馈包括:The method of claim 1 or 4, wherein receiving a second message from the host device indicating invocation feedback for the service to obtain the invocation feedback comprises:
    按照所述现场总线的通信协议接收所述第二消息,其中,所述第二消息遵循所述现场总线的通信协议的数据格式;以及receiving the second message according to the communication protocol of the field bus, wherein the second message follows the data format of the communication protocol of the field bus; and
    解码所述第二消息以获取所述调用反馈。Decoding the second message to obtain the call feedback.
  6. 根据权利要求1所述的方法,其中,所述控制设备包括PLC控制设备。The method of claim 1, wherein the control device comprises a PLC control device.
  7. 根据权利要求1所述的方法,其中,所述现场总线包括以下类型中的至少一个:The method of claim 1, wherein the field bus comprises at least one of the following types:
    EtherCAT、PROFIBUS、PROFINET、Foundation Fieldbus、或Modbus。EtherCAT, PROFIBUS, PROFINET, Foundation Fieldbus, or Modbus.
  8. 用于提供与信息系统相关联的服务的方法,包括:Methods for providing services associated with information systems, including:
    在主机设备处,通过现场总线从控制设备接收指示第一请求的第一消息,所述第一请求是针对与在所述控制设备外部的信息系统相关联的服务,其中,所述主机设备和所述控制设备均连接到所述现场总线;At a host device, a first message is received from a control device over a fieldbus indicating a first request for a service associated with an information system external to the control device, wherein the host device and The control devices are all connected to the field bus;
    所述主机设备响应于所述第一请求而调用所述服务,以获得针对所述服务的调用反馈;以及invoking the service by the host device in response to the first request to obtain invocation feedback for the service; and
    在所述主机设备处,通过所述现场总线向所述控制设备发送指示所述调用反馈的第二消息。At the host device, a second message indicating the call feedback is sent to the control device via the fieldbus.
  9. 根据权利要求8所述的方法,其中,从控制设备接收指示第一请求的第一消息包括:The method of claim 8, wherein receiving the first message from the control device indicating the first request comprises:
    按照所述现场总线的通信协议接收所述第一消息,其中,所述第一消息遵循所述现场总线的通信协议的数据格式;以及receiving the first message according to the communication protocol of the field bus, wherein the first message follows the data format of the communication protocol of the field bus; and
    解码所述第一消息以获取所述第一请求。The first message is decoded to obtain the first request.
  10. 根据权利要求8所述的方法,其中,响应于所述第一请求而调用所述服务,以获得针对所述服务的调用反馈包括:The method of claim 8, wherein invoking the service in response to the first request to obtain invocation feedback for the service comprises:
    确定所述主机设备是否能够直接提供所述服务;determining whether the host device can directly provide the service;
    如果所述主机设备能够直接提供所述服务,则在所述主机设备处本地调用所述服务,以获得所述调用反馈,或者If the host device can directly provide the service, invoking the service locally at the host device to obtain the invocation feedback, or
    如果所述主机设备未能直接提供所述服务,则由所述主机设备向能够提供所述服务的服务提供设备请求调用所述服务,以获得所述调用反馈。If the host device fails to directly provide the service, the host device requests a service providing device capable of providing the service to call the service, so as to obtain the call feedback.
  11. 根据权利要求8所述的方法,其中,向所述主机设备发送指示所述调用反馈的第二消息包括:The method of claim 8, wherein sending the second message indicating the invocation feedback to the host device comprises:
    将所述调用反馈编码在所述第二消息中,其中,所述第二消息遵循所述 现场总线的通信协议的数据格式;Encoding the calling feedback in the second message, wherein the second message follows the data format of the communication protocol of the field bus;
    按照所述现场总线的通信协议发送所述第二消息。The second message is sent according to the communication protocol of the field bus.
  12. 控制设备,包括:Control equipment, including:
    请求单元,被配置为在执行工业过程期间发起对与在所述控制设备外部的信息系统相关联的服务的第一请求;a requesting unit configured to initiate a first request for a service associated with an information system external to said control device during execution of an industrial process;
    发送单元,被配置为通过现场总线向主机设备发送指示所述第一请求的第一消息,其中,所述控制设备和所述主机设备均连接到所述现场总线;a sending unit configured to send a first message indicating the first request to a host device via a field bus, wherein both the control device and the host device are connected to the field bus;
    接收单元,被配置为通过所述现场总线从所述主机设备接收指示针对所述服务的调用反馈的第二消息以获取所述调用反馈;以及a receiving unit configured to receive a second message indicating an invocation feedback for the service from the host device through the field bus to obtain the invocation feedback; and
    执行单元,被配置为基于所述调用反馈来执行所述工业过程。An execution unit configured to execute the industrial process based on the call feedback.
  13. 根据权利要求12所述的控制设备,其中,所述第一请求包括所述服务的服务名称和参数。The control device according to claim 12, wherein the first request includes a service name and parameters of the service.
  14. 根据权利要求12或13所述的控制设备,其中,所述发送单元被配置为:The control device according to claim 12 or 13, wherein the sending unit is configured to:
    将所述第一请求编码在所述第一消息中,其中,所述第一消息遵循所述现场总线的通信协议的数据格式;以及encoding the first request in the first message, wherein the first message complies with the data format of the communication protocol of the field bus; and
    按照所述现场总线的通信协议发送所述第一消息。The first message is sent according to the communication protocol of the field bus.
  15. 根据权利要求12所述的控制设备,其中,所述调用反馈包括所述服务的服务名称和调用结果。The control device according to claim 12, wherein the invocation feedback includes a service name of the service and an invocation result.
  16. 根据权利要求12或15所述的方法,其中,所述接收单元被配置为:The method according to claim 12 or 15, wherein the receiving unit is configured to:
    按照所述现场总线的通信协议接收所述第二消息,其中,所述第二消息遵循所述现场总线的通信协议的数据格式;以及receiving the second message according to the communication protocol of the field bus, wherein the second message follows the data format of the communication protocol of the field bus; and
    解码所述第二消息以获取所述调用反馈。Decoding the second message to obtain the call feedback.
  17. 根据权利要求12所述的控制设备,其中,所述控制设备包括PLC控制设备。The control device of claim 12, wherein the control device comprises a PLC control device.
  18. 根据权利要求12所述的控制设备,其中,所述现场总线包括以下类型中的至少一个:The control device of claim 12, wherein the field bus comprises at least one of the following types:
    EtherCAT、PROFIBUS、PROFINET、Foundation Fieldbus、或Modbus。EtherCAT, PROFIBUS, PROFINET, Foundation Fieldbus, or Modbus.
  19. 主机设备,包括:Host devices, including:
    接收单元,被配置为通过现场总线从控制设备接收指示第一请求的第一消息,所述第一请求是针对与在所述控制设备外部的信息系统相关联的服务,其中,所述主机设备和所述控制设备均连接到所述现场总线;a receiving unit configured to receive a first message from a control device via a fieldbus indicating a first request for a service associated with an information system external to the control device, wherein the host device and said control device are both connected to said fieldbus;
    调用单元,被配置为响应于所述第一请求而调用所述服务,以获得针对所述服务的调用反馈;以及an invoking unit configured to invoke the service in response to the first request, so as to obtain an invocation feedback for the service; and
    发送单元,被配置为通过所述现场总线向所述控制设备发送指示所述调用反馈的第二消息。A sending unit configured to send a second message indicating the call feedback to the control device through the field bus.
  20. 根据权利要求19所述的主机设备,其中,所述接收单元被配置为:The host device according to claim 19, wherein the receiving unit is configured to:
    按照所述现场总线的通信协议接收所述第一消息,其中,所述第一消息遵循所述现场总线的通信协议的数据格式;以及receiving the first message according to the communication protocol of the field bus, wherein the first message follows the data format of the communication protocol of the field bus; and
    解码所述第一消息以获取所述第一请求。The first message is decoded to obtain the first request.
  21. 根据权利要求19所述的主机设备,其中,所述调用单元被配置为:The host device according to claim 19, wherein the calling unit is configured to:
    确定所述主机设备是否能够直接提供所述服务;determining whether the host device can directly provide the service;
    如果所述主机设备能够直接提供所述服务,则在所述主机设备处本地调用所述服务,以获得所述调用反馈,或者If the host device can directly provide the service, invoking the service locally at the host device to obtain the invocation feedback, or
    如果所述主机设备未能直接提供所述服务,则由所述主机设备向能够提供所述服务的服务提供设备请求调用所述服务,以获得所述调用反馈。If the host device fails to directly provide the service, the host device requests a service providing device capable of providing the service to call the service, so as to obtain the call feedback.
  22. 根据权利要求19所述的主机设备,其中,所述发送单元被配置为:The host device according to claim 19, wherein the sending unit is configured to:
    将所述调用反馈编码在所述第二消息中,其中,所述第二消息遵循所述现场总线的通信协议的数据格式;以及Encoding the call feedback in the second message, wherein the second message complies with the data format of the communication protocol of the field bus; and
    按照所述现场总线的通信协议发送所述第二消息。The second message is sent according to the communication protocol of the field bus.
  23. 用于提供与外部信息系统相关联的服务的系统,包括:Systems used to provide services associated with external information systems, including:
    控制设备和主机设备,分别与现场总线连接;The control device and the host device are respectively connected to the field bus;
    其中,in,
    在所述控制设备处,在执行工业过程期间发起对与在所述控制设备外部的信息系统相关联的服务的第一请求;at said control device, initiating a first request for a service associated with an information system external to said control device during execution of an industrial process;
    在所述控制设备处,通过所述现场总线向主机设备发送指示所述第一请求的第一消息;at the control device, sending a first message indicating the first request to a host device via the fieldbus;
    在所述主机设备处,通过所述现场总线从所述控制设备接收所述第一消息;at the host device, receiving the first message from the control device over the fieldbus;
    所述主机设备响应于所述第一请求而调用所述服务,以获得针对所述服务的调用反馈;invoking the service by the host device in response to the first request to obtain invocation feedback for the service;
    在所述主机设备处,通过所述现场总线向所述主机设备发送指示所述调用反馈的第二消息;at the host device, sending a second message indicating the call feedback to the host device via the field bus;
    在所述控制设备处,通过所述现场总线从所述主机设备接收所述第二消息以获取所述调用反馈;以及at the control device, receiving the second message from the host device over the fieldbus to obtain the call feedback; and
    在所述控制设备处,基于所述调用反馈来执行所述工业过程。At the control device, the industrial process is executed based on the call feedback.
  24. 计算设备,包括:Computing equipment, including:
    处理器;以及processor; and
    存储器,其用于存储计算机可执行指令,当所述计算机可执行指令被执行时使得所述处理器执行根据权利要求1-14中任一项所述的方法。A memory for storing computer-executable instructions which, when executed, cause the processor to perform the method according to any one of claims 1-14.
  25. 计算机可读存储介质,所述计算机可读存储介质具有存储在其上的计算机可执行指令,所述计算机可执行指令用于执行根据权利要求1-14中任一项所述的方法。A computer-readable storage medium having computer-executable instructions stored thereon for performing the method according to any one of claims 1-14.
  26. 计算机程序产品,所述计算机程序产品被有形地存储在计算机可读存储介质上,并且包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行根据权利要求1-11中任一项所述的方法。A computer program product tangibly stored on a computer-readable storage medium and comprising computer-executable instructions which, when executed, cause at least one processor to perform the any one of the methods described.
PCT/CN2021/121098 2021-09-27 2021-09-27 Method and system for providing service associated with information system WO2023044929A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2021/121098 WO2023044929A1 (en) 2021-09-27 2021-09-27 Method and system for providing service associated with information system
CN202180102173.2A CN117980835A (en) 2021-09-27 2021-09-27 Method and system for providing services associated with an information system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/121098 WO2023044929A1 (en) 2021-09-27 2021-09-27 Method and system for providing service associated with information system

Publications (1)

Publication Number Publication Date
WO2023044929A1 true WO2023044929A1 (en) 2023-03-30

Family

ID=85719931

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/121098 WO2023044929A1 (en) 2021-09-27 2021-09-27 Method and system for providing service associated with information system

Country Status (2)

Country Link
CN (1) CN117980835A (en)
WO (1) WO2023044929A1 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621516A (en) * 2009-08-10 2010-01-06 浙江大学 Interactive method for enterprise service bus and external Web service
CN101976062A (en) * 2010-08-12 2011-02-16 华南理工大学 Open type control method based on lightweight service-oriented architectures (LSOA) framework
CN105872578A (en) * 2016-03-30 2016-08-17 青岛海信电器股份有限公司 Invoking method and server
CN108803526A (en) * 2018-06-30 2018-11-13 安徽合软信息技术有限公司 A kind of system and method for automatic control system to be docked to external system
US20190243979A1 (en) * 2018-02-05 2019-08-08 International Business Machines Corporation Controlling access to data requested from an electronic information system
CN110209399A (en) * 2018-09-29 2019-09-06 腾讯科技(深圳)有限公司 FPGA service system, data processing method and storage medium
CN110995847A (en) * 2019-12-10 2020-04-10 南京新贝金服科技有限公司 Insurance service bus implementation method and system applied to multi-system communication
CN111176761A (en) * 2019-12-23 2020-05-19 中国联合网络通信集团有限公司 Micro-service calling method and device
CN113035376A (en) * 2021-04-23 2021-06-25 清华大学 Intelligent factory based on industrial internet and construction method thereof
CN113329047A (en) * 2020-02-29 2021-08-31 华为技术有限公司 Distributed service scheduling method and related device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621516A (en) * 2009-08-10 2010-01-06 浙江大学 Interactive method for enterprise service bus and external Web service
CN101976062A (en) * 2010-08-12 2011-02-16 华南理工大学 Open type control method based on lightweight service-oriented architectures (LSOA) framework
CN105872578A (en) * 2016-03-30 2016-08-17 青岛海信电器股份有限公司 Invoking method and server
US20190243979A1 (en) * 2018-02-05 2019-08-08 International Business Machines Corporation Controlling access to data requested from an electronic information system
CN108803526A (en) * 2018-06-30 2018-11-13 安徽合软信息技术有限公司 A kind of system and method for automatic control system to be docked to external system
CN110209399A (en) * 2018-09-29 2019-09-06 腾讯科技(深圳)有限公司 FPGA service system, data processing method and storage medium
CN110995847A (en) * 2019-12-10 2020-04-10 南京新贝金服科技有限公司 Insurance service bus implementation method and system applied to multi-system communication
CN111176761A (en) * 2019-12-23 2020-05-19 中国联合网络通信集团有限公司 Micro-service calling method and device
CN113329047A (en) * 2020-02-29 2021-08-31 华为技术有限公司 Distributed service scheduling method and related device
CN113035376A (en) * 2021-04-23 2021-06-25 清华大学 Intelligent factory based on industrial internet and construction method thereof

Also Published As

Publication number Publication date
CN117980835A (en) 2024-05-03

Similar Documents

Publication Publication Date Title
US9143570B2 (en) Desktop screen sharing over HTTP
US10630746B1 (en) Streaming playlist including future encoded segments
US10742699B1 (en) Requesting transmission of future encoded segments
US10495336B2 (en) Energy operations across domains
CN111984561B (en) IPMI command processing method, system, device and medium for BMC
US20170034311A1 (en) Method for selecting between multiple RPC frameworks during a TCP/IP session
US10862804B2 (en) Redirecting data packets between overlay network and underlay network
CN105530277A (en) Method and device for cooperative work of devices
CN111885172A (en) Cross-network platform cascading method, computer storage medium and electronic device
CN112968919B (en) Data processing method, device, equipment and storage medium
CN110278148B (en) data compatibility gateway system
US10432448B2 (en) Systems and methods for stream-based, protocol-agnostic messaging
CN108989157B (en) Method and device for controlling intelligent equipment
US20150358263A1 (en) Communication between a web application instance connected to a connection server and a calling entity other than said connection server
WO2023044929A1 (en) Method and system for providing service associated with information system
CN105407150A (en) Remote control method of application program
US9838470B2 (en) Write access to a variable in a server
WO2021084269A1 (en) System and method for constructing filter graph-based media processing pipelines in a browser
AU2018390863B2 (en) Computer system and method for extracting dynamic content from websites
US20220244976A1 (en) Containers on demand
US20080313309A1 (en) Client-server data transfer control
CN113285920A (en) Service access method, device, equipment and storage medium
GB2580848A (en) Data compatible gateway system
CN112152915A (en) Message forwarding network system and message forwarding method
CN109040007B (en) Method and system for handling Alternative Network Address Type (ANAT) incompatibility

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21958047

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202180102173.2

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE