Skip to main content

system.kanoa.asset.linkAssetModes

This function requires KanoaOPS module

Description

Links modes with assets (kanoaOPS).

Syntax

linkAssetModes(assetIdList, modeList, userId, modeCodeList)
  • Parameters
      assetIdList (list[int]): - List of assetId's
      modeList (list[int]): List of modeIds
      userId (int)
      modeCodeList (list[int]) - List of mode codes expected from the plc
  • Returns
      None
  • Code Examples

    # Example Usage:
    assetIdList = [100,101,102]
    modeList = [1,3,4]
    modeCodeList = [2,8,12]
    userId = 5
    system.kanoa.asset.linkAssetModes(assetIdList, modeList, userId, modeCodeList)