EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 489

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...
456
Special Math Instructions Section 3-13
4. D103 and the result word, CIO 2000, are cleared to 0000 0000.
5. The result of the square root calculation is divided by 100, with the integer
portion written to CIO 2000 and the remainder going to D103.
6. If the content of D103 is greater than 4900, CIO 2000 is incremented by 1.
In this case, the result is 78.
3-13-3 ARITHMETIC PROCESS: APR(069)
Purpose Calculates the sine, cosine, or a linear extrapolation of the source data.
The linear extrapolation function allows any relationship between X and Y to
be approximated with line segments.
Ladder Symbol
Variations
Applicable Program Areas
Operands Sine Function (C = 0000 Hex)
6017 0000
7756
D102
D101 D100
Square root computation
(Remainder eliminated)
60 170 000, , 7 756.932,=
D102
7 7 5 6
CIO 2000
0 0 7 7 5 6 0 0
D103
5600 > 4900
CIO 2000
0 0 7 8
APR(069)
C
S
R
C: Control word
S: Source data
R: Result word
Variations Executed Each Cycle for ON Condition APR(069)
Executed Once for Upward Differentiation @APR(069)
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
Operand Value Data range
C 0000 hex ---
S 0000 to 0900 (BCD) 0° to 90°
D 0000 to 9999 (BCD) 0.0000 to 0.9999
9999 (BCD) 1.0000

Table of Contents

Related product manuals