General Statements - Dataq DI-159 User Manual

Table of Contents

Advertisement

DI-159 PLC Hardware Manual
Expressions
the following operators are supported as in C, in order of decreasing precedence:
n
0xn
'c'
variable
variable[expression]
variable#
( )
! ~
* / %
+ -
>> <<
<= < >= >
== !=
| ^ &
|| ^^ &&
Strings
V$ is a null-terminated view into a byte array v[]
string statements:
dim, input, let, print,
vprint
if expression relation
expression then
while expression relation
expression
do until expression rela-
tion expression
string expressions:
"literal"
variable$
[start:length]
+
string relations:
<= < >= >
== !=
~ !~

General Statements

decimal constant
hexadecimal constant
character constant
simple variable
array variable element
length of array or string
grouping
logical not, bitwise not
multiply, divide, mod
add, subtract
shift right, left
inequalities
equal, not equal
bitwise or, xor, and
logical or, xor, and
literal string
variable string variable$
variable substring
concatenates strings
inequalities
equal, not equal
contains, does not contain
16
StickOS

Advertisement

Table of Contents
loading

Table of Contents