LCI 模块:脉冲宽度随速度变化而变化
  k4eu5fcIGZiP 2023年11月30日 18 0

LCI 模块:脉冲宽度随速度变化而变化_ci

Fixed Distance Pulse Mode with Dynamic Pulse Width
! Fixed Distance Pulse Mode with Dynamic Pulse Width
int AxX = 0 ! Actual moving X axis
int AxY =1 ! Actual moving y axis
real MinVel = 20 ! Min speed at which the pulse width = MinWidth
real MaxVel = 120 ! Max speed at which the pulse width = MaxWidth
real MinWidth = 0.001 ! 1 usec
real MaxWidth = 0.5 ! 0.1 msec
real Interval = 0.05 !0.2 mm
real StartPos = 0, EndPos = 10000, InitalPos = 0
!*************************************************
! Motion parameters 
VEL(AxX)=100
ACC(AxX)=500; DEC(AxX)=500; JERK(AxX)=2000
!**************************************************
lc.SetSafefetyMasks(1,1) ! Ignore LCI safefety errors and fafauaults
lc.Init() ! set LCI unit to defafault states
! Axes 0,1 used fofor vector velocity calculation. 
lc.SetMotionAxes(AxX,AxY)
ENABLE (AxX, AxY)WAIT 200
! go to start position. 
PTP/e (AxX,AxY), 0, 0
! Initialization of Fixed Interval fufunction
! The pulse width is in range 0.001 - 0.1 msec
! proportional to vector velocity
lc.FixedDistPulse(MaxWidth, Interval, StartPos, EndPos,InitalPos, MinWidth, MaxWidth, MinVel,MaxVel)

!lc.FixedDistPulse(MaxWidth, Interval)
lc.LaserEnabable() ! LCI ready to generate pulses in motion. 
!******************************************************************
! Motion command during which pulses are issued. 
XSEG (AxX,AxY), 0, 0
LINE (AxX,AxY), 50, 0
ARC2 (AxX,AxY), 50, 10, 3.14159/2
LINE (AxX,AxY), 50, 30
ENDS (AxX,AxY)TILL GSEG(AxX) = -1
!******************************************************************
lc.LaserDisabable() ! stop pulses
lc.Stop () ! Stops any previously initialized laser mode. 
PTP/e (AxX,AxY), 0, 0

STOP
【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月30日 0

暂无评论

推荐阅读
  gBkHYLY8jvYd   2023年12月06日   38   0   0 #includecii++
  gBkHYLY8jvYd   2023年11月19日   20   0   0 #includecic++
  gBkHYLY8jvYd   2023年12月09日   12   0   0 cii++数据
  lh6O4DgR0ZQ8   2023年11月19日   19   0   0 解包ci插槽
  gBkHYLY8jvYd   2023年12月06日   14   0   0 cii++依赖关系
  lh6O4DgR0ZQ8   2023年11月24日   12   0   0 cii++c++
  gBkHYLY8jvYd   2023年11月22日   16   0   0 ioscii++
  gBkHYLY8jvYd   2023年11月19日   17   0   0 #include数组ci
  gBkHYLY8jvYd   2023年11月19日   17   0   0 cifor循环字符串
  gBkHYLY8jvYd   2023年12月08日   14   0   0 #includecii++
  gBkHYLY8jvYd   2023年11月19日   14   0   0 #includeiosci
  gBkHYLY8jvYd   2023年12月11日   9   0   0 cic++最小值
  gBkHYLY8jvYd   2023年11月22日   18   0   0 #includeiosci
k4eu5fcIGZiP