timer value ??

Hi guys
I am a bit confuesed the attached program . This program is used as a timer.
The time value is 32676. i just want to know what is this 32767 value.
From program i understand that when #IN0 gets high. The loop M004 will keep on subracting 1 every one second starting from 32767.
When i checked it the timer finishes within 2 or 3 seconds.
Now if i want to increse timer , how to do it ?

New Bitmap Image.jpg
 
32767 is 15 bits of binary to its maximin value, one more bit in lots of PLC's would give you a value of -32768, which is a value that most timers would very much dislike, as time does not go backwards.

In your case I assume something would normally happen before it gets to that value or stops timing at that value,
Your screen shot is to small for me to read what is there.
 
Source code for FC25:-

Code:
FUNCTION FC 25 : VOID
TITLE =
VERSION : 0.1

VAR_INPUT
  IN0 : BOOL ; 
  in1 : INT ; 
END_VAR
VAR_IN_OUT
  IO2 : INT ; 
END_VAR
BEGIN
NETWORK
TITLE =
      A     #IN0; 
      JC    M001; 
      CLR   ; 
      SAVE  ; 
      L     32767; 
      T     #IO2; 
      BEU   ; 
M001: AN    M     27.5; 
      JC    M003; 
      L     #IO2; 
      L     #in1; 
      >I    ; 
      JCN   M004; 
      T     #IO2; 
M004: L     #IO2; 
      L     1; 
      -I    ; 
      T     #IO2; 
M003: L     #IO2; 
      L     0; 
      <=I   ; 
      =     L      0.0; 
      JCN   M002; 
      T     #IO2; 
M002: A     L      0.0; 
      SAVE  ; 
END_FUNCTION
 
Clear as mud.

There is no parameter named IO1
Assuming IO2 is an IN_OUT parameter is cannot be assigned a constant. FC25 provides an on delay. IN1 specifies the delay in seconds. IO2 is used for storing the count.

fc25.JPG
 
thanks friends

yes you are right L D[AR2,P#0.0]
At IO2 there is address of mem location DB503.******.
So this is on delay timer? But how is it working?
Why the digit 32676 is written there ?
 

Similar Topics

Hello everyone, Myself Balaji from Tamil Nadu India, I am beginner PLC programmer. I am using Studio 5000, ControlLogix 5580 (1756-L81E)...
12
Replies
2,105
Views
Hi there I'm guessing this is a straightforward one but after much experimenting I've been unable to find an answer. The software is TIA V16...
5
Replies
5,141
Views
What programming technique would use a bit position in a Timer's acc value? For example T4:0.ACC/1 using RSLogix500 in a SLC
14
Replies
4,668
Views
Hello, First of all i have an OMRON CJ1M. I want to start a timer and cut it off when i want. After that i want to start something else for the...
4
Replies
3,417
Views
Hello Folks, I am new to Direct Soft, but a customer has a program that need me to edit. It is a DL06. We have a TMR function (T4) that we want...
24
Replies
9,424
Views
Top