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



Ñîäåðæàíèå ðàçäåëà