441
Analog I/O Units
Section 7-4
The following table shows the output status after the initial processing is com-
pleted.
Therefore, create a program as shown below, so that the ladder can start to
operate with valid conversion data in input words.
Handing Unit Errors
When an error occurs in the Analog I/O Unit, analog input data will be 0000
and 0 V or 0 mA will be output as the analog output.
If a CPU error or an I/O bus error (fatal errors) occurs at the CPU Unit and the
analog output is set to 1 to 5 V or 4 to 20 mA, 0 V or 0 mA will be output. For
any other errors at the CPU Unit, 1 V or 4 mA will be output.
Program Example
This programming example uses these ranges:
CP1W-MAD42
Output type
Voltage output
Current output
Output range
0 to 10 V,
−
10 to +10 V
1 to 5 V
0 to 20 mA
4 to 20 mA
Before range
code is written
0 V
0 mA
After range
code is written
0 V
1 V
0 mA
4 mA
Analog
input
Input
range
Range
code
Averaging
Set data
Destination
word
Input 1
4 to 20 mA
10
Yes
1110 (E hex)
n+1
Input 2
0 to 10 V
01
Yes
1101 (D hex)
n+1
Input 3
0 to 5 V
11
Yes
1111 (F hex)
n+2
Input 4
−
10 to 10 V
00
Yes
1100 (C hex)
n+2
Output 1
−
10 to 10 V
000
---
1000 (8 hex)
n+1
Output 2
4 to 20 mA
100
---
1100 (C hex)
n+2
MOV(021)
2
D0
0005
TIM
#0002
T0005
Always ON Flag
P_On
TIM0005 is started when the power is
turned ON. After 0.2 s (200 ms) elapses,
the TIM0005 contact turns ON and the
analog input 1 conversion data stored in
word 2 is transferred to D0.
CP1H
Input word
addresses
Output word
addresses
CIO 0
CIO 1
CIO 100
CIO 101
CP1W-MAD42
CIO 102
CIO 103
CIO 2
CIO 3
CIO 4
CIO 5
CIO 6
CIO 7
CIO 8
CIO 9
CIO 104
CIO 105
CIO 106
CIO 107
CP1W-MAD44
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: ......