Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357

Warning: mysqli_query(): (HY000/1194): Table 'wp_options' is marked as crashed and should be repaired in D:\wwwroot\www.zhaoplc.com\wp-includes\class-wpdb.php on line 2357
用S7-200去测量转速 | 找知识-找PLC

用S7-200去测量转速

我有S7-200一台.TD200一台和一只接近开关想要测量一台电机的转速,其速度在TD200上显示,怎样编程.先谢谢您啦.

最佳答案

用硬件中断做,S7-200 硬件中断点224为i0.0~i0.3
 在初始化程序中激活硬件中断
 在中断程序中添加
 ld sm0.0
 incw vw100
 vw100就是当前脉冲量
 然后根据单位时间的脉冲数转换为速度就可以了

提问者对于答案的评价:
OK

原创文章,作者:ximenziask,如若转载,请注明出处:https://www.zhaoplc.com/plc356780.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2021年7月5日 上午9:34
下一篇 2021年7月5日 上午9:34

相关推荐

  • STEP7 SP9软件安装问题

    一开始软件运行正常,由于需要modbus指令库,安装后指令库运行正常。关闭软件重启后  设置PC/PG口提示 无法启动S7 ONLINX.D…

    2017年6月24日
  • s7200 连接A、B相编码器

    连接A/B相编码器,在线监控时无法监控到高速计数器脉冲变化,麻烦各位帮我看下接线和程序有错误没?最好能给个实例, 问题补充:我把公共点那跟蓝线换成24V+,输入点在编码器转动时有闪…

    2021年7月5日
  • plc200模拟量偏高

    液位在触摸屏显示的值比实际的值偏高大概0.5m,通道为AIW0,液位计量程0-9m。但使用旁边同高度池子的液位计接入通道AIW2时,显示正常。导致这种结果的原因是什么?怎样纠正? …

    SIMATIC S7-200 2017年10月29日
  • S7-200有条件调用PID指令

    我想做一个温度控制系统,在温度50摄氏度以上调用PID控制,但是PID指令使用时不能附加条件,所以不知道怎么用?我想实现的功能是在50度以下,PID不调用,但仍能之前的输出不变,这…

    SIMATIC S7-200 2018年12月5日
  • s7-200 和HMI通讯线制作

    我有两台设备改造,一台用s7-200 CPU226(6ES7 216 2AD23 0XB0)和TP177B PN/DP-6&nbs…

    SIMATIC S7-200 2017年11月2日
  • plc200存储区初始值

    plc200位存储区初始值是0吗?如图,在m12.1得电时,mw14的值变为1?变量存储区的初始值也是0?如果改为vw14,当m12.1得电时,vw14值也是1吗? 图片说明: &…

    SIMATIC S7-200 2017年11月12日
  • EM232处理

    我226cpu接一个232模块,程序编程强制输出AQW0为7MA,但是输出我量电流M0 I0怎么没有电流呢,我前面都没有用模拟量输出,就只接了这个模块,难道是模块坏了嘛,…

    SIMATIC S7-200 2017年11月19日
  • EM231输入方框图看到4路数据是依次转换的,如果不系统滤那么其中一路的旧数据和新数据相隔多久

    我查EM231输入方框图看到4路数据是依次转换的,并不是同时转换,如果不进行系统滤波直接读数据,那么其中一路的数据更新有多快?是不是大概(1.5ms+250us)*4?????? …

    SIMATIC S7-200 2020年10月31日
  • 组态王与西门子通讯连接的电缆问题

    就是两种通讯模式,1以太网cp23-1模块与组态王连接的电缆,2,em277与组态王连接用的电缆dp协议希望知道是具体型号,好像原装进口好贵,不知是否是rs232转rs485的电缆…

    SIMATIC S7-200 2017年12月21日
  • 置位复位的问题

    如果的程序什么意思?那个6和2是什么意思? 图片说明:    最佳答案 6代表从Q0.0开始连续六个位复位 即 Q0.0 Q0.1…

    2017年11月23日

发表回复

登录后才能评论