Delta Electronics — 6.16.2 Explanation of Floating-point Number Instructions

AS Series Programming Manual Example When X0.0 is ON, the BIN instruction converts the binary-coded decimal value in X1.15–X1.0 into the binary value, and stores the conversion result in D0. The FLT instruction converts the binary value in D0 into the floating-point number, and stores the conversion result in (D11, D10). The FRAD instruction converts the floating-point number in (D11, D10) into radians, and stores the conversion result in (D21, D20). The FTAN instruction finds the tangent of the radian value in (D21, D20) and stores it in (D31, D30). The tangent value is a floating-point number.

_6 X1.15~X1.0 D0 D11~D10 BIN FLT Floating-point number Binary-coded decimal value R56 45 Binary value FRAD R0.785398 D21~D20 FTAN R1 D31~D30 Floating-point number Floating-point number 6-462 0 0 4 5