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,117
Hello All, After trying to transfer some field changes on the safety scanner microscan3, and verifying, the device is stuck at .... waiting for...
Replies
0
Views
53
I have a 120V relay, 120V DI card and a analog input. I was wanting to know if i could put a 24V DI and well as a 120V DI card on the same plc...
Replies
1
Views
89
Hello, I'm looking for a dirt cheap digital display + input, that would be wired to an analog input and analog output. This would be for my home...
Replies
10
Views
264
Hello, I am trying to read a barcode scanner input using a cognex dataman 280 barcode reader, store it another string, the compare with another...
Replies
1
Views
89
Back
Top Bottom