Programming And Adjustment - Omron CQM1H series Operation Manual

Hide thumbs Also See for CQM1H series:
Table of Contents

Advertisement

Programming and Adjustment

3-3
Programming and Adjustment
3-3-1 Programming
Power ON
Scaling
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 1
Input 2
Input 3
Input 4
Refer to the SYSMAC CQM1H/CQM1 Programming Manual for details on the
instructions that are used.
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.
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.
Input range
0 to 10 V
4 to 20 mA
1 to 5 V
–10 to 10 V
25313 (Always ON)
T005
* "n" indicates the allocated word for analog input.
Section 3-3
Word storing conversion data
Wd 002
Wd 003
Wd 004
Wd 005
TIM
n
#C0001
MOV(21)
*
n
DM 0000
89

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cqm1 series

Table of Contents