EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 503

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
470
Special Math Instructions Section 3-13
1,2,3... 1. D2000 and D2002 are set to 0000 and D2001 and D2003 are set to 4000.
2. MOVD(083) is used to move the digits of the original source words to the
proper digits in the 2-word floating-point formats.
3. FDIV(079) divides the floating-point number in D2001 and D2000 by the
floating-point number in D2003 and D2002.
3-13-5 BIT COUNTER: BCNT(067)
Purpose Counts the total number of ON bits in the specified word(s).
Ladder Symbol
Variations
Applicable Program Areas
DivisorDividend
D0
D1
D2001
D2000 D2003
D2002
#4000 transferred.
(3452 = 0.3452 x 10
4
0079 = 0.0079 x 10
4
)
#0000 transferred.
(D2000 and D2002 cleared.)
D1000
3 4 5 2
D2001 D2000
4 3 4 5 2 0 0 0
D1001
0 0 7 9
D2003 D2002
4 0 0 7 9 0 0 0
D2001 D2000
4 3 4 5 2 0 0 0 0.3452000 10
4
D2003 D2002
4 0 0 7 9 0 0 0 0.0079000 10
4
D3
2 4 3 6 9 6 2 0 0.4369620 10
2
÷
×
×
×
D2
BCNT(067)
N
S
R
N: Number of words
S: First source word
R: Result word
Variations Executed Each Cycle for ON Condition BCNT(067)
Executed Once for Upward Differentiation @BCNT(067)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK

Table of Contents

Related product manuals