Less or Equal
The content of the accumulator is compared with the expression following in brackets. If the accumulator is less or equal, TRUE is stored in the accumulator, else FALSE.
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 *) |
||
LE( | var_2 |
(* Load var_2 in accu *) |
ADD | var_3 |
(* Add op3 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 *) |