ISaGRAF. Version 3.4


AND_MASK


:

IN INT

MSK INT

Q INT AND IN MSK

:

.

(*FBD AND_MASK*)

(* ST : *)

parity := AND_MASK (xvalue, 1); (* 1 if xvalue is odd *)

result := AND_MASK (16#abc, 16#f0f); (* equals 16#a0c *)

(* IL : *)

LD xvalue

AND_MASK 1

ST parity

LD 16#abc

AND_MASK 16#f0f

ST result




- -  - -  - -