当前位置:网站首页>Beifu realizes the control of time slice size and quantity through CTU and ton

Beifu realizes the control of time slice size and quantity through CTU and ton

2022-06-26 13:15:00 Dusk and starry sky

In programming , It takes time , That is, jump after the timing of each time slice , You also need to set the number of time slices , for example 4 Time slice , Then poll for a certain time . This article is based on CTU Counting module and TON To implement .
1.1. Biff Beckhoff
1.1.1. CTU Introduce
That is, the rising edge of the input signal is not caught and counted once , Count value reached PV Then output Q,SV As the current count value ,Reset Reset .
 Insert picture description here
1.1.1. TON Introduce
TON The usage of is as follows
 Insert picture description here
1.1.2. actual PLC Program
The implementation principle is to use two TON Realize pulse flicker by interlocking , And then use CTU Record the times and reset to zero when the upper limit is reached , The procedure is as follows :
 Insert picture description here

原网站

版权声明
本文为[Dusk and starry sky]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206261220205767.html