Help with EII (Event Input Interupt) on ML1100

timbo_uk

Member
Join Date
Nov 2005
Location
Bradford, UK
Posts
336
Hi,

After dropping onto Ken Roach's excelent info (MR PLC Forum in November 2007; Google is great!)on using EII rather than HSC, I need a little help with an output not operating as expected.

I have 2 flowmeters to use on a project I am (still) developing, only 1 works at a time so I was initially going to use a relay to select either signal to an input to the HSC.

The pulse train is about 1mS on 4mS off.

After reading Kens post I decided to try using EII. So I can have independant inputs to the PLC; therefore less to go wrong in future!

To test on the bench I have copied Kens ladder and added a little for my test routine (as attached image). The ladder routine called at each rising edge on I:0/0.

This counts as expected, but I wanted to check to make sure it hit all pulses, and didnt miss any. So I added O:0/2 at rung 1, expecting it to pulse each time the interupt section was called. I was then going to put a 2 channel scope on I:0/1 and O:0/2 and check for a match at varying frequencies.

Some how this output just stays on all the time.

What stupid thing am I missing please? :unsure:

2009-01-09_030452.jpg
 
Last edited:
The routine gets scanned when the input triggers, and as it is supposed to, the output turns ON, that's it, no further scans to turn it off [even it is being scanned, it will still remain ON because of unconditional rung].

If you want to turn it off put a unlatch command in the common routine which is always scanned. Or put a one shot, [of course you need an always ON bit before the ONS.]

Best Regards
___________
 
Last edited:
You don't have any conditions on your output. You need to somehow turn the output off in between interrupts. This may be quite difficult with the short pulse trains you're dealing with 1mS on / 4mS off.
If the processor scan time is less than 4 mS, you can try placing an OTU O:0/2 outside of the interrupt routine and change the OTE to an OTL in the interrupt routine. This will make the output latch "ON" when the interrupt is executed and then unlatch "OFF" in the reqular scan. Again, because of the PLC scan time this very well might not work.

The other thing to play with is the IOM (Immediate Output with Mask) instruction. In your interrupt routine, make 1st rung OTL O:0/2. Make 2nd rung IOM with correct settings to update O:0/2. Next 3 rungs will be your other logic. 2nd to last rung is OTU O:0/2. Last rung is IOM again. The success of this logic will still depend on the speed of the output hardware and the PLC scan time.

The Micrologix updates it's outputs at the end of the PLC scan. The IOM instruction forces the selected outputs to update right now.

EDIT:
After thinking about this more, I like the idea of using the IOM in conjunction with a toggle. Each time the interrupt is executed, the output is switched off if it was on and switched on if it was off. Then look for output to be half frequency of input on scope.
 
Last edited:

Similar Topics

Good day all! Can someone help me with the procedure to update Beijers E700 firmware? The Panel I am working on is firmware 2.04v and I would...
Replies
1
Views
9
Hi, We have an application that has a device that goes through a reboot (appears un-graceful) What then happens is the MVI module appears to hang...
Replies
0
Views
55
I am completely stuck on building a ladder program that requires a start button to be pressed 3 times to turn on motor 1. Then motor 2 starts...
Replies
20
Views
501
Hi all, i am the new controls guy at the plant and i have inherited a pc from the previous controls guy with Siemens tia portal version 16 and 17...
Replies
17
Views
573
Hello, I am trying to get a Yokogawa Hart pressure Transmitter and a Rosemount Temp Transmitter to read on a 1769-IF4 module on an L33ERM...
Replies
10
Views
352
Back
Top Bottom