Home AW-SYS Support Demo

 

Previous
Next

Example 22
Another square wave generator

The output A2.7 should be controlled by a square wave signal with Ton = 0.5s and Toff = 1.5s.

The solution presented here is different from that suggested in the previous example but produces the same trace. Here we have used a single self-starting timer that the first group of statements program with the same time as the period of the required signal (2 sec.). This means that the time that elapses varies between 200 and 0 hundredths of a second. Between the values of 20 and 50, the output A2.7 should set itself to low state, while for values below 50 it should be assume its high state.
The second group of statements compares the value of the time with the constant 50 and, if it is less, activates the output.
Also in this case it is possible to change the period of the signal by varying the time constant for T3, or the period of time in the high state by changing the decimal comparison constant.

More examples: 1 ] 2 ] 3 ] 4 ] 5 ] 6 ] 7 ] 8 ] 9 ] 10 ] 11 ] 12 ] 13 ] 14 ] 15 ] 16 ] 17 ] 18 ] 19 ] 20 ] 21 ] [ 22 ] 23 ] 24 ] 25 ] 26 ] 27 ] 28 ] 29 ] [ List ]
More PLCs examples: Not still available