115
CHAPTER 8 FUNCTIONS
8
8.12 Shift Function
(4) Example of the combined use of the scaling function and the shift function
For the channel with the set input range of 0 to 5V, of the main A/D converter module, settings are made
as follows:
•"CH Scaling enable/disable setting": "0: Enable"
•"CH Scaling upper limit value": 12000
•"CH Scaling lower limit value": 2000
•CH Shifting amount to conversion value (RWw2 to RWw5): 2000
The digital output values and digital operation values are as follows:
1. Set "Parameter write" for "Method selection".
"CC IE Field Configuration" window Select the main A/D converter module from "List of stations"
[CC IE Field Configuration] [Online] [Parameter Processing of Slave Station]
2. In "Basic module parameter", set "CH A/D conversion enable/disable setting" to "0: Enable".
3. In "Basic module parameter", set "CH Scaling enable/disable setting" to "0: Enable".
Input voltage (V) Digital output value Value after scaling Digital operation value
0 0 2000 4000
1 3200 4000 6000
2 6400 6000 8000
3 9600 8000 10000
4 12800 10000 12000
5 16000 12000 14000
Scaling
Upper limit value: 16000 12000
Lower limit value: 0 2000
Shift-and-add
Adds 2000 to the value
after scaling
12000
2000
4000
0
5
Analog input voltage (V)
0
3) Digital operation
value
1) Digital output value
2) Value after
scaling
1) Digital output value
2) Value after scaling
3) Digital operation value
16000
14000