Unit101 Posted July 26, 2011 Share Posted July 26, 2011 Below is a cool way to create timers and use them in PMAC code. This works great and makes code readable, concise. //First in your HEADER file make below macros #define Delay1 i6512 #define msec1 *8388608/I10while(i6512>0)Endw //Now in your PLC code you can simply put this line to create a delay // in the PLC Delay1= 1000 msec1 Link to comment Share on other sites More sharing options...
Recommended Posts