
367
Sample Programs
Appendix B
Unit Settings
Program Example
• Data Flow (Unit Number 0):
Word CIO 2001 (A/D Conversion Value)
→
D00200 (Scaling Result)
The value of word CIO 2005 is scaled according to the linear function calculated using the offset (0000 Hex),
and the values of
∆
X (1068 Hex) and
∆
Y (0315 Hex). The scaled value is then stored in word D00200.
DM Area Settings
0315
0300
0000
–0015
FF38
0.8 V 1 V
0000
0FA0
5 V
1068
5.2 V
0315
(
n
Y)
1068 Hex
(
n
X)
Item
Setting contents
Actual settings
Unit
CS1W-AD081-V1
---
Unit number
#0
Unit number switch: 00
Operation mode
Normal mode
Back-panel DIP switch: All OFF
Input number
Input 1 used
D20000 = 0001
Input signal range
Input number 1, 1 to 5 V
D20001 = 0002
SCL2
2001
D00100
D00200
Execution condition
D00100: 0000
D00101: 1068
D00102: 0315
Offset
n
X value
n
Y value
Содержание CJ1W-AD041-V1
Страница 3: ...iv...
Страница 5: ...vi...
Страница 9: ...x TABLE OF CONTENTS...
Страница 15: ...xvi...
Страница 99: ...76 Handling Errors and Alarms Section 2 8...
Страница 191: ...168 Handling Errors and Alarms Section 4 8...
Страница 243: ...220 Handling Errors and Alarms Section 5 8...
Страница 381: ...358 Handling Errors and Alarms Section 7 10...
Страница 385: ...362 Dimensions Appendix A...
Страница 395: ...372 Sample Programs Appendix B...
Страница 396: ...373 Appendix C Data Memory Coding Sheets...
Страница 417: ...394 Data Memory Coding Sheets Appendix C...
Страница 425: ......