Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 395
Array (File)/Misc. Instructions (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE) Chapter 8
Example 2: Calculate the standard deviation of dint_array, which is DINT[4,5].
Relay Ladder
Dimension 1
Dimension 0
0
20 19 18 17 16
15 14 13 12 11
10 9 8 7 6
54321
1
2
3
01234
STD
20 18–
2
19 18–
2
18 18–
2
17 18–
2
16 18–
2
++++
51–
------------------------------------------------------------------------------------------------------------------------------------------------------------ 1.581139==
AVE
20 19 18 17 16++++
5
-------------------------------------------------------
90
5
------
18===
S
u
bsc
r
ip
t
s
real_std = 1.581139