Appendix C
Sample Programs
117
•
DM Area Setting
DM0000: 00C8
DM0001: (Used for calculation)
DM0002: 0000
DM0003: 0000
DM0004: 4400
DM0005: 1130
Digital value for –5%
Conversion value +C8 (-5% portion)
Lower limit: BCD
Lower limit +C8 (-5% portion): BIN
Upper limit: BCD
Upper limit +C8 (+5% portion): BIN
Used with SCL instruction
Input Signal Range: –10 to 10 V
The following shows a case where conversion data (full-scale) for the input signal range of –10 to 10 V is scaled to
a range of 0 to to 4400 BCD.
•
Data Flow (–10 to 10 V range)
+11 V
+10 V
–10 V
–11 V
0898(BIN)
07D0(BIN)
F830(BIN)
F768(BIN)
1130(BIN)
1068(BIN)
00C8(BIN)
0000(BIN)
4400(BCD)
4200(BCD)
0200(BCD)
0000(BCD)
4400
2200
–11 V (F768)
+11 V (0898)
Word 101 value
Program (1)
Program (2)
Final
0000 (BIN)
•
DM Area Settings for a Signal Range of –10 to 10 V
DM0000: 0898
DM0001: (Used for calculation)
DM0002: 0000
DM0003: 0000
DM0004: 4400
DM0005: 1130
Digital value for -5%
Conversion value +0898 (-5% portion)
Lower limit: BCD
Lower limit +0898 (-5% portion): BIN
Upper limit: BCD
Upper limit +0898 (-5% portion): BIN
Used with SCL instruction
Note
The following shows a case where conversion data (full-scale) for the input range of 0 to 10 V is scaled to a
range of 100 to to 500 BCD.
•
Data Flow (0 to 10 V range)
+10.5 V
+10.0 V
0.0 V
–0.5 V
1068(BIN)
0FA0(BIN)
0000(BIN)
FF38(BIN)
1130(BIN)
1068(BIN)
00C8(BIN)
0000(BIN)
0500(BCD)
0480(BCD)
120(BCD)
100(BCD)
500
120
–0.5 V (FF38)
10.5 V (1068)
Word 101 value
Program (1)
Program (2)
Final