470
Analog Input Units
Section 9-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 CP1L-EL20DR-D
Page 3: ...CP1L EL20D CP1L EM30D CP1L EM40D CP1L EL EM CPU Unit Operation Manual Produced July 2017...
Page 4: ...iv...
Page 10: ...x...
Page 22: ...xxii...
Page 34: ...xxxiv Software Licenses and Copyrights 7...
Page 192: ...158 Trial Operation and Debugging Section 5 3...
Page 250: ...216 Automatic Clock Adjustment and Specifying Servers by Host Name Section 6 7...
Page 666: ...632 Trouble Shooting Section 11 7...
Page 696: ...662 Standard Models Appendix A...
Page 805: ...771 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 806: ...772 Connections to Serial Communications Option Boards Appendix F...
Page 836: ...802 PLC Setup Appendix G...
Page 838: ...804 TCP Status Transitions Appendix H...
Page 840: ...806 Ethernet Network Parameters Appendix I...
Page 842: ...808 Buffer Configuration CP1L EL EM Appendix J...
Page 844: ...810 Ethernet Specifications Appendix K...
Page 851: ...Index 817 work words 118 write protection 447...
Page 852: ...818 Index...
Page 854: ...820 Revision History...
Page 855: ......