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
Note: ALL FUNCTIONS ARE CASE SENSITIVE!!!
Note:
You can utilize
decimal,
hex, binary
,
and octal
integers for functions as exampled here:
CHAR(66) = CHAR(0x42) = CHAR(0b1000010) = CHAR(0o102) = ‘B’
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, 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). Example: varstring = CHAR(66)
•
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”)
•
BinToSum(binary Stream)
- adds all of the bytes of a binary data stream and returns the sum
Summary of Contents for WACI NX-22
Page 36: ......
Page 53: ...Finally drag and drop selected files from your File Explorer...