7 Applied Instructions
7.12 Floating Point
503
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
Function and operation explanation
1. 32-bit operation (DACOS/DACOSP)
The angle is calculated from the COS value specified by , and the operation result is stored in the device
specified by . Real number can be directly specified by the device specified by .
• The COS value specified by can be set in a range of -1.0 to 1.0.
• The angle (operation result) to be stored in the device specified by stores the value 0 to π in the
radian unit.
As for conversion from radian to angle or vice versa, refer to DRAD instruction or DDEG instruction.
→ As for DRAD instruction, refer to section 7.12.24.
→ As for DDEG instruction, refer to section 7.12.25.
Caution
When handling 32-bit data in structured program, you cannot specify 16-bit device directly unlike the simple
project. When handling 32-bit data, please use the label.
However, the 32-bit counter is a 32-bit long device, and can be specified directly.
When specifying the device, use the global label.
Error
In the following cases, it is an operation error, error flag (M8067) is turned ON, and error code is stored in
D8067.
• When the value specified by is out of the range of -1.0 to 1.0. (Error code: K6706)
Command
input
DACOS
EN ENO
d
s
+1
Binary floating decimal
point (real number)
+1
Binary floating decimal
point (real number)
COS
-1
d
s s
d
Label 1
*1
Label 2
*2
*1. To define the head device for storing
the COS value for COS
-1
operation.
*2. To define the device for storing the operation result.