Panasonic FP2 -C1A Manual page 70

Analog unit
Table of Contents

Advertisement

Sample Program for Analog Input
8.3
Scale Conversion Processing Program (CPU Unit with Analog I/O)
Shared memory
Address 10
Preparation completion flag for ch 0 to ch 3 analog inputs
No execution of conversion processing setting for ch 0 to ch 3 analog inputs
Address 16
For detailed information
Sample program:
R 9013
F0 MV
Initial
setting
F151 WRT
Specifies the CPU unit with
analog I/O in slot no. 0.
The 1 - word data from data register DT 0
is written to the shared memory address 16.
R 0
F0
ch 0
preparation
F30
completion
F33
F22
R 1
F0
ch 1
preparation
F30
completion
F33
F22
R 9010
F150 READ K 0 K 10
Always on
Specifies the CPU unit with analog I/O
in slot no. 0.
The 1 - word data from shared memory address 10
8 - 8
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
section 14.3.1
,
H
11
,
DT 0
ch 0 and 1
execution
,
K 0
,
DT 0
,
ch 0 and 1
execution
MV
,
WX 0
,
DT 100
ch 0 Input value
ch 0 reading
,
DT 100
,
K 4000
ch 0 reading
D%
,
DT 101
,
K 13107 DT 103
ch 0 - conversion- 1
+
,
DT 103
,
K 1000
ch 0 - conversion- 2
MV
,
WX 1
,
DT 110
ch 1 Input value
ch 1 reading
,
DT 110
,
K 4000
ch 1 reading
D%
,
DT 111
,
K 13107 DT 113
ch 1 - conversion- 1
+
,
DT 113
,
K 1000
ch 1 - conversion- 2
,
,
,
K 1 WR 0
is read to the internal relay WR0.
K 1
,
K 16
,
DT 101
ch 0 - conversion- 1
,
ch 0 - conversion- 2
,
DT 104
ch 0 - conversion- 3
,
DT 111
ch 1 - conversion- 1
,
ch 1 - conversion- 2
,
DT 114
ch 1 - conversion- 3
,
Preparation
completion
flag area
ED
FP2 Analog Unit
Execution of conversion
processing setting for ch
0 and ch 1 analog inputs
Analog input Reading
Scale conversion
K0 to K13107
K1000~K5000
Analog input Reading
Scale conversion
K0 to K13107
K1000 to K5000
Preparation completion
flag for analog input
Reading

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp2 -ad8Fp2 -da4

Table of Contents