Panasonic FP2 -C1A Manual page 87

Analog unit
Table of Contents

Advertisement

FP2 Analog Unit
11.1 Sample Program (CPU Unit with Analog I/O)
Program outline
This program offsets the analog input data for ch 0 to ch 2 (set for no execution of input
conversion processing) of the CPU unit with analog I/O by the set numerical amount only,
and then reads it to the data registers DT100 to DT102 using the preparation completion
flag.
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).
CPU
unit
with
analog
I/O
By the move instruction F0
(MV), the contents of input
relay area WX0 to WX2 are
read to the data registers
DT100 to DT102.
Settings
Channels that execute analog input conversion processing
H111: ch 0 to ch 2 are set for execution and ch 3 is 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
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
Addresses 30 to 32 Offset changing setting for ch 0 to ch 2
For detailed information
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Sample Program of Analog Input Offset Setting
11.1 Sample Program (CPU Unit with Analog I/O)
(K)
+32767
+16383
+653
- 10
- 5
+2
+5
+10
0
- 16384
- 32768
section 14.3.1
Offset change
+32114
+15730
- 10
- 5
(V)
(K)
0
+2
+5
+10
(V)
- 17037
- 33421
11 - 3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp2 -ad8Fp2 -da4

Table of Contents