FP2 Analog Unit
Sample Program of Analog Input Offset Setting
11 - 5
11.2 Sample Program (Analog Input Unit)
11.2 Sample Program (Analog Input Unit)
Program outline
This program offsets the analog input data for ch 0 to ch 4 (set for no execution of input
conversion processing) of the analog input unit by the set numerical amount only, and
then reads it to the data registers DT100 to DT104 using the preparation completion flag.
(K)
(V)
+32767
+16383
0
+5
+10
-5
-10
-16384
-32768
+2
+653
(K)
(V)
+32114
+15730
0
+5
+10
-5
-10
-17037
-33421
+2
Analog
input
unit
CPU
unit
Offset change
By the move instruction
F0 (MV), the contents of
input relay area WX0 to
WX4 are read to the data
registers DT100 to DT104.
Offsets the analog values that were read by the numerical value set in shared
memory only, and stores it in the conversion value area (input relay area).
Settings
Channels that execute analog input conversion processing
H1111: ch 0 to ch 3 are set for execution
H1: ch 4 is set for execution and ch 5 to ch 7 are not set for execution
I/O allocation
I/O number
Contents
WX0
Offset changed analog input value for ch 0
WX1
Offset changed analog input value for ch 1
WX2
Offset changed analog input value for ch 2
WX3
Offset changed analog input value for ch 3
WX4
Offset changed analog input value for ch 4
Shared memory
Address 10
Preparation completion flag for ch 0 to ch 3 analog inputs
Address 16
No execution of conversion processing setting for ch 0 to ch 3 analog inputs
Address 17
No execution of conversion processing setting for ch 4 to ch 7 analog inputs
Address 30 to 34
Offset changing setting for ch 0 to ch 4
For detailed information
section 14.3.2
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]