ISaGRAF. Version 3.4


CTD


:

CD BOO ( CD TRUE)

( CD TRUE)

LOAD BOO ()

(CV = PV LOAD TRUE)

PV INT

Q BOO : TRUE CV = 0

CV INT

:

CTD (CD). , R_TRIG F_TRIG.

:

0 1.

(*FBD CTD*)

(* ST : , R_TRIG1 - R_TRIG CTD1 - CTD *)

CTD1(F_TRIG1(command),load_cmd,100);

underflow := CTD1.Q;

result := CTD1.CV;

(* IL : *)

LD command

ST F_TRIG1.clk

CAL F_TRIG1

LD F_TRIG1.Q

ST CTD1.cd

LD load_cmd

ST CTD1.load

LD 100

ST CTD1.pv

CAL CTD1

LD CTD1.Q

ST underflow

LD CTD1.cv

ST result