405
Analog Output Units
Section 7-3
Writing Analog Output Set
Values
The ladder program can be used to write data to the output word where the
set value is stored. The output word will be “n+1” when “n” is the last output
word allocated to the CPU Unit, or previous Expansion Unit or Expansion I/O
Unit.
Startup Operation
After power is turned ON, it will require two cycle times plus approximately 50
ms before the first data is converted.
The following table shows the output status after the initial processing is com-
pleted.
Therefore, create a program as shown below, so that when operation begins
simultaneously with startup it will wait for valid set data.
Handling Unit Errors
• When an error occurs at the Analog Output Unit, the analog output will be
0 V or 0 mA. If a CPU Unit fatal error occurs when analog outputs are set
in the 1 to 5 V or 4 to 20 mA range, 0 V or 0 mA will be output for a CPU
error I/O bus error, and 1 V or 1 mA will be output for all other errors.
• CP-series Expansion Unit errors are output to bits 0 to 6 of word A436.
The bits are allocated from A436.00 in order starting with the Unit nearest
the CPU Unit. Use these flags in the program when it is necessary to
detect errors.
Program Example
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
MOV(021)
D100
102
P_On
T 5
#0002
T5
Always ON Flag
TIM 005 will start as soon as power
turns ON. After 0.1 to 0.2 s (100 to
200 ms), the Completion Flag for
TIM 005 will turn ON, and the data
stored in DM 0100 will be moved to
IR 102 as the conversion data for
analog output 1.
Analog output
Output range
Range code
Set data
Destination
word
Output 1
0 to 10 V
001
1001 (9 hex)
Wd n+1
Output 2
4 to 20 mA
100
1100 (C hex)
Wd n+1
Output 3
-10 to 10 V
000
1000 (8 hex)
Wd n+2
Output 4
Not used.
-(000)
0000 (0 hex)
Wd n+2
Summary of Contents for CP1H CPU UNITS - PROGRAMMING 05-2007
Page 2: ......
Page 3: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised March 2009...
Page 4: ...iv...
Page 10: ...x...
Page 18: ...xviii...
Page 22: ...xxii...
Page 34: ...xxxiv Conformance to EC Directives 6...
Page 174: ...140 CP series Expansion I O Unit Wiring Section 3 6...
Page 370: ...336 Analog I O XA CPU Units Section 5 5...
Page 552: ...518 Trouble Shooting Section 8 7...
Page 595: ...561 Sample Application Section 9 12 Network Settings Network Tab Network Settings Driver Tab...
Page 598: ...564 Sample Application Section 9 12...
Page 642: ...608 Standard Models Appendix A...
Page 652: ...618 Dimensions Diagrams Appendix B...
Page 745: ...711 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 746: ...712 Connections to Serial Communications Option Boards Appendix F...
Page 776: ...742 PLC Setup Appendix G...
Page 778: ...744 Specifications for External Power Supply Expansion Appendix H...
Page 786: ...752 Revision History...