AH500 Motion Control Module Manual S : Source value (binary floating-point value); D : Arccosine value Arccosine value=cos -1 The relation between cosine values and arccosine values is shown below. Explanation R The decimal floating-point value into which the cosine value in S is converted can only be in the range of -1.0 to +1.0. If it is not in the range, the instruction will not be executed, an operation error flag will be ON, and the error code 16#0E19 will appear. If a conversion 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.
SM1049 is the operation error flag in an Ox motion subroutine, and SM953 is the operation error flag in O100. S When X0.0 is ON, the arccosine of the binary floating-point value in (D1, D0) is stored in (D11, D10). Example X0.0 DACOS Binary floating-point value S D Arccosine value Please refer to section 5.3 for more information about performing operations on floating-point numbers. Binary floating-point value Additional remark 5-100 API Instruction code Operand Function S, D Arccosine of a binary 134 D ACOS P 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) – S: Cosine value R:
Arcconsine value 2 0 1,0 2 -1,0 D0 D10 D 1 D 0 D 11 D 10