public static int GetProfinetVendorId(this ICoreObject lifelistNode) { ILifelistNodeInfo lifelistNodeInfo = lifelistNode.GetAttributeSet(typeof(ILifelistNodeInfo)) as ILifelistNodeInfo; if (lifelistNodeInfo != null) { return(lifelistNodeInfo.PnoIdentifier >> 16); } return(0); }
public static int GetProfinetDeviceId(this ICoreObject lifelistNode) { ILifelistNodeInfo lifelistNodeInfo = lifelistNode.GetAttributeSet(typeof(ILifelistNodeInfo)) as ILifelistNodeInfo; if (lifelistNodeInfo != null) { return(lifelistNodeInfo.PnoIdentifier & ushort.MaxValue); } return(0); }
public static int GetPnoIdent(ICoreObject lifelistNode) { ILifelistNodeInfo lifelistNodeInfo = lifelistNode.GetAttributeSet(typeof(ILifelistNodeInfo)) as ILifelistNodeInfo; if (lifelistNodeInfo != null) { return(lifelistNodeInfo.PnoIdentifier); } return(0); }