Syntax - KEP MMI-1500 Installation & Operation Manual

Mmi-touchscreen series
Table of Contents

Advertisement

: Checks the Macro for errors and displays them in the lower text box of the Workspace Dialog.
Compile
If no errors are found, the Macro is compiled and the Workspace Dialog is closed. The macro name is displayed in the
DownLoad Macro Dialog list.
: Closes the Workspace Dialog. If the Macro has not been compiled successfully, the macro name is displayed in the
Cancel
Not DownLoad Macro Dialog list.
: Calls up the help topic for Macro editing.
Help

14.3 Syntax

A Macro is made up of statements. The statements contain constants, variables and operators. The statements are put in a
specific order to create the desired output.
14.3.1 Constants and Variables
14.3.1.1 Constants
Constants are fixed values and can be entered directly into statements as:
Constant Type
Decimal Integer
Hexadecimal
ASCII
Boolean
Example statement using a constant:
C = 397
Where: C is a variable and 397 a constant.
Note: PLC and System registers and bits cannot be directly put into a Macro. Use the
GetData and SetData Statements to assign their values to Macro Variables for later use in
mathematical manipulation.
Workspace Dialog showing a compile error.
Note
Must begin with 0x
Strings must be enclosed in single quotes
Example
1234, -345, 0, 1138463220
0x2A, 0xFFFF, 0x20B54A
'a', 'test3', '47'
True, False
182

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mmi-750Mmi-730Mmi-850

Table of Contents