Knight Rider in PLC (Siemens Logo!) ..#2

panic mode

Joined Oct 10, 2011
2,715
so you want outputs to cycle through following sequences:
0001
0010
0100
1000
0100
0010
0001

actually you only need the first six states.
so clock, counter and decoder is all that is needed...


here is an example done in ladder but same can be done in any language.
first line is clock
second line is counter
next four lines are decoding counter values and turning on outputs.
to get different pattern, just modify decode section.
 

Attachments

Last edited:

Thread Starter

MertkanSucati

Joined Aug 27, 2021
2
so you want outputs to cycle through following sequences:
0001
0010
0100
1000
0100
0010
0001

actually you only need the first six states.
so clock, counter and decoder is all that is needed...


here is an example done in ladder but same can be done in any language.
first line is clock
second line is counter
next four lines are decoding counter values and turning on outputs.
to get different pattern, just modify decode section.
Thanks broo . you are the man. I'll try to make it
 
Top