SIEMENS CPU2xx

Ok, I'll bite.

What do you consider to be a "normal" timer? I always thought of Delay On and Delay Off as pretty normal.

Steve
 
Siemens Cpu2xx timers

When I say a normal timer I mean a timer that will turn on immediately when its input is high,for a preset period without the need to make its input low.
 
Try this code:

I use an off delay time which is controled by an edge triggerd input
Every time I0.0 turns from 0-->1, the timer starts!

Network 1

LD I0.0
EU
TOF T37, +30

Network 2

LD T37
= Q0.0

Leonardo!
 
I may be wrong here but it could be that you misunderstand what is meant by On Delay and Off Delay.

Both timers do exactly what you describe when you say "turn on immediately when its input is high,for a preset period without the need to make its input low". The terms "On-Delay" and "Off-Delay" refer to the timers' output. This maybe where your confusion is.

The TON element in the S7-216, for instance, has two variable elements; IN and PT. These refer to enable INput and the Preset Time. The following is the description of its operation taken directly from the Micro/Win 32 help file:

"The On-Delay Timer (TON) instruction counts time when the enabling input is ON. When the current value (Txxx) is greater than or equal to the preset time (PT), the timer bit is ON"

So, if you have an on timer (T37), once the IN is satisfied, the timer starts timing for the preset period, PT. Once the timed value is greater that the preset, the timer bit, T37, is on. You can then use XIO and XIC elements for this element throughout your program.


____T37____
I1.1 | |
---| |-----|IN TON|
| |
30 |PT |
|___________|

T37 M0.1
---| |------( )-


T37 M0.2
---|/|------( )-


Now, In this little program, input I1.1 is either off or on.

When I1.1 is low, bit T37 is low, M0.1 is low, and M0.2 is high .

When I1.1 initially goes high, the timer starts timing but bit T37 is still low, M0.1 is still low, and M0.2 is still high.

After 3 seconds (T37 is a 100ms time-based timer) of I1.1 being high, bit T37 goes high, M0.1 goes high, and M0.2 goes low.

As soon as I1.1 goes low again, bit T37 goes low, M0.1 goes low and M0.2 goes high.

Does that help?
Steve
 

Similar Topics

Hello I have a s7-1200 and I would like to read the tags present in this controller with my controllogix controller. The two controllers don't use...
Replies
4
Views
74
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
277
i have two plc 1. s7-1212dc/dc/dc ip; 192.168.0.1 2. s7-1500 1513-1pn ip; 192.168.3.2 i need to get data from plc1 to plc2. any idea how to do...
Replies
5
Views
96
Hi everyone hope you'll well. Is it possible for me to download a Crack version of tia portal v13..sorry to say this but the software is very...
Replies
5
Views
192
I have established an online connection to a machine using an S314 processor. I am using an mpi connector and simatic manager. The online...
Replies
11
Views
214
Back
Top Bottom