首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > um=5.elmo

um=5.elmo

  • 资源大小:1.11 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: Windows开发

资 源 简 介

/*The program sets an arrays  of positions and speeds.On the digital input #6 trigger, the program moves forward, waits one second and returns.The destination and speed of the motion are defined according to the values in the speed and position arrays, with an index set by digital inputs #1 through #5.When an error occurs, the program stops and digital output #1 is raised.The motions are executed by functions called by the main program.Errors are detected in the motion functions and returned to the main program.*///Global Variable declarationint Destination[32];int MotionSpeed[32];int MaxDest;int MaxSpeed;//Functions declarationfunction int Err = MoveForward(int MoveIndex); function int Err = MoveBack(int MoveIndex);//Program##PROGRAM1//Local variables declarationint i;float Coeff;//Program bod

文 件 列 表

Unit5_1.ehl
VIP VIP
0.181428s