beautypg.com

Pm designer operation manual – B&B Electronics WOP-2121V-N4AE - Manual User Manual

Page 454

background image

4

14

PM Designer Operation Manual

14-45

CHAPTER 14 USING MACROS

14.4.18. Run Operation

RUN

Format

RUN(P1)

Data Type

-

Function

Runs the executable P1 which is on the same PC. This command is available for PanelExpress
only.

P1 (I/A)

The name of the executable to be run.

Example 1

RUN

"ABC.exe"

/* Run the program ABC */

Example 2

$U10

= "XYZ.bat"

RUN

$U10

/* Run the batch file XYZ */

RUNW

Format

P1

= RUNW(P2)

Data Type

-

Function

Runs the executable P2 which is on the same PC and saves the result in P1. Note that the macro
command following this one will not be executed until the program is closed. This command is
available for PanelExpress only.

P1 (I)

The word to receive the result.

P2 (I/A)

The name of the executable to be run.

Example 1

$U10

= RUNW

"ABC.exe"

/* Run the program ABC and use $U10 to get the result. */

IF

$U10

==

0

/* If the result is 0 then run the batch file XYZ. */

$U20

=

"XYZ.bat"

$U11

= RUNW

$U20

/* Run the batch file XYZ. */

ENDIF