Nick_Haselhoff
Member
Hi there,
I have just begun to learn plc programming in the last few days and I am trying to get my head around ladder logic. I have run into my first real problem which is that I am trying to make a counter that counts up when the input becomes true and will count down when the input becomes older than a set time. I have sort of found a way that will do it but it can only cope with a small count using a network for every time the input is pressed, this will not work efficiently for large systems.
Does anyone have any advice for a rookie on this problem?
I have thought about trying to use the real time counter to store the time when the input is set true into an array, then evaluating the array for all inputs when the time is true. But that seems to be going way over my head. And I wouldn’t know where to start.
Thanks in advance!
Cheers
Nick
I have just begun to learn plc programming in the last few days and I am trying to get my head around ladder logic. I have run into my first real problem which is that I am trying to make a counter that counts up when the input becomes true and will count down when the input becomes older than a set time. I have sort of found a way that will do it but it can only cope with a small count using a network for every time the input is pressed, this will not work efficiently for large systems.
Does anyone have any advice for a rookie on this problem?
I have thought about trying to use the real time counter to store the time when the input is set true into an array, then evaluating the array for all inputs when the time is true. But that seems to be going way over my head. And I wouldn’t know where to start.
Thanks in advance!
Cheers
Nick