Download MELSEC-Q Programming/Structured
Transcript
S.AVE 9.16 S.AVE Average Value 9.16 S.AVE Ladder diagram Start contact S.AVE S.AVE S1 D1 Structured ladder/FBD S2 D2 Structured text language S_AVE EN Input argument Output argument Setting d1 s2 d2 Bit ENO:=S_AVE(EN,s1,s2,d1,d2); EN : Execution condition : Bit S1 : Input data start device : Array of any 16-bit data (0..32) device*1 S2 : Dummy ENO : Execution result : Bit D1 : Block memory start device : Array of any 16-bit data (0..2) D2 : Dummy device*1 : Real data type Internal devices data ENO s1 Word R, ZR : Real data type J Bit \ Word U Zn \G S1 –– –– D1 –– –– S2 –– –– D2 –– –– *1 Special register SD1506 can be specified as a dummy device. Function Calculates and outputs the average value of the input value 1 (E1) to n (En). 164 Constant Other