
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
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: ......