Jump to content
OMRON Forums

Coolest Timer I've Seen - Dig it...


Unit101

Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Guest
This topic is now closed to further replies.

×
×
  • Create New...