TSL Automation Solutions Logo

PM Designer user manual

Chapter 15: Using Macros

35 topics, about 23,000 words. The short version is guide chapter 10, Macros.

This chapter explains how you can write macros (Native Script and VB Script) to perform operations. A macro contains a sequence of macro commands and acts as a simple computer program when it is run. With macros, some tasks that are hard to be performed by the objects can be easily achieved, such as scheduling, data exchanges, conditional operations, and sequential operations.

Note: Do not use macros to control systems that can cause life-threatening and serious injury.

Note: The real-time OS in the HMI needs to manage multiple tasks at the same time when the application is running. In order to not affect the whole performance, please keep the macro as short as possible.

Note: Macros execute individually and are unaware of other macros. When sharing common variables between macros, your application may have possible conflicts. Consider an application where the cycle macro updates the value of an address which is used by the event macro. If the event macro alters the address value before the cycle macro uses that address, the result of the cycle macro will be incorrect.

Topics in this chapter

  1. 15.1Types of Macros
  2. Working with Macros
  3. 15.3Writing Native Scripts
  4. Native Script Commands and Examples

Need PM Designer itself?

V4 for current PK, PT, ITV and PM panels, V2 for older models. Free, sent by email.

Source.The PM Designer Software User Manual, Edition 2.0, © Cermate Technologies Inc. (www.cermate.com, service@cermate.com). Reproduced online, with the manual's own figures, by TSL Automation Solutions, authorised Cermate distributor, for users of Cermate HMI panels. PM Designer and PanelMaster are trademarks of Cermate Technologies Inc.

Text and figures are the manufacturer's and may describe features your panel or software version does not have. For a plain-language introduction read the PM Designer guide; for help with a specific panel contact TSL Automation.