1/10thsec clock pulse

The least signficant bit of the accumulated time of a timer with a .01 time base will pulse on for .01 seconds, then off for .01 seconds. Look at the binary value:

0 s = 0000
.1 s = 0001
.2 s = 0010
.3 s = 0011
.4 s = 0100
.5 s = 0101
.6 s = 0110
.7 s = 0111

Notice how the least signifcant bit, ie, the bit at the end, is alterenating on and off each time the timer upticks. Create a timer that self resets on any EVEN time period, say 60 seconds - use an even number to avoid getting a spurious single scan pulse that you would get because odd numbers have the least significant bit set. Then use the least significnat bit of the elapsed time for your 1/10th second pulse.

Note that a full on/off cycle takes .2 seconds.

If you require a single shot pulse that occurs once each .1 seconds then use the DIFU and DIFD instructions on the elapsed time least signifcant bit to get a one scan long pulse every .1 seconds.
 

Similar Topics

We recently purchased a IC693CPU352 module and it appears the internal time clock is static. I can set the time and date but once set it does not...
Replies
5
Views
168
Hello. I cannot change the SendClock settings for a PROFINET IO device. I need to slow down the CODESYS PROFINET IO controller. What am I doing...
Replies
0
Views
198
Hello everyone, I am not a programmer, but I can do some simple programming. So now I want the time to be recorded every time a pump turns on. I...
Replies
35
Views
2,702
Hello, I am trying to create an AOI that will retrive the clock datetime bits from a master plc through a generic message read instruction and...
Replies
2
Views
489
I was online a SLC5/04 yesterday and one thing I did was go to processor properties and set the date and time to get the PLC clock current. It...
Replies
4
Views
721
Back
Top Bottom