beautypg.com

Writing macros – B&B Electronics WOP-2121V-N4AE - Manual User Manual

Page 416

background image

4

14

PM Designer Operation Manual

14-7

CHAPTER 14 USING MACROS

14.3. Writing Macros

In PM Designer, all the macros can be written in the macro development environment that is composed of two elements:
Macro Editor Window and Macro Command Properties Tool Window.

You will see the following sample of the Macro Development Environment when opening a macro from Project Manager,




14.3.1. Macro Editor Window

The macro editor is a text-based editor with syntax coloring and line numbering. Line numbering in the left margin of the
page helps you refer to the specific position of the macro. Syntax coloring gives you visual cues about the structure by
using different colors for various elements, such as keywords in black, comments in green, addresses in blue and
constants in red.

■ Editing Macro

With the macro editor, you can cut, copy, and paste selected text using menu commands, key combination or
drag-and-drop operations. You can also undo and redo selected editing actions.

You can right-click to display a popup menu of editing commands. The editing commands available depend on what the
pointer is pointing to.

Macro Editor Window

Macro Command

Properties Tool Window