Operator
Below is a list of the recognized operators.
Group
Name
Sym
Assignment:
=
Assignment operator:
Addition:
+
Subtraction:
-
Multiplication:
*
Division:
/
Modulo:
%
Comparison operators:
Less than:
<
Less than or equal to:
<=
Greater than:
>
Greater than or equal to:
>=
Is equal to:
==
Not equal to:
<>
Logic operators:
Conditional 'AND':
AND
Conditional 'OR':
OR
Exclusive 'OR':
XOR
Boolean 'NOT':
NOT
Bitwise and shift operators:
Left shift:
<<
Right shift:
>>
Bitwise 'AND'
&
Bitwise 'OR'
|
Bitwise 'XOR'
^
Bitwise complement:
~
Or der of Pre ce dence
The process order of many operators within an expression is called the ‘order of precedence’. Priority of the same
kind of operator (From left to right, from top to bottom)
Arithmetic operator: ^
( * , / )
( % )
( + , - )
Bitwise & Shift operators: From left to right within the expression
Comparison operator: From left to right within the expression
Logic operator: Not
And
Or
Xor,
• Arithmetic operator is higher priority than a Bitwise operator
• Bitwise operator is higher priority than a Comparison operator
• Logic operator is higher priority than an Assignment operator
Main Functions and Sub-functions
The macro must have one and only one “
Macro_Command main()”
function which is the execution start point of
any macro file. Any sub-functions must be pre-defined and written before the
main()
function.
The format is:
1010-1001a, Rev 02
250
Sil ver Se ries In stal la tion & Op er a tion Man ual
Содержание Silver HMI504T
Страница 1: ...1010 1001A Rev 02...
Страница 20: ...1010 1001a Rev 02 16 Silver Series Installation Operation Manual OIT to PC Serial Port Pin Assignments...
Страница 32: ...1010 1001a Rev 02 28 Silver Series Installation Operation Manual...
Страница 128: ...1010 1001a Rev 01 124 Silver Series Installation Operation Manual...
Страница 156: ...1010 1001a Rev 02 152 Silver Series Installation Operation Manual...
Страница 166: ...1010 1001a Rev 02 162 Silver Series Installation Operation Manual...
Страница 216: ...1010 1001a Rev 01 212 Silver Series Installation Operation Manual...
Страница 251: ...1010 1001a Rev 02 Macros 247 Set Bit Objects Attributes Dialog Project Example of Add 2...
Страница 264: ...End Macro_Command 1010 1001a Rev 02 260 Silver Series Installation Operation Manual...
Страница 268: ...1010 1001a Rev 01 264 Silver Series Installation Operation Manual...