7comparison operators, 8summary of user variables, 9system variables and flags – Lenze PMSS1000 Simple Servo User Manual
Page 30: Comparison operators, Summary of user variables, System variables and flags, 7 comparison operators, 8 summary of user variables, 9 system variables and flags

Indexer-Programmer-Manual.pdf REV 1.3
2.7 Comparison operators
Following operators are supported:
Operator Symbol
more >
less
<
Equal or
more
>=
Equal or
less
=<
Not Equal
<>
Equal ==
Examples:
IF APOS <=10
IF APOS > 20
IF APOS ==5
IF V1<2 && V2 <>4
2.8 Summary of User Variables
V0-V3
User defined variables. Variables can hold any numeric value including logic (Boolean
0 - FALSE and non 0 - TRUE) values. They can be used in any valid arithmetic or
logical expressions.
N0-N31
User defined network variables. Variables can hold any numeric value including
logic(Boolean 0 - FALSE and non 0 - TRUE) values. They can be used in any valid
arithmetic or logical expressions. Variables can be shared across Ethernet network
with use of statements SEND and SENDTO.
2.9 System Variables and Flags
System variables are variables that have a predefined meaning. In most cases the value of these
variables can be read and set in your program. Many of these variables can be set in folders of Motion
View. Some of the variables are read only write only or read and write. Read only variables cannot be
used as left value of the expression. For instance INPUT = 5 is illegal because you can not set inputs.
System Flags are the special System variables that can only have values 0 or 1. As an example, IN_A1 is
the system flag and reflects state of the digital input1. Input only can be 0 or 1 and therefore flag IN_A1
will have values 0 or 1.
30