EasyManuals Logo
Home>Omron>Controller>CQM1H - PROGRAM

Omron CQM1H - PROGRAM User Manual

Omron CQM1H - PROGRAM
602 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #367 background imageLoading...
Page #367 background image
342
Special Math Instructions Section 5-23
One or more operands have been set incorrectly.
D and D+N+1 are not in the same data area.
Example In the following example, the content of IR 040 is set to #0000 and then incre-
mented by 1 each cycle. For the first two cycles, AVG(––) moves the content
of IR 040 to DM 1002 and DM 1003. On the third and later cycles AVG(––)
calculates the average value of the contents of DM 1002 to DM 1004 and
writes that average value to DM 1000.
5-23-4 SUM – SUM(––)
Limitations The 3 rightmost digits of C must be BCD between 001 and 999.
DM 6143 to DM 6655 cannot be used for D.
If bit 14 of C is OFF (setting for BCD data), all data within the range R
1
to
R
1
+N–1 must be BCD.
@MOV(21)
040
#0000
00001
Address Instruction Operands
00000 LD 00001
00001 @MOV(21)
# 0000
040
00002 AVG(−−)
040
# 0003
DM 1000
00003 CLC(41)
00004 ADB(50)
040
# 0001
040
AVG(−−)
#0003
040
DM 1000
CLC(41)
ADB(50)
#0001
040
040
1st cycle 2nd cycle 3rd cycle 4th cycle
DM 1000 0000 0001 0001 0002 Average
DM 1001 Used by the system.
DM 1002 0000 0000 0000 0003 Previous
DM 1003 --- 0001 0001 0001 values of
DM 1004 --- --- 0002 0002 IR 40
1st cycle 2nd cycle 3rd cycle 4th cycle
IR 040 0000 0001 0002 0003
C: Control data
IR, SR, AR, DM, EM, HR, LR, #
R
1
: First word in range
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
Ladder Symbols
Operand Data Areas
D: First destination word
IR, SR, AR, DM, EM, HR, LR
SUM(−− )
C
R
1
D
@SUM(−− )
C
R
1
D

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CQM1H - PROGRAM and is the answer not in the manual?

Omron CQM1H - PROGRAM Specifications

General IconGeneral
BrandOmron
ModelCQM1H - PROGRAM
CategoryController
LanguageEnglish

Related product manuals