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