A hole model can be made more flexible with the use of formulas especially in the list of operations. To be able to create these formulas based on the holes' characteristics, whatever the hole shape, number of stages, and options defined, automatic referencing is required.

孔特性参考

GO2cam 中的参考是自动的,并遵循以下规则:

  • a 字母 定义参数或特性(在 蓝色 below)

  • a 数字 相对于阶段(在 红色 below)

下面提供了一个具有 3 个阶段的通孔的图示,以显示参考:

H : height of the stage

在操作列表中,高度 ( H ) 被加工深度 ( P ).

D : diameter of the stage

Dc : diameter of the stage chamfer

Ac : aperture angle of the stage chamfer

R : radius in the bottom of the stage

对于攻丝阶段:

D : tapping diameter

Dd : drilling diameter

Hi : tapping height

Tp : tapping pitch

Do : diameter of the inverse chamfer of the stage

Ao : aperture angle of the inverse chamfer of the stage

还有 2 个仅适用于操作列表的参数:

L0 : total length of the hole

z0 : value added at the end of path to make the path longer and avoid a crater in machined surface.

Reference Illustration.png

The stages are numbered 1 , 0 , 1o

孔参数的定义

在创建用户孔的过程中,可以根据使用其他参数的数学公式计算每个参数。

要遵守的语法:

  • 公式必须写在 引号 " xxx "

  • 小数符号是 .

  • 插入参数 :在列表中选择它,它会自动显示在该字段中。您也可以编写它,但您必须通过将其写在“钩子”中来遵守语法 [xxx]。

  • 公式在数学上必须是正确的,考虑为复杂公式添加括号(多个运算符)

  • 所有 数学运算符 都可以访问 ( + - * / ),还有运算符 And 和 Or,它们可以创建复杂的公式,尤其是在定义操作列表时。

数学运算符

方肩面铣

Square

最大

Maximum

acos

Arccosines

rnd

Random

sqt

Square Root

min

最小

反正弦

反正弦

日志

十进制对数

正弦

正弦

mod

模数

atan

反正切

sgn

符号

cos

余弦

exp

Exponential

^

Power

圆的柄径

圆滑

切线

切线

Ln

Napierian Logarithm

abs

绝对值

截断

截断

int

Integer value

Binary operators:

比对 operators:

Priority operators:

Logical operators:

+

Addition

>

Superior to

( and )

OR

逻辑或

-

减法

>=

Superior or equal to

特殊标记:

AND

逻辑与

/

除法

<

低于

Pi

XOR

异或

*

乘法

<=

小于或等于

逻辑号

=

分配

<>

不同于

==

Equality

Errors:

如果参数在其计算公式中使用自己的参考,则会显示“自引用变量”错误。

同样地,如果为参数定义的值太小,则会显示错误。 例如,倒角直径定义为小于标称直径: Dc1 = " [D1] – 1.5 "

Self Reference Error warning.PNG

操作清单中的公式和约束

参数 的 参数:

参数 分为 3 类:

  • 孔 定义 : execution of the cycle according to a constraint or not, unit and quality of the hole, definition of the machining depth. An interesting parameter is the weight , which enables to modify the positions of the operations. By default, all the cycles have a weight set to ‘ 0 ’,给一个操作赋予‘ 1 ’的权重意味着将其置于最后的位置(1比0重)。 要将循环置于第一个位置,请将权重定义为值‘ -1 ’.

  • 特征:刀具查找 : 您可以为直径定义一个最大值。

  • 策略: 访问循环的多个策略参数,例如停留时间和 Z 偏移。增量深度很有趣,您可以根据公式进行计算,例如在钻孔去毛刺时,您可以定义一个等于孔长度十分之一的增量。请阅读上面专门介绍公式创建的章节。

有条件的公式

与在阶段页面中定义的公式相反,这些公式不仅是计算公式。 计算公式 是可能的,但这里最大的优势是能够建立 constraints ,然后定义一个 相互依赖 局限於参数

孔的每个尺寸参数都用一个参考来定义,完整的列表在前面给出。那里描述的参数是相同的,除了我们替换了阶段高度( H ) 由加工深度 ( P )

2 参数 are added to this list:

  • L0 : 孔的总长度。在零件上应用模型时,会给出此值。

  • z0 :加工结束时超过长度值。您可以在孔选项中定义此值。

感谢数据 ‘ 状态 ’,我们将能够 约束循环的实现 通过一个公式。

这是一个例子:一个有2个阶段的沉头孔。我们想定义一个定点钻操作,只有在钻孔直径大于10毫米时才进行。

对于这个,我们首先需要在 ‘线’ 中激活复选框 状态 ’ / 列 ‘ ”。然後在参数列表中选择钻孔直径,即 D1。

List of Ope - State.png

在公式字段中,输入 [D1]>10。

在操作清单中,你会注意到一个 小白指针箭头 位于点钻图标上,以表明此 循环受公式约束 .

List of Ope - formula pointer.png

2Stage Counterboring.PNG

当应用这个Model时,只需用所需的值填充字段,操作清单将被创建,并将约束考虑在内。

这里,2个</context>孔</context>有不同的</context>值</context>:

  • 沉头孔 D14.5, (D1 >10mm) 有一个点钻操作

  • 沉头孔 D8, (D1<10) 没有点钻操作。

练习

这是一个练习,用于练习在操作列表中使用参数公式。我们将为标准内六角圆柱头螺钉创建一个孔模型 M3, M4, M5, M6, M8, M10, M12, M16, M20 以及更多。

孔是一个通孔,沉头孔,倒斜角和锥度的。

将会有2个操作清单,一个包含条件:

A. 用于沉头孔,其直径小于 18

B. 用于沉头孔,其直径 > 18。

操作清单

A. 直俓 <= 18

B. 直俓 > 18

倒角 点钻

点钻

钻孔

沉头孔

控槽

攻牙

削边 / 插补

这是每个沉头孔直径的操作列表的表格:

螺栓

沉头孔 直俓 D1

倒角 点钻

点钻

钻孔 Dd0

沉头孔

控槽

攻牙 D0

倒斜角/插补

M3

8

X

X

X

X

M4

10

X

X

X

X

M5

11

X

X

X

X

M6

13

X

X

X

X

M8

18

X

X

X

X

M10

20

X

X

X

X

X

M12

22

X

X

X

X

X

M16

30

X

X

X

X

X

M20

36

X

X

X

X

X

(blue star) 这是夹头有weldon chuck解决方案的视频:

User Holes Conditions - Exercise-20240802-094010.png