Chapter 3 Standard Instructions Graphic expression: S : Source device 3_ D : Device in which the result is stored Explanation: 1. The square root of the floating-point number in the register specified by S is calculated, and the result is stored in the register specified by D . 2. If the operation result stored in D is 0, SM600 is ON. Example 1: When X0.0 is ON, the square root of the floating-point number in (D1, D0) is calculated, and the result is stored in (D11, D10). Additional remark: negative value, the operation error occurs, the instruction is not executed, SM0 is ON, and the error code in SR0 is The value in the device specified by S only can be a positive value.
If the value in the device specified by S is a 16#2003. 3-397 FB/FC Instruction Operand Description FC D* FSQR P S, D Square root 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 -