FTV ME Visibility Expression Troubles

Snyd1

Member
Join Date
Jun 2018
Location
there
Posts
225
Dabbling with some expressions in my OIT program FTV ME 9, not something I am that experienced with. Managed an If,then, else that works well for a multistate state indicator. Now I am trying to get one working for visibility during state 3.

State 1 is based on a limit switch being made, state 2 is based on a different limit switch being made and 3 is when neither limit is made.

During this state I would like state 3 to animate using visibility. So if neither limit is made and my bit that is running off a timer is made visibility will pulse with the timer.

when I run something like this. I manage the opposite of what I would like to accomplish, states 1 and 2 pulse visibility with the timer and 3 stays solid.

{::[PLC]Program:MainProgram.LIMIT1} AND
{::[PLC]Program:VISIBILITY} OR
{::[PLC]Program:MainProgram.LIMIT2} AND
{::[PLC]Program:MainProgram.VISIBILITY}

When I run something like this all three states pulse...

NOT {::[PLC]Program:MainProgram.LIMIT1} AND
{::[PLC]Program:VISIBILITY} OR
NOT {::[PLC]Program:MainProgram.LIMIT2} AND
{::[PLC]Program:MainProgram.VISIBILITY}


Is there someway to check the state of each bit using an expression, say
limit1 =0 and visibility =1
or limit2 =0 and visibility =1

Or maybe someway to use State3 of the multistate indicator in conjunction with my timer bit that would make the statement true that I just don't know how to write do to my lack of knowledge with expressions?
 
Managed to get this figured out, guess I just needed to spend a little more time at it before seeking help. The way I was trying to handle the logic was a little flawed and apparently parentheses help.

({::[PLC]Program:MainProgram.LIMIT1} = 0) AND
({::[PLC]Program:MainProgram.LIMIT2} = 0) AND
({::[PLC]Program:MainProgram.VISIBILITY} = 1)

Gives the desired effect!
 
Nice job figuring it out!

Personally, I do no logic in the HMI, it all gets done in the PLC.

I second this. If I am using an expression for visibility or state I will just use a binary bit. I then write that binary but with logic however I want in the plc.

Two main advantages to this.
One, the plc is more powerful instruction wise so you have more options
Two, if you need to make an edit you can do it online in the plc and the system can still run. If it’s done on the hmi then you have to re download the whole mer file to the hmi.
 
To add a Three to _Dock_, if you see "This AND That OR Those" in the HMI, you cannot see what the values are. You can in the PLC so it's significantly easier to understand why something is not visible if the logic is done in the PLC.
 
Agree with the post above, a routine named HMI_Visibility is so much easier to monitor or change. Especially if the last guy put some long expressions on every single graphic.
 
i third, or maybe its fourth (?), the above comments with doing as much visibility as possible in the PLC code and minimizing what youre attempting to do in the OP on the HMI side.

there are however instances where you cannot, for example if you want a certain user group to have a visibility for an object on the HMI. At least with FTVS ME the HMI user is a global connections tag but the user group its assigned to is not so you have to do it in the HMI.
 

Similar Topics

If I assign the key K1 to a button and then make the button invisible, can the operator still actuate the button by pressing K1 while the button...
Replies
3
Views
1,261
Hello everyone, I am currently working on a project that uses a Rockwell L33ER controller and the FTV Studio V13 as Supervisory computer...
Replies
0
Views
139
Hello everyone, I am working in a platform and we installed FTV CLIENT SE V 12 IN ALL THE CLIENTS COMPUTERS, we have 6 clients and only 1 is not...
Replies
0
Views
110
Hi all, I'm having difficulties trying to connect FactoryTalk View SE Local Station (V13.00) to MS SQL Server Express. I state that they are...
Replies
2
Views
150
Hi to all, Does TIA portal support creating reusable pop-up display as FTV has it implemented? Something like on link below. Thanks in advance.
Replies
5
Views
544
Back
Top Bottom