Mitsubishi — 5.6 Descriptions of the Applied Instructions

AH500 Motion Control Module Manual Explanation  S : Source value (binary floating-point value); D : Hyperbolic tangent value  Hyperbolic tangent value=(e s -e -s )/(e s +e -s )  When X0.0 is ON, the hyperbolic tangent of the binary floating-point Example number in (D1, D0) is stored in (D11, D10). D10 Binary floating-point value S  If the absolute value of a conversion result is greater than the maximum floating-point value available, a carry flag will be ON.  If the absolute value of a conversion reuslt is less than the minimum floating-point value available, a borrow flag will be ON.  If a converseion result is 0, a zero flag will be ON.

 SM1064 is the zero flag in an Ox motion subroutine, and SM968 is the zero flag in O100.  SM1065 is the borrow flag in an Ox motion subroutine, and SM969 is the borrow flag in O100.  SM1066 is the carry flag in an Ox motion subroutine, and SM970 is the carry flag in O100. D Hyperbolic tangent value Binary floating-point value Additional remark  Please refer to section 5.3 for more information about performing operations on floating-point numbers.

5-104 API Instruction code Operand Function Hyperbolic tangent of a 138 D TANH P S, D binary floating-point number Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z S    D   Pulse instruction 16-bit instruction 32-bit instruction (6 steps )  –  X DTANH D0 D 1 D 0 D 11 D 10