Function getSafetyStatuswordBitNames

  • Retrieves the names or descriptions of safety statusword bits based on the parameter structure version.

    This function returns a 2D array, where each inner array corresponds to a byte in the safety statusword and contains the names or descriptions of the bits in that byte. If a bit has a name, it is used; otherwise, the description is returned.

    The function uses getSafetyStatuswordBits to select the appropriate set of bits:

    • If parameterStructureVersion is undefined or not provided, returns the non-SMM bits (2 bytes).
    • If less than 0x0203, returns the LW1 bits (4 bytes).
    • If 0x0203 or greater, returns the LW2 bits (4 bytes).

    Returns

    A 2D array of strings, where each inner array contains the names or descriptions of the safety statusword bits for that byte. Non-SMM arrays contain only 2 inner arrays (bytes).

    Parameters

    • Optional parameterStructureVersion: number

      Optional version of the parameter structure used to select which set of statusword bits to use.

    Returns string[][]

Generated using TypeDoc