reset a CTU counter

batindeko

Member
Join Date
Nov 2017
Location
stutensee
Posts
16
Hi all, I'm newbie here to plctalk!

I writing a PLC programm in ladder where I put an output bit to zero during 9s and the same output bit to one during 1s. In the same time I count every pulse until 50 after that value the counter should be reset and stops to count. In my case this never happen in the next scan the counter keeps counting. I don't know how fix this issue or may be there another to do this.
find attach a picture of my ladder programm
thank for every contribution

Olivier
 
Welcome to the Forum

In order to receive a good response to your question, you will need to provide more information about the programming platform you are using. RSLogix, Siemens, Mitsubishi. ect.

Good luck!!
 
In the CTU line, try to put a "Not Done" as a pre-requisite of the counter.

CTU.DN Latch_M Counter_Block
---|/|------|/|------------------|CTU|--|

CTU.DN Latch_M
---| |---------------------------(L)--|

CTU.DN
--| |-------------------|MOV 0 -> CTU.Acc|--|

Have you tried something like this?

**This will make stop counting**

Then You can Latch a memory, and block the line, at the same time that you reset the counter.
 
Last edited:
In the CTU line, try to put a "Not Done" as a pre-requisite of the counter.

CTU.DN Latch_M Counter_Block
---|/|------|/|------------------|CTU|--|

CTU.DN Latch_M
---| |---------------------------(L)--|

CTU.DN
--| |-------------------|MOV 0 -> CTU.Acc|--|

Have you tried something like this?

**This will make stop counting**

Then You can Latch a memory, and block the line, at the same time that you reset the counter.
what do you mean here by latch your memory? I do not really understand which memory
 
SET / Reset memory

Usually ---(S) / ---(R)

But in the Logix 5000 it is "(L)" and "(U)".

(L) = When Latched, stays in state "1" until it receives a "(U)" Unlatch
 

Similar Topics

I haven't come across this before. I am trying to understand why the counter doesn't reset to 0, when the .dn is true? It immediately puts a 1 in...
Replies
18
Views
4,573
Hi need help why this “failure 5 emergency stop “ appears at every startup in the morning ? Have to shut off main switch at least 10 times on...
Replies
19
Views
267
I was loading a program onto an XE1e2 PLC and it got stuck on these two windows and won't progress. It won't let me connect from the PC to reload...
Replies
0
Views
73
Hi all, i have recieved some 4RF Aprisa SR+ ethernet radios from a customer to configure. Issue is that they are used and have non-default...
Replies
0
Views
76
Hi Guys, I have a 1769-L24-QBFCB1 that has the OK light flashing on the embedded counter module. The manual states it is a resettable fault, but...
Replies
0
Views
104
Back
Top Bottom