Read Input Cicle - M340

ndelucca

Member
Join Date
Jul 2013
Location
Rosario
Posts
28
Hi everyone, i have a situation with a Modicon M340 PLC.
I need to measure an external magnitude with a digital input. I'll be receiving pulses in that digital input, the more pulses i get in a period of time, the biger the value.
The problem i've encountered is that i need to sample the input at 1ms. The PLC cicle is rounding the 10ms, so its too slow for regular programing.
I guess what i'm asking is basically if i could force the plc to read a particular input separately of the regular scan cicle, at least at a rate 10 times faster.

I hope i've made myself clear, otherwise i'll explain again.

Thanks!.
 
Thanks robert, i've actually seen that module before, but i discarted a hardware solution because i have a full 12 slot rack, with no posibility of expanding it at the present moment.
I'm looking for a programming solution, maybe by using a FAST task (wich i'm not so sure how it works, i've always worked with the MAST task only) or something like that.
 
You need to congigurate digital input to Fast period first (they are at 8 inputs group on module)
Then program fast task and use these inputs on fast task. Anyway not sure if you can even go to 1ms period with normal digital input card.
 
If you have an analog input available you could use a frequency to voltage convertor which is available fro Red-Lion controls amongst others ...
 

Similar Topics

Hi all, I want to catch min piks of an analog signal when digital signal is on(pls see the attached oscillogram). My hardware is 5069-L306ER CPU...
Replies
3
Views
1,010
Hi, When I use an interrupt OB (let's say OB38 which is processed every 10ms), does it read the state of the inputs at the time it is called, or...
Replies
18
Views
2,423
Hello everyone. I have a question about Rockwell PLC communication. Now I have a PLC5/30 and a Guardlogix 1756-L71S rack with 1756-DHRIO In my PLC...
Replies
4
Views
1,428
Dear friend, how to read the input register (3xxxxx) of device from twido plc. i have tried the comm macro but it always read the holding register...
Replies
3
Views
1,571
I have Micro850 with module 2080-Serialisol. It is needed to read 5 registers from a device via Modbus RTU. The device is Ok, I can read the data...
Replies
0
Views
1,148
Back
Top Bottom