Posted 29 Jan 2014 I have two examples of STL structure for Clock Pulse bit by two different programmers. The Clock pulse result is same each other.(0.1s/1s..etc...) But the STL structure and M addresses are different. What is the reason? Can you explain about that? Thanks for your help in advance. Share this post Link to post Share on other sites
Posted 29 Jan 2014 Looks like one programmer likes LAD and one like STL Regardless the clock byte is programmed from here typically see pic Share this post Link to post Share on other sites
Posted 30 Jan 2014 As jrw stated above,there is a clock byte available from within the CPU properties, you just need to enable it and select which marker byte (byte 0 is default) What I would so as standard to create single shots would be slightly different. L MB 0 == Clock Byte this scan L MB 1 == Clock Byte last scan XOW == Do an exclusive OR (only bits different remain ON) T MB 2 == One shots of changed bits L MB 0 T MB 1 == Update Clock Byte last scan Its slightly different in that it gives a one shot on every changed state so rising and falling edges rather than just rising edge. The clock memory bits are as follows Bit 0 M0.0 : 10Hz, 0.1s Bit 1 M0.1 : 5Hz, 0.2s Bit 2 M0.2 : 2.5Hz, 0.4s Bit 3 M0.3 : 2Hz, 0.5s Bit 4 M0.4 : 1.25Hz, 0.8s Bit 5 M0.5 : 1Hz, 1s Bit 6 M0.6 : 0.625Hz, 1.6s Bit 7 M0.7 : 0.5Hz, 2s So in the program I can use MB0 or MB1 bits as square pulse bits and MB2 as one shots, for example M 2.4 would give me a one shot every 400mS Share this post Link to post Share on other sites