input sampling rate

david90

Member
Join Date
Apr 2010
Location
ca
Posts
202
according to this website:http://www.plcs.net/chapters/respdetails6.htm, the input should be on for at least 1 input delay time + one scan time in order for the processor to reliably read the input.

I don't see why the extra "
1 input delay time" is needed. Let say the scan cycle consists of read input, prog exec and update output task. Lets assume that each operation takes 1ms. If so, then the sample rate of the input performed by the processor would be 1/3ms or 333.3 Hz.

According to classic signal sampling rule, the sampling rate should be twice as fast as the rate of the signal being sampled. Thus a 333.3 Hz sampling rate is suitable for sampling a signal that is 166.6hz or lower. A 166.6hz signal has pulses with a 3ms duration, which is the same duration of the PLC scan cycle. The graph below obeys the sampling rule but the input signal's doesn't have the extra "1 input delay time"

2z87mmp.png

 
Last edited:
The input delay happens before the PLC ever "sees" the signal, so the text is correct with regard to the classic PLC scan cycle.

The PLC only looks at the input point status between scans, so the signal must meet or exceed scan time to guarantee detection assuming the timing cannot be predicted.

All sensors have a switching speed and all input points have a switching speed, the sum of those needs consideration to correctly calculate the frequency "as seen" by the bit boxes used by the PLC program.

scancycle.jpg
 
Last edited:

Similar Topics

Hello In My Project I Have A Task To Read Sinusoidal Voltage Signal With Peridoic Time 20 msec,in order to read this signal i used a timed...
Replies
14
Views
5,108
Hi, I have a ControlLogix system with 1756-IF16 analogue inputs. I can't scale the inputs at the card as there is a requirement to facilitate...
Replies
14
Views
352
I'm having trouble calming down 2 Tempo Sonics. I'm using Studio 5000 CompactLogix my Raw value is jumping around from 8575.0 to 8755.0 at a...
Replies
30
Views
1,136
I cannot add SLC500 analog input tag (I: 8.3) to EZSeries Touch Panel Editor (V 5.3). I used all the listed tag datatype but it all says "Invalid...
Replies
10
Views
258
Hi, I have questions. I have Analog Input that need to put into Ignition Designer. But I don't know how to put?
Replies
1
Views
119
Back
Top Bottom