ISaGRAF. Version 3.4


STACK


INT

:

PUSH BOO PUSH ( )

IN

POP BOO POP ( )

R1 BOO

IN INT

N INT

EMPTY BOO TRUE

OFLO BOO : TRUE

OUT INT

:

.

STACKINT PUSH POP. 128. - N 1 128.

, OFLO (R1 TRUE, , FALSE)

(*FBD STACKINT : *)

(* ST : , STACKINT1 - STACKINT *)

STACKINT1(err_detect, acknoledge, manual_mode, err_code, max_err);

appli_alarm := auto_mode AND NOT(STACKINT1.EMPTY);

err_alarm := STACKINT1.OFLO;

last_error := STACKINT1.OUT;

(* IL : *)

LD err_detect

ST STACKINT1.push

LD acknoledge

ST STACKINT1.pop

LD manual_mode

ST STACKINT1.r1

LD err_code

ST STACKINT1.IN

LD max_err

ST STACKINT1.N

CAL STACKINT1

LD auto_mode

ANDN STACKINT1.empty

ST appli_alarm

LD STACKINT1.OFLO

ST err_alarm

LD STACKINT1.OUT

ST last_error