Chapter 6 Applied Instructions Symbol D : Device in which the sign of the value is reversed Explanation This instruction reverses the sign of a single-precision floating-point number in D . Example Before the instruction is executed, the value in (D1, D0) is the negative value 16#AE0F9000. When M0 switches from OFF to ON, the instruction reverses the sign of the single-precision floating-point number in (D1, D0). In other words, after 6_ the instruction is executed, the value in (D1, D0) is the positive value 16#2E0F9000. Before the instruction is executed, the value in (D1, D0) is the positive value 16#2E0F9000.
When M0 switches from OFF to ON, the instruction reverses the sign of the single-precision floating-point number in (D1, D0). In other words, after the instruction is executed, the value in (D1, D0) is the negative value 16#AE0F9000. 6-99 API Instruction code Operand Function 0211 FNEG P D Reversing the sign of a 32-bit floating-point number Device X Y M S T C HC D FR SM SR E K 16# “$” F D BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type D Pulse instruction 16-bit instruction 32-bit instruction ES3 - ES3