Doubt related to Event handling in unity pro.

sarojj7

Member
Join Date
Dec 2016
Location
Calcutta
Posts
4
Dear all, I need to know whether the way I am handling the below mentioned scenario is correct or not?

Scenario:

1. Through HMI(Graphics Page,using vijeo citect) user triggers one process.

2. The process needs to poll few analog inputs which are increasing with time and take certain action once the input reaches a particular value and that's set, no need to read these input again until next cycle when user triggers the
process again through HMI.

3. Once triggered the above mentioned polling needs to done very frequently and all other scans can wait which means this is having highest priority.Hence to implement this polling and comparison logic , I use timer event which is periodically(100ms) executed again and again till the read analog input value reaches a particular value.

4.At the start of the processing I keep the event processing inhibited by writing 0 at %S38(System Bit).When user triggers this polling process the event processing is enabled by writing 1 to %S38 bit and thus the timer event starts to run periodically.

5. Now my doubt is that, once analog input has reached the required specific value and all action has been taken, this event processing must stop, so can I do it by resetting %S38 bit in event logic itself.I am using FBD in event logic ,will a logic resetting %S38 stop the event processing further? I have no way to test it presently.

6. Will this work and even if it does, is this the best way to handle this scenario?

I can give any more details required.

Kindly help. Looking forward to the valuable inputs.!!!!

:geek:
 

Similar Topics

I practice on micrologix 1000 on that i want to glow three output from a single input without using counter. How can i ???
Replies
2
Views
2,262
Hello Guys, Hope everyone is doing well. I have a general doubt about ladder programming. The outputs are not getting energized when I used the...
Replies
13
Views
1,857
Hi all, I'm working with FTVS and I'm trying to give a title to a dynamic popup that shows what device it is currently operating. I've seen that...
Replies
5
Views
1,926
Hi all, I'm quite new to the automation world. I've used a bit Tia Portal in the last month and now i have a new working in rslogix 5000. From...
Replies
10
Views
5,041
Hello everyone! I'm currently programming a safety logic on Studio 5000 Logix Designer V33.00.00 and I wanted to know if there's a way to test...
Replies
2
Views
1,586
Back
Top Bottom