TSL Automation Solutions Logo

Section 15.4.22 · Chapter 15: Using Macros

Run Operation

■ RUN

Format RUN(P1)
Function Runs the executable P1 which is on the same PC. This command is only available for the runtime software on the PC.
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)
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 only available for the runtime software on the PC.
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

Need PM Designer itself?

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

Source.Section 15.4.22 of 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.