Delta Electronics AH — 3.18 Flaoting Point Instructions

Chapter 3 Standard Instructions Graphic expression: S : Source value 3_ D : Tangent value Explanation: 1. Whether the source value specified by S is a radian or a degree depends on the state of SM695. 2. If SM695 is OFF, the source value specified by S is a radian. Radian=Degree Чπ /180. 3. If SM695 is ON, the source value specified by S is a degree. 4. If the conversion result is 0, SM600 is ON. Degree=Radian Ч 180/ π . (0 o ≦ Degree ≦ 360 0 ) 5. The tangent of the source value specified by S is stored in the register specified by D . 6. The relation between radians and tangent values are shown below. Example:

When X0.0 is ON, the binary-coded decimal value in X1.15~X1.0 is converted into the binary value, and the 3-381 FB/FC Instruction Operand Description FC D* FTAN P S, D Tangent of the floating-point number BOOL WORD DWORD LWORD UINT UDINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S  * D  *  * Device X Y M S T C HC/AC D L SM SR E PR K 16# “$” D F S           D          Pulse instruction 16-bit instruction 32-bit instruction AH Motion CPU AH Motion CPU -