The following figure shows the moving average processing of when the set number of times is five.
Digital output value
4000
2000
0
CH1 Digital output
value
CH1 A/D conversion
completed flag
Over Scale Detection Function
Function to detect analog input values that are over a input range.
Corresponding devices
The devices which are used by the function to detect over scale are listed below.
Name
Over scale detection flag
Over scale detection enable/disable setting
A/D conversion alarm clear request
A/D conversion alarm flag
A/D conversion latest alarm code
Setting methods
Enables/disables the over scale detection setting for each channel.
Name
Over scale detection enable/disable setting
Setting is enabled from the next END process that detected the change in the setting value.
Operation
Detected when the input analog voltage exceeds 10.2 V.
When an over-limit is detected, the digital value for this channel before the over-limit is stored, and the A/D conversion
complete flag is turned off for this channel. Regardless of the over-limit detection flag reset, once the analog input value
returns to 10.2 V, the A/D conversion complete flag will be turned on for this channel after the first update when A/D
conversion restarts. When using the averaging function, the averaging process is cleared at the time of the over-limit
detection. The averaging process is restarted after over-limit is cleared.
■Detection cycle
This function is executed during the END process.
4 FX5U CPU MODULE BUILT-IN ANALOG
148
4.3 Functions (Analog input)
(3)
(4)
(2)
(5)
(1)
(a)
0
ON
OFF
Scan time
(6)
(8) (9)
(7)
(10)(11)
1st storage (a)
2nd storage (b)
3rd storage (c)
(b)
(c)
CH1
SM6022
SM6024
SM6057
SM6058
SD6058
Allowable setting range
0: Enabled
1: Disabled
(12)
Time [ms]
CH2
SM6062
SM6064
SM6097
SM6098
SD6098
Default value
1: Disabled