Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
21
Добавлен:
11.10.2020
Размер:
3.39 Mб
Скачать

Standard Library Elements

331

Timer

 

 

 

13.5 Timer

13.5.1TP

The function block TP is a trigger. TP(IN, PT, Q, ET) means:

IN and PT are input variables of the BOOL and TIME types respectively. Q and ET are output variables of the BOOL and TIME types respectively. If IN is FALSE, Q is FALSE and ET is 0.

As soon as IN becomes TRUE, the time will begin to be counted in milliseconds in ET until its value is equal to PT. It will then remain constant.

Q is TRUE if IN is TRUE and ET is less than or equal to PT. Otherwise it is FALSE.

Q returns a signal for the time period given in PT.

Graphic Display of the TP Time Sequence

Declaration example:

TPInst : TP ;

Example in IL:

CAL TPInst(IN := VarBOOL1, PT := T#5s)

LD TPInst.Q

ST VarBOOL2

Example in FBD:

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32

332 Standard Library Elements

Timer

Example in ST:

TPInst(IN := VarBOOL1, PT:= T#5s);

VarBOOL2 :=TPInst.Q;

13.5.2TON

The function block TOD implements a turn-on delay..

TON(IN, PT, Q, ET) means:

IN and PT are input variables of the BOOL and TIME types respectively. Q and ET are output variables of the BOOL and TIME types respectively. If IN is FALSE, Q is FALSE and ET is 0.

As soon as IN becomes TRUE, the time will begin to be counted in milliseconds in ET until its value is equal to PT. It will then remain constant.

Q is TRUE when IN is TRUE and ET is equal to PT. Otherwise it is FALSE.

Thus, Q has a rising edge when the time indicated in PT in milliseconds has run out.

Graphic display of TON behavior over time:

Declaration example:

TONInst : TON ;

Example in IL:

CAL TONInst(IN := VarBOOL1, PT := T#5s)

LD TONInst.Q

ST VarBOOL2

Example in FBD:

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32

Standard Library Elements

333

Timer

 

 

 

Example in ST:

TONInst(IN := VarBOOL1, PT:= T#5s);

13.5.3TOF

The function block TOF implements a turn-off delay..

TOF(IN, PT, Q, ET) means:

IN and PT are input variables type BOOL respectively TIME. Q and E are output variabls type BOOL respectively TIME. If IN is TRUE, the outputs are TRU respectively 0.

As soon as IN becomes FALSE, in ET the time will begin to be counted in milliseconds in ET until its value is equal to PT. It will then remain constant.

Q is FALSE when IN is FALSE und ET equal PT. Otherwise it is TRUE.

Thus, Q has a falling edge when the time indicated in PT in milliseconds has run out.

Graphic display of TOF behavior over time:

Declaration example:

TOFInst : TOF ;

Example in IL:

CAL TOFInst(IN := VarBOOL1, PT := T#5s)

LD TOFInst.Q

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32

334 Standard Library Elements

Timer

ST VarBOOL2

Example in FBD:

Example in ST:

TOFInst(IN := VarBOOL1, PT:= T#5s);

VarBOOL2 :=TOFInst.Q;

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32

Соседние файлы в папке 759-332