Traduciendo...
TSM_E_INVALIDITEMTYPE

Invalid Tree Item Type for Operation

Beckhoff · TwinCAT 2 Automation Interface

¿Qué significa TSM_E_INVALIDITEMTYPE ?

One or both of the specified tree items are not valid for the attempted operation (0x98510002). For LinkVariables() or UnlinkVariables(), this means one or both tree items are not of a variable type, preventing linkage operations.

Causas comunes

  • Attempted to perform an operation on an item with an incompatible data type.
  • Trying to write a value to a read-only TwinCAT variable.
  • Interfacing with a sensor or actuator that expects a different communication protocol.

Pasos de reparación & Lista de verificación

Haga clic en los pasos para seguir su progreso.

  1. 1

    Verify that bstrV1 and bstrV2 arguments refer specifically to variables, not other TwinCAT configuration items.

  2. 2

    Check the ItemType property of the identified tree items to ensure they are recognized as a variable type.

  3. 3

    Adjust the automation script to target correct variable paths for linking or unlinking.

Ver todos los códigos en este manual (12)
Datos técnicos verificados. Última actualización: March 2026

Fallas relacionadas

Fuente: Beckhoff TwinCAT 2 Automation Interface