Members
(static) DataType :Number
Properties:
Name | Type | Description |
---|---|---|
BOOL |
Number | Boolean |
INT8 |
Number | 8-bit signed integer |
INT16 |
Number | 16-bit signed integer |
INT32 |
Number | 32-bit signed integer |
INT64 |
Number | 64-bit signed integer |
UINT8 |
Number | 8-bit unsigned integer |
UINT16 |
Number | 16-bit unsigned integer |
UINT32 |
Number | 32-bit unsigned integer |
UINT64 |
Number | 64-bit unsigned integer |
BCD16 |
Number | 16-bit BCD |
BCD32 |
Number | 32-bit BCD |
BCD64 |
Number | 64-bit BCD |
REAL32 |
Number | 32-bit float |
REAL64 |
Number | 64-bit float |
Built-in data types for EasyBuilder Pro.
Type:
- Number
(readonly) dataType :Number
This property holds the data type of the device address/tag.
Type:
- Number
Methods
(static) getDataTypeSize(dataType) → {Number}
Get the size, in bytes, of the data type.
Example
let size = driver.Address.getDataTypeSize(someAddress.dataType);
Parameters:
Name | Type | Description |
---|---|---|
dataType |
Number | The data type to be evaluated. |
Returns:
A number value indicating the size, in bytes, of the data type.
- Type
- Number