APIs, concepts, guides, and more

◆ NetworkOutputDataTypeGet()

RSIDataType NetworkOutputDataTypeGet ( int32_t index)
Parameters
indexThe index of the Network Output.
Returns
(RSIDataType) The data type derived from the output's ESI/ENI type name.
Description:
NetworkOutputDataTypeGet maps the type name reported by NetworkOutputDataTypeNameGet to an RSIDataType value. Standard elementary names route directly: BOOL, INT/UINT, DINT/UDINT, LINT/ULINT, WORD/DWORD/LWORD, REAL, LREAL, plus the eight-bit names SINT (-> RSIDataTypeINT8) and USINT / BYTE (-> RSIDataTypeUINT8). The lookup is case-insensitive.
Note
When the ESI/ENI provides no type name, or a vendor-defined / structured name outside the elementary set, the returned type falls back to a bit-size-keyed unsigned value: RSIDataTypeUINT32 for outputs up to 32 bits, RSIDataTypeUINT64 otherwise. The same fallback applies when an elementary name is paired with a bit size wider than its natural width (for example "INT" reported with a 32-bit bit size), so vendor-mislabeled PDOs preserve their raw bits instead of being truncated. Consult NetworkOutputDataTypeNameGet for the original string when the fallback applies.
See also
NetworkOutputDataTypeNameGet, NetworkOutputBitSizeGet, NetworkOutputSentFirmwareValueGet, NetworkOutputIntendedFirmwareValueGet, NetworkOutputOverrideFirmwareValueGet, NetworkOutputOverrideFirmwareValueSet