[Rung 0] Title=This program will read the value of Input 0 every 1/2 second and compute the average after 20 readings. Comment=The average will be stored in Ladder Variable V,1,0. The variable will update once every 10 seconds. 0=3|0|RungNode 1=12|0|TON|T,0,3,50|1/2 second|Timer 2=3|0|RungNode [Rung 1] Title= Comment= 0=3|0|RungNode 1=6|0|XIC|T,0,2||Timer Done 2=3|0|RungNode 3=24|0|ADD|FFF,I,0,0,V,0,0,V,0,0|Totalize|Input 0 4=3|0|RungNode [Rung 2] Title= Comment= 0=3|0|RungNode 1=6|0|XIC|T,0,2||Timer Done 2=3|0|RungNode 3=15|0|CTU|N,0,5,20|Increment|Counter 4=3|0|RungNode [Rung 3] Title= Comment= 0=3|0|RungNode 1=6|0|XIC|N,0,2||Counter Done 2=3|0|RungNode 3=27|0|DIV|FIF,V,0,0,N,0,6,V,1,0|Divide Total|by Count 4=3|0|RungNode [Rung 4] Title= Comment= 0=3|0|RungNode 1=6|0|XIC|N,0,2||Counter Done 2=3|0|RungNode 3=28|0|MOV|CFZ,0,V,0,0||Reset Total 4=3|0|RungNode [Rung 5] Title= Comment= 0=3|0|RungNode 1=6|0|XIC|N,0,2||Counter Done 2=3|0|RungNode 3=17|0|RES|N,0,0|Reset|Counter 4=3|0|RungNode [Rung 6] Title= Comment= 0=3|0|RungNode 1=6|0|XIC|T,0,2||Timer Done 2=3|0|RungNode 3=17|0|RES|T,0,0||Reset Timer 4=3|0|RungNode