Help needed - to find time between 2 input signals

Preeya

Member
Join Date
Nov 2003
Posts
112
Hi everyone, I have an input that changes state frequently (in milliseconds). I need to find the time interval between 2 signals of this input. (ref diagram)

I tried to set a timer and reset it with the same input but it didn't seem to work. I am using a siemens S7 200 PLC.

Please help me! Thanks
 
Thanks for the logic Arik. Let me try that and see. But as I mentioned this input changes in millisecs so hopefully this logic works.

Siemens S7 200 has Input rising edge interrupt. But how do I use that? Also as this input changes frequently wouldn't the interrupt keep executing?
 
Try this.

I couldn't test it because I haven't simulator for S7-200 or any S7-200 PLC:s.

There are some 1ms resolution timers in S7-200 according to Microwin help: (TONR--> T0,T64 - TON,TOF-->T32,T96)

mwin_example.jpg
 
This logic seems to work.. I just tested on the S7 200. Thanks TS!

Thanks for your help too Arik.
 
Last edited:
Hi,

If you try it with a Mitsubishi FX2N, you can use the first inputs with interrupts amd measure time input is ON, time OFF or period.

Can be measured with a resolution of 0.1ms.
 

Similar Topics

I have an old PLC (circa 2007) consisting of Telemecanique/Modicon/Schneider Electric devices. The system has developed errors and unfortunately...
Replies
2
Views
230
Hi I’m after some help , I have a plc program with a baumer verisens vision camera attached I have got the signals working ect but I have an...
Replies
9
Views
958
Hi all, We are facing synching issues with redundancy module, where the Primary is ending up with disqualified secondary. Normally this would...
Replies
2
Views
625
Hi all, I have got this machine that needs to be up and running soon. This machine has Schneider's Controller and I/O modules, 3 vfd's, 2...
Replies
2
Views
911
Is it possible to write to the high speed counter function file "high speed preset" on an AB micro 1100. I have the HSC set up with a MOV...
Replies
3
Views
1,084
Back
Top Bottom