ROR
Àðãóìåíòû:
IN INT ëþáàÿ öåëàÿ àíàëîãîâàÿ âåëè÷èíà
NbR INT êîëè÷åñòâà âðàùàåìûõ áèò (â äèàïàçîíå [1..31])
Q INT ïðîâåðíóòàÿ âïðàâî âåëè÷èíà
åñëè NbR <= 0, òî íåò íèêàêîãî ýôôåêòà
Îïèñàíèå:
Âðàùàåò áèòû âïðàâî. Âðàùàþòñÿ 32 áèòà:
(*FBD ïðèìåð áëîêà “ROR”*)
(* ST Ýêâèâàëåíò: *)
result := ROR (register, 1);
(* register = 2#0100_1101_0011_0101 *)
(* result = 2#1010_0110_1001_1010 *)
(* IL : *)
LD register
ROR 1
ST result