Panasonic FP2 -C1A Manual page 68

Analog unit
Table of Contents

Advertisement

Sample Program for Analog Input
8.2
Basic Program (Analog Input Unit)
Sample program:
R 9013
F0 MV
Initial
setting
F151 WRT
Specifies the analog input unit in slot
no. 0.
The 1 - word data from data register DT 0
is written to the shared memory address 16.
F0 MV
F151 WRT
Specifies the analog input unit in slot no. 0.
The 1 - word data from data register DT 1
is written to the shared memory address 17.
R 0
F0 MV
ch 0
preparation
R 1
completion
F0 MV
ch 1
preparation
R 2
completion
F0 MV
ch 2
preparation
R 3
completion
F0 MV
ch 3
preparation
R 4
completion
F0 MV
ch 4
preparation
R 5
completion
F0 MV
ch 5
preparation
completion
R 9010
F150 READ
Always on
Specifies the analog input unit in slot no. 0.
The 1 - word data from shared memory address 10
8 - 6
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
,
H 1111
,
DT 0
ch 0 to ch 3
execution
,
K 0
,
DT 0
,
K 1
,
ch 0 to ch 3
execution
,
H 11
,
DT 1
ch 4 and ch 5
execution
,
K 0
,
DT 1
,
K 1
,
ch 4 and ch 5
execution
,
WX 0
,
DT 100
ch 0 Input
value
,
WX 1
,
DT 101
ch 1 Input
value
,
WX 2
,
DT 102
ch 2 Input
value
,
WX 3
,
DT 103
ch 3 Input
value
,
WX 4
,
DT 104
ch 4 Input
value
,
WX 5
,
DT 105
ch 5 Input
value
,
K 0
,
K 10
,
K 1
,
WR 0
Preparation
completion
flag area
is read to the internal relay WR0.
K 16
K 17
ED
FP2 Analog Unit
Execution of conversion
processing setting for ch
0 to ch 3 analog inputs
Execution of conversion
processing setting for ch
4 and ch 5 analog inputs
Analog input Reading
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