Information processing method and apparatus
Various embodiments of the teachings herein include an information processing method. An example method includes: generating a workflow in an operations technology (OT) domain based on an instruction entered by a user, wherein the workflow defines an operation to be performed by a work cell in the OT domain, and identifications (IDs) of elements in the workflow are named using a universal namespace rule; mapping the IDs of the elements in the workflow to runtime of a master controller of the work cell; and determining a target function to be executed in the workflow based on the IDs of the elements that are mapped to the runtime and a target body to execute the target function.
1 . An information processing method comprising:
generating a workflow in an operations technology (OT) domain based on an instruction entered by a user, wherein the workflow defines an operation to be performed by a work cell in the OT domain, and identifications (IDs) of elements in the workflow are named using a universal namespace rule;
mapping the IDs of the elements in the workflow to runtime of a master controller of the work cell; and
determining a target function to be executed in the workflow based on the IDs of the elements that are mapped to the runtime and a target body to execute the target function;
wherein the work cell comprises at least one OT device selected from the group consisting of: a production line, a conveyor belt, a robot arm, and an automated transport;
the element comprises a function block and a function description of a function block;
each instance of the function block has an instance ID conforming to the universal namespace rule;
each type of function block and each type of function description have a respective class ID that conforms to the universal namespace rule;
mapping the IDs of the elements in the workflow to runtime of a master controller of the work cell comprises separately mapping the class ID and the instance ID to the runtime;
determining a target function to be executed in the workflow and a target body that executes the target function comprises: determining, based on the class ID, the target function to be executed; and finding an instance ID corresponding to the class ID, to determine the target body that executes the target function; and
controlling a corresponding OT device in the work cell to perform a corresponding operation based on the determined target body and the determined target function.
2 . The method according to claim 1 , wherein:
the ID named using the universal namespace rule comprises a plurality of fields separated by symbols; and
each field comprises an attribute value of an element.
3 . The method according to claim 2 , wherein the attribute value of the element comprises at least one of a class, a sub-class, a serial number, a manufacturer, a serial number, a sub-serial number, a function block name, or a resource name of the element.
4 . The method according to claim 2 , wherein:
an attribute value of a last field of the instance ID includes a number; and
an attribute value of a last field of the class ID comprises at least one letter.
5 . The method according to claim 1 , wherein the element in the workflow comprises at least one of the following: a function block, a physical node, a universal resource, a behavior, or a skill.
6 . A computing device comprising:
at least one memory storing computer readable code; and
at least one processor to invoke the computer readable code to perform the method according to claim 1 .
7 . An information processing apparatus comprising:
a workflow generation unit to generate a workflow in an operations technology (OTO domain based on an instruction entered by a user, wherein the workflow defines an operation to be performed by a work cell in the OT domain, and IDs of elements in the workflow are named using a universal namespace rule;
a mapping unit to map the IDs of the elements in the workflow to runtime of a master controller of the work cell; and
a determining unit to determine a target function to be executed in the workflow and a target body that executes the target function based on the IDs that are of the elements and that are mapped to the runtime;
wherein the work cell comprises at least one OT device selected from the group consisting of: a production line, a conveyor belt, a robot arm, and an automated transport;
the element comprises a function block and a function description of a function block;
each instance of the function block has an instance ID conforming to the universal namespace rule;
each type of function block and each type of function description have a respective class ID that conforms to the universal namespace rule;
mapping the IDs of the elements in the workflow to runtime of a master controller of the work cell comprises separately mapping the class ID and the instance ID to the runtime;
determining a target function to be executed in the workflow and a target body that executes the target function comprises: determining, based on the class ID, the target function to be executed; and finding an instance ID corresponding to the class ID, to determine the target body that executes the target function; and
controlling a corresponding OT device in the work cell to perform a corresponding operation based on the determined target body and the determined target function.