AH500 Programming Manual API 1509 Symbol: S : Data source (degree) Double word D : Conversion result (radian) Double word Explanation: 1. The equation below is used to convert degrees into radians. 2. Radian = DegreeЧ( π /180). 3. If the conversion result is 0, SM600 is ON. Example: When X0.0 is ON, the degree in (D1, D0) is converted into the radian, and the conversion result is stored in (D11, D10). The radian in (D11, D10) is the floating-point number. Degree Floating-point number S D Radian (Degree /180 ) Чπ Floating-point number Additional remark:
If the value in S exceeds the range of values which can be represented by the floating-point numbers, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2013. 6-323 Instruction code Operand Function FRAD P S, D Converting the degree to the radian Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S D Pulse instruction 16-bit instruction (5-6 steps) 32-bit instruction AH AH - D1 D0 D11 D10