View Single Post
Old January 19th, 2018, 04:50 PM   #2
kamenges
Member
United States

kamenges is offline
 
kamenges's Avatar
 
Join Date: Nov 2002
Location: Brillion, WI
Posts: 3,643
We did it using a macro that runs on screen open. Right click on the screen in the object list and select "settings". Enter the macro name in the Open Macro field. The macro we used looks like this:


Code:
macro_command main()
short	Screen_Number

GetData(Screen_Number, "Local HMI", LW, 9050, 1)

SetData(Screen_Number, "PLC", "HMI_CurrentScreen", 1)

end macro_command
I don't know of another way to get this information to the plc.

Keith
  Reply With Quote