跳转至

配方#

🔒 Recipe.Show

概述#

配方表示在步骤中处理给定物料所需的设备信息。它可以包含静态或动态参数,也可以包含实体。配方可以包含子配方。这提高了配方的模块化和可重用性。

Info

“配方管理”是可选的凯睿德制造软件模块。

全局数据和版本控制数据#

配方是一个更改受控对象,包含全局数据组件和版本控制数据组件,如下图所示。

graph TD
subgraph Recipe
Main1["Global Data<br>(Without Change Control)"] --- A1[Is Enabled<br>Is Executable]
Main2["Versioned Data<br>(With Change Control)"] --- A2[All other]
end


classDef mermaid_title color:#000, fill:#fafafa, stroke:#fafafa, stroke-width:0x, font-size:100%, font-weight:200;
classDef mermaid_start color:#000, fill:#fafafa, stroke:#fafafa, color:#fafafa, stroke-width:0x, font-size:100%, visibility: hidden;
classDef mermaid_businessdata color:#000, fill:#65CDE8, stroke:#65CDE8, stroke-width:0px, font-size:100%;
classDef mermaid_nonbusinessdata color:#000, fill:#B7DEE8, stroke:#B7DEE8, stroke-width:0px, font-size:100%;
classDef mermaid_entity color:#000, fill:#FB9F53, stroke:#FB9F53, stroke-width:0px, font-size:100%;
classDef mermaid_entitylinked color:#000, fill:#FCD5B5, stroke:#FCD5B5, stroke-width:0px, font-size:100%;
classDef mermaid_context color:#000, fill:#B9CDE5, stroke:#B9CDE5, stroke-width:0px, font-size:100%;
classDef mermaid_optional color:#000, fill:#B7DEE8, stroke:#65CDE8, stroke-width:1px, font-size:100%, stroke-dasharray: 5 5;
classDef mermaid_state color:#000, fill:#d7e4bd, stroke:#000, stroke-width:1px, font-size:100%, font-weight:300;
class Main1,Main2 mermaid_entity
class A1,A2 mermaid_entitylinked

使用配方上下文解析配方。有关如何管理配方上下文的详细信息,请参阅“配方上下文”部分。

请注意,配方解析实际上是一个两步过程。首先,使用基于流程信息的服务上下文解析服务,然后使用主要基于设备信息的配方上下文解析配方,如下图所示。

graph LR
subgraph Service Context
Main1[Step]
A1[Service]
end

subgraph Recipe Context
Main2[Service]
A2[Recipe]
end

A1 --- Main2


classDef mermaid_title color:#000, fill:#fafafa, stroke:#fafafa, stroke-width:0x, font-size:100%, font-weight:200;
classDef mermaid_start color:#000, fill:#fafafa, stroke:#fafafa, color:#fafafa, stroke-width:0x, font-size:100%, visibility: hidden;
classDef mermaid_businessdata color:#000, fill:#65CDE8, stroke:#65CDE8, stroke-width:0px, font-size:100%;
classDef mermaid_nonbusinessdata color:#000, fill:#B7DEE8, stroke:#B7DEE8, stroke-width:0px, font-size:100%;
classDef mermaid_entity color:#000, fill:#FB9F53, stroke:#FB9F53, stroke-width:0px, font-size:100%;
classDef mermaid_entitylinked color:#000, fill:#FCD5B5, stroke:#FCD5B5, stroke-width:0px, font-size:100%;
classDef mermaid_context color:#000, fill:#B9CDE5, stroke:#B9CDE5, stroke-width:0px, font-size:100%;
classDef mermaid_optional color:#000, fill:#B7DEE8, stroke:#65CDE8, stroke-width:1px, font-size:100%, stroke-dasharray: 5 5;
classDef mermaid_state color:#000, fill:#d7e4bd, stroke:#000, stroke-width:1px, font-size:100%, font-weight:300;
class Main1,Main2 mermaid_entity
class A1,A2 mermaid_businessdata

将一切捆绑在一起#

graph LR
    C1[Recipe Parameter Overrides Context] --- Main[Recipe]
    L1[Recipe Body] --- Main
    C2[Recipe Context] --- Main
    L2[Recipe Parameter] --- Main
    C1 --- L2
    A1[Parameter] --- L2
    Main --- L3[Recipe Instance]
    L3 --- L4[Recipe Instance Parameter]
    Main ---- L5[SubRecipe]
    L5 ----|SubRecipe| Main
    Main --- L6[SubRecipe Parameter]
    L6 --- A1

classDef mermaid_title color:#000, fill:#fafafa, stroke:#fafafa, stroke-width:0x, font-size:100%, font-weight:200;
classDef mermaid_start color:#000, fill:#fafafa, stroke:#fafafa, color:#fafafa, stroke-width:0x, font-size:100%, visibility: hidden;
classDef mermaid_businessdata color:#000, fill:#65CDE8, stroke:#65CDE8, stroke-width:0px, font-size:100%;
classDef mermaid_nonbusinessdata color:#000, fill:#B7DEE8, stroke:#B7DEE8, stroke-width:0px, font-size:100%;
classDef mermaid_entity color:#000, fill:#FB9F53, stroke:#FB9F53, stroke-width:0px, font-size:100%;
classDef mermaid_entitylinked color:#000, fill:#FCD5B5, stroke:#FCD5B5, stroke-width:0px, font-size:100%;
classDef mermaid_context color:#000, fill:#B9CDE5, stroke:#B9CDE5, stroke-width:0px, font-size:100%;
classDef mermaid_optional color:#000, fill:#B7DEE8, stroke:#65CDE8, stroke-width:1px, font-size:100%, stroke-dasharray: 5 5;
class Main mermaid_entity
class A1,A2,A3,A4,A5,A6,A7,A8,A9,A10 mermaid_businessdata
class L1,L2,L3,L4,L5,L6 mermaid_entitylinked
class C1,C2,C3,C4,C5,C6 mermaid_context
class N1,N2,N3,N4,N5,N6 mermaid_nonbusinessdata

click Main "../../business-data/recipe"
click A1 "../../business-data/parameter"
click C1 "../../administration/tables/smart-tables/recipeparameteroverridecontext"
click C2 "../../administration/tables/smart-tables/recipecontext"
click L5 "../../business-data/recipe"

步骤顺序#

正确使用配方的必要步骤如下:

  1. 创建必要的参数 - 请注意,配方只能使用范围为EDC_SPC_Recipe配方参数
  2. 创建必要的子配方 - 如果它们将由新配方引用。
  3. 创建配方 - 请注意,必须将配方版本与*变更集关联。
  4. 批准变更集,该变更集包含已创建的配方版本

Info

为方便起见,可以将配方配置为使用隐式变更集。有关详细信息,请参阅变更集部分。

  1. 根据需要管理配方上下文。请注意,配方上下文用于解决特定服务配方

Info

配方解析和实例化仅适用于将“配方管理”属性设置为true的资源。