Fuzzy logix when mapping inputs?

OWEN.DAVID

Member
Join Date
Aug 2018
Location
Monmouthshire
Posts
31
We have an input map that executes at the top of every scan.

In most cases we are using the MOV instruction to copy the input data into a human referenceable tag of the same data type. For example,

MOV(IO_AB_Node2:11:I.Ch6Data,AI_Winch_Pressure)

However, in some cases the AI_... tag has been been created as an alias of the same input.



Does this mean that the Alias tag will be updated once by the MOV instruction and then again if/when the data refreshes at input card? Such that a reference to this tag later in the scan could retrieve a different value?

If so, this seems to be nullify the benefit of the input map, i.e. data doesn't change during the scan.

What is best practice for a project using an input map?

*use MOV to copy input data only to a BASE tag

*use MOV to copy input data to an ALIAS tag for some benefit?


Or is it more nuanced than this?

input map with alias tag.png
 
Thanks for confirming, I have inherited a real onion of a project here!

With a six year history and lots of different layers and code styles. This is largely due to different technicians, undocumented online edits, bug fixes, forces, bug override tags, and non-descriptive work arounds. Hopefully just as many examples of good programming as bad!
 
Thanks for confirming, I have inherited a real onion of a project here!

With a six year history and lots of different layers and code styles. This is largely due to different technicians, undocumented online edits, bug fixes, forces, bug override tags, and non-descriptive work arounds. Hopefully just as many examples of good programming as bad!

So the program looks like a control panel after a few years in the field?
 
Input mapping in Loghix5000 is only necessary when you want to reference an input multiple times within the scan.

So long as a physical input is only read once, then it is actually synchronous to the scan, it's just that all of the inputs don't get updated at the same point in the scan.

We used to get over the asynchronicity by handling ALL inputs with some relevant handling function code.

Valve and pump feedbacks would be handled by AOIs that provided an interface to the code and all alarming functions.

Level probes would be handled by AOIs that did debouncing and alarming etc.

Straightforward vanilla inputs would also be handled by the debounce AOI, with the debounce times set to zero.

... and so on ...

The beauty of using AOI plant handlers is that EVERY similar device will be handled the same way, and of course using the physical inputs as AOI parameters means that they get mapped into the code just once.
 
So the program looks like a control panel after a few years in the field?

I've seen control panels that looked like that the day after commissioning !!!

Especially the MCC in Athens where they had removed ALL the trunking lids and all the cables had fell out ! That same MCC had a piece of cardboard to stop you touching the live unshielded terminals of the main door-interlocked isolator, which couldn't be used because it had been fitted badly. That same MCC that had NO LABELS on the start/stop push-buttons and auto-manual switches for the various motors. You had to know which was which motor .....

We provided the PLC panel, they had the MCC panel made by Stavros in his shed ....
 

Similar Topics

Hi, Am working on my thesis in this above mentioned area. Whats the best place to start looking at programming in Function Block. Does anyone...
Replies
17
Views
8,474
I meant to say most papers comparing fuzzy logic vs PID are frauds. Fuzzy logic can work but not better than PID with feed forwards. I know some...
Replies
13
Views
6,186
I am fan of expert system, and peter is trying to convince me of the opposite. BTW no hard feelings as both types have advantages/disadvantages...
Replies
19
Views
6,481
Can i use fuzzy controller for the controller purpose in programing? if yes how? any suggestion?
Replies
7
Views
2,068
Anyone use it? (we don't have it) A couple questions. If a function block were created in FD, would someone without FD be able to open the...
Replies
3
Views
2,270
Back
Top Bottom