You are not registered yet. Please click here to register!

plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!

Go Back - Interactive Q & A > - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Thread Tools Display Modes
Old July 11th, 2018, 03:05 PM   #1
United States

amx701 is offline
Join Date: Jul 2018
Location: united states
Posts: 5
FactoryTalk SE


I am migrating a project from FactoryTalk ME to FactoryTalk SE. On this project we use Global Connections: Replace Display Number to update a Tag in the PLC when the operator changed HMI screens. This prevents a few things from happening unless a particular HMI screen is active.

Based on my google searches it sounds like I may need to use VBA to implement something similar in FactoryTalk SE. Is this true or did I just overlook where a similar feature is in SE?

If this is true can you give me an example on how to do this? All the examples I have been able to find require an event (button push) and it doesn't seem like changing the active HMI screen is considered an event that will trigger a VBA script.

  Reply With Quote
Old July 11th, 2018, 06:53 PM   #2
Lifetime Supporting Member

ASF is offline
Join Date: Jun 2012
Location: Australia
Posts: 2,823
Welcome to the forum!

You will need to use VBA. In SE, events happen at the server level, but the VBA runs at the client level. The server has no idea what display is currently being displayed - you could have 20 clients all displaying different screens, the server just stores the data and hands it out to any client that comes asking.

I'd suggest that the BeforeAnimationStart VBA sub for the relevant display is probably a good place to start. When you first load a screen, it will execute this code before starting animation on the display. However one thing to check would be whether this is affected by the display cache setting. Each display has a setting as to whether it is stored in the local cache once loaded (so it loads faster the next time), or retrieves it from the server each and every time it's used. If it's cached, I'm not sure whether it would run the BeforeAnimationStart sub after the first display. Worth experimenting with.

If it doesn't you could still use that approach, you'd just have to not cache the specific displays relevant to your application. If they're large and complex displays, this might be a pain as the load time for the display will be noticeably long every time. But if they're simple displays, it's probably not an issue. In that case you could just set a PLC tag on BeforeAnimationStart and reset it on BeforeAnimationStop (when the display is closed/replaced).

Another option might be to set a bit in the PLC when you call that display. So instead of using a Go To Display button, just use a regular button that has two commands: set [PLC bit], and Display [relevant display]. Then, all the buttons that navigate away from that display reset the PLC bit before calling the other display.
  Reply With Quote
Old July 12th, 2018, 07:10 AM   #3

crawler009 is offline
crawler009's Avatar
Join Date: Feb 2012
Location: Planet Earth
Posts: 211
There is another option.

We use the startup command of the displays.
Display settings -> Behavior -> Commands -> Startup

A startup command like "&Set DisplayNr 7" will set your Tag to 7, and if the Tag is a PLC Tag you can read that in the plc.

But take special care if you run multiple SE HMI's at the same time, as one could set this Tag with another display being onother Display (as ASF said).
  Reply With Quote
Old July 12th, 2018, 09:25 AM   #4
United States

amx701 is offline
Join Date: Jul 2018
Location: united states
Posts: 5
Thanks for the responses. I used the method crawler009 mentioned.
  Reply With Quote
Jump to Live PLC Question and Answer Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
FactoryTalk View SE and Excel mgallgood LIVE PLC Questions And Answers 1 December 14th, 2016 02:14 PM
Can you edit a Rockwell FactoryTalk hmi file with Factory Talk SE passwordg LIVE PLC Questions And Answers 2 May 24th, 2016 10:39 AM
FactoryTalk Historian SE Migration problem (2.1 to 3.01 version) nibed LIVE PLC Questions And Answers 0 November 26th, 2014 04:12 AM
FT View SE Editing Without License Mark Cole LIVE PLC Questions And Answers 9 November 22nd, 2014 08:03 AM
Running FactoryTalk View SE V5.0 to work with FactoryTalk Service Platform 2.40 ? alpine LIVE PLC Questions And Answers 15 December 15th, 2011 06:49 PM

All times are GMT -5. The time now is 01:07 PM.