ISaGRAF. Version 3.4


MUX


:

SEL INT ( [0..3])

IN1..IN4 INT

Q INT = value1 if SEL = 0

= value2 if SEL = 1

= value3 if SEL = 2

= value4 if SEL = 3

= 0

:

4 : .

(*FBD MUX4*)

(* ST : *)

range := MUX4 (choice, 1, 10, 100, 1000);

(* 4 , , - 1, 10 *)

(* IL : *)

LD choice

MUX4 1,10,100,1000

ST range