ShuttleGroup6D reference

<< 点击显示目录 >>

主页  ACOPOS 6D使用手册 > mapp 6D  > 功能块 > McAcp6D  > 技术信息
 >

ShuttleGroup6D reference

功能块输入"ShuttleGroup"需要一个Mc6DShuttleGroupType 类型的 ShuttleGroup 引用。

通过MC_BR_AsmGetShGroup_Acp6D或直接从功能块MC_BR_ShGroupCreate_Acp6D 获取ShuttleGroup 引用。输出 ShuttleGroup 引用的地址可直接在功能块中使用。

该 ShuttleGroup 参考地址也可以存储在Mc6DShuttleGroupType 类型的过程变量中,并在以后使用。

 

功能块输入 "ShuttleGroup "的地址分配

ST file:

IF(MC_BR_AsmGetShGroup_Acp6D_0.Valid ==  TRUE) THEN
MC_BR_ShGroupAddShuttle_Acp6D_0.ShuttleGroup:= ADR(MC_BR_AsmGetShuttleGroup_Acp6D_0.ShuttleGroup);

 

或者

Var file:

VAR
    ShuttleGroupRef: Mc6DShuttleGroupType;
END_VAR

 

ST file:

ShuttleGroupRef:= MC_BR_AsmGetShuttleGroup_Acp6D_0.ShuttleGroup;
MC_BR_ShGroupAddShuttle_Acp6D_0.ShuttleGroup:= ADR(ShuttleGroupRef);

 


Function block input "ShuttleGroup" requires a ShuttleGroup reference of type Mc6DShuttleGroupType.

The ShuttleGroup reference is retrieved with MC_BR_AsmGetShGroup_Acp6D or directly from function block MC_BR_ShGroupCreate_Acp6D. The address of the output ShuttleGroup reference can be used in the function block directly.

This ShuttleGroup reference can also be stored in a process variable of type Mc6DShuttleGroupType and used at a later time.

 

Address assignment to function block input "ShuttleGroup"

ST file:

IF(MC_BR_AsmGetShGroup_Acp6D_0.Valid ==  TRUE) THEN
MC_BR_ShGroupAddShuttle_Acp6D_0.ShuttleGroup:= ADR(MC_BR_AsmGetShuttleGroup_Acp6D_0.ShuttleGroup);

 

or

Var file:

VAR
    ShuttleGroupRef: Mc6DShuttleGroupType;
END_VAR

 

ST file:

ShuttleGroupRef:= MC_BR_AsmGetShuttleGroup_Acp6D_0.ShuttleGroup;
MC_BR_ShGroupAddShuttle_Acp6D_0.ShuttleGroup:= ADR(ShuttleGroupRef);