ISaGRAF. Version 3.4

         

MIN


Àðãóìåíòû:

IN                         INT                 ëþáàÿ çíàêîâàÿ öåëàÿ âåëè÷èíà

IN2                       INT                 (íå ìîæåò áûòü REAL)

Q                          INT                 ìèíèìóì èç äâóõ âõîäîâ

Îïèñàíèå:

                            Îïðåäåëÿåò ìèíèìàëüíîå çíà÷åíèå èç äâóõ öåëûõ.

(*FBD ïðèìåð áëîêîâ “MIN” è “MAX”*)

(* ST Ýêâèâàëåíò: *)

new_value := MAX (MIN (max_value, value), min_value);

(*îãðàíè÷èâàåò çíà÷åíèå â äèàïàçîíå [min_value..max_value] *)

(* IL Ýêâèâàëåíò: *)

LD                     max_value

MIN                    value

MAX                  min_value

ST                     new_value



Ñîäåðæàíèå  Íàçàä  Âïåðåä