Daniel81
Member
Hello Guys,
I'm new to PLC programming and a course I'm currently studying has asked a question and requested we use a shift register.
The question is to use a single push button to select either 1 sec, 2 sec, 3 sec or 4 sec delay times for a motor to start using a shift register and timers.
I can shift inputs 1's into the B3:0 register but don't understand how to get zero's shifted in by just using one input switch.
I had thought to map the time delays to binary numbers such as
1 sec = 001
2 sec = 010
3 sec = 011
4 sec = 100
But due to my lack of knowledge and experience I cannot generate the zero's I require.
Would it be possible if one of you guys could point me in the right direction and point out what I am missing or doing wrong.
Your help is much appreciated.
Thank you
Daniel
I'm new to PLC programming and a course I'm currently studying has asked a question and requested we use a shift register.
The question is to use a single push button to select either 1 sec, 2 sec, 3 sec or 4 sec delay times for a motor to start using a shift register and timers.
I can shift inputs 1's into the B3:0 register but don't understand how to get zero's shifted in by just using one input switch.
I had thought to map the time delays to binary numbers such as
1 sec = 001
2 sec = 010
3 sec = 011
4 sec = 100
But due to my lack of knowledge and experience I cannot generate the zero's I require.
Would it be possible if one of you guys could point me in the right direction and point out what I am missing or doing wrong.
Your help is much appreciated.
Thank you
Daniel