发表于:2016/1/31 13:33:04
#0楼
向晓汉主编的西门子PLC高级应用实例精解第二版 87页的一例程序 难住了我,特别 是网络4中的30000 是脉冲数还是什么,看程序VW20 应该是经计算出的新周期数,周期 是这样运算出来的吗?实在不解。下面贴出程序截图,大家帮忙指点下,谢了!


原题 是这样的:已知步进电机的步距角1.8度,默认情况细分为4,默认转速375r/min,转速的设定在触摸屏上进行,驱动器的细分修改后, 触摸中的VW2也要随之修改。
主程序截图如下:
SBR_0程序截图如下:
SBR_1程序截图如下:
不用告诉我用MAP编写方便 ,就想知道这个小程序是咋编写的 。



原题 是这样的:已知步进电机的步距角1.8度,默认情况细分为4,默认转速375r/min,转速的设定在触摸屏上进行,驱动器的细分修改后, 触摸中的VW2也要随之修改。
主程序截图如下:
SBR_0程序截图如下:
SBR_1程序截图如下:
不用告诉我用MAP编写方便 ,就想知道这个小程序是咋编写的 。
[此贴子已经被作者于2016/1/31 14:35:29编辑过]
思想决定高度