Download presentation
Presentation is loading. Please wait.
1
Macros in FactoryTalk View SE and ME
Similarities and Differences Name – Rasmus Petersen Title – Technical Support Engineer Date – May 24th 2018
2
Agenda Goal What is a Macro? Creating Macros Calling Macros
Macros at runtime
3
Goal What do we cover today?
An overview of the Macro functions in FactoryTalk View for both Machine Edition and Site Edition In particular the differences and similarities If a programmer is familiar with one they will be better equipped to develop macros for the other
4
What is a Macro? mac·ro /ˈmakrō/
noun: macro; plural noun: macros; noun: macro instruction; plural noun: macro instructions; plural noun: macros instruction Computing: a single instruction that expands automatically into a set of instructions to perform a particular task.
5
How does this apply to FactoryTalk View?
Macros allow us to execute a sequence using a single instruction, run from one of several sources: In FactoryTalk View ME, the macros allow us to set the value of one or more tags. In FactoryTalk View SE, the macros allow us to run a series of one or more commands, which can be composite commands
6
Creating Macros in FactoryTalk View SE
Macros allow us to run a series of one or more commands, which can be composite commands. Macros are created under Logic and Control Macros When a new Macro file is opened: It opens with a header that includes the creation date Note: the ! Mean that the line is ignore, you can use that to add your own comments in the file too Commands are added as plain text
7
Creating Macros in FactoryTalk View ME
Macros allow us to set the value of one or more tags. Macros are created under Logic and Control Macros When a new Macro is opened: An editor is opened You can add one or more Tags and set their value to the result of the corresponding Expressions Note: Macros are NOT executed synchronously, in FactoryTalk View ME.
8
Calling Macros FactoryTalk View ME Factory Talk View SE Command
Startup When starting the Application Display When opening or closing a display Userbased Login and logout macros Global Connection 5 macro called based on a trigger Macrobutton Button that call a macro Factory Talk View SE Startup Run when starting the client file Display When opening or closing a display Userbased Login and logout macros Command Where FactoryTalk View SE allow to use of a command including nested in other macros
9
Macro Exectuion In FactoryTalk View ME there are some ways of executing a Macro that is not directly in FactoryTalk View SE – But they can be replicated Macrobutton The FactoryTalk View ME Macro button run a macro when pressed, so the way to replicate it in FactoryTalk View SE, is to use a button with the Macro as the command Global Connection The FactoryTalk View ME Global Connection set up can be done in FactoryTalk View SE using an Event – depending on the application/macro it might need to be done through VBA as pr. Technote FactoryTalk View SE Software: Trigger Commands on Client from HMI Server FactoryTalk View ME Macro functionality be replicated in FactoryTalk View SE
10
Resources FactoryTalk View ME FactoryTalk View SE
FactoryTalk® View Machine Edition (ME) Macro Best Practices General information about macros in FactoryTalk View Machine Edition Writing different strings with the ME "variable macro" feature FactoryTalk View SE FactoryTalk View SE - Asynchronous Execution for Macros in Events How to specify a parameter FactoryTalk View SE client's initial macro FactoryTalk View SE Software: Trigger Commands on Client from HMI Server
11
Questions? And thank you for listing to me
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.