20 (148)
limited to the range [-2
31
, 2
32
-1]. Floating point values are limited to a precision of 15 digits.
Strings are limited to 4096 bytes. The data type of a constant is the smallest data type that can
represent the constant's value. Here are some examples:
•
0
⇒
Boolean (false)
•
1
⇒
Boolean (true)
•
120
⇒
8-bit unsigned integer
•
-5
⇒
8-bit signed integer
•
500
⇒
16-bit unsigned integer
•
-200
⇒
16-bit signed integer
•
70000
⇒
32-bit unsigned integer
•
-35000
⇒
32-bit signed integer
•
1.5
⇒
32-bit floating point number
•
3.14159265359
⇒
64-bit floating point number
•
5m
⇒
String
Constants are processed in the input stage of the
.
The constant's value can be changed. To do so, right-click on the element, or double-tap the
element if touch functionality is supported. A pop-up menu will appear (See image below). Select
the entry
Change Value
. Alternatively you can double-click the element.
Fig. 9
Changing a constant's value
3.2.5
Data Type Conversion Units
Data type conversion units can be used to convert any value to a specific data type. Supported
data types:
•
Boolean
•
8-bit unsigned integer
•
8-bit signed integer
•
16-bit unsigned integer
•
16-bit signed integer
•
32-bit unsigned integer
•
32-bit signed integer
•
32-bit floating point number
•
64-bit floating point number
Anybus Edge Gateway Reference Guide
SCM-1202-154 1.0 en-US