The user variables functionality is only available on the ViX models listed below, when used in
combination with firmware version 3.00 or greater:
ViX250IE ViX250IH ViX250IM
ViX500IE ViX500IH ViX500IM
This functionality is not available on ViX base (analog command) and CANopen units.
The ViX user variable functionality permits the user to read and write up to 8 user-defined variables. These variables can be used to perform mathematical operations and also in combination with certain EASI code commands, where they can be used in selected data fields or in evaluation statements.
User variable data can be set directly by the user or control system, via the serial communications port or user program using the VAR command, or indirectly within a program structure by using the VMATH command. User variables may also be used in combination with the ViX system variables.
User variable data is only stored when a save (SV) command is executed. Following a reset or a power cycle, the user variable data will be returned to the values current at the time of the last save command. If no save command is executed prior to a reset, all user variable data will be lost.
The eight user variables are labelled VAR0-VAR7, and are long-integer types with a range from -2,147,483,647 to +2,147,483,647. Binary and real (float) number types are not supported.
Standard mathematical functions of addition, subtraction, multiplication and division are possible. Where the result of an operation gives a non-integer value, the result is not rounded up or down but is simply truncated.
214783647 / 4 = 536870911.75
The answer stored in the User Variable will be 536870911, not 536870912