ISaGRAF. Version 3.4

         

ROL


Àðãóìåíòû:

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

NbR                     INT                 êîëè÷åñòâà âðàùàåìûõ áèò (â äèàïàçîíå [1..31])

Q                          INT                 ïðîâåðíóòàÿ âëåâî âåëè÷èíà

                                                        åñëè NbR <= 0, òî íåò íèêàêîãî ýôôåêòà

Îïèñàíèå:

Âðàùàåò áèòû âëåâî. Âðàùàþòñÿ 32 áèòà.

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

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

result := ROL (register, 1);

(* register = 2#0100_1101_0011_0101*)

(* result    = 2#1001_1010_0110_1010*)

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

LD                     register

ROL                  1

ST                     result



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