90
SCL
The following is an example of SCL instruction use.
* “n” indicates the allocated word for analog input.
SCL(66)
*
n
DM 0100
DM 0000
00000
DM 0100
DM 0101
DM 0102
DM 0103
0000
0030
0100
0FD0
(BCD)
(Hexadecimal)
(BCD)
(Hexadecimal)
Set value
When input 00000 turns ON, the conversion data of Word 002 is scaled accord-
ing to the parameters set in DM 0100 and DM 0102 and the result is stored in DM
0000.
Scaling is executed so that 0030 to 0FD0 (hexadecimal) will correspond to 0000
to 0100 (BCD).
SCL2
The following is an example of SCL2 instruction use.
* “n” indicates the allocated word for analog input.
SCL2( )
*
n
DM 0100
DM 0000
00000
DM 0100
DM 0101
DM 0102
0030
0028
0001
(Hexadecimal)
(Hexadecimal)
(BCD)
Set value
When input 00000 turns ON, the conversion data of Word 002 is scaled accord-
ing to the parameters set in DM 0100 to DM 0102 and the result is stored in DM
0000.
Scaling is executed by subtracting 30 (hexadecimal) from the conversion data
and multiplying the result by 1/40 (0001 (BCD)/0028 (hexadecimal)) so that
0030 to 0FD0 (hexadecimal) will correspond to 0 to 100 (BCD).
Program Example for Scaling Conversion Data in an Input Range of –10 to
10 V into a Positive Value
The SCL2 instruction processes negative values expressed by 2’s complement.
On the other hand, the SCL instruction cannot process negative values. The fol-
lowing is an example of the scaling of negative conversion data in an input range
of –10 to 10 V into a positive value so that the positive value can be processed by
the SCL instruction.
When input 00000 turns ON, the rightmost 12 bits of the conversion data in Word
005 is obtained by the ANDW instruction and stored in DM 0200 as seen in the
following program.
The XORW instruction is used to reverse Bit 12 of the stored value so that the
range of the value will be shifted.
Programming and Adjustment
Section 3-3
Summary of Contents for CQM1H - 08-2005
Page 1: ...Cat No W238 E1 8 Dedicated I O Units CQM1H CQM1 series OPERATION MANUAL SYSMAC ...
Page 2: ......
Page 3: ...CQM1H CQM1Series Dedicated I O Units Operation Manual Revised August 2000 ...
Page 4: ......
Page 6: ......
Page 12: ......
Page 21: ...1 PART I B7A Interface Unit CQM1 B7A02 CQM1 B7A03 CQM1 B7A12 CQM1 B7A13 CQM1 B7A21 ...
Page 22: ......
Page 42: ......
Page 45: ...25 PART II G730 Interface Unit CQM1 G7M21 CQM1 G7N01 CQM1 G7N11 ...
Page 46: ......
Page 62: ......
Page 72: ......
Page 74: ...Appendix A Specifications 54 Dimensions Common for Master and Expansion Master Unit mm ...
Page 78: ......
Page 79: ...59 PART III I O Link Unit CQM1 LK501 ...
Page 80: ......
Page 88: ......
Page 92: ......
Page 93: ...73 PART IV Analog Input Unit and Analog Power Supply Units CQM1 AD041 CQM1 IPS01 CQM1 IPS02 ...
Page 94: ......
Page 118: ......
Page 120: ......
Page 121: ...101 PART V Analog Output Unit and Analog Power Supply Units CQM1 DA021 CQM1 IPS01 CQM1 IPS02 ...
Page 122: ......
Page 126: ......
Page 140: ......
Page 142: ......
Page 144: ......
Page 156: ......
Page 172: ......
Page 186: ......
Page 187: ...167 PART VII Linear Sensor Interface Units CQM1 LSE01 CQM1 LSE02 ...
Page 188: ......
Page 192: ......
Page 204: ......
Page 218: ......
Page 238: ......
Page 242: ......
Page 246: ......
Page 248: ......
Page 250: ......