pub enum DataType {
Show 13 variants
UnsignedInteger,
SignedInteger,
Float,
String,
Timestamp,
Boolean,
Hexadecimal,
PlotPointPL1,
PlotPointPL2,
PlotPointPL4,
FloatArray,
UnsignedIntegerArray,
SignedIntegerArray,
}Variants§
UnsignedInteger
Unsigned Integer (UI) The value is an unsigned integer. The number of digits is defined with the Length parameter.
SignedInteger
Signed Integer (I) The value is a signed integer. The number of digits is defined with the Length parameter.
Float
Float (F) The value is sent as a float in a flexible format such as “12.12”, “10025.1234”, or “-57.5”. The sender determines the number of decimals to send.
String
String (S) The value is sent as ASCII characters, and the length of the data fits the actual string length. Strings may contain spaces (ASCII 0x20).
Timestamp
Timestamp (T)
The value represents a time stamp in the format YYYY-MM-DD:HH:MM:SS (19 ASCII characters).
Boolean
Boolean (B)
A boolean value represented as one ASCII digit: 0 = FALSE, 1 = TRUE.
Hexadecimal
Hexadecimal (H)
A hexadecimal value sent as ASCII characters, e.g., "A24CD3".
PlotPointPL1
Plotting Point (PL1)
A plotting point consisting of a Float Array (FA) of one pair of float values (Y, X).
PlotPointPL2
Double Arrow Line (PL2)
A plotting point consisting of an FA of two pairs of float values (Y, X).
PlotPointPL4
Window Plot (PL4)
A plotting point consisting of an FA of four pairs of float values (Y, X).
FloatArray
Float Array (FA)
An array of float values, each sent as 8 ASCII characters.
Negative values start with a '-' sign.
Precision varies, omitting the decimal point for large values.
Examples: "-1234567", "001.1205", "-123.789".
UnsignedIntegerArray
Unsigned Integer Array (UA)
An array of unsigned integers, each sent as 8 ASCII characters.
Examples: "12345678", "00001234", "00200000".
SignedIntegerArray
Signed Integer Array (IA)
An array of signed integers, each sent as 8 ASCII characters.
Negative values start with a '-' sign.
Examples: "12345678", "-1234567", "00200000", "10200000".