Upload
dokhanh
View
216
Download
0
Embed Size (px)
Citation preview
PUBLIC
Copyright © 2017 Rockwell Automation, Inc. All Rights Reserved. 1
Expanding Functionality with Visual BasicFactoryTalk View SE
Avery MartinSupport EngineerNovember 30, 2017
Copyright © 2017 Rockwell Automation, Inc. All Rights Reserved. 2PUBLIC
Agenda
Questions
Demonstration
Visual Basic Editor IDE
What is Visual Basic for Applications
Copyright © 2017 Rockwell Automation, Inc. All Rights Reserved. 4PUBLIC
Visual Basic for Applications (VBA) is an implementation of Microsoft's event-driven programming language Visual Basic 6
Similar to programming in C Variable declaration Subroutines For, If Then, Case Statements
Allows for Extra Functionality in View SE. Launch Display in SE based on Tag Value
Outside of the native FT View SE Development Environment Not formally supported with Toolkit Activation
What is Visual Basic?
Copyright © 2017 Rockwell Automation, Inc. All Rights Reserved. 7PUBLIC
VBA Demo 22007
Synopsis - Whenever a digital tag in the controller goes high I would like a display to open on my View SE Client.
Environment FactoryTalk View SE v9.0 Network Distributed Application FTD/HMI/RSLE hosted on the same pc. (Windows Server 2012 R2) Remote Engineering Workstation (Windows 10 Pro)
Tips Ensure to expose numeric display to VBA control. Cache the display if you would like it run in the background
Copyright © 2017 Rockwell Automation, Inc. All Rights Reserved. 8PUBLIC
VBA Demo 22114
Synopsis – I would like read in HMI or Direct reference tag values into the visual basic environment perform some arithmetic in Visual Basic and then write the new values back to the HMI or Direct reference tag.
Environment FactoryTalk View SE v9.0 Network Distributed Application FTD/HMI/RSLE hosted on the same pc. (Windows Server 2012 R2) Remote Engineering Workstation (Windows 10 Pro)
Tips Make sure to install wrapper module Make sure shortcut names and tags are named correctly according to
VB code
Copyright © 2017 Rockwell Automation, Inc. All Rights Reserved. 9PUBLIC
VBA Demo 48785
Synopsis – I would like to acknowledge all of my FactoryTalk Alarm and Event alarms with the push of a button.
Environment FactoryTalk View SE v9.0 FTAE v2.90 Network Distributed Application FTD/HMI/RSLE hosted on the same pc. (Windows Server 2012 R2) Remote Engineering Workstation (Windows 10 Pro)
Copyright © 2017 Rockwell Automation, Inc. All Rights Reserved. 11PUBLIC
Acronyms
VBA – Visual Basic for Applications IDE – Integrated Development Environment HMI – Human Machine Interface FTD – FactoryTalk Directory RSLE – RSLinx Enterprise FTAE – FactoryTalk Alarms and Events