Function isEncoderPortInternal

  • Determines whether a given encoder port on a device is an internal port based on the product type and port number.

    The function checks:

    • If the product belongs to specific Somanet ranges (Integro or ACTILINK-S) and the port is 1.
    • If the product ID matches known Circulo variants for specific ports (ECAN, ECBN, ECDN_E1, ECDL, ECDB_E1).
    • Special case product IDs (8510, 8511, 8610, 8611) on ports 1 or 2.

    Returns

    true if the specified port is considered internal for the given product, otherwise false.

    Parameters

    • port: number

      The encoder port number (1-based index).

    • Optional productId: null | string | number | HardwareDescription

      Optional product identifier. Can be a number, string, HardwareDescription, or null. If omitted, the function returns false.

    Returns boolean

Generated using TypeDoc