How to clear COUNTER content when power is turned OFF ???

helas

Member
Join Date
Jan 2005
Posts
2
HI All

I have Omron CQM1-CPU44
I am writing ladder diagram for semaphores
COUNTER, unlike TIMER, don't clear content when power is turned OFF and I need from COUNTER to start count from the beginning the next time when power is turned ON
I don't want to back up COUNTER Area when power is turned OFF !!!
Does anybody know how can I solve this?
banghead
 
Does your PLC have a built-in 'First Scan' contact? If so, use it to reset the counter. If not create these rungs as the first two lines of your ladder logic.

Continue First_Scan
---]/[--------------( )-
Continue
--------------------( )-

 
Last edited:
I did it with built-in function "First Cycle Flag": she turns ON for 1 cycle at the start of operation.

Thank you all, anyway
 
Use the first scan flag into the BSET function. If your counter area is properly organised, the BSET (blockset) function can be used to set a whole data area (you specify the area) to #0000. The # symbol represents constant, and will write 0000 (BCD) to the specified area.

Vey usefull old instruction. Has been available since about 1992 or 3.
 

Similar Topics

Hi, Experts: We have 20 + years old GE PLC series 90-30 stop running (the run led not on and battery led not on) and HMI showing that "PLC has...
Replies
7
Views
208
Hi everyone, recently i worked with a cmore panel and have the question that how can clear alarm list whit remote form,right now only can with...
Replies
0
Views
115
Hi guys, I have a data table as REAL type VALUES_TABLE[32,100]. I want to clear this table. For that i created a REAL type CLEAR_DATA tag with...
Replies
8
Views
570
Hi, I have bought a used 1756-L73S and SP, it is running firmware 30.013 and safety locked, im running Logix Designer 30.01.00. The controller...
Replies
10
Views
1,674
First time using a panelview. I have all of my alarms mapped to bits of dints. How do I get the alarm panel to popup when an alarm happens...
Replies
6
Views
2,134
Back
Top Bottom