89
3-3
Programming and Adjustment
3-3-1 Programming
This section provides program examples for the Analog Input Unit using four
words in the following input ranges. The program examples are not valid for the
Analog Input Unit with its mean value processing function activated.
Input
Input range
Word storing conversion data
Input 1
0 to 10 V
Wd 002
Input 2
4 to 20 mA
Wd 003
Input 3
1 to 5 V
Wd 004
Input 4
–10 to 10 V
Wd 005
Refer to the SYSMAC CQM1H/CQM1 Programming Manual for details on the
instructions that are used.
Power ON
It takes approximately 10 ms for the Analog Input Unit to store the first conver-
sion data after the Analog Input Unit is turned on if the mean value processing
function of the Analog Input Unit is not activated. It takes approximately 72 ms for
the Analog Input Unit to store the first conversion data after the Analog Input Unit
is turned on if the mean value processing function is activated. If the user wants
to operate the Analog Input Unit immediately after turning the Analog Input Unit
on, construct the following program so that the Analog Input Unit will wait until
the conversion data becomes effective.
When the power is ON, Timer 5 starts operating. The Up Flag of Timer 5 turns
ON 100 ms later and the conversion data of input 1, which is stored in word 002,
will be transferred to DM 0000.
MOV(21)
*
n
DM 0000
* “n” indicates the allocated word for analog input.
TIM
n
#C0001
T005
25313 (Always ON)
Scaling
The conversion of input voltage or current in a certain range to a value in a cer-
tain range is called scaling. For example, if the user converts input voltage or
current so to be displayed as a percentage, the converted value will be displayed
in the range 0 through 100.
Use the CPU instructions SCL and SCL2 for scaling.
Note The SCL2 instruction cannot be used on the CQM1-CPU11-E or
CQM1-CPU21-E.
An example for the conversion of negative data in an input range of –10 to 10 V
into a positive value is provided.
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: ......