78
Range
A Range Variable specifies a range of values between a minimum and maximum value. Each value can
be a number between -2
31
and +2
31
-1. The maximum value should be greater than the minimum.
Range Variables have one other parameter, which is calculated from the minimum and maximum values.
The de-bounce value, displayed after the maximum value, is used to provide a small measure of
hysteresis to prevent flutter.
Functions
The following functions are available for use when the expression check box is checked in one of the
supported actions. The following types of actions support expressions: Variable, Serial, DSP D/A, IR
Serial, HTTP Post, Email, Log, and Telnet interpreting Values as Expressions
•
ASCII (Char) Returns the ASCII numeric value for a character passed in. Example:
ASCII(“A”), ASCII(var_name).
•
atof(string) Returns floating-point number
Converts a numeric string with floating-point to a floating-point number. Example:
atof(“test”)
•
atol(string) or atoi(string) Returns integer
Converts a numeric string to a number. Range of input number: 0 to 2147483647. Example:
atoll(“test”) or atoi(“test”)
•
ftoa(float) Returns string
Converts an floating-point number to a string representation of the number. Example:
ftoa(3.14)
•
GetSystemTime() Returns the current time
If assigned to a Number, then returns the number of milliseconds since the start of the day.
Assigning the return value to a String gives the date and time in text form. Example:
GetSystemTime()