Omron CP1H-X40D Operation Manual page 436

Cpu unit sysmac cp series
Hide thumbs Also See for CP1H-X40D:
Table of Contents

Advertisement

Analog Input Units
402
■ Example:Scaling analog input values
When a 0 to 10V voltage is input to the analog input word (CIO 3) of CP1W-
AD042 as 0 to 12,000, convert the value into a value between 0 and 24,000
and output the result to D200.
24,000
Scaled
value
(0 to
(D200)
24,000)
0
0
(0V)
Data input to Analog Input Unit
(Unscaled: 0 to 12,000)
Data Memory Settings
Setting
Control word
Unscaled minimum value (0)
Scaled minimum value (0)
Unscaled maximum value (12,000)
Scaled maximum value (24,000)
Ladder Program
Always ON Flag
P_On
Descriptions of APR Instruction
APR
C
S
D
(Data in CIO3)
12,000
(10V)
Address
D100
D101
D102
D103
D104
Use APR instruction for scaling.
APR(069)
D100
3
D200
Y
1
Scaled
C:Control word
data
S:Source word
D:Result word
D
Scaled
result
Y
0
Section 7-2
Data
#0800
&0
&0
&12,000
&24,000
X
S
X
0
1
Input data
Unscaled data

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cp1h-xa40dCp1h-y20dt-dCp1h

Table of Contents