# US 2022/0276641 A1 · Method and industrial controller for the synchronized calling of a function block in a control program having opc ua

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0276641 A1
- Document ID: US20220276641A1
- Status: Published application
- Kind: A1
- Application number: 17/638,838
- Filed: 2020-08-28
- Published: 2022-09-01
- Earliest claimed: 2019-08-30
- Assignees: Phoenix Contact GmbH & Co. KG
- Applicants: Phoenix Contact GmbH & Co. KG
- Inventors: Uwe THOMAS; Andreas WEICHELT
- Web page: https://patentgrep.com/patent/US20220276641A1

## CPC

- G05B 19/054: {Input/output}
- G05B 19/4185: {characterised by the network communication}
- G05B 19/0423: {Input/output}
- G05B 19/4183: {characterised by data acquisition, e.g. workpiece identification}
- G05B 19/41865: {characterised by job scheduling, process planning, material flow}
- G05B 2219/34263: OLE object linking and embedding, OPC ole for process control
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)

## Abstract

A method for calling an industrial controller control program function block having an OPC UA server and using the OPC UA communication protocol to communicate with an OPC UA client, the function block requested from an OPC UA call of the OPC UA client. The method further comprising: a call step directed to the method of the OPC UA server sent from the OPC UA client to the OPC UA server; a stored step, the OPC UA call is stored by the industrial controller OPC UA server; a transfer step, IN Parameters are transferred together with the OPC UA call from the OPC UA client to the OPC UA server, and copied to corresponding control program function block IN parameters; and a called step, the control program function block is called at a previously defined point within a industrial controller control task, and the function block IN parameters are processed.

## Claims

### Claim 1

A method for calling a function block of a control program of an industrial controller, wherein
the industrial controller comprises an OPC UA server,
the industrial controller communicates with an OPC UA client, in particular by means of the OPC UA communication protocol,
and the function block is requested starting from an OPC UA call of the OPC UA client,
wherein when the function block is requested
in a first step,
an OPC UA call directed thereto is sent from the OPC UA client to the OPC UA server of the industrial control
in a second step,
the OPC UA call is stored by the OPC UA server of the industrial controller,
in a third step,
(IN1-par) IN parameters transferred together with the OPC UA call are copied (IN2-par) to corresponding IN parameters of the function block of the control program, and
in a fourth step,
at a previously defined point within a control task of the industrial controller, the function block of the control program is called and the IN parameters of the function block are processed.

### Claim 2 (depends on 1)

The method according to claim 1, wherein OUT parameters of the function block obtained by execution of the control task during processing of the IN parameters of the function module of the control program are copied (OUT1-par) to the OPC UA server after execution of the control task.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the OUT parameters additionally comprise at least one parameter for signaling a processing status and/or an error during the OPC UA call-based processing of the function block.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the OUT-parameters copied to the OPC UA server are returned (OUT2-par) from the OPC UA server to the OPC UA client.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the IN parameters comprise a parameter for signaling the presence of an OPC U.A call.

### Claim 6 (depends on 5)

The method according to claim 5, wherein at the end of the execution, or prior to the start of the next execution of the control task, at least the IN parameter copied to the function block of the control program is reset to a default value to signal the presence of an OPC UA call.

### Claim 7

An industrial controller having an OPC UA server, wherein the industrial controller is designed to run a control program, wherein the industrial controller is designed to communicate, in particular by means of the OPC UA communication protocol, with an OPC UA client, as well as furthermore to call a function block of the control program, which function block can be requested starting from an OPC UA call of the OPC UA client, wherein the OPC UA server is designed for receiving an OPC UA call directed to the request from the OPC UA client, as well as for storing the OPC UA call,
wherein the industrial controller is further designed for copying IN parameters transferred together with the OPC UA call to corresponding IN parameters of the function block of the control program and for calling the function block of the control program at a previously defined point within a control task of the industrial controller for processing the IN parameters of the function block.
