
371
Sample Programs
Appendix B
Program Example
• Data Flow (Unit Number 0): Word 2001 (AD Conversion Value)
→
D00001 (Mean Value Result)
Limit
If the output value range is exceeded, the output voltage is held when the Conversion Enable Flag turns OFF.
Unit Settings
Program Example
DM Area Settings
Item
Setting contents
Actual settings
Unit
CS1W-DA08V
---
Unit number
#0
Unit number switch: 00
Operation mode
Normal mode
Back-panel DIP switch: All OFF
Output number
Output 1 used
D20000 = 0001
Output signal range
All output numbers, 0 to 10 V
D20001 = 0001
Output hold function
HOLD
D20002 = 0001
AVG(195)
2001
#0064
D00001
Execution condition
Conversion value
Number of samplings
Mean value
5 V (03E8)
0 V (0000)
Set value
Actual output value
When program is started
MOV(021)
D00000
2001
Execution condition
Set value
<
2001
D00000
Set value
Lower limit
Conversion Enable
Flag for output 1
>
2001
D00001
Set value
Upper limit
200000
D00001: 0000
D00002: 03E8
Lower limit: 0 V
Upper limit: 5 V
Summary of Contents for CJ1W-AD041-V1
Page 3: ...iv...
Page 5: ...vi...
Page 9: ...x TABLE OF CONTENTS...
Page 15: ...xvi...
Page 99: ...76 Handling Errors and Alarms Section 2 8...
Page 191: ...168 Handling Errors and Alarms Section 4 8...
Page 243: ...220 Handling Errors and Alarms Section 5 8...
Page 381: ...358 Handling Errors and Alarms Section 7 10...
Page 385: ...362 Dimensions Appendix A...
Page 395: ...372 Sample Programs Appendix B...
Page 396: ...373 Appendix C Data Memory Coding Sheets...
Page 417: ...394 Data Memory Coding Sheets Appendix C...
Page 425: ......