Sohaib28 Member S Join Date Aug 2015 Location Cottbus Posts 31 Nov 15, 2016 #1 Hello: I am working on TwinCAT3. How to write this code in Structured Text. I am able to execute it on Ladder Diagram. Please have a look at this attachment. Thanks in advance.
Hello: I am working on TwinCAT3. How to write this code in Structured Text. I am able to execute it on Ladder Diagram. Please have a look at this attachment. Thanks in advance.
Sohaib28 Member OP S Join Date Aug 2015 Location Cottbus Posts 31 Nov 15, 2016 #2 IF NOT gvl.Turn_onAC THEN gvl.TimerResult.IN:=TRUE; ELSE gvl.TimerResult.IN:=FALSE; END_IF. After That I dont get it what I have to do with the output of the TIMER.
IF NOT gvl.Turn_onAC THEN gvl.TimerResult.IN:=TRUE; ELSE gvl.TimerResult.IN:=FALSE; END_IF. After That I dont get it what I have to do with the output of the TIMER.
LadderLogic Member Join Date Jun 2003 Location Chicagolandia Posts 1,486 Nov 15, 2016 #3 gvl.TimerResult (IN := NOT gvl.Turn_onAC, PT := T#80MS); gvl.ResetSET_RESET := gvl.TimerResult.Q AND NOT gvl.SwitchesI.AC_SwitchI.Indiction_On_Off;
gvl.TimerResult (IN := NOT gvl.Turn_onAC, PT := T#80MS); gvl.ResetSET_RESET := gvl.TimerResult.Q AND NOT gvl.SwitchesI.AC_SwitchI.Indiction_On_Off;