public UlTcProcedure(string name, UlTcAdsClient client, int length = 16) { this.name = name; this.client = client; this.instLength = length; dataLock = new object(); rndHandle = new Random(); inst = new UlTcInstruction(); instructs = new Dictionary <int, UlTcInstruction>(); }
public UlTcResource(UlTcAdsClient client, int length, int aiLen, int aoLen, int encLen, int diLen, int doLen) : base(false, false) { start = 0; stop = 0; index = 0; valueLength = 12 + aiLen * 4 + aoLen * 4 + encLen * 4 + diLen + doLen; this.client = client; Priority = ThreadPriority.Highest; values = new UlTcResourceValue[length]; for (int i = 0; i < length; i++) { values[i] = new UlTcResourceValue(aiLen, aoLen, encLen, diLen, doLen); } }