完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
|
相关推荐
1个回答
|
|
正序启动
#IEC_Timer_0_Instance(IN:=#STAR_TEMP, PT:=T#5S, Q=》#TIME1_TMEP); #IEC_Timer_1_Instance(IN:=#TIME1_TMEP, PT:=T#5S, Q=》#TIME2_TEMP); #IEC_Timer_2_Instance(IN:=#TIME2_TEMP, PT:=T#5S, Q=》#TIME3_TEMP); IF #I_START=1 AND #I_STOP=0 AND #STAR_TEMP=0 THEN #STAR_TEMP := 1; #STOP_TEMP := 0; #Q_MOTOR1 := 1; END_IF; IF #TIME1_TMEP = 1 AND #Q_MOTOR2 = 0 THEN #Q_MOTOR2 := 1; END_IF; IF #TIME2_TEMP = 1 AND #Q_MOTOR3 = 0 THEN #Q_MOTOR3 := 1; END_IF; IF #TIME3_TEMP = 1 AND #Q_MOTOR4 = 0 THEN #Q_MOTOR4 := 1; END_IF; 逆序停止 #IEC_Timer_3_Instance(IN:=#STOP_TEMP, PT:=T#5S, Q=》#TIME4_TEMP); #IEC_Timer_4_Instance(IN:=#TIME4_TEMP, PT:=T#5S, Q=》#TIME5_TEMP); #IEC_Timer_5_Instance(IN:=#TIME5_TEMP, PT:=T#5S, Q=》#TIME6_TEMP); IF #I_STOP = 1 AND #I_START = 0 AND #STOP_TEMP = 0 THEN #STAR_TEMP := 0; #STOP_TEMP := 1; #Q_MOTOR4 := 0; END_IF; IF #TIME4_TEMP = 1 AND #Q_MOTOR3 = 1 THEN #Q_MOTOR3 := 0; END_IF; IF #TIME5_TEMP = 1 AND #Q_MOTOR2 = 1 THEN #Q_MOTOR2 := 0; END_IF; IF #TIME6_TEMP = 1 AND #Q_MOTOR1 = 1 THEN #Q_MOTOR1 := 0; END_IF; |
|
|
|
只有小组成员才能发言,加入小组>>
882浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-23 13:03 , Processed in 0.562759 second(s), Total 79, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号