ISaGRAF. Version 3.4


CMP


:

VAL1 INT

VAL2 INT

LT BOO TRUE val1 val2

EQ BOO TRUE val1 val2

GT BOO TRUE val1 val2

:

: .

(*FBD CMP*)

(* ST : , CMP1 - CMP *)

CMP1(level, max_level);

pump_cmd:= CMP1.LT OR CMP1.EQ;

alarm := CMP1.GT AND NOT(manual_mode);

(* IL : *)

LD level

ST CMP1.val1

LD max_level

ST CMP1.val2

CAL CMP1

LD CMP1.LT

OR CMP1.EQ

ST pump_cmd

LD CMP1.GT

ANDN manual_mode

ST alarm