SIEMENS西门子上海朕锌电气设备有限公司
联系人:钟涛(小钟)
24小时销售及维修热线:15162594181
电 话:021-31668773 传 真:021-67226033
手 机:18221357245Q Q : 1824547528
微信:15162594181(同步手机)
邮箱:1824547528@qq.com
地址:上海市金山区枫湾路500号
公司主营:西门子数控系统,S7-200PLC S7-300PLC S7-400PLC S7-1200PLC 6ES5 ET200 人机界面,变频器,DP总线,MM420 变频器MM430 变频器MM440 6SE70交流工程调速变频器6RA70直流调速装置 SITOP电源,电线电缆,数控备件,伺服电机等工控产品。电话:021-31668773 手机:18221357245 商务QQ:1824547528
seline; color: rgb(51, 51, 51); text-indent: 0px; max-width: 592px !important;">描述:
在 STEP 7 Micro/WIN 里定时器的调用总数限制在 256:
seline; color: rgb(51, 51, 51); text-indent: 0px; max-width: 592px !important;">接通延时定时器(“TON”) 和断开延时定时器(“TOF”)
- 2 个(“T32” 和“T96”) 时基为 1 ms
- 8 个(“T33” 到“T36” 以及“T97” 到“T100”) 时基为 10 ms
- 182 个(“T37” 到“T63”以及“T101”到“T255”) 时基为 100 ms
seline; color: rgb(51, 51, 51); text-indent: 0px; max-width: 592px !important;">带记忆的接通延时定时器 (“TONR”)
- 2 个(“T0”和“T64”) 时基为 1 ms
- 8 个(“T1”到“T4”以及“T65”到“T68”) 时基为 10 ms
- 54 个(“T5”到“T31”以及“T69”到“T95”) 时基为 100 ms
seline; color: rgb(51, 51, 51); text-indent: 0px; max-width: 592px !important;">
Fig. 01
seline; color: rgb(51, 51, 51); text-indent: 0px; max-width: 592px !important;">从 STEP 7 Micro/WIN 版本 4 开始,功能块“BGN_ITIME”和“CAL_ITIME” 也可用于版本 2 开始的 S7-200 CPUs ,定时器可以进行如下仿真而没有限制:
seline; color: rgb(51, 51, 51); text-indent: 0px; max-width: 592px !important;">注意:由于输出是双字格式,**定时时间是49.7天。
seline; color: rgb(51, 51, 51); text-indent: 0px; max-width: 592px !important;">接通延时定时器
输入点 I0.0 接通(上升沿) 3 秒后(3000 ms), 输出点 Q0.0 置位。
seline; color: rgb(51, 51, 51); text-indent: 0px; max-width: 592px !important;">
Fig. 02
seline; color: rgb(51, 51, 51); text-indent: 0px; max-width: 592px !important;">带记忆的接通延时定时器
如果输入点 I0.1 的接通时间等于或大于 3 秒 (3000 ms),输出点 Q0.1 置位。输入点 I0.2 用于复位。
seline; color: rgb(51, 51, 51); text-indent: 0px; max-width: 592px !important;">
Fig. 03
seline; color: rgb(51, 51, 51); text-indent: 0px; max-width: 592px !important;">断开延时定时器
输入点 I0.3 断开(下降沿) 3 秒 (3000 ms) 后,输出点 Q0.3 复位。
seline; color: rgb(51, 51, 51); text-indent: 0px; max-width: 592px !important;">
Fig. 04
seline; color: rgb(51, 51, 51); text-indent: 0px; max-width: 592px !important;">脉冲发生
通过激活(下降沿)输入点 I0.4,输出点 Q0.4 获取一个持续 3 秒(3000 ms)的脉冲。
seline; color: rgb(51, 51, 51); text-indent: 0px; max-width: 592px !important;">
Fig. 05
seline; color: rgb(51, 51, 51); text-indent: 0px; max-width: 592px !important;">下载:
可下载的附件 "TON_TONR_TOF_TP.zip" 是包含上面所示程序的例子项目。
seline; color: rgb(51, 51, 51); text-indent: 0px; max-width: 592px !important;"> TON_TONR_TOF_TP.zip ( 2 KB )