ISaGRAF. Version 3.4


SHR


:

IN INT

NbR INT ( [1..31])

Q INT

NbR <= 0,

:

. 32 .

(*FBD SHR*)

(* ST : *)

result := SHR (register,1);

(* register = 2#1100_1101_0011_0101 *)

(* result = 2#1110_0110_1001_1010 *)

(* IL : *)

LD register

SHR 1

ST result