Variable
This assigns a value to a global variable defined in the RC+ project.
Detailed Settings
- Variable
Select a variable from the variable dropdown list.
In the control that appears below the variable dropdown list, enter the value you want to assign to the selected variable.
The control used to enter a value will differ depending on the type of variable you select.
Example: When the type is Boolean
List box (options are True/False)
Example: When the type is Integer
Text box (integers only)
| Variable type | Options/Input Restrictions | |
|---|---|---|
| Boolean | 2 byte, True/False | True/False |
| Byte | 2 byte integer, -128 to +127 | Only integers can be entered |
| Integer | 2 byte integer, -32768 to 32767 | |
| Short | 2 byte integer, -32768 to 32767 | |
| Int32 | 4 byte integer, -2147483648 to 2147483647 | |
| Int64 | 8 byte integer, -9223372036854775808 to 9223372036854775807 | |
| Long | 4 byte integer, -2147483648 to 2147483647 | |
| Ubyte | Unsigned 2-byte integer, 0 to 255 | 0 or a greater integer can be entered |
| Ushort | Unsigned 2-byte integer, 0 to 65535 | |
| UInt32 | Unsigned 4-byte integer, 0 to 4294967295 | |
| UInt64 | Unsigned 8-byte integer, 0 to 18446744073709551615 | |
| Real | 4-byte real number, significant digits: 6 | Only numerical values can be entered |
| Double | 8-byte real number, significant digits: 14 | |
| String | ASCII characters only, 255 characters max. | |