3/6/2022 2:36 PM | |
Joined: 1/12/2012 Last visit: 11/14/2024 Posts: 34 Rating: (0) |
Hello Experts, Could anyone tell me what is wrong with this code? Why this sequence is not executing beyond Step 1. Also SFB4 is not getting initialized? CASE SeqStepOpn OF 1: t_q_si_cmd := false; IF NOT t_fb_si_opn AND t_fb_si_cls THEN ST_SD_OPN_DLY := true; TON_SD_OPN_DLY(IN := ST_SD_OPN_DLY, PT := SD_OPN_DLY); SeqStepOpn := 2; M100.0 := true ; END_IF; 2: IF TON_SD_OPN_DLY.Q THEN t_q_sd_cmd := true; TON_SD_OPN_DLY(IN := false); SeqStepOpn := 3; M100.1 := true ; END_IF; 3: IF t_fb_sd_opn AND NOT t_fb_sd_cls AND NOT t_fb_ps_ok THEN ST_DV_OPN_DLY:=true; TON_DV_OPN_DLY(IN := ST_DV_OPN_DLY, PT := DV_OPN_DLY); SeqStepOpn := 4; M100.2 := true; END_IF; 4: IF TON_DV_OPN_DLY.Q THEN t_q_dv_opn_cmd := true ; TON_DV_OPN_DLY(IN := false); M100.3 := true; END_IF; END_CASE; ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 03/07/2022 09:06:52New subject after splitting Regards, |
|
3/7/2022 8:22 AM | |
Joined: 9/23/2005 Last visit: 11/19/2024 Posts: 4796 Rating: (733) |
Here you should find some hints. |
Regards, |
|
Follow us on