(****** QuickLD compiler *******************************)
(****** Copyright Rockwell Automation Canada, Ltd ******)
(****** ST *********************************************)

(*************** Rung **********************************)
(*Example 5.4 - Marking defective part. One se spray 5.5 sec after defect detected.*)
__STEPPRAGMA
0,1
__ENDSTEPPRAGMA
(*Label :*)(**)
__EDTB1 := _IO_EM_DI_02 AND NOT(_IO_EM_DI_03) ;
__EDTB2 := SP_DELAY.REDGE ;
(* FB call: TON *)
SP_Delay((__EDTB1 OR __EDTB2) AND NOT(SP_DELAY.Q), T#5S500MS) ;

(*************** Code for the end of Rung **************)
__GL __LG0001 ;


(*************** Rung **********************************)
(*Spray pulse*)
__STEPPRAGMA
0,4
__ENDSTEPPRAGMA
(*Label :*)(**)
(* FB call: TP *)
Spray_PlsTmr(SP_DELAY.Q, T#1S) ;
_IO_EM_DO_00 := Spray_PlsTmr.Q ;

(*************** Code for the end of Rung **************)
__GL __LG0002 ;


(*************** Code for the end of File **************)
__GL __LG0000 ;



(*************** Local Symbols table *******************)
(* __EDTB1 *)
(* __EDTB2 *)

