登录
首页 » Windows开发 » um=5.elmo

um=5.elmo

于 2022-06-16 发布 文件大小:1.11 kB
0 57
下载积分: 2 下载次数: 1

代码说明:

/*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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696518资源总数
  • 104228会员总数
  • 45今日下载