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
X
1
X
0
Y
1
Unscaled data
Scaled
data
S
Input data
D
Scaled
result
Y
0
Summary of Contents for Sysmac CP1H
Page 2: ......
Page 3: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised October 2014...
Page 4: ...iv...
Page 10: ...x...
Page 18: ...xviii...
Page 22: ...xxii...
Page 34: ...xxxiv Conformance to EC Directives 6...
Page 76: ...42 Function Blocks Section 1 5...
Page 176: ...142 CP series Expansion I O Unit Wiring Section 3 6...
Page 372: ...338 Analog I O XA CPU Units Section 5 5...
Page 578: ...544 Trouble Shooting Section 8 7...
Page 622: ...588 Sample Application Section 9 12 Network Settings Network Tab Network Settings Driver Tab...
Page 668: ...634 Standard Models Appendix A...
Page 744: ...710 Auxiliary Area Allocations by Address Appendix D...
Page 771: ...737 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 772: ...738 Connections to Serial Communications Option Boards Appendix F...
Page 800: ...766 Specifications for External Power Supply Expansion Appendix H...
Page 806: ...772 Index W Work Area 165 work bits 165 work words 165 write protection 379...
Page 808: ...774 Revision History...
Page 809: ......