D-16
4 Programming
4.5 Averaging Time
FX
3G
/FX
3U
/FX
3UC
PLC User's Manual - Analog Control Edition
FX3G-2AD-BD (2-channel analog Input)
4.5 Averaging Time
Setting range: 1 to 4095
Initial value: K1
Numeric data type: Decimal (K)
If the averaging time is set for the 2AD-BD, the average data will be stored as the input data. The averaging
time can be set for each channel.
Set the averaging time in the following special data registers:
1. Cautions regarding averaging time setting
• If the averaging time is set to "1", the immediate data is stored to the special data register.
• If the averaging time is set in the range from 2 to 4095, the average value will be calculated to conform to
the set averaging time, and the average value obtained will be stored in the special data register.
• After turning the PLC power on, the current data is stored to special data registers until the number of data
items reaches the set averaging time. After this, the average data will be stored.
• Set the averaging time in the range from 1 to 4095. If the set value is outside the setting range, an error
signal will be output.
• If the averaging time is set to "0" or smaller, the PLC will perform as if the averaging time is set to "1".
If the averaging time is set to "4096" or larger, the PLC will perform as if the averaging time is set to "4096".
→ For a detailed description of the error status, refer to Section 6.5
2. Program Example
Special data register
Description
1st board 2nd board
D8264 D8274 Averaging time for channel-1 data
D8265 D8275 Averaging time for channel-2 data
M8000
Normally
ON
FNC 12
MOV
K1 D8264
FNC 12
MOV
K5 D8265
Sets the averaging time for
channel-1 of the 1st analog
board to 1.
Sets the averaging time for
channel-2 of the 1st analog
board to 5.