Chapter 5 Applied Instructions S 1 : Device in which a base is stored; S 2 : Device in which a power is stored; D : Device in which the operation result is stored The binary floating-point value in S 1 is raised to the power of the value in S 2 , and the operation result is stored in D . D =POW[ S 1 +1, S 1 ] [ S2 +1, S2 ] The value in S 1 can only be a positive value, whereas the value in S 2 can be a positive value or a negative value. D must be a 32-bit register, and the values in S 1 and S 2 must be floating-point values.
If the values in S 1 and S 2 are invalid, an operation error will occur, the instruciton will not be executed, an operation error flag will be ON, and the error code 16#0E19 will appear. If the absolute value of an operation result is greater than the maximum floating-point value available, a carry flag will be ON. If the absolute value of an operation reuslt is less than the minimum floating-point value available, a borrow flag will be ON. If an operation 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. SM1049 is the operation error flag in an Ox motion subroutine, and SM953 is the operation error flag in O100. Explanation Example When M0 is ON, the values in (D1, D0) and (D3, D2) are converted into binary floating-point values, and the conversion results are stored in (D11, D10) and (D13, D12) respectively. When M1 is ON, the binary floating-point value in (D11, D10) is raised to the power of the binary floating-point value in (D13, D12), and the operation result is stored in (D21, D20).
M0 DFLT DFLT M1 Please refer to section 5.3 for more information about performing operations on floating-point numbers. Additional remark 5-91 API Instruction code Operand Function S , S , D 1 2 Power of a 128 D POW P floating-point number Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z S 1 S 2 D Pulse instruction 16-bit instruction 32-bit instruction (9 steps) – D0 D10 D2 D12 DPOW D10 D12 D20