光栅尺调?/p>
增加第二测量回路及增加光栅尺功能
1
?/p>
PLC
程序修改
DB3x.DB1.5=0, DB3x.DB1.6=1
第二
测量回路生效?/p>
机床数据
MD30200=2
2
?/p>
N30200
$MA_NUM_ENCS[AX1]=2
N30240
$MA_ENC_TYPE[1,AX1]=1
N31000
$MA_ENC_IS_LINEAR[1,AX1]=1
N31010
$MA_ENC_GRID_POINT_DIST[1,AX1]=0.02
N31040
$MA_ENC_IS_DIRECT[1,AX1]=1
N32110
$MA_ENC_FEEDBACK_POL[1,AX1]=-1
N34060
$MA_REFP_MAX_MARKER_DIST[1,AX1]=500
?/p>
果为带距离编码的光栅尺:
3
?/p>
PLC
程序修改
DB3x.DB1.5=0, DB3x.DB1.6=1
第二测量回路
?/p>
?/p>
?/p>
4
?/p>
?/p>
?/p>
?/p>
?/p>
MD30200=2
N30200
$MA_NUM_ENCS[AX1]=2
N30240
$MA_ENC_TYPE[1,AX1]=1
N31000
$MA_ENC_IS_LINEAR[1,AX1]=1
N31040
$MA_ENC_IS_DIRECT[1,AX1]=1
N32110
$MA_ENC_FEEDBACK_POL[1,AX1]=-1
MD34200
ENC_REFP_MODE=3
N31010
$MA_ENC_GRID_POINT_DIST[1,AX1]=0.04
;
?/p>
?/p>
?/p>
?/p>
?/p>
?/p>
MD34310 ENC_MARKER_INC =0.04
?/p>
两个零脉冲之间的差?/p>
MD 34300 ENC_REFP_DIST=80
?/p>
两个零脉冲之间的距离
N34060
$MA_REFP_MAX_MARKER_DIST[1,AX1]=80
;找参考点的最
大距?/p>
MD34320
ENC_INVERS[1]
;=0
光栅尺与机床同方?/p>
=1
光栅尺与机床反方?/p>
MD34000
REFP_CAM_IS_ACTIVE
=0
绝对光栅尺:
5
?/p>
机床数据
MD30200=2
N30200
$MA_NUM_ENCS[AX1]=2
N30240
$MA_ENC_TYPE[1,AX1]=4
N31000
$MA_ENC_IS_LINEAR[1,AX1]=1
N31010
$MA_ENC_GRID_POINT_DIST[1,AX1]=0.02
?/p>
?/p>
?/p>
?/p>
N31040 $MA_ENC_IS_DIRECT[1,AX1]=1 N32110 $MA_ENC_FEEDBACK_POL[1,AX1]=-1