EasyManua.ls Logo

Omron CP1H-X40D - Page 436

Omron CP1H-X40D
810 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
402
Analog Input Units Section 7-2
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.
Data Memory Settings
Ladder Program
Descriptions of APR Instruction
Setting Address Data
Control word D100 #0800
Unscaled minimum value (0) D101 &0
Scaled minimum value (0) D102 &0
Unscaled maximum value (12,000) D103 &12,000
Scaled maximum value (24,000) D104 &24,000
12,000
(10V)
0
(0V)
24,000
Data input to Analog Input Unit
(
Unscaled: 0 to 12,000
)
Scaled
value
(0 to
24,000)
(Data in CIO3)
(D200)
0
Always ON Flag
P_On
Use APR instruction for scaling.
APR(069)
D100
D200
3
APR
C
D
S
C:Control word
D:Result word
S:Source word
X1X0
Y1
Unscaled data
Scaled
data
S
Input data
D
Scaled
result
Y
0

Table of Contents

Related product manuals