Difference between revisions of "Program Examples:Backlash Compensation/zh-hans"
(Created page with "{{Languages}} ==Introduction== This article demonstrates the use of position backlash compensation feature. [[File:Backlash.jpg|Backlash compensation value in different move...") |
|||
Line 1: | Line 1: | ||
− | {{Languages}} | + | {{Languages|Program_Examples:Backlash_Compensation}} |
− | == | + | ==简介== |
− | + | 本文演示了使用位置反向间隙补偿功能。 | |
[[File:Backlash.jpg|Backlash compensation value in different movement directions|800px]] | [[File:Backlash.jpg|Backlash compensation value in different movement directions|800px]] | ||
− | == | + | == 程序 == |
− | + | 首先关联轴,转到初始位置(零): | |
<pre> | <pre> | ||
Line 15: | Line 15: | ||
</pre> | </pre> | ||
− | + | 设置间隙值和alpha平滑因子: | |
<pre> | <pre> | ||
Line 22: | Line 22: | ||
</pre> | </pre> | ||
− | + | 从终端检查实际的补偿值应该返回0,因为没有运动: | |
<pre> | <pre> | ||
Line 30: | Line 30: | ||
− | + | 向后移动(负方向): | |
<pre> | <pre> | ||
MOVE A1 -100 | MOVE A1 -100 | ||
</pre> | </pre> | ||
− | + | 查看终端检查实际补偿值应该返回-0.5,因为运动是负方向的: | |
<pre> | <pre> | ||
Line 42: | Line 42: | ||
</pre> | </pre> | ||
− | + | 向前移动(正方向): | |
<pre> | <pre> | ||
MOVE A1 +100 | MOVE A1 +100 | ||
</pre> | </pre> | ||
− | + | 查看终端的实际补偿值应该返回+0.5,因为运动是正方向的: | |
<pre> | <pre> |
Latest revision as of 03:34, 17 July 2017
语言: | English • 中文(简体) |
---|
简介
本文演示了使用位置反向间隙补偿功能。
程序
首先关联轴,转到初始位置(零):
Attach A1 Move A1 0
设置间隙值和alpha平滑因子:
A1.PositionBacklash = 0.5 A1.PositionBacklashAlpha = 0.9
从终端检查实际的补偿值应该返回0,因为没有运动:
-->?a1.CompPCmd - a1.PCmd 0
向后移动(负方向):
MOVE A1 -100
查看终端检查实际补偿值应该返回-0.5,因为运动是负方向的:
-->?a1.CompPCmd - a1.PCmd -0.5
向前移动(正方向):
MOVE A1 +100
查看终端的实际补偿值应该返回+0.5,因为运动是正方向的:
-->?a1.CompPCmd - a1.PCmd 0.5