AS Series Programming Manual 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 _6 Before the instruction is executed, the value in (D1, D0) is the negative value 16#AE0F9000. When X0.0 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 positive value 16#2E0F9000. Before the instruction is executed, the value in (D1, D0) is the positive value 16#2E0F9000.
When X0.0 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-98 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 AS - AS