Not equal
The content of the accumulator is compared with the expression following in brackets. If the both values are not equal, TRUE is stored in the accumulator, else FALSE.
Valid operands for this operator must be of one of the following data types: (ANY)
The result of the operation is of data type BOOL.
Operator only available in IL programming language.
All input and output variables used for programming this function have been declared in the POU header. The same POU header is used for all programming languages.
LD |
var_1 |
(* Load var_1 in accu *) |
(* Since bracket expression follows, save content of accu; process expression in brackets first *) |
||
NE( |
var_2 |
(* Load var_2 in accu *) |
ADD |
var_3 |
(* Add var_3 to accu; store result in accu *) |
) |
(* get saved accu content and compare to actual content of accu; store result in accu; if saved accu ¹ actual accu, TRUE is stored in accu, else FALSE *) |
|
ST |
var_4 |
(* Store accu in var_4 *) |