ISaGRAF. Version 3.4

         

MUX


Àðãóìåíòû:

SEL                      INT                 öåëûé ñåëåêòîð (äîëæåí áûòü â äèàïàçîíå [0..7])

IN1..IN8                INT                 öåëàÿ àíàëîãîâàÿ âåëè÷èíà

Q                          INT                 = value1 if SEL = 0

                                                  = value2 if SEL = 1

                                                  ...

                                                  = value8 if selector = 7

                                                  = 0 äëÿ âñåõ äðóãèõ çíà÷åíèé ñåëåêòîðà

Îïèñàíèå:

Ìóëüòèïëåêñîð 8 âõîäîâ: âûáèðàåò îäíî èç âîñüìè öåëûõ ÷èñåë.

(*FBD ïðèìåð áëîêà “MUX8”*)

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

range := MUX8 (choice, 1, 5, 10, 50, 100, 500, 1000, 5000);

(* âûáèðàåò èç 8 ïðåäîïðåäåëåííûõ çíà÷åíèé, íàïðèìåð, åñëè âûáðàíà 3, çíà÷åíèå áóäåò 50 *)

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

LD                     choice

MUX8                1,5,10,50,100,500,1000,5000

ST                     range



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