B-54
7 Examples of Practical Programs
7.3 Program That Uses Data History Function
FX
3U
/FX
3UC
Series PLC User's Manual - Analog Control Edition
FX3UC-4AD (4-channel Analog Input)
7.3 Program That Uses Data History Function
This section describes a program that uses the data history function of 4AD.
1. Conditions
The sequence program described in this section is created under the following functions.
1) System configuration
4AD (unit No.1) should be connected to the main unit.
2) Input mode
Channels 1 and 2 should be set to mode 0 (voltage input, -10V to +10V → -32000 to +32000).
Channels 3 and 4 should be set to mode 3 (current input, 4mA to 20mA → 0 to 16000).
3) Number of averaging time
For all the channels, the number of averaging time should be set to "1" (default).
(To use the default value, it is not necessary to set the number of averaging time in the sequence
program.)
4) Digital filter function
For all the channels, the digital filter function should be disabled (default).
(To use the default value, it is not necessary to set the digital filter function in the sequence program.)
5) Data history function
For all the channels, the data sampling time should be set to 100 ms.
The sampling cycle should be 100 ms × 4 (number of selected channels) = 400 ms.
For all the channels, data will be sampled 100 times, and the sampled data will be stored as the data
history in the data registers.
6) Device assignment
Device Description
Input
X000 Clearance of data history
X001 Temporarily stoppage of data history
Data register
D0 A/D converted digital value of channel 1
D1 A/D converted digital value of channel 2
D2 A/D converted digital value of channel 3
D3 A/D converted digital value of channel 4
D100 to D199 Channel-1 data history(100 times of data sampling)
D200 to D299 Channel-2 data history(100 times of data sampling)
D300 to D399 Channel-3 data history(100 times of data sampling)
D400 to D499 Channel-4 data history(100 times of data sampling)