Floating-Point Multiply: *F(456) - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Special Math Instructions
Description
574
Area
EM Area with bank
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
The operation of APR(069) depends on the control word C. If C is 0000 or
0001, APR(069) computes the sine or cosine of S with S in units of tenths of
degrees.
If C is a word address, APR(069) extrapolates the Y value for the X value in S
based on coordinates (forming line segments) entered in advance in a table
beginning at C.
Sine Function (C=0000)
When C is 0000, APR(069) calculates the SIN(S) and writes the result to R.
The range for S is 0000 to 0900 BCD (0.0 to 90.0 ) and the range for R is
0000 to 9999 BCD (0.0000 to 0.9999). The remainder of the result beyond the
fourth decimal place is eliminated.
Cosine Function (C=0001)
When C is 0001, APR(069) calculates the COS(S) and writes the result to R.
The range for S is 0000 to 0900 BCD (0.0 to 90.0 ) and the range for R is
0000 to 9999 BCD (0.0000 to 0.9999). The remainder of the result beyond the
fourth decimal place is eliminated.
Linear Extrapolation
APR(069) linear extrapolation is specified when C is a word address.
The content of word C specifies the number of coordinates in a data table
starting at C+2, the form of the source data, and whether data is BCD or
C
En_00000 to En_32767
(n = 0 to C)
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
Specified values only
---
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Section 3-14
S
R
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents