A Famous Question

crying_baby

Member
Join Date
Mar 2005
Location
earth
Posts
112
hello, im having troubvle with the very last timer counter that keep counting backwoard instead of forward. can some1 help me point where is my mistake plz.


this is CW (plz dun use the full name ) else no ppl will post here -.-"

¦PROGRM ¦TABLES ¦STATUS ¦ ¦ ¦ ¦SETUP ¦FOLDER ¦UTILTY ¦PRINT
1insert 2edit 3modify 4search 5 6 7option 8goto 9more 10zoom
[ START OF PROGRAM LOGIC ]
START STOP %M0002
--¦ +-----¦/+-------------------------------------------------------------( )--
¦
%M0002 ¦
--¦ +--+
%M0002 SYST_ON
--¦ +---------------------------------------------------------------------( )--
START CPSENSR STOP CAR_OK
--¦ +-----¦ +-----¦/+-----------------------------------------------------( )--
START CPSENSR STOP +-----+ %M0001
--¦ +-----¦ +-----¦/+---¦ONDTR+-------------------------------------------( )--
¦0.10s¦
STOP ¦ ¦
--¦ +-------------------¦R ¦
¦ ¦ ¦
CPSENSR¦ ¦ ¦
--¦/+--+ CONST -¦PV ¦
+00150 ¦ ¦
+-----+
%R0001
+00732
STOP CPSENSR %M0001 %M0006 SOAPWTR
--¦/+-----¦ +-----¦ +-----¦/+---------------------------------------------( )--
STOP CPSENSR SOAPWTR +-----+ %M0006
--¦/+-----¦ +-----¦ +---¦ONDTR+-------------------------------------------( )--
¦0.10s¦
STOP ¦ ¦
--¦ +-------------------¦R ¦
¦ ¦
¦ ¦
CONST -¦PV ¦
+00100 ¦ ¦
+-----+
%R0002
+00582
STOP %M0006 %M0006 RINSWTR
--¦/+-----¦ +-----¦ +-----------------------------------------------------( )--
STOP CPSENSR RINSWTR +-----+ %M0006
--¦/+-----¦ +-----¦ +---¦ONDTR+-------------------------------------------( )--
¦0.10s¦
STOP ¦ ¦
--¦ +-------------------¦R ¦
¦ ¦
¦ ¦
CONST -¦PV ¦
+00060 ¦ ¦
%R0003
-15804
[ END OF PROGRAM LOGIC ]

 
Timers and counter normally count from the preset down.

Perhaps you have an up counter instruction you can use. Most PLCs I have used have an up counter. Use an internal tick to operate it.
 
Looking quickly at the text file this looks like LM90 GE and timers in that use 3 consecutive registers so us %r1 %r4 %r7 for your timers not %r1 %r2 %r3.
Steveb
 

Similar Topics

Y DOES MY THIRD timer(THE VERY LAST 1) OOPS sry for the caps y does my last timer count backwards instead of forward in my CW ladder? i...
Replies
5
Views
2,144
Hi, I would like to know what are the PLC/DCS/SCADA brands that are widely used in CANADA. It would be great if there is some statistics. Thank...
Replies
2
Views
1,811
hi all maybe its a lame question but i'd like to know anyway what is the worlds most famous PLC? i think its siemens but is this also the best...
Replies
136
Views
27,467
Hello again..trying something on an existing poorly written program and just wanted to double check something system is an A-B MicroLogix 1200 In...
Replies
5
Views
169
Back
Top Bottom