Mean Value Function - Omron SYSMAC C200H-DA002 Operation Manual

Analog i/o units
Hide thumbs Also See for SYSMAC C200H-DA002:
Table of Contents

Advertisement

Functions and Programming
BCD conversion value for * 2 V +
* 2 V scaled data + 1600

2-3-6 Mean Value Function

Function
Setting Method
1, 2, 3...
Mean Value Calculation and
Sampling Period
Sampling period = (no. of samples) × (sampling period per point)
For example, the scaled data for –2 V is calculated as follows:
(* 2) * (* 10)
7000 * 1000
4000
The mean value function collects the specified number of data samples, dis-
cards the minimum and maximum values, calculates the mean value of the re-
maining samples and outputs the result.
The result for each input is output to its corresponding word in IR words n+1
through n+8.
The mean value function can be used in combination with other functions.
Two settings must be made to use the mean value function. First, the mean val-
ue function must be enabled for the desired input(s), and then the number of
samples data must be set for those inputs.
1. The mean value function is set with bits 00 to 07 of DM word m+2. Set the
corresponding bit to "1" to enable the mean value function for that input.
Bit 07
DM (m + 2)
2. Set the number of samples for each input in the corresponding word in
DM m+20 through DM m+27. The data must be BCD from 0003 to 9999.
DM word
m+20
Input 1 mean value processing: number of samples
m+21
Input 2 mean value processing: number of samples
m+22
Input 3 mean value processing: number of samples
m+23
Input 4 mean value processing: number of samples
m+24
Input 5 mean value processing: number of samples
m+25
Input 6 mean value processing: number of samples
m+26
Input 7 mean value processing: number of samples
m+27
Input 8 mean value processing: number of samples
The mean value is calculated using the equation below. The decimal portion of
the result is truncated.
Mean value +
The sampling period between mean value calculations can be determined from
the following equation:
= (no. of samples) × (4 ms + (no. of enabled inputs) × 2.5 ms)
Note
1. The previous mean value result will be output while the mean value proces-
sing is being performed (including sample collection).
2. After power is turned on, a value of 0000 will be output until the first mean
value calculation is completed.
3. The mean value calculation won't be performed if the data in DM words
m+20 through m+27 isn't BCD data from 0003 to 9999.
4000 +
10 * (* 10)
) 1000 + 3400
06
05
04
03
sum of the samples (except the min. and max. values)
number of samples * 2
Section 2-3
8
4000 + 1600
20
02
01
00
0: Mean value
function disabled
1: Mean value
function enabled
Data
25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c200hsSysmac c200h-ad002Sysmac c200h

Table of Contents